• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Tutorial] Fix server Private

Joined
Sep 3, 2013
Messages
903
Reaction score
227
Fix for see private server in serverbrowser , automatic close game and add rented time used ( 100% work )
(untouched source)
Is realy hard core , ready ?

Search :

for(size_t i=0; i<gServerConfig->rentGames_.size(); i++)

Commante line :

PHP:
if(gMasterGameServer.masterServerId_ == MASTERSERVER_DEV_ID) { 
     break;

done.

Like that :

PHP:
// Oosmar02:: Fix , les serveurs privee ne s'afficher pas dans la liste des serv publiques + closed game + rented time  // send not started rented games
  for(size_t i=0; i<gServerConfig->rentGames_.size(); i++)
  {
    const CMasterServerConfig::rentGame_s* rg = &gServerConfig->rentGames_[i];


     // filter games for dev servers 
    //Oosmar02:: NTR !
   /* if(gMasterGameServer.masterServerId_ == MASTERSERVER_DEV_ID) {
      break;
    }*/


     /*if(gMasterGameServer.masterServerId_ == MASTERSERVER_DEV_ID + 1) {
      if(rg->ginfo.gameServerId != 102386 && rg->ginfo.gameServerId != 133613)    // "azzy server", owner 1000003
        continue;
    }*/


    // skip started games
    if(gMasterGameServer.GetGameByGameServerId(rg->ginfo.gameServerId))
      continue;


    // filter our region and games based on filters
    if(n.region != rg->ginfo.region) {
      continue;
    }
    if(IsGameFiltered(n, rg->ginfo, rg->pwd, 0)) {
      numFiltered++;
      continue;
    }


    CREATE_PACKET(GBPKT_M2C_GameData, n);
    n.superId    = 0;
    n.info       = rg->ginfo;
    n.status     = 0;
    n.curPlayers = 0;
    // override passworded flag, as it can be changed right now for every type of servers
    n.info.flags &= ~GBGameInfo::SFLAGS_Passworded;
    if(rg->pwd[0])
      n.info.flags |= GBGameInfo::SFLAGS_Passworded;


    net_->SendToPeer(&n, sizeof(n), peerId);
  }


  { // end list
    CREATE_PACKET(GBPKT_M2C_EndGamesList, n);
    n.numFiltered = numFiltered;
    net_->SendToPeer(&n, sizeof(n), peerId);
  }


  return;
}
 
Last edited:
Experienced Elementalist
Joined
May 28, 2017
Messages
225
Reaction score
127
xDDDD you have only to set serverId to 1 : serverId=1 in MasterServer.cfg to enable the private crappy things....
 
Experienced Elementalist
Joined
May 28, 2017
Messages
225
Reaction score
127
@Oosmar02 yes I never did this what you did, I just set the serverid to 1 and for me everything works...
 
Experienced Elementalist
Joined
May 28, 2017
Messages
225
Reaction score
127
its still there and for me it works cause I did set the serverid to 1 in the masterserver.cfg... has nothing todo with codex.

e8aefd4e6835c3868271d69872c795e3 - [Tutorial] Fix server Private - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Back
Top