MantisBT - Zandronum
View Issue Details
0000203Zandronum[All Projects] Bugpublic2010-11-20 20:052018-09-30 20:12
AlexMax 
Torr Samaho 
normalmajoralways
closedfixed 
98d 
1.0 
0000203: sv_keepteams + changemap == can't join same team
Using changemap when sv_keepteams is true causes people to join the game as a 'team spectator'. They can team chat on the appropriate team, but trying to join the game results in a message that they're already on X team, and they can thus only join the game on the opposite team.

sv_keepteams shouldn't keep you as a spectator. Upon mapchange, you should be ingame immediately thereafter. This really messes up priv, because you either have to remember which team you were on (sv_keepteams false) or remember to join the opposite team on map change. If you try and join the same team and fail, you are delayed from entering the game by ten seconds.
Try this:

1. Start a multiplayer tdm server
2. Set sv_keepteams true
3. Changemap...either wait for time to expire or callvote it.
No tags attached.
Issue History
2010-11-20 20:05AnonymousNew Issue
2010-11-20 20:08AlexMaxNote Added: 0000626
2010-11-20 20:08AlexMaxNote Edited: 0000626bug_revision_view_page.php?bugnote_id=626#r316
2010-11-27 22:18Torr SamahoReporterAnonymous => AlexMax
2010-11-27 22:26Torr SamahoNote Added: 0000634
2010-11-27 22:27Torr SamahoStatusnew => feedback
2010-11-28 00:26unknownnaNote Added: 0000639
2010-11-28 09:48Torr SamahoNote Added: 0000641
2010-11-28 10:19Torr SamahoNote Added: 0000642
2010-11-28 10:45AnonymousNote Added: 0000643
2010-11-28 11:07AnonymousNote Deleted: 0000643
2010-11-28 11:07unknownnaNote Added: 0000644
2010-12-24 15:18Torr SamahoNote Added: 0000745
2010-12-24 21:57unknownnaNote Added: 0000746
2010-12-24 22:01unknownnaNote Edited: 0000746bug_revision_view_page.php?bugnote_id=746#r345
2010-12-25 07:39Torr SamahoNote Added: 0000747
2010-12-25 09:25unknownnaNote Added: 0000748
2010-12-25 09:30unknownnaNote Edited: 0000748bug_revision_view_page.php?bugnote_id=748#r347
2010-12-25 20:37unknownnaNote Edited: 0000746bug_revision_view_page.php?bugnote_id=746#r348
2010-12-26 17:11Torr SamahoNote Added: 0000752
2010-12-26 17:12Torr SamahoStatusfeedback => resolved
2010-12-26 17:12Torr SamahoFixed in Version => 98d
2010-12-26 17:12Torr SamahoResolutionopen => fixed
2010-12-26 17:12Torr SamahoAssigned To => Torr Samaho
2010-12-27 12:29Torr SamahoProduct Version => 98d
2010-12-27 12:29Torr SamahoFixed in Version98d => 1.0
2012-06-09 13:22Torr SamahoCategoryGeneral => Bug
2018-09-30 20:12Blzut3Statusresolved => closed

Notes
(0000626)
AlexMax   
2010-11-20 20:08   
This bug is mine, by the way. Please attach me to it.

(0000634)
Torr Samaho   
2010-11-27 22:26   
I couldn't reproduce it with a "skulltag.exe +teamplay 1 +map d2dm1 -host +sv_keepteams 1" server. Is it possible that it only happens when you have some kind of password set?
(0000639)
unknownna   
2010-11-28 00:26   
Looks like it indeed only happens if there's a join password set.
(0000641)
Torr Samaho   
2010-11-28 09:48   
This should fix the problem that you possibly end up as 'team spectator' after a "changemap" map change.

BTW: I agree that being forced to spectate after a "changemap" map change on a server with join password (although it has been exactly like this for at least four years) is pretty stupid and confusing (a lot of people already complained that this happens on their private coop servers). I'll see if I can change this without too much effort.
(0000642)
Torr Samaho   
2010-11-28 10:19   
Ok, I reworked the join password code and now players shouldn't be forced to spectate after a "changemap" map change anymore. This is an experimental binary with the new behavior and needs to be tested carefully in order to ensure that the change doesn't open any possibilities to join without knowing the join password.
(0000644)
unknownna   
2010-11-28 11:07   
I noticed that bots don't keep their team properly after a map change if the teams are uneven. Perhaps it's like this with players too.
(0000745)
Torr Samaho   
2010-12-24 15:18   
Can you elaborate the bot problem with uneven teams and tell me the exact dmflags settings necessary to reproduce it?
(0000746)
unknownna   
2010-12-24 21:57   
(edited on: 2010-12-25 20:37)
I use standard TDM settings with a join password set. It seems like it doesn't matter whether the teams are uneven or not. The bots switch teams after each "changemap" map change, but only if there's a join password set. FYI, I'm doing this online, not offline.

DMFlags : 20612
DMFlags2 : 8192
DMFlags3 : 0
CompatFlags : 0
CompatFlags2 : 0
Join Password : "password"

The steps I follow:

1. "sv_keepteams 1" in the server console.
2. Add 4 bots to the server.
3. Connect your client. Don't join the game, it's not needed.
4. "changemap MAP01" in the server console.
5. If the bots haven't switched teams, repeat step 4.

(0000747)
Torr Samaho   
2010-12-25 07:39   
Thanks! This hopefully fixes the problem.
(0000748)
unknownna   
2010-12-25 09:25   
(edited on: 2010-12-25 09:30)
Yeah, looks like it fixed the issue.

(0000752)
Torr Samaho   
2010-12-26 17:11   
Great. I'll consider this fixed then.