Arrrg! Networking!
- larrynachos
-
larrynachos
- Member since: Mar. 20, 2013
- Offline.
-
- Forum Stats
- Member
- Level 11
- Musician
So, I just spent the last hour trying to figure out how to incorporate online multiplayer into my construct 2 games, with no luck. i've wasted so much time, just to find out i've been getting nowhere. I've wanted to make an online game for years, but i've never taken the time to look into it. now i have, and i still have no clue what i'm doing. all of this node.js and socket.io stuff is giving me a headache, and i'm about to give up. I wish there was a universal way of running servers, like minecraft has. just type in a little code into notepad, save it as a .bat, run it, and then configure it. instead, i have to type all of this javascript nonsense, and i STILL don't get anywhere.
sorry, i just had to rant a bit. is there any way i can just create a batch file server and just run it as a server? i know i have to add the scripts to construct 2, but i just want a simple server, not some command prompt that forces me to type in all of these directories, just to show me a java error.
does anyone have any example capxs, or example servers or something? i'm really desperate to make an online game.
Minnesota Meetup 2015 pls
- busypixels
-
busypixels
- Member since: Apr. 11, 2013
- Offline.
-
- Forum Stats
- Member
- Level 03
- Game Developer
At 4/24/13 10:12 PM, larrynachos wrote: So, I just spent the last hour trying to figure out how to incorporate online multiplayer into my construct 2 games, with no luck. i've wasted so much time, just to find out i've been getting nowhere. I've wanted to make an online game for years, but i've never taken the time to look into it. now i have, and i still have no clue what i'm doing. all of this node.js and socket.io stuff is giving me a headache, and i'm about to give up. I wish there was a universal way of running servers, like minecraft has. just type in a little code into notepad, save it as a .bat, run it, and then configure it. instead, i have to type all of this javascript nonsense, and i STILL don't get anywhere.
sorry, i just had to rant a bit. is there any way i can just create a batch file server and just run it as a server? i know i have to add the scripts to construct 2, but i just want a simple server, not some command prompt that forces me to type in all of these directories, just to show me a java error.
does anyone have any example capxs, or example servers or something? i'm really desperate to make an online game.
I don't know construct 2 and how it works, but server-side programming depends on what you need...
If you just have to save variables, for example you have a farmville like game, then some simple mysql-DB will do it fine!
But if you have to check all the players locations, actions, inventary, etc. like in a mmorpg, then you won't come around writing a socket-server (if you want good performance).
I know sockets can be disturbing, but they're worth it! beleve me!
ps: if you want to use sockets, think about encryption too... because you don't want somebody to use a tcp/ip packet sniffer and write a cheat tool for your game, do you?

