
My path folder is C:\inetpub\wwwroot\api\api
But now i see i dont have Data Folder inside with itensDB.xml Did i miss something?
My lines:
UpdateDB("api.localhost", "/api/Data/Weapons/itemsDB.xml");
Maincpp
g_api_ip->SetString("api.localhost");
Maincpp
req.put_Path("/api/php/api_getItemsDB.php");
Maincpp that folder i have here: C:\inetpub\wwwroot\api\api\php
const char* gDomainBaseUrl= "/api/";
int gDomainPort = 80; // PAX_BUILD - change to 80 and no SSL
My Whobackendapi.cpp
bool gDomainUseSSL = false;
void CWOBackendReq::Init(const char* url)
{
#ifndef FINAL_BUILD
// automatically switch to local site version
if(stricmp(g_api_ip->GetString(), "api.localhost") == 0)
{
gDomainBaseUrl= "/api/";
gDomainPort = 80;
gDomainUseSSL = false;
}
And My Vars.h
REG_VAR( g_serverip, "localhost", 0 ); // 66.180.197.56 - IP of dev server where we host dev master\supervisor
REG_VAR( g_api_ip, "api.localhost", 0);
Error is:
000000.085| Getting shop data
000000.088| WO_API: returned http404
000000.088| GetShopData FAILED, code: 8
000000.088| Reading game rewards
000000.090| WO_API: returned http404
000000.090| ApiGetDataGameRewards FAILED, code: 8
000000.090| !!! ERROR: failed to get game rewards
000000.090| !!! crashed