Noobhub - Free Opensource Multiplayer And Network Messaging For Coronasdk

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

@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

I am so sorry, I probably sound like a loser and noob (but then again, that’s probably why you made Noobhub; for noobs, like me)

I am planning on making an Android application of minigames with multiplayer (only over LAN) so how would I connect this over LAN?

Would I just pass the server as 127.0.0.1 on any random port and then connect to a channel?

Can I just have a sample code for local multiplayer that shows how to connect a device to another device over LAN?

I understand the message system and everything, it’s just connecting the two devices. Thanks in advance!

-Temena

@temena3041, conections are routed throug the server, which is nodejs (its part of the noobhub so its included in sourcecode), and you connect to it, so 127.0.0.1 wont do, server has to be up and running, and reachable for all players.

so even if your players are all in the save LAN, is your nodejs is on some server on internet - it has to be reachable.

if you want specifically local connections, try searching for “Autolan”  sourcecode on forums, or code your own solution. check out noobhub.lua for examples how to work with sockets.

hope this helps, cheers!

Thanks for the help! I have tried Autolan but find it rather difficult compared to Noobhub.

I can try figuring out Autolan since I am not able to do what I need with this.

Again, thanks!

I might also try just setting up a server.

Hello,

I’ve put together a tutorial on setting up a NoobHub server.  Includes a short screencast and detailed written instructions.

http://www.develephant.net/noobhub-multiplayer-server-for-corona-sdk-in-5-minutes/

Cheers.

Great job!

Ill post that tutorial on other LUA dev communities

@overtorment - Thanks for the feedback, and NoobHub!

Cheers.

Hi, I just got your library and successfully installed node server and sample corona application.

I have a question - how to make node server send/receive messages between browser and a mobile app?

Lets say I would like to build a very simple chat application that would run on mobile devices and in the desktop browser too.

Can someone point me in the right direction.

Thanks.

I am so sorry, I probably sound like a loser and noob (but then again, that’s probably why you made Noobhub; for noobs, like me)

I am planning on making an Android application of minigames with multiplayer (only over LAN) so how would I connect this over LAN?

Would I just pass the server as 127.0.0.1 on any random port and then connect to a channel?

Can I just have a sample code for local multiplayer that shows how to connect a device to another device over LAN?

I understand the message system and everything, it’s just connecting the two devices. Thanks in advance!

-Temena

@temena3041, conections are routed throug the server, which is nodejs (its part of the noobhub so its included in sourcecode), and you connect to it, so 127.0.0.1 wont do, server has to be up and running, and reachable for all players.

so even if your players are all in the save LAN, is your nodejs is on some server on internet - it has to be reachable.

if you want specifically local connections, try searching for “Autolan”  sourcecode on forums, or code your own solution. check out noobhub.lua for examples how to work with sockets.

hope this helps, cheers!

Thanks for the help! I have tried Autolan but find it rather difficult compared to Noobhub.

I can try figuring out Autolan since I am not able to do what I need with this.

Again, thanks!

I might also try just setting up a server.

Hello,

I’ve put together a tutorial on setting up a NoobHub server.  Includes a short screencast and detailed written instructions.

http://www.develephant.net/noobhub-multiplayer-server-for-corona-sdk-in-5-minutes/

Cheers.

Great job!

Ill post that tutorial on other LUA dev communities

@overtorment - Thanks for the feedback, and NoobHub!

Cheers.

Hi, I just got your library and successfully installed node server and sample corona application.

I have a question - how to make node server send/receive messages between browser and a mobile app?

Lets say I would like to build a very simple chat application that would run on mobile devices and in the desktop browser too.

Can someone point me in the right direction.

Thanks.

Hi @overtorment 

I want to create a chat app and i am wondering how to connect to more then 1 channel at the same time?

For example let’s say i am connected to the main-lobby channel and i can chat with everyone but what if at the same time i want to be able to chat with indvidual players as well by creating and connecting to private channels while keeping the connection to the main-lobby channel?

Hope you will answer this!!