Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[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