So, how would I, either through Lua Sockets, or LUBE (Which isn't available anywhere I can find right now), make a game that can play a networked game with another running copy of my game on another computer, either on the same network, or even on the internet? If possible?
TNTBasic had this functionality, and I know Lua has Sockets and Löve has Sockets built-in, but on the Lua Sockets site I can't make heads nor tails of it, it all looks like connecting to web sites, nothing about just sending a variable across the network to another computer. Which is really the gist of it.
Can we do that? Are we able? Do we have the power?
I already had Updater, which I could probably use to make a "Custom map downloader" feature, but I'd really like to play with networking. Especially since I have three computers to play with.
So.. about networking...
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: So.. about networking...
Yes. That's the power of LÖVE.Jasoco wrote:Can we do that? Are we able? Do we have the power?
I'm not sure whether there are current implementations, but I think Epic Volley (by bartbes and Nevon) has a networked multiplayer mode?
Help us help you: attach a .love.
- nevon
- Commander of the Circuloids
- Posts: 938
- Joined: Thu Feb 14, 2008 8:25 pm
- Location: Stockholm, Sweden
- Contact:
Re: So.. about networking...
Yeah, we have networked multiplayer both over LAN and over tha internetz. The code is MIT if IIRC, so feel free to check it out. http://github.com/bartbes/Epic-Volley
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: So.. about networking...
Here it is: http://love2d.org/forums/viewtopic.php?f=5&t=230. If you have any questions about networking, just ask.
- Jasoco
- Inner party member
- Posts: 3725
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: So.. about networking...
So I'm trying to see how this works so I launched the Volleyball game on both my MacBooks to try and set up a networked game, but I can't get it to work at all.
This all seems confusing. More confusing than it should be in 2010.
Not sure how to use it. LUBE that is, and networking in general.
This all seems confusing. More confusing than it should be in 2010.
Not sure how to use it. LUBE that is, and networking in general.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: So.. about networking...
How did you (fail to) set up the networked game?
Did you use LAN or Internet, do you have a firewall, etc?
Did you use LAN or Internet, do you have a firewall, etc?
- Jasoco
- Inner party member
- Posts: 3725
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: So.. about networking...
There is no Firewall. It is off. I don't use OS X's Firewall. This is local, so I used LAN. But the game refused to discover the other computer. I tried many combinations.
Can you tell me how, step-by-step, it should work? Obviously I launch the game on both computers. I assume go into Multiplayer and click LAN. After that, what is supposed to happen? Scanning didn't work. Typing an IP didn't work. And nothing in the box on the left was clickable. So I am at a loss here.
Can you tell me how, step-by-step, it should work? Obviously I launch the game on both computers. I assume go into Multiplayer and click LAN. After that, what is supposed to happen? Scanning didn't work. Typing an IP didn't work. And nothing in the box on the left was clickable. So I am at a loss here.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: So.. about networking...
Well, you should click host on one of them, go through the game setup, and then it tells you it's waiting for a connection, at that point the server does show up in the list.
- Jasoco
- Inner party member
- Posts: 3725
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: So.. about networking...
Nope. Not working. The slime wanders back and forth forever while the other computer sits at the LAN settings screen. Nothing ever happens.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Denver, CO
- Contact:
Re: So.. about networking...
I opened up two instances on the same computer and it networked and played.Jasoco wrote:Nope. Not working. The slime wanders back and forth forever while the other computer sits at the LAN settings screen. Nothing ever happens.
Who is online
Users browsing this forum: No registered users and 1 guest