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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
garcia1000
Prole
Posts: 34
Joined: Sat Nov 28, 2015 5:54 am

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

Post 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?
User avatar
Sulunia
Party member
Posts: 203
Joined: Tue Mar 22, 2016 1:10 pm
Location: SRS, Brazil

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

Post 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.
Don't check my github! It contains thousands of lines of spaghetti code in many different languages cool software! :neko:
https://github.com/Sulunia
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

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

Post 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!
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
garcia1000
Prole
Posts: 34
Joined: Sat Nov 28, 2015 5:54 am

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

Post 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.
garcia1000
Prole
Posts: 34
Joined: Sat Nov 28, 2015 5:54 am

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

Post by garcia1000 »

Another question, does lovernet use the guaranteed transmission mode of lua-enet, or can data be lost?
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

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

Post 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.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
Post Reply

Who is online

Users browsing this forum: No registered users and 55 guests