Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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 solution ![]() |
||||
|
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. |
||||
|
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. |
||||
|
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. |
|