MantisBT - Zandronum
View Issue Details
0004225Zandronum[All Projects] Bugpublic2024-04-13 11:532024-06-25 22:20
unknownna 
 
highfeaturealways
confirmedopen 
3.1 
 
0004225: Joining a team doesn't consistently add to alternate teams unless other team has 2 players more
If you play a team game (teamplay 1) and use the addbot command, the game will every now and then add a bot to a team twice before adding to the other team. It doesn't add consistently to both teams alternately as expected. I've always shrugged it off, but it became more noticeable recently when doing some testing.

This also affects regular players in games with sv_noteamselect and sv_noteamswitch, guaranteeing that teams will become unbalanced.

If a team has 1 player more than the other team, it glitches. A player joining the game might join the overstacked team leading to unbalanced games.
If a team has 2 players more than the other team, it works as expected. A player joining the game always joins the understacked team.

It doesn't check properly whether the other team has more players unless it has 2 players more instead of 1.
1. zandronum.exe -iwad doom2.wad +teamplay 1 +sv_nomonsters 1 +map map01
2. Hold a button with "+showscores" to see the bots.
3. "addbot" command.
4. "addbot" command. There will now be 2 bots in the game, one on red team and one one blue team.
5. "removebot" command.
6. "addbot" command.
7. Repeat step 5 and 6 a few times until you see it add to the team that already has a bot.
Similar issues were reported earlier:
'https://zandronum.com/tracker/view.php?id=637 [^]'
'https://zandronum.com/tracker/view.php?id=759 [^]'
No tags attached.
png Screenshot_Doom_20240413_133406.png (43,703) 2024-04-13 11:53
/tracker/file_download.php?file_id=2957&type=bug
png
Issue History
2024-04-13 11:53unknownnaNew Issue
2024-04-13 11:53unknownnaFile Added: Screenshot_Doom_20240413_133406.png
2024-06-25 22:19unknownnaPrioritynormal => high
2024-06-25 22:19unknownnaSeverityminor => feature
2024-06-25 22:19unknownnaSummaryAddbot command doesn't consistently add to alternate teams => Joining a team doesn't consistently add to alternate teams unless other team has 2 players more
2024-06-25 22:19unknownnaDescription Updatedbug_revision_view_page.php?rev_id=14282#r14282
2024-06-25 22:19unknownnaAdditional Information Updatedbug_revision_view_page.php?rev_id=14284#r14284
2024-06-25 22:20unknownnaStatusnew => confirmed

There are no notes attached to this issue.