Server

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

Server

Post by Doctory »

I'm trying to make a multiplayer game using UDP, I found the tutorial on the wiki, but I don't know how to be able to make server hosting, joining, chatting, all over a console.

Any idea?
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: Server

Post by Plu »

Maybe the examples in this thread can help you out?

viewtopic.php?f=3&t=76711

I've not worked with this myself, so not much more I can offer.
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: Server

Post by Germanunkol »

As in the thread Plu linked to, you should use the built-in Enet library that ships with version 0.9.0.
It has a lot of functions specific to gameplay where UDP doesn't. Also, what's more important, Enet has a "reliable" mode if I remember correctly - marking packets as reliable will make sure they arrive - something that you can't do with plain UDP.
In fact, you should first try to only send in reliable mode - otherwise you'll run into unecessary problems. You don't need unreliable mode unless you get the server into difficult situations with lots of players.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

Re: Server

Post by Doctory »

Thanks!
User avatar
MPQC
Citizen
Posts: 65
Joined: Fri Jun 28, 2013 2:45 pm

Re: Server

Post by MPQC »

Germanunkol wrote:As in the thread Plu linked to, you should use the built-in Enet library that ships with version 0.9.0.
It has a lot of functions specific to gameplay where UDP doesn't. Also, what's more important, Enet has a "reliable" mode if I remember correctly - marking packets as reliable will make sure they arrive - something that you can't do with plain UDP.
In fact, you should first try to only send in reliable mode - otherwise you'll run into unecessary problems. You don't need unreliable mode unless you get the server into difficult situations with lots of players.
If you need reliable then using UDP is not what you're looking for (ie use TCP).
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Server

Post by slime »

MPQC wrote:If you need reliable then using UDP is not what you're looking for (ie use TCP).
ENet is designed to be able to do (optional) reliable UDP, and ends up having far less overhead than TCP - which makes it ideal for real-time games: http://enet.bespin.org/Features.html
User avatar
MPQC
Citizen
Posts: 65
Joined: Fri Jun 28, 2013 2:45 pm

Re: Server

Post by MPQC »

slime wrote:
MPQC wrote:If you need reliable then using UDP is not what you're looking for (ie use TCP).
ENet is designed to be able to do (optional) reliable UDP, and ends up having far less overhead than TCP - which makes it ideal for real-time games: http://enet.bespin.org/Features.html
Neat.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 0 guests