MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000488SoldatGameplaypublic2013-12-22 23:022015-04-21 00:16
ReporterSzaman 
Assigned ToExHunter 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version1.6.6 
Target VersionFixed in Version 
Summary0000488: Disconnecting player on map change (when changed the team)
DescriptionHi,

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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002097)
Bistoufly (updater)
2013-12-23 07:20

Confirmed 1.6.6
(0002451)
homerofgods (updater)
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 (developer)
2015-04-21 00:16

Should be fixed in 1.6.9

- Issue History
Date Modified Username Field Change
2013-12-22 23:02 Szaman New Issue
2013-12-23 07:20 Bistoufly Note Added: 0002097
2013-12-23 07:20 Bistoufly Status new => confirmed
2013-12-23 07:20 Bistoufly Severity major => minor
2015-04-19 10:37 homerofgods Note Added: 0002451
2015-04-21 00:16 ExHunter Note Added: 0002452
2015-04-21 00:16 ExHunter Status confirmed => resolved
2015-04-21 00:16 ExHunter Resolution open => fixed
2015-04-21 00:16 ExHunter Assigned To => ExHunter


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker