MantisBT - Soldat Dedicated Server
View Issue Details
0000664Soldat Dedicated ServerScripting Corepublic2016-08-25 12:302020-08-27 11:22
Mighty 
FliesLikeABrick 
normalmajoralways
feedbackreopened 
x64Windows7
2.8.1b2 
2.9.0 
0000664: Incorrect Game.Team[].Count values when using OnJoin event
Version 2.8.1, not 2.8.1b2

Switching players teams in OnJoin event causes Game.Team[].Count values to be incorrect (higher)
1. Write a simple OnJoin handler and assign it. Include Player.Team := 5;
2. Join game and while joining select Alpha team
3. You will land in Spectators team

Now
Game.Teams[1].Count = 1
Game.Teams[5].Count = 1

Even though there is only one person on the server
data
txt x7sd53pd.txt (8) 2020-08-27 11:19
https://bugs.soldat.pl/file_download.php?file_id=708&type=bug
Issue History
2016-08-25 12:30MightyNew Issue
2016-08-25 13:13MightyNote Added: 0002561
2016-09-01 01:16FalconStatusnew => acknowledged
2016-10-08 21:32FalconStatusacknowledged => resolved
2016-10-08 21:32FalconFixed in Version => 2.9.0
2016-10-08 21:32FalconResolutionopen => fixed
2016-10-08 21:32FalconAssigned To => Falcon
2020-08-27 11:19MMTag Attached: data
2020-08-27 11:19MMSticky IssueNo => Yes
2020-08-27 11:19MMFile Added: x7sd53pd.txt
2020-08-27 11:21MMAssigned ToFalcon => FliesLikeABrick
2020-08-27 11:21MMStatusresolved => assigned
2020-08-27 11:22MMProjectSoldat Dedicated Server => John
2020-08-27 11:22MMStatusassigned => feedback
2020-08-27 11:22MMResolutionfixed => reopened

Notes
(0002561)
Mighty   
2016-08-25 13:13   
by OnJoin event I meant Game.OnJoin