[Tutorial] Fix server Private

Results 1 to 6 of 6
  1. #1
    INFESTATION:TRAINING DEV Oosmar02 is offline
    True MemberRank
    Sep 2013 Join Date
    FranceLocation
    572Posts

    [Tutorial] Fix server Private


    RaGEZONE Recommends

    RaGEZONE Recommends

    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 Code:
    if(gMasterGameServer.masterServerId_ == MASTERSERVER_DEV_ID) { 
         break; 
    done.

    Like that :

    PHP Code:
    // 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=0i<gServerConfig->rentGames_.size(); i++)
      {
        const 
    CMasterServerConfig::rentGame_srg = &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(nrg->ginforg->pwd0)) {
          
    numFiltered++;
          continue;
        }


        
    CREATE_PACKET(GBPKT_M2C_GameDatan);
        
    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(&nsizeof(n), peerId);
      }


      { 
    // end list
        
    CREATE_PACKET(GBPKT_M2C_EndGamesListn);
        
    n.numFiltered numFiltered;
        
    net_->SendToPeer(&nsizeof(n), peerId);
      }


      return;

    Last edited by Oosmar02; 3 Weeks Ago at 11:29 PM. Reason: untouched


  2. #2
    Registered IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    21Posts

    Re: [Tutorial] Fix server Private

    xDDDD you have only to set serverId to 1 : serverId=1 in MasterServer.cfg to enable the private shitty things....

  3. #3
    INFESTATION:TRAINING DEV Oosmar02 is offline
    True MemberRank
    Sep 2013 Join Date
    FranceLocation
    572Posts

    Re: [Tutorial] Fix server Private

    noopp

  4. #4
    Registered IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    21Posts

    Re: [Tutorial] Fix server Private

    @Oosmar02 yes I never did this what you did, I just set the serverid to 1 and for me everything works...

  5. #5
    INFESTATION:TRAINING DEV Oosmar02 is offline
    True MemberRank
    Sep 2013 Join Date
    FranceLocation
    572Posts

    Re: [Tutorial] Fix server Private

    Maibe on codex source

  6. #6
    Registered IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    21Posts

    Re: [Tutorial] Fix server Private

    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.





Advertisement