MasterServer Config Adding Permanent Games

Status
Not open for further replies.
Joined
Jun 17, 2003
Messages
54
Reaction score
55
Info
Code:
<num> 2 to 250 inclusive.    Does not include 1 because there is a r3d_assert in code that will crash server because id is 0 (as code does +1 when looking for PermGame groups).

<mapId> can be one of MAPID_WZ_Colorado, MAPID_Editor_Particles, or MAPID_ServerTest
<region> can be one of GBNET_REGION_US_West, GBNET_REGION_US_East, GBNET_REGION_Europe, or GBNET_REGION_Russia
<mapType> does nothing so set to any string
<minGames> does nothing so set to 0
<maxGames> does nothing so set to 0

<maxPlayers> maximum number of players for server
<minLevel> does nothing so set to 0
<maxLevel> does nothing so set to 0

<servName> name of server to be shown in browser <= 16 characters

[PermGame<num>] // maximum of 250
map = <mapId> <mapType> <region> <minGames> <maxGames>
data = <maxPlayers> <minLevel> <maxLevel>
name = <servName>

Example for Colorado Map which has

Code:
[PermGame1]
map = MAPID_WZ_Colorado DOESNOTHING GBNET_REGION_US_West 0 0
data = 32 0 0
name = RaGEZONE

When using this might want to set the numGames to 0 under the [WarZGames] group.

Full MasterServer.cfg Example
Code:
[MasterServer]
masterPort=34000
clientPort=34001
masterCCU=20
serverId=1

[WarZGames]
numGames = 0
maxPlayers = 32

[PermGame2]
map = MAPID_WZ_Colorado DOESNOTHING GBNET_REGION_US_West 0 0
data = 32 0 0
name = RaGEZONE

Screenshot
QZdqeOsl - MasterServer Config Adding Permanent Games - RaGEZONE Forums
 
Last edited:
Thanks finito you can also set the server to start the games through the source though with this it seems that it only starts map colorado.
 
Code:
void CMasterServerConfig::Temp_Load_WarZGames()
{
  char group[128];
  sprintf(group, "WarZGames");

  int numGames   = r3dReadCFG_I(configFile, group, "numGames", 0); //Change to how many gameservers you want running
  int maxPlayers = r3dReadCFG_I(configFile, group, "maxPlayers", 32);
  
  r3dOutToLog("WarZ %d games, %d players each\n", numGames, maxPlayers);
  
  for(int i=0; i<numGames; i++)
  {
    GBGameInfo ginfo;
    ginfo.mapId      = GBGameInfo::MAPID_WZ_Colorado;
    ginfo.maxPlayers = maxPlayers;

    sprintf(ginfo.name, "US Server %03d", i + 1);
    AddPermanentGame(10000 + i, ginfo, GBNET_REGION_US_West);

    sprintf(ginfo.name, "EU Server %03d", i + 1);
    AddPermanentGame(20000 + i, ginfo, GBNET_REGION_Europe);
  }
}
This is also another spot you can force the gs to start without config

Suppose its a hardcoded gameserver start up
 
I can't get any servers to appear in the Europe tab. Changing "GBNET_REGION_US_West" to "GBNET_REGION_Europe" doesn't seem to work. The supervisor server will never start the game server.
 
yeah same happened to me, I changed it to "GBNET_REGION_US_East " and the supervisor never started the game then I changed it back to "West" and it works.
 
Try to Announce your Masterserver ->

Code:
masterIp = 
masterPort =
serverName = *maybe, not sure*
 
Status
Not open for further replies.
Back