Page 2 of 2

Re: questions: making a Server in LOVE2D/ making a multiplayer game questions

Posted: Wed Aug 24, 2016 3:27 am
by garcia1000
josefnpat wrote:I haven't made a thread about it, but I've been working on the experimental LoverNet: https://github.com/josefnpat/LoverNet

I've used it for DRACUL64 (LD35 game) and have done some demos. There's a wiki with quesitonable examples haha
I'm looking into this for adding netplay to my game. Looks good! I have a unix server with lua installed, is it possible to run it from the server command line using lua instead of love2d?

Re: questions: making a Server in LOVE2D/ making a multiplayer game questions

Posted: Wed Aug 24, 2016 3:46 am
by Sulunia
If you want to go balls deep, just grab a free tier Amazon micro instance. It *should* work for testing, but make sure you set it up correctly.
The warning has been given, but i'll say it again, multiplayer is tough stuff. Took me 4 days just to make a box move smoothly accross the screen on 2 different computers.

Re: questions: making a Server in LOVE2D/ making a multiplayer game questions

Posted: Wed Aug 24, 2016 5:59 am
by josefnpat
garcia1000 wrote:I'm looking into this for adding netplay to my game. Looks good! I have a unix server with lua installed, is it possible to run it from the server command line using lua instead of love2d?
If you have lua, luasocket and enet installed, it should work fine.

You can usually easily build and run love headless though!

Re: questions: making a Server in LOVE2D/ making a multiplayer game questions

Posted: Sun Sep 18, 2016 5:43 am
by garcia1000
I tried to use lovernet but the wiki is kind of incomplete and I don't understand how to generate the documentation. Can I see a list of what functions I can call? For example I tried to use self:getUsers() but that returns an empty table even though I had some peers connected.

Re: questions: making a Server in LOVE2D/ making a multiplayer game questions

Posted: Sun Sep 18, 2016 2:48 pm
by garcia1000
Another question, does lovernet use the guaranteed transmission mode of lua-enet, or can data be lost?

Re: questions: making a Server in LOVE2D/ making a multiplayer game questions

Posted: Thu Sep 22, 2016 5:04 am
by josefnpat
@garcia1000 You can build the documentation with ldoc: https://github.com/josefnpat/lovernet#docs Also, enet guarantees transmisison of data (network failures aside).

ps please avoid doubleposting.