Yeah, thought after couple of your posts that it must be that one. I just don't understand all the metatables and other hassle in lua yet
Currently writing a basic online rpg engine. Been wanting to write one for years, and finally I think I can really do it with Löve+Lube. Basic idea of this rpg (after I have all the basic networking things) is getting away from all that level grinding shit and making it all about hunting treasures and new places with your friends. It's more like basic 2d Zelda game, as in example: you go to a dungeon and realise after a while, that you can't open that particular door without a friend pushing the other button. After you've completed the dungeon, you get the hidden treasure, like hookshot. That makes you able to reach to new interesting places to explore with more dungeons and treasures.
Have been brainstorming about this for couple of weeks now. Have to start writing something down soon. But wanted to try to create basic networking at the same time
EDIT: oh had to ask about this some time ago already, but can handshake be used as a client version checking? Like update server's and client's handshake variable always with the new version of the client, and then just send something as an OK from the server with connect callback function so client can continue to the login screen? Or something along that.
EDIT2: is there some convenient way to make server check the data it receives, if it's really from the client or if it's just some other data from same ip? I think it just crashes the server if I first try to unpack the data and then check the first value if it's anything server can read. Hmm... Have to think about this a bit.
EDIT3: is there a way to make TCP asynchronous? So it wouldn't wait for the messages to come.