Some MP issues and how to avoid them

This is where we discuss anything multiplayer. From strategies, arranging games, to multiplayer related technical help. You will also find tournament and league information here.
Post Reply
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Some MP issues and how to avoid them

Post by Garnier »

We finally got the game running today, with 6 players.

Here is a list of the issues that caused the game to not work:

1. One player crashed after the host clicked to start the game. All other players' games got to the "Waiting for all soldiers to arrive on the battlefield" screen, which lasted until we decided to stop waiting. Regardless of the nature of this player's crash, the game will not work if one player crashes during loading.

2. We tried again without the player who had crashed. This time I was hosting. The problem was that one player joined the game AFTER I had selected the sandbox settings. When I clicked launch, he was left behind in the game room, while the rest of our games loaded to the "Waiting for all soldiers to arrive on the battlefield" screen.

3. On try three, the issues were different. This time, some players' games crashed while in the room, before I had selected the sandbox oob. This happened after we had waited in this room for about 10 minutes I think.

4. On try four, all players got in the room, I selected the sandbox settings after ALL players were in, no players joined or left after I chose the settings. I clicked launch, and it worked for all of us. :)



Therefore, some things to know when setting up a game:

1. ALL PLAYERS must be IN THE GAME ROOM BEFORE the host selects the sandbox settings.

2. If ONE PLAYER's game crashes during or before the loading process, all players will get stuck on the "Waiting for all soldiers to arrive on the battlefield" screen. If one player's game is crashing there's no way to start the game with him unless his issue is resolved. In our case we played without him, hopefully the issue will be resolved some time when there are no 10 players trying to get the game going.

3. Do not delay in the room. Figure out what you plan to do before creating the game, and then when you create it have all players join very quickly. After the players are in the room, select the sandbox oob, have all players choose their commanders, and then launch the game. If you wait in the room two things can go wrong: (1) another player may join which will mess the game up if you already selected the OOB, and (2) the players may start crashing.

4. We have no reason to suppose ventrilo caused any of these problems. When the game did work, all players were in ventrilo and we stayed in it throughout the game.
Last edited by Garnier on Sat Apr 17, 2010 2:30 pm, edited 1 time in total.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
GShock
Reactions:
Posts: 385
Joined: Sun Jul 06, 2008 11:11 pm

Re: Some MP issues and how to avoid them

Post by GShock »

Excellent post, IMO this requires a sticky for increased visibility. :)
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Re: Some MP issues and how to avoid them

Post by norb »

We ran a test of some of these issues tonight. Thanks for the post, really helps me in debugging. We could not recreate the issue where the settings were chosen before people joined. We tried numerous times and could not get that to happen. I think that I need some redundancy in there. Make sure that everyone gets the latest. The crash while loading issue is something that we know about and I've been trying to find a good solution, but I'm not getting the right packets when they crash. I'll keep looking at this.
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Re: Some MP issues and how to avoid them

Post by Garnier »

Last night we played a 10 player game that lasted a little over an hour. I wasn't there for the end of it, but it ran well.

Norb, it's possible that the issue was when a player left the game after the oob was selected, and then came back. I'll try to do some thorough testing, since I often host it's rather important to be sure.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Re: Some MP issues and how to avoid them

Post by norb »

Thank you Garnier. I'm sure that as I can recreate these issues that there is a solution. I just have to learn the details of working with RakNet. I don't think we'll have it ready for the first official patch, but it's a research project for me. I do have the bug fixed where if you create the game through the lobby, and someone quits, everyone else crashes.
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Re: Some MP issues and how to avoid them

Post by Garnier »

So you're able to reproduce a crash when a player leaves and rejoins after the OOB is selected? That's the issue I'm trying to narrow down.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Re: Some MP issues and how to avoid them

Post by norb »

I have not tested that one yet. But if it's only when joining through the lobby, then it is fixed. As it's not the rejoining issue, it's a lobby issue.
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Re: Some MP issues and how to avoid them

Post by Garnier »

I've only experienced it in IP-hosted games, because that's all we've been doing lately.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Re: Some MP issues and how to avoid them

Post by Garnier »

I just ran a bunch of tests with AP514(Player1), Brian(Player2), Pender(Player3) and myself(Host). Wanted to see if any of the crashes I had suspected were guaranteed. They didn't happen.

These may be useful to someone:
SPOILER: SHOW
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Re: Some MP issues and how to avoid them

Post by norb »

It may be due to playing with more people and all those messages arriving at the same time.
Post Reply