[Help] No items saving after log out

Results 1 to 11 of 11
  1. #1
    Elite Member beastgameer is offline
    Member +Rank
    Sep 2013 Join Date
    205Posts

    [Help] No items saving after log out

    After fixing most db errors I took a long think into why the database does not save the items you pick up nor does it save character time player zombie xp or anything like that I have check logss and it seems the server isnt sending the item pickup info to the database/api Same with time played which is weird because if you goto userdata it has recorded your time played.

    If anyone has fixed this it would be amazing if you could give it to me and the community of ragezone I will be happy to help people if they find a brake through to this problem :D

    Kind Regards
    Beastgameer


  2. #2
    Member vinxo is offline
    MemberRank
    Dec 2014 Join Date
    41Posts

    Re: [Help] Doom mmo v3 No items saving after log out

    I like the same problem I think is the problem in the function :/

  3. #3
    Member tandoh is offline
    MemberRank
    Dec 2014 Join Date
    41Posts

    Re: [Help] Doom mmo v3 No items saving after log out



    Use the ISS API Source

    I Fix All Working!
    Last edited by tandoh; 30-12-14 at 12:01 PM.

  4. #4
    ImperiaMuCMS CEO jacubb is offline
    Grand MasterRank
    Jul 2011 Join Date
    SlovakiaLocation
    1,507Posts

    Re: [Help] Doom mmo v3 No items saving after log out

    I have the same problem... I also tried both APIs - Doom's and untouched ISS's, but still the same, game progress is not saving.

  5. #5
    Member tandoh is offline
    MemberRank
    Dec 2014 Join Date
    41Posts

    Re: [Help] Doom mmo v3 No items saving after log out

    Quote Originally Posted by jacubb View Post
    I have the same problem... I also tried both APIs - Doom's and untouched ISS's, but still the same, game progress is not saving.
    All Source IP Check

  6. #6
    Elite Member beastgameer is offline
    Member +Rank
    Sep 2013 Join Date
    205Posts

    Re: [Help] No items saving after log out

    Tandoh Ok if you give me that api and your database i will give you stuff in return
    And you can work with me and my dev team I have a dedi which has 64gb ram 16 cores and 1tb connection route

    - - - Updated - - -
    @tandoh Ok if you give me that api and your database i will give you stuff in return
    And you can work with me and my dev team I have a dedi which has 64gb ram 16 cores and 1tb connection route

  7. #7
    Sorcerer Supreme AlexRedd is offline
    Member +Rank
    Jan 2014 Join Date
    310Posts

    Re: [Help] No items saving after log out

    Open WarZ_Server.sln

    search in AsyncFuncs.cpp:

    PHP Code:
    int CJobUpdateChar::Exec()
    {
        
    float startTime r3dGetTime();

        
    bool updateCharEnable=false
    change this:

    PHP Code:
    bool updateCharEnable=true
    save and recompile solution

  8. #8
    Elite Member beastgameer is offline
    Member +Rank
    Sep 2013 Join Date
    205Posts

    Re: [Help] No items saving after log out

    Quote Originally Posted by AlexRedd View Post
    Open WarZ_Server.sln

    search in AsyncFuncs.cpp:

    PHP Code:
    int CJobUpdateChar::Exec()
    {
        
    float startTime r3dGetTime();

        
    bool updateCharEnable=false
    change this:

    PHP Code:
    bool updateCharEnable=true
    save and recompile solution
    Thank you so much I hope this works Im on my phone so I can't test this FINGERS CROSSED this will work and I will give you much love if it does work :D

  9. #9
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,039Posts

    Re: [Help] No items saving after log out

    Quote Originally Posted by beastgameer View Post
    After fixing most db errors I took a long think into why the database does not save the items you pick up nor does it save character time player zombie xp or anything like that I have check logss and it seems the server isnt sending the item pickup info to the database/api Same with time played which is weird because if you goto userdata it has recorded your time played.

    If anyone has fixed this it would be amazing if you could give it to me and the community of ragezone I will be happy to help people if they find a brake through to this problem :D

    Kind Regards
    Beastgameer
    which source you are using?

    InfestationTH or src modified by doom ?

  10. #10
    Member roy3d is offline
    MemberRank
    Oct 2013 Join Date
    80Posts

    Re: [Help] No items saving after log out

    WarZ_Se Abertas

    olhar para este código e remover

    #ifdef DISABLE_GI_ACCESS_ON_PTE_MAP
    if (gServerLogic.ginfo_.channel == 6) // server ambiente de teste público, não guardar qualquer informação sobre player, como os mapas pode ter jogo quebrando saque \ mudanças, então vamos não propagá-los para o resto do jogo
    updateCharEnable = false;
    endif
    DISABLE_GI_ACCESS_ON_PTE_STRONGHOLD_MAP #ifdef
    if (gServerLogic.ginfo_.channel == 6 && gServerLogic.ginfo_.mapId == GBGameInfo :: MAPID_WZ_Cliffside) // servidor ambiente de teste público, não salvar qualquer informação sobre player, como os mapas pode ter jogo quebrando saque \ mudanças, então não vamos propagar-los para o resto do jogo
    updateCharEnable = false;
    endif
    #ifdef




    -lo parecido com este

    int CJobUpdateChar :: Exec ()
    {
    flutuar startTime = r3dGetTime ();


    bool updateCharEnable = verdadeiro ;

    if (updateCharEnable)
    {
    const wiCharDataFull & slot = CharData;


    Pugi :: xml_document xmlFile;
    CUserProfile :: SaveCharData (slot, xmlFile) ;
    xml_string_writer xmlBuf;
    xmlFile.save (xmlBuf, "", Pugi :: format_raw);
    std :: string XmlCharData = xmlBuf.out_;


    req CWOBackendReq ("api_SrvCharUpdate.aspx");
    req.AddSessionInfo (Cliente, SessionID);
    req. AddParam ("skey1", g_ServerApiKey);
    req.AddParam ("ChariD", slot.LoadoutID);


    // status de personagem
    de char strGamePos [256];
    sprintf (strGamePos, "% .3f% .3f% .3f% .0f" , slot.GamePos.x, slot.GamePos.y, slot.GamePos.z, slot.GameDir);
    req.AddParam ("s1", slot.Alive);
    req.AddParam ("s2", strGamePos);
    req. AddParam ("s3", (int) slot.Health);
    req.AddParam ("S4", (int) slot.Hunger);
    req.AddParam ("S5", (int) slot.Thirst);
    req.AddParam ( "S6", (int) slot.Toxic);
    req.AddParam ("S7", slot.Stats.TimePlayed);
    req.AddParam ("S8", slot.Stats.XP);
    req.AddParam ("S9", slot.Stats.Reputation);
    req.AddParam ("SA", slot.GameFlags);
    req.AddParam ("sb", GD_Diff);
    req.AddParam ("SC", XmlCharData.c_str ());
    req.AddParam ( "R1", ResWood);
    req.AddParam ("r2", ResStone);
    req.AddParam ("R3", ResMetal);


    // r3dOutToLog ("!!! Pos conservadas:% s \ n ", strGamePos);


    UpdateChar_SetAttachments (req, slot);
    UpdateChar_SetBackpack (req, CharData, OldData);


    // estatísticas rastreável
    req.AddParam ("ts00", slot.Stats.KilledZombies);
    req.AddParam ("ts01", slot.Stats.KilledSurvivors);
    req.AddParam ("TS02", slot.Stats.KilledBandits);
    req.AddParam ("TS03", 0);
    req.AddParam ("ts04", 0);
    req .AddParam ("ts05", 0);


    if (req.Issue (!))
    {
    r3dOutToLog ("!!!! UpdateCharThread falhou, código:% d, ans:% s \ n", req.resultCode_, req.bodyStr_ );
    retornar req.resultCode_;
    }
    }


    if (Disconnect)
    {
    flutuar sleepTime = r3dGetTime () - startTime + DISCONNECT_WAIT_TIME;
    if (sleepTime> 0)
    :: Sleep ((int) (sleepTime * 1000));
    }


    return 0;
    }

  11. #11
    Elite Member erik1223 is offline
    Member +Rank
    Oct 2014 Join Date
    GermanyLocation
    146Posts

    Re: [Help] No items saving after log out

    Quote Originally Posted by AlexRedd View Post
    Open WarZ_Server.sln

    search in AsyncFuncs.cpp:

    PHP Code:
    int CJobUpdateChar::Exec()
    {
        
    float startTime r3dGetTime();

        
    bool updateCharEnable=false
    change this:

    PHP Code:
    bool updateCharEnable=true
    save and recompile solution
    thanks for this tut ... worked for me !



Advertisement