Noobhub - Free Opensource Multiplayer And Network Messaging For Coronasdk

Oh, and I remind you about a cool blog that writes about real cheap (but low end!) VPSes, its http://lowendbox.com

The VPS I have hardcoded in Noobhub’s demo project is hosted on one of those. And I found really cheap one, its 10 bucks per YEAR.

As a drawback, it has 64 MB RAM (wont be able to handle too much concurrent connections), and its pretty slow - it adds at least 200 ms more latency than the average server in same geolocation.

Thanks @overtorment!!! but 2 more questions :stuck_out_tongue:

1> Since i am not sure if my game will get popular or i will transfer my vps/ip, it it ok to just use ip address of my new vps instead of buying a domain (atleast for the beginning till my game gets popular)?

2> How do i know how many users are online/playing my game using nodejs? or can i accomplish it using third party scripts?

Thanks in advance!

A noob question…

how do you unsubscribe and close the connection???

Thanks in advance!

  1. well if users arent wisiting website on your VPS, theres nothing wrong with IP.

  2.  "netstat -tanp  | grep 1337 "  will give you overview of how many connected clients there are

Is there a way to modify Noobhub myself so that UDP is also supported?

I am using it for a real-time multiplayer game, I have not tested with 3G or 4G LTE yet but feel that in some cases I will need it. This research paper mentions TCP is a lot slower for mobile networks if its not WiFi: http://www.hindawi.com/journals/ijcgt/2009/530367/. The research paper is from 2009, and I don’t know if the TCP used in testing had “no-delay”, or whether or not Node.js can tackle a lot of these speed issues and technology has improved since to make the difference between TCP and UDP somewhat closer.

I haven’t gotten around to testing the latencies for myself yet since I am in China at the moment and my server is in Seattle, so the results would not be desirable any way. 

But as for number 2, I have to stop the node.js to run the command cause in linux command line mode (non gui) I won’t be able to run the command if the node.js is running?

What about using a php script like THIS and ping the page from the game every xx seconds?

No, just open another console. I suggest you study linux basics.

Hi @overtorment.

Thanks for developing the library. I am going to develop a multiplayer game and it will save me a lot of time.

Best,

Renato

Hey guys, I have just added compatibility with Gideros, if anyone uses it.

@overtorment I am about to create a droplet in the digitalocean and it is asking me to select a region. Which region is best to choose from? i can choose between new york, san francsico and amsterdam.

I don’t have a specific region target, people will be playing my game from all over the world.

Thanks

then there is no difference at all

There is a bug in the new node.js server, please fix it.

it gives error when starting the server…

/root/node.js:6 \<!DOCTYPE html\> ^ SyntaxError: Unexpected token \< at Module.\_compile (module.js:439:25) at Object.Module.\_extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module.\_load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3

@coolromin, “<!DOCTYPE html>” is not  part of the server script. Maybe you saved it wrong? Try this direct link:  https://raw2.github.com/Overtorment/NoobHub/master/server/node.js

Hi @overtorment,

My game is almost finished and i am looking for a cheap vps to upload the nude.js,

Since my budget is very tight i found digitalocean the cheapest one but what about ip and dns? how much that costs?

DigitalOcean provides ip with a VPS, so no problem, you can connect to noobhub server via IP.

If you need a domain, you can get one at Godaddy for about 10 bucks and tie it to digitalocean’t VPS.

If you are new user, AWS provides 1 year of free vm (x-small type) that you could use to that

Oh, and I remind you about a cool blog that writes about real cheap (but low end!) VPSes, its http://lowendbox.com

The VPS I have hardcoded in Noobhub’s demo project is hosted on one of those. And I found really cheap one, its 10 bucks per YEAR.

As a drawback, it has 64 MB RAM (wont be able to handle too much concurrent connections), and its pretty slow - it adds at least 200 ms more latency than the average server in same geolocation.

Thanks @overtorment!!! but 2 more questions :stuck_out_tongue:

1> Since i am not sure if my game will get popular or i will transfer my vps/ip, it it ok to just use ip address of my new vps instead of buying a domain (atleast for the beginning till my game gets popular)?

2> How do i know how many users are online/playing my game using nodejs? or can i accomplish it using third party scripts?

Thanks in advance!

  1. well if users arent wisiting website on your VPS, theres nothing wrong with IP.

  2.  "netstat -tanp  | grep 1337 "  will give you overview of how many connected clients there are

But as for number 2, I have to stop the node.js to run the command cause in linux command line mode (non gui) I won’t be able to run the command if the node.js is running?

What about using a php script like THIS and ping the page from the game every xx seconds?