[Help] game finished

Results 1 to 24 of 24
  1. #1
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    [Help] game finished

    000000.043| r3dFS: there is no volume file wz_00.bin
    000000.044| Connecting to master server at 192.168.1.2:34000
    000000.044| r3dNetwork: Creating client
    000000.189| IP: 192.168.1.2
    000000.189| waiting: connecting, 10.0 sec left
    000000.259| r3dNetwork: external ip: 192.168.1.2:56786
    000000.259| Game: Initializing with 32 players
    000000.259| Server time is Mon Oct 22 20:17:06 2029
    000000.260| CAsyncApiMgr starting
    000000.260| Starting server on port 34010
    000000.260| r3dNetwork: Creating host at port 34010
    000000.377| IP: 192.168.1.2
    000000.393| Getting shop data
    000000.827| WO_API: returned http404
    000000.827| GetShopData FAILED, code: 8
    000000.840| Reading game rewards
    000000.844| WO_API: returned http404
    000000.844| ApiGetDataGameRewards FAILED, code: 8
    000000.844| !!! ERROR: failed to get game rewards
    000000.846| !!! crashed
    000000.846| Creating minidump at logss\GS_1000004cb238b.dmp
    000001.051| Minidump created.


  2. #2
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    000000.844| WO_API: returned http404
    000000.844| ApiGetDataGameRewards FAILED, code: 8

    Error Code 8 Video, top of the Help section Stickied.
    Please review it.

  3. #3
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    the error continues
    ;x

  4. #4
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    Well that was informative.
    Did you turn off your firewall?
    Did you verify your ports forwarded?
    Are you local hosting?
    Are you public hosting? <--- this one I don't support
    Can you go into how you've got it setup?
    Honestly its an issue between your api communicating with sql. Somewhere in between its erroring and unless you can validate those are setup properly or at least elaborate on where you think it might be broken. All I can do is give you questions to answer.

    WZBackend-ASP.NET Solution. Validate all settings especially in db.inc.php and web.config
    Your SQL Server login has dbo ownership of the account on the database.
    You've tested with firewall off.
    You've validated port forwarding.

    - - - Updated - - -

    Go step by step through this tutorial by ztimer
    http://forum.ragezone.com/f791/tutorial-setting-infestation-mmo-server-1010574/

  5. #5
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    so I think the problem is in the door, so that I have no idea what is ..

  6. #6
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    Can you write what you think the problem is in English first as its required and followed by your own language.
    Unfortunately, the translation isn't coming through very well.
    "the problem is in the door"?

    - - - Updated - - -

    Maybe screenshot where you think its at as well.
    Thank you

  7. #7
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    found the problem the problem, the api is not in the correct folder and I have no idea what would be the correct one.
    know how to identify which would be the correct api?

  8. #8
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    Go step by step through this tutorial by ztimer
    http://forum.ragezone.com/f791/tutor...erver-1010574/
    You'll find it in the tutorial with an explanation.
    Here is the snippet of interest:
    Code:
    Internet Information Service IIS Configuration
    
    Note: 
    Before continuing go to folder C:\inetpub\wwwroot and create a folder named api
    
    1. Open Start -> Administrative Tools -> Internet Information Services (IIS) Manager
    2. Navigate to WARZ -> Sites and delete Default Web Site
    3. Right click on Sites and select Add Web Site...
    4. Set Site name: Site
    5. Set Application pool: DefaultAppPool
    6. Set Physical path: C:\inetpub\wwwroot
    7. Click OK
    8. Right click on Site and select Add Virtual Directory
    9. Set Alias: wz
    10. Set Physical path: C:\WZ\bin\build <---- this location may be different depending on your setup
    11. Click OK
    12. Right click on api and select Convert to Application
    13. Click OK
    14. Navigate to WarZ(WARZ\Administrator)
    15. Open feature Server Certificates
    16. From the right side menu. Select Create Self-Signed Certificate..
    17. Enter api as the name of the certificate and press OK to close.
    18. Right click on Site and select Edit Bindings..
    19. Click Add...
    20. Set Type: https
    21. Set SSL certificate: api
    22. Click OK
    23. Click Close
    24. Click on Site and open feature MIME Types
    25. From right side menu. Select Add...
    26. Set File name extension: .php
    27. Set MIME type: application/x-php
    28. Click OK
    29. Click on Site and from the right side menu click on Restart

  9. #9
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    but that part did dnc, the source is exchanged bad place where the api is meant?

  10. #10
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    C:\inetpub\wwwroot\api is the location that you publish the site data to.
    I think you'll understand better if you watch the end of my video.
    From 6 minutes and 30 seconds until the end of the video.



    - - - Updated - - -
    @hawk01

    The end of my video where I put "wz" as a virtual directory. I messed up.
    Make sure you put "wz" under "Site" right along side "api" and not under "api" as a sub-folder.
    That was the mistake I forgot to edit in the video.
    Apologies.

    - - - Updated - - -


    Image of where to put the virtual directory "wz". To help clarify it.

  11. #11
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    I managed to do this part, but the problem is in the source I am using it is replaced with the directory api

  12. #12
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    Can you paste what you have in the source code then?

    - - - Updated - - -

    LauncherConfig.cpp Line #52 depending on your code (in that area)
    Code:
    webAPIDomainBaseURL = r3dReadCFG_S(configFile, group, "webAPIDomainBaseURL", "/api/");
    LauncherConfig.cpp Line #96 depending on your code (in that area)
    Code:
    webAPIDomainBaseURL = "/api/";

  13. #13
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    http://forum.ragezone.com/f790/relea...users-1009557/
    Le NinjaZ Source Code:

    it is exchanged with the directory api

  14. #14
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    I have not downloaded that release.
    But based on the fact all the code is from the same base code.
    I would expect it to be setup the same in regards to those 2 lines I added.

  15. #15
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    I will now try these lines, already give answers.

  16. #16
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    Good deal, because I'm not downloading that source. :0)
    You'll have to paste what you have if it doesn't work.
    Thanks

  17. #17
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    is not given, thank you dnc

  18. #18
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    Does that mean it isn't working?
    Or it is working?
    If it isn't working paste your LauncherConfig.cpp file.

    - - - Updated - - -

    src\RSUpdate\LauncherConfig.cpp

  19. #19
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    finished game still ..

    #include "r3dPCH.h"
    #include "r3d.h"
    #include "r3dNetwork.h"


    #include "LauncherConfig.h"


    CLauncherConfig gLauncherConfig;


    CLauncherConfig::CLauncherConfig()
    {
    const char* configFile = "Launcher.cfg";
    const char* group = "Launcher";


    if(_access(configFile, 4) != 0) {
    r3dError("can't open config file %s", configFile);
    }


    serialBuyURL = r3dReadCFG_S(configFile, group, "serialBuyURL", "http://192.168.1.2/buy?ref=WarL");
    serialExpiredBuyURL = r3dReadCFG_S(configFile, group, "serialExpiredBuyURL", "http://192.168.1.2/buy?ref=WarE");


    accountForgotPasswordURL = r3dReadCFG_S(configFile, group, "accountForgotPasswordURL",
    "https://192.168.1.2/account_check");


    myAccountURL = r3dReadCFG_S(configFile, group, "myAccountURL", "https://192.168.1.2/account_check");
    forumsURL = r3dReadCFG_S(configFile, group, "forumsURL", "http://192.168.1.2/forum");
    supportURL = r3dReadCFG_S(configFile, group, "supportURL", "http://192.168.1.2/support");
    youtubeURL = r3dReadCFG_S(configFile, group, "youtubeURL", "http://www.youtube.com");
    facebookURL = r3dReadCFG_S(configFile, group, "facebookURL", "http://www.facebook.com");
    twitterURL = r3dReadCFG_S(configFile, group, "twitterURL", "http://twitter.com/");


    accountUnknownStatusMessage = r3dReadCFG_S(configFile, group, "accountUnknownStatusMessage",
    "Unknown account status, please contact support@192.168.1.2");
    accountDeletedMessage = r3dReadCFG_S(configFile, group, "accountDeletedMessage",
    "Your account was deleted because your payment was refunded or cancelled\n\nPlease contact your payment provider");
    accountBannedMessage = r3dReadCFG_S(configFile, group, "accountBannedMessage",
    "Your account has been permanently banned");
    accountFrozenMessage = r3dReadCFG_S(configFile, group, "accountFrozenMessage",
    "Your account has been temporarily frozen because of violation of the Terms of Service ( Paragraph 2 )\n\nYou will be able to continue to use the service in %d hours");

    accountCreateFailedMessage = r3dReadCFG_S(configFile, group, "accountCreateFailedMessage",
    "Account creation failed, please try again later");
    accountCreateEmailTakenMessage = r3dReadCFG_S(configFile, group, "accountCreateEmailTakenMessage",
    "There is already registered account with that email!\nPlease note that you must use unique email per The War Z account");
    accountCreateInvalidSerialMessage = r3dReadCFG_S(configFile, group, "accountCreateInvalidSerialMessage",
    "Serial Key is not valid after Serial Key Check\ncontact support@192.168.1.2");


    webAPIDomainIP = r3dReadCFG_S(configFile, group, "webAPIDomainIP", "192.168.1.2");
    webAPIDomainBaseURL = r3dReadCFG_S(configFile, group, "webAPIDomainBaseURL", "/WarZ/api/");
    webAPIDomainPort = r3dReadCFG_I(configFile, group, "webAPIDomainPort", 443);
    webAPIDomainUseSSL = r3dReadCFG_I(configFile, group, "webAPIDomainUseSSL", 1) ? true : false;


    ToSURL = r3dReadCFG_S(configFile, group, "tosURL", "http://192.168.1.2/EULA.rtf");
    EULAURL = r3dReadCFG_S(configFile, group, "eulaURL", "http://192.168.1.2/TOS.rtf");


    updateGameDataURL = r3dReadCFG_S(configFile, group, "updateGameDataURL",
    "https://192.168.1.2/wz/wz.xml");
    updateLauncherDataURL = r3dReadCFG_S(configFile, group, "updateLauncherDataURL",
    "https://192.168.1.2/wz/updater/woupd.xml");
    // updateLauncherDataHostURL Used by -generate cmdline arg to output a woupd.xml file.
    updateLauncherDataHostURL = r3dReadCFG_S(configFile, group, "updateLauncherDataHostURL",
    "https://192.168.1.2/wz/updater/");


    serverInfoURL = r3dReadCFG_S(configFile, group, "serverInfoURL",
    "http://192.168.1.2/api_getserverinfo.xml");

    #define CHECK_I(xx) if(xx == 0) r3dError("missing %s value", #xx );
    #define CHECK_S(xx) if(xx == "") r3dError("missing %s value", #xx );
    CHECK_I(webAPIDomainPort);
    CHECK_S(webAPIDomainIP);
    CHECK_S(webAPIDomainBaseURL);


    CHECK_S(updateGameDataURL);
    CHECK_S(updateLauncherDataURL);
    CHECK_S(updateLauncherDataHostURL);


    CHECK_S(serverInfoURL);
    #undef CHECK_I
    #undef CHECK_S

    return;
    }

  20. #20
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    webAPIDomainBaseURL = r3dReadCFG_S(configFile, group, "webAPIDomainBaseURL", "/WarZ/api/");

    change it to

    webAPIDomainBaseURL = r3dReadCFG_S(configFile, group, "webAPIDomainBaseURL", "/api/");

    - - - Updated - - -

    Code:
    #include "r3dPCH.h"
    #include "r3d.h"
    #include "r3dNetwork.h"
    #include "LauncherConfig.h"
    CLauncherConfig gLauncherConfig;
    CLauncherConfig::CLauncherConfig()
    {
    const char* configFile = "Launcher.cfg";
    const char* group = "Launcher";
    if(_access(configFile, 4) != 0) {
    r3dError("can't open config file %s", configFile);
    }
    serialBuyURL = r3dReadCFG_S(configFile, group, "serialBuyURL", "http://192.168.1.2/buy?ref=WarL");
    serialExpiredBuyURL = r3dReadCFG_S(configFile, group, "serialExpiredBuyURL", "http://192.168.1.2/buy?ref=WarE");
    accountForgotPasswordURL = r3dReadCFG_S(configFile, group, "accountForgotPasswordURL",
    "https://192.168.1.2/account_check");
    myAccountURL = r3dReadCFG_S(configFile, group, "myAccountURL", "https://192.168.1.2/account_check");
    forumsURL = r3dReadCFG_S(configFile, group, "forumsURL", "http://192.168.1.2/forum");
    supportURL = r3dReadCFG_S(configFile, group, "supportURL", "http://192.168.1.2/support");
    youtubeURL = r3dReadCFG_S(configFile, group, "youtubeURL", "http://www.youtube.com");
    facebookURL = r3dReadCFG_S(configFile, group, "facebookURL", "http://www.facebook.com");
    twitterURL = r3dReadCFG_S(configFile, group, "twitterURL", "http://twitter.com/");
    accountUnknownStatusMessage = r3dReadCFG_S(configFile, group, "accountUnknownStatusMessage",
    "Unknown account status, please contact support@192.168.1.2");
    accountDeletedMessage = r3dReadCFG_S(configFile, group, "accountDeletedMessage",
    "Your account was deleted because your payment was refunded or cancelled\n\nPlease contact your payment provider");
    accountBannedMessage = r3dReadCFG_S(configFile, group, "accountBannedMessage",
    "Your account has been permanently banned");
    accountFrozenMessage = r3dReadCFG_S(configFile, group, "accountFrozenMessage",
    "Your account has been temporarily frozen because of violation of the Terms of Service ( Paragraph 2 )\n\nYou will be able to continue to use the service in %d hours");
    accountCreateFailedMessage = r3dReadCFG_S(configFile, group, "accountCreateFailedMessage",
    "Account creation failed, please try again later");
    accountCreateEmailTakenMessage = r3dReadCFG_S(configFile, group, "accountCreateEmailTakenMessage",
    "There is already registered account with that email!\nPlease note that you must use unique email per The War Z account");
    accountCreateInvalidSerialMessage = r3dReadCFG_S(configFile, group, "accountCreateInvalidSerialMessage",
    "Serial Key is not valid after Serial Key Check\ncontact support@192.168.1.2");
    webAPIDomainIP = r3dReadCFG_S(configFile, group, "webAPIDomainIP", "192.168.1.2");
    
    webAPIDomainBaseURL = r3dReadCFG_S(configFile, group, "webAPIDomainBaseURL", "/api/");
    
    webAPIDomainPort = r3dReadCFG_I(configFile, group, "webAPIDomainPort", 443);
    webAPIDomainUseSSL = r3dReadCFG_I(configFile, group, "webAPIDomainUseSSL", 1) ? true : false;
    ToSURL = r3dReadCFG_S(configFile, group, "tosURL", "http://192.168.1.2/EULA.rtf");
    EULAURL = r3dReadCFG_S(configFile, group, "eulaURL", "http://192.168.1.2/TOS.rtf");
    updateGameDataURL = r3dReadCFG_S(configFile, group, "updateGameDataURL",
    "https://192.168.1.2/wz/wz.xml");
    updateLauncherDataURL = r3dReadCFG_S(configFile, group, "updateLauncherDataURL",
    "https://192.168.1.2/wz/updater/woupd.xml");
    // updateLauncherDataHostURL Used by -generate cmdline arg to output a woupd.xml file.
    updateLauncherDataHostURL = r3dReadCFG_S(configFile, group, "updateLauncherDataHostURL",
    "https://192.168.1.2/wz/updater/");
    serverInfoURL = r3dReadCFG_S(configFile, group, "serverInfoURL",
    "http://192.168.1.2/api_getserverinfo.xml");
    #define CHECK_I(xx) if(xx == 0) r3dError("missing %s value", #xx );
    #define CHECK_S(xx) if(xx == "") r3dError("missing %s value", #xx );
    CHECK_I(webAPIDomainPort);
    CHECK_S(webAPIDomainIP);
    CHECK_S(webAPIDomainBaseURL);
    CHECK_S(updateGameDataURL);
    CHECK_S(updateLauncherDataURL);
    CHECK_S(updateLauncherDataHostURL);
    CHECK_S(serverInfoURL);
    #undef CHECK_I
    #undef CHECK_S
    return;
    }
    Maybe this will help :0)

    Scroll until you find the Orange line.
    Change your code at that line to match mine.

    I took out all the blank lines except above and below the orange line, so you wont have to scroll that window hunting as far.

    Attachment 146879
    Zip file containing the LauncherConfig.cpp file already modified.
    Cheers
    Last edited by DNC; 20-07-14 at 07:42 AM.

  21. #21
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    game finished, game finished, @@@@@
    thank you DNC, i give up ;x

  22. #22
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    Finished, but what did the r3dlog.txt file say?
    Did the output change?
    I've not tested this particular branch of source code.
    You might be interested in one of the others if this one is too much trouble.
    I also suggest before you modify the IP addresses inside source code, you set it up as is with localhost by default.
    This will validate it all works nicely and then when you have it setup working like that, change what you wish.
    Care to post the r3dlog.txt or try another Release?

  23. #23
    Enthusiast hawk01 is offline
    MemberRank
    Jun 2014 Join Date
    33Posts

    Re: [Help] game finished

    000000.002| r3dFS: there is no volume file wz_00.bin
    000000.002| Connecting to master server at 192.168.1.2:34000
    000000.002| r3dNetwork: Creating client
    000000.034| IP: 192.168.1.2
    000000.034| waiting: connecting, 10.0 sec left
    000000.075| r3dNetwork: external ip: 192.168.1.2:56034
    000000.075| Game: Initializing with 32 players
    000000.075| Server time is Sun Nov 04 08:27:42 2029
    000000.075| CAsyncApiMgr starting
    000000.075| Starting server on port 34011
    000000.075| r3dNetwork: Creating host at port 34011
    000000.172| IP: 192.168.1.2
    000000.185| Getting shop data
    000000.226| Reading game rewards
    000000.240| Loading armory config
    000000.244| Reading loot boxes

    game finished...

  24. #24
    Developer DNC is offline
    DeveloperRank
    Oct 2011 Join Date
    2,493Posts

    Re: [Help] game finished

    Data isn't lining up with the source code or data isn't lining up with the assets.
    Again, I'm not familiar with that particular release of code and its not used by but maybe a couple people.
    I really do recommend until you get more hands on time, using another Release and enjoying playing around with something that works.
    :)



Advertisement