[Request] Data update request sent

Results 1 to 2 of 2
  1. #1
    ☆Dying Dawn☆ Bombillo is offline
    MemberRank
    Jan 2012 Join Date
    ValhallaLocation
    977Posts

    [Request] Data update request sent

    wtf is this "DATA UPDATE REQUEST SENT"? i found it in the shortcut keys(ex: alt+kbs1) in the Client source but i have no idea what is this... someone know it? it's just a little doubt
    Attached Thumbnails Attached Thumbnails whatisthis.jpg  


  2. #2
    Custom Title Enabled GigaToni is offline
    MemberRank
    Aug 2009 Join Date
    GER / FRLocation
    2,329Posts

    Re: [Question] Data update request sent

    Nothing.

    Code:
    IMPL_PACKET_FUNC(ServerGameLogic, PKT_C2S_DataUpdateReq)
    {
    	r3dOutToLog("got PKT_C2S_DataUpdateReq\n");
    	
    	// relay that event to master server.
    	//gMasterServerLogic.RequestDataUpdate();
    }
    For that to "work", if it even works, you've to comment that line in AND compile with "ENABLE_ARMORY_UPDATE"

    Then it does this:
    Code:
    try
      {
        r3dOutToLog("ItemsDBUpdateThread: started\n");
    
        CkHttp http;
        int success = http.UnlockComponent("ARKTOSHttp_decCLPWFQXmU");
        if(success != 1) 
          r3dError("Internal error");
    
        CkHttpRequest req;
        req.UsePost();
        req.put_Path("/php/api_getItemsDB.php");
        req.AddParam("serverkey", "Keycode");
    
        resp = http.SynchronousRequest(g_api_ip->GetString(), gDomainPort, gDomainUseSSL, req);
        if(!resp)
          throw "no response";
          
        wa = new MSWeaponArmory();
        char* data = (char*)resp->bodyStr();
        if(!wa->loadItemsDB(data, strlen(data))) 
          throw "failed to load itemsdb";
        
        r3dOutToLog("ItemsDBUpdateThread: updated, %d weapons\n", wa->m_NumWeaponsLoaded);
        
        delete resp;
    
        This->newWeaponArmory_   = wa;
        This->itemsDbUpdateFlag_ = ITEMSDBUPDATE_Ok;
        return This->itemsDbUpdateFlag_;
      }
      catch(const char* msg)
      {
        r3dOutToLog("!!!! ItemsDBUpdateThread failed: %s\n", msg);
      }
      
      SAFE_DELETE(wa);
      SAFE_DELETE(resp);
    
      This->itemsDbUpdateFlag_ = ITEMSDBUPDATE_Error;
      return This->itemsDbUpdateFlag_;
    Basically it updates all items from the database, so it "overrides" the itemsDB.xml. (Not the file, just a temp copy in the client)



Advertisement