Studio and Warz.exe IP change picture tutorial

Status
Not open for further replies.
Joined
Apr 9, 2013
Messages
101
Reaction score
83
Here I made a picture tutorial, if i forget anything and someone notices then please post it.
READ THE CODE COMMENTS IN THE RED BOXES I DID WRITE THEM TO GIVE YOU A IDEA WHAT TO PUT IN THERE {CPT. CAPSLOCK} :8::

your api base address is the path where your api folder is located for example:
yourwebsite.com/warz (because your api folder has the path yourwebsite.com/warz/api)

your api folder name is in this example:
/api/

your apiserver port is the port it uses in this example:
80

Eclipse Studio\Sources\Main.cpp line 1561:
1 - Studio and Warz.exe IP change picture tutorial - RaGEZONE Forums


Eclipse Studio\Sources\Main.cpp line 1690:
3 - Studio and Warz.exe IP change picture tutorial - RaGEZONE Forums

Eclipse Studio\Sources\Backend\WOBackendAPI.cpp line 20:
2 - Studio and Warz.exe IP change picture tutorial - RaGEZONE Forums

Eternity\SF\Console\Vars.h line 397:
4 - Studio and Warz.exe IP change picture tutorial - RaGEZONE Forums
 
I have to change launcher ip?

dont use the launcher till someone removed that the launcher replaces your warz.exe.
just run the warz.exe with start parameters.

here are the contents of my bat file:
Code:
start WarZ.exe -WOUpdatedOk -login [email protected] -pwd asd -ffgrtvzdf

replace "[email protected]" with your login, and replace "asd" with your password
 
dont use the launcher till someone removed that the launcher replaces your warz.exe.
just run the warz.exe with start parameters.

here are the contents of my bat file:
Code:
start WarZ.exe -WOUpdatedOk -login [email protected] -pwd asd -ffgrtvzdf

replace "[email protected]" with your login, and replace "asd" with your password

how to fix that ? :C

error1 - Studio and Warz.exe IP change picture tutorial - RaGEZONE Forums
 
apiconfig - Studio and Warz.exe IP change picture tutorial - RaGEZONE Forums
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
 
View attachment 128498
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

The ItemsDB.xml is local in the datafolder where your server/client is.
also make sure to set your api folder on the iis server as application.
and your api folder path ist localhost/api/api/

dont change the right side of this UpdateDB("api.localhost", "/api/Data/Weapons/itemsDB.xml");
the left side is the website + apifolder
 
i can login and that stuff but when he try to load the map he crash.

Can some one help me!

~Glaxo
 
Last edited:
Status
Not open for further replies.
Back