ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator Multiplayer with node.js(Glitch)
person icon
CopperCraftr
Guest
Quote
2024-10-18 22:15:09

Hi, ive recently found out about "Glitch", it basically runs an node.js application on a webserver. But i am not sure if it would work with coppercube and how could it work. I'd be happy for a solutionemoji icon_smile

person icon
okeoke
Registered User
Quote
2024-10-19 07:54:27

I tried it before back than I was making a video about in-game chat.

It didn't work for me - I believe, I was not able to get any data from public url using coppercube, even though, it was working ok with any other client.

With current state of coppercube, I believe you can make it work using JIC's 6.7 launcher using system command:
Updated system() command to return the cmd output as a javascript string to the script engine. Works for Windows only.
. So it's possible to use curl/any other client to get data from the server.

You can send data using query strings, since built-in coppercube client only supports GET requests.

If you're able to send/get data, you should probably check my favorite article on how gold source multiplayer workshttps://developer.valvesoftware.... and implement networking code the same way as it is written there.

You can also refer to my mmorpg videos, since I also use node js there:https://www.youtube.com/playlist...

If you're building for webgl it's simpler than that since you can use all modern browser stuff, like websocket for example.

person icon
CopperCraftr
Guest
Quote
2024-10-19 20:29:21

Thank you for your response! I’ve created a multiplayer project using Node.js, but the server currently has to be started manually. I wanted to ask if you know of any web server that can run a Node.js application specifically for CopperCube.

person icon
okeoke
Registered User
Quote
2024-10-20 14:59:06

I don't think there are any specific services.
I believe, cheapest and most convenient way is rent some cheap vds. For development/small amount of users goal almost anything will do. Mmocube runs on windows core machine with 1 cpu core and 512 mbs of ram.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |