Studio and Warz.exe IP change picture tutorial

Results 1 to 15 of 15
  1. #1
    Valued Member Ultraporing is offline
    MemberRank
    Apr 2013 Join Date
    GermanyLocation
    101Posts

    idea Studio and Warz.exe IP change picture tutorial

    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} :

    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.jpg


    Eclipse Studio\Sources\Main.cpp line 1690:
    3.jpg

    Eclipse Studio\Sources\Backend\WOBackendAPI.cpp line 20:
    2.jpg

    Eternity\SF\Console\Vars.h line 397:
    4.jpg


  2. #2
    Apprentice hatsiepatsie is offline
    MemberRank
    Apr 2013 Join Date
    19Posts

    Re: Studio and Warz.exe IP change picture tutorial

    can it be done with Visual Studio 2010 Express?

  3. #3
    Valued Member Ultraporing is offline
    MemberRank
    Apr 2013 Join Date
    GermanyLocation
    101Posts

    Re: Studio and Warz.exe IP change picture tutorial

    Quote Originally Posted by hatsiepatsie View Post
    can it be done with Visual Studio 2010 Express?
    I dont think so, vs2010 somehow hates this source and throws errors everywhere.
    I use for warz vs2008 sp1.

    You only see vs2010 on the pictures because i accedentally converted the projects and didnt had a backup.
    So i had to take a fresh copy of the source :/.

  4. #4
    Enthusiast tazone123 is offline
    MemberRank
    Feb 2010 Join Date
    29Posts

    sad Re: Studio and Warz.exe IP change picture tutorial

    I done it and i can't access to the game. what happen??

  5. #5
    Valued Member Ultraporing is offline
    MemberRank
    Apr 2013 Join Date
    GermanyLocation
    101Posts

    Re: Studio and Warz.exe IP change picture tutorial

    Quote Originally Posted by tazone123 View Post
    I done it and i can't access to the game. what happen??
    is your backend running? you have to use the right port and all

  6. #6
    Enthusiast tazone123 is offline
    MemberRank
    Feb 2010 Join Date
    29Posts

    smile Re: Studio and Warz.exe IP change picture tutorial

    I have to change launcher ip?

  7. #7
    Valued Member Ultraporing is offline
    MemberRank
    Apr 2013 Join Date
    GermanyLocation
    101Posts

    Re: Studio and Warz.exe IP change picture tutorial

    Quote Originally Posted by tazone123 View Post
    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 asdasd@asd.com -pwd asd -ffgrtvzdf
    replace "asdasd@asd.com" with your login, and replace "asd" with your password

  8. #8
    Apprentice Aero174 is offline
    MemberRank
    Apr 2013 Join Date
    13Posts

    Re: Studio and Warz.exe IP change picture tutorial

    Quote Originally Posted by Ultraporing View Post
    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 asdasd@asd.com -pwd asd -ffgrtvzdf
    replace "asdasd@asd.com" with your login, and replace "asd" with your password
    how to fix that ? :C

    error1.jpg

  9. #9
    Valued Member Ultraporing is offline
    MemberRank
    Apr 2013 Join Date
    GermanyLocation
    101Posts

    Re: Studio and Warz.exe IP change picture tutorial

    Quote Originally Posted by Aero174 View Post
    how to fix that ? :C

    error1.jpg
    in this forum post is the answer: http://forum.ragezone.com/f792/error...ng-api-923780/

    next time please use the forum search :)

  10. #10
    Apprentice alluuz is offline
    MemberRank
    Apr 2013 Join Date
    6Posts

    Re: Studio and Warz.exe IP change picture tutorial

    emm where i get my api key ? what is that ;D do i need a website

  11. #11
    Apprentice xMordeKaix is offline
    MemberRank
    Apr 2013 Join Date
    7Posts

    Re: Studio and Warz.exe IP change picture tutorial

    Thank You!

  12. #12
    Apprentice fabiofloyd is offline
    MemberRank
    Apr 2013 Join Date
    8Posts

    Re: Studio and Warz.exe IP change picture tutorial

    apiconfig.png
    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

  13. #13
    Valued Member Ultraporing is offline
    MemberRank
    Apr 2013 Join Date
    GermanyLocation
    101Posts

    Re: Studio and Warz.exe IP change picture tutorial

    Quote Originally Posted by fabiofloyd View Post
    apiconfig.png
    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

  14. #14
    Novice Maxiking2013 is offline
    MemberRank
    Apr 2013 Join Date
    4Posts

    Re: Studio and Warz.exe IP change picture tutorial

    Thank you soo much :)

  15. #15
    Apprentice glaxo is offline
    MemberRank
    Dec 2008 Join Date
    17Posts

    Re: Studio and Warz.exe IP change picture tutorial

    i can login and that stuff but when he try to load the map he crash.

    Can some one help me!

    ~Glaxo
    Last edited by glaxo; 29-05-13 at 01:36 AM.



Advertisement