MantisBT - Soldat
View Issue Details
0000488SoldatGameplaypublic2013-12-22 23:022015-04-21 00:16
Szaman 
ExHunter 
normalminoralways
resolvedfixed 
1.6.6 
 
0000488: Disconnecting player on map change (when changed the team)
Hi,

On some of my servers there is a simple script for changing the team (!j and !s).

OnPlayerSpeak fragment:

  if (Text = '!j') or (Text = '!join') then
  begin
       if (GetPlayerStat(ID, 'team') = 5) then
       begin
            countPlayingPlayers(); // counts currently playing human players
            if (PlayingPlayers >= 2) then
            begin
              //Command('/setteam5 ' + IntToStr(id));
              WriteConsole(ID, 'Sorry, it''s 1 vs 1 server. You can''t join now.', $FF0000);
            end else
            begin
              Command('/setteam0 ' + IntToStr(ID));
              WriteConsole(ID, 'PLAY AND WIN ! gl&hf!', $00FF00);
            end;
       end else
       WriteConsole(ID, 'You are not spectator now...', $FFFF00);
  end;
  
  if (Text = '!s') or (Text = '!spect') then
  if (GetPlayerStat(ID, 'team') <> 5) then
  begin
      Command('/setteam5 ' + IntToStr(ID));
  end else WriteConsole(ID, 'You are spectator already...', $FFFF00);

This script work normal during the gameplay.

But when the match has ended (time limit or point limit reached) and the score board is shown and you want to go to spectators (!s) it works also good (you are changing team), but in a few seconds (3-15) you are being disconnected by the server. This is probably caused by "map bug" (the map is not reloading to new one after using !s on "score board view"). So the game play is now on the new map (players are normally playing) but you still see the old map - and the server disconnects you. After reconnection everything is ok.

If you want more details, please contact me at soldat.rg@gmail.com

Best regards,
Szaman.
No tags attached.
Issue History
2013-12-22 23:02SzamanNew Issue
2013-12-23 07:20BistouflyNote Added: 0002097
2013-12-23 07:20BistouflyStatusnew => confirmed
2013-12-23 07:20BistouflySeveritymajor => minor
2015-04-19 10:37homerofgodsNote Added: 0002451
2015-04-21 00:16ExHunterNote Added: 0002452
2015-04-21 00:16ExHunterStatusconfirmed => resolved
2015-04-21 00:16ExHunterResolutionopen => fixed
2015-04-21 00:16ExHunterAssigned To => ExHunter

Notes
(0002097)
Bistoufly   
2013-12-23 07:20   
Confirmed 1.6.6
(0002451)
homerofgods   
2015-04-19 10:37   
This only happens in servers with this script right?
Could you list the servers in wich it happens?
(0002452)
ExHunter   
2015-04-21 00:16   
Should be fixed in 1.6.9