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?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
questions: making a Server in LOVE2D/ making a multiplayer game questions
-
- Prole
- Posts: 34
- Joined: Sat Nov 28, 2015 5:54 am
Re: questions: making a Server in LOVE2D/ making a multiplayer game questions
Re: questions: making a Server in LOVE2D/ making a multiplayer game questions
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.
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.
https://github.com/Sulunia
- 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
If you have lua, luasocket and enet installed, it should work fine.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?
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
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
-
- Prole
- Posts: 34
- Joined: Sat Nov 28, 2015 5:54 am
Re: questions: making a Server in LOVE2D/ making a multiplayer game questions
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.
-
- Prole
- Posts: 34
- Joined: Sat Nov 28, 2015 5:54 am
Re: questions: making a Server in LOVE2D/ making a multiplayer game questions
Another question, does lovernet use the guaranteed transmission mode of lua-enet, or can data be lost?
- 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
@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.
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
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
Who is online
Users browsing this forum: No registered users and 9 guests