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)