Light Style© by Fisana

Jump to content


Photo

Multiplayer


  • Please log in to reply
4 replies to this topic

#1 Ykkrosh

Ykkrosh

    Primus Pilus

  • WFG Programming Team
  • 4,908 posts

Posted 05 July 2010 - 02:59 PM

I've been making some changes to better support multiplayer, and I think it basically works now (though it's far from perfect). If anyone wants to help test it using the code currently in SVN, feedback would be appreciated!

The host may need to open UDP port 20595 in their NAT/firewall, and will need to tell their IP address to the other players (there's no master server to help players find each other). After that, hopefully it's fairly obvious how to set up multiplayer games. The "techdemo-mp" map has support for up to 8 players and is probably the best one to test on (if you don't mind it being ugly). Cross-platform matches should work (any combination of Windows/Linux/OS X, 32/64-bit, Debug/Release mode, etc). It's possible to run multiple copies of the game on a single computer to test it, though you may need to click "continue" past some warnings on Windows.

There should never be any out-of-sync errors (assuming all players are using exactly the same version of the game) - if you find any then please report what platforms the player were on, the oos_dump.txt files generated for each player, and ideally what actions triggered it.
  • 0
Philip Taylor [aka Ykkrosh]

Wildfire Games Programmer
Contact me: philip@wildfiregames.com

#2 WhiteTreePaladin

WhiteTreePaladin

    Primus Pilus

  • WFG Programming Team
  • 1,533 posts

Posted 05 July 2010 - 04:12 PM

I could help test, but not host (at least for now). Would it need to be done using the debug executable?
  • 0

Brian [aka WhiteTreePaladin]

0 A.D. Gameplay and UI Developer


#3 Ykkrosh

Ykkrosh

    Primus Pilus

  • WFG Programming Team
  • 4,908 posts

Posted 05 July 2010 - 04:28 PM

Release-mode builds would work fine. (The only drawback is the lack of debugging information when it crashes, but it shouldn't crash much, and usually it'll be easy to reproduce the steps that lead to the crash so it's easy to debug anyway.)
  • 0
Philip Taylor [aka Ykkrosh]

Wildfire Games Programmer
Contact me: philip@wildfiregames.com

#4 Quassy

Quassy

    Discens

  • Community Members
  • Pip
  • 14 posts

Posted 14 July 2010 - 02:52 AM

When the host game's crashes, the guest player does not seem to get any notice. The game just freezes (still works but time is "stopped") and no message like "Waiting for host" or "Host has left".

You can start games with more players than supported by the map. There could be some "spectation mode" but players should be noticed of that.

Edited by Quassy, 14 July 2010 - 03:17 AM.

  • 0
Ubuntu 10.10 32bit / Windows 7 64bit

#5 Ykkrosh

Ykkrosh

    Primus Pilus

  • WFG Programming Team
  • 4,908 posts

Posted 14 July 2010 - 09:16 AM

Hmm, I think the clients will get a notification when a network timeout occurs, but that might be a long time (maybe 30 seconds or more). Perhaps it should display a "waiting" message if it goes for 5 seconds without hearing from the host, to let people know what's going on? #513.

Player handling definitely needs improvement - currently the game doesn't even know how many players a map supports, so it'll probably need quite a few changes for that to work nicely. Hopefully that can be fixed soonish :)
  • 0
Philip Taylor [aka Ykkrosh]

Wildfire Games Programmer
Contact me: philip@wildfiregames.com