Author Topic: Wrong map versions  (Read 2298 times)

0 Members and 1 Guest are viewing this topic.

Offline Blue-ninja

  • Veteran
  • *****
  • Posts: 1419
Wrong map versions
« on: December 18, 2010, 04:04:48 am »
I'm rather puzzled by this.

When you put maps on a server, some of the maps repeatedly give players the wrong map version. I'm not sure whether it's the server's fault, or there's an anomaly in the map itself that is giving the players the wrong map versions. I had one map on the server where everyone except me kept getting kicked for wrong map version.

Is there any way to fix the maps, if they're the cause of this problem?

DarkCrusade

  • Guest
Re: Wrong map versions
« Reply #1 on: December 18, 2010, 04:33:11 am »
Add this script and the map should autochange when the error occurs:

Code: (pascal) [Select]
var
  i:Integer;
  PlayersAfterMapChange:Byte;
  CheckForError:Boolean;
  PlayersGone:Byte;
 
procedure ResetVars();
begin
  i:=0;
  PlayersAfterMapChange:=0;
  CheckForError:=false;
  PlayersGone:=0;
end;

procedure onMapChange(NewMap:String);
begin
  ResetVars();
  PlayersAfterMapChange:=NumPlayers;
  CheckForError:=true;
end;

procedure onPlayerLeave(ID,Team:Byte);
begin
  if (CheckForError) then PlayersGone:=PlayersGone+1;
end;

procedure AppOnIdle(Ticks:Integer);
begin
  if (CheckForError) then begin
    i:=i+1;
    if (i=10) then begin
      if (PlayersAfterMapChange-PlayersGone<=1) then Command('/nextmap');
      ResetVars();
    end;
  end;
end;

procedure ActivateServer();
begin
  ResetVars();
end;

Offline TheV

  • Soldier
  • **
  • Posts: 236
Re: Wrong map versions
« Reply #2 on: January 09, 2011, 04:08:56 am »
@Dc: That fixes the server, but it doesn't fix the map.

Is there any way to make that certain map playable. I believe is what he's asking.

Offline Monsteri

  • Artist
  • Flagrunner
  • ******
  • Posts: 769
  • Strange thing
Re: Wrong map versions
« Reply #3 on: January 09, 2011, 04:29:29 am »
Quote
I'm rather puzzled by this.

When you put maps on a server, some of the maps repeatedly give players the wrong map version. I'm not sure whether it's the server's fault, or there's an anomaly in the map itself that is giving the players the wrong map versions. I had one map on the server where everyone except me kept getting kicked for wrong map version.

Is there any way to fix the maps, if they're the cause of this problem?
I/Leo had the same problem. Leo added Tw Concrete into his server, but that happened, so he had to delete it :( Please, some wise men help us!
Sorry if I'm insolent.