Testing Bug 759

Testing Bug 759

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Testing Bug 759

Post by ILMTitan »

I have a thought that might fix bug 759, but I have no idea how to test it. Any ideas? Also could I get a sanity check from someone more familiar with that section of the code (CNet & CNetProtocol)?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Testing Bug 759

Post by Auswaschbar »

Please share your idea. This bug is worst because it is a major one and I have no clue where the error comes from.

I can basically think of three possibilities:
- the script from one of the player's lobby is wrong, which messes up all the other playernumbers
- one of the clients don't read his playernumber correctly from the script and / or changes it afterwards and send a wrong number to the server
- the server messes up with the numbers
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Re: Testing Bug 759

Post by ILMTitan »

The latest bug comment
In CNetProtocol::InitClient and CNetProtocol::InitLocalClient,
CNet::InitClient is called with wantedNumber, and stores what the number ended up being in myNum. It then calls SendAttemptConnect with wantedNumber. Should that be myNum instead?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Testing Bug 759

Post by Auswaschbar »

It got changed earlier, but CNet::InitClient should return wantedNumber when it is run in client mode, so it shouldn't make any difference.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Testing Bug 759

Post by Peet »

I haven't seen this since I updated TASClient to an after-.76b1 beta version and/or SpringLobby...I'm beginning to think it was just a tasclient bug.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Re: Testing Bug 759

Post by LordMatt »

My observation of this bug is that it only happens to me if I join the host's game very late, i.e. I was away when the game was launched and there was a password prompt I need to type in sometimes to start spring that I am late typing.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Re: Testing Bug 759

Post by NOiZE »

not sure if this is any help, but when you have this bug, you actually have to rehost the the game, be4 the bug will go away. Just relaunching isn't sufficient.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Testing Bug 759

Post by Peet »

NOiZE wrote:not sure if this is any help, but when you have this bug, you actually have to rehost the the game, be4 the bug will go away. Just relaunching isn't sufficient.
Hmmm, whenever it happened for me it worked after a few tries.
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Testing Bug 759

Post by Satirik »

when you have that bug make a backup of your script.txt and ask to one of the player having a wrong number to do so and post them here
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Testing Bug 759

Post by KDR_11k »

I usually made it go away by assigning ids so there are no gaps.
Post Reply

Return to “Engine”