Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Help] IGCN 9.2 How to fix IGC.DataServer.exe Crash

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jun 4, 2018
Messages
20
Reaction score
3
@DragonSeth | How to fix IGC.DataServer.exe Crash (%n)
# Example #
Send Message : %n (IGC.DataServer Crash)
Images :

Add Friends : %n (IGC.DataServer Crash)
Images :

Search Party : %n (IGC.DataServer Crash)
Images :

Search Guild : %n (IGC.DataServer Crash)
Images :

IGC.DataServer.exe (Crash Dump File)
Images :

- Thank for fix :)
 
Experienced Elementalist
Joined
Apr 15, 2012
Messages
203
Reaction score
25
@DragonSeth | How to fix IGC.DataServer.exe Crash (%n)
# Example #
Send Message : %n (IGC.DataServer Crash)
Images :

Add Friends : %n (IGC.DataServer Crash)
Images :

Search Party : %n (IGC.DataServer Crash)
Images :

Search Guild : %n (IGC.DataServer Crash)
Images :

IGC.DataServer.exe (Crash Dump File)
Images :

- Thank for fix :)

Where %n in send message?
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
Aug 30, 2011
Messages
2,969
Reaction score
1,003
Is this happening on the latest version? . If so I'll check the source.
 
Upvote 0
Newbie Spellweaver
Joined
Jun 4, 2018
Messages
20
Reaction score
3
Last edited:
Upvote 0
Custom Title Activated
Loyal Member
Joined
Aug 30, 2011
Messages
2,969
Reaction score
1,003
Okay since this is a critical issue when I find some free time I will fix it and upload it.
 
Upvote 0
Novice C++
Joined
Feb 14, 2011
Messages
576
Reaction score
230
@DragonSeth | How to fix IGC.DataServer.exe Crash (%n)
# Example #
Send Message : %n (IGC.DataServer Crash)
Images :

Add Friends : %n (IGC.DataServer Crash)
Images :

Search Party : %n (IGC.DataServer Crash)
Images :

Search Guild : %n (IGC.DataServer Crash)
Images :

IGC.DataServer.exe (Crash Dump File)
Images :

- Thank for fix :)

Here you go, test it and let us know if it works:
so if it is possible you could share the code to fix the bug that crashes the DataServer ?? % n,% s,% d when used in frindsystem and cashshop gift.


Enviado do meu iPhone usando Tapatalk



This is not even close to a great solution, but it avoid the crashes, as intended. The Friend System is not crashing when % sign is typed. Can you be more specific?

StdAfx.h
Code:
#include <boost/algorithm/string/replace.hpp>

DSprotocol.cpp
Code:
void CDataServerProtocol::ReqInGameShopItemGift(short aIndex, ISHOP_ITEM_GIFT *aRecv)
{
    std::string strMessage;
...
    strMessage = aRecv->Message;
    boost::replace_all(strMessage, "%", "%%");

    this->m_ItemShopDB.ExecQuery("EXEC WZ_IBS_AddGift '%s', %d, %d,  %d, %d, '%s', '%s'", aRecv->TargetName, aRecv->ID1, aRecv->ID2,  aRecv->ID3, 2, aRecv->Name, strMessage.c_str());
...
}

void CDataServerProtocol::ReqInGameShopPackageGift(short aIndex, LPBYTE aRecv)
{
    std::string strMessage;
...
    strMessage = lpMsg->Message;
    boost::replace_all(strMessage, "%", "%%");

    for(int i=0;i<lpMsg->Count;i++)
    {
        lpItem = (ISHOP_ITEM_PACKAGE *)(aRecv + sizeof(ISHOP_ITEM_GIFT_PACKAGE) + i * sizeof(ISHOP_ITEM_PACKAGE));

        this->m_ItemShopDB.ExecQuery("EXEC WZ_IBS_AddGift '%s', %d, %d, %d, %d, '%s', '%s'",
            lpMsg->TargetName, lpItem->ID1, lpItem->ID2, lpItem->ID3,
            2, lpMsg->Name, strMessage.c_str());
...
}

-- Edit --

Friend System uses Binary storage, so it is not affected by % sign.

Code:
wsprintf(szMsg, "UPDATE T_FriendMail SET Subject=? where MemoIndex=%d AND GUID=%d", memo_index, guid);
this->m_MailDB.SetAsBinary(szMsg, (LPBYTE)lpMemoSendHdr->Subject, 60);
...
wsprintf(szMsg, "UPDATE T_FriendMail SET Memo=? where MemoIndex=%d AND GUID=%d", memo_index, guid);
this->m_MailDB.SetAsBinary(szMsg, (LPBYTE)sMemo, memo_size);

[]'s
 
Upvote 0
Custom Title Activated
Loyal Member
Joined
Aug 30, 2011
Messages
2,969
Reaction score
1,003
No worries new update coming soon. With the crash server fix and many other things :)
eY5uWw - [Help] IGCN 9.2 How to fix IGC.DataServer.exe Crash - RaGEZONE Forums
trYah4a - [Help] IGCN 9.2 How to fix IGC.DataServer.exe Crash - RaGEZONE Forums
SALkXD - [Help] IGCN 9.2 How to fix IGC.DataServer.exe Crash - RaGEZONE Forums
t4w7jue - [Help] IGCN 9.2 How to fix IGC.DataServer.exe Crash - RaGEZONE Forums

P.S: please ignore the broken models ^^ was doing some testing.
 

Attachments

You must be registered for see attachments list
Last edited:
Upvote 0
Experienced Elementalist
Joined
Apr 15, 2012
Messages
203
Reaction score
25
No worries new update coming soon. With the crash server fix and many other things :)
eY5uWw - [Help] IGCN 9.2 How to fix IGC.DataServer.exe Crash - RaGEZONE Forums
trYah4a - [Help] IGCN 9.2 How to fix IGC.DataServer.exe Crash - RaGEZONE Forums
SALkXD - [Help] IGCN 9.2 How to fix IGC.DataServer.exe Crash - RaGEZONE Forums
t4w7jue - [Help] IGCN 9.2 How to fix IGC.DataServer.exe Crash - RaGEZONE Forums

P.S: please ignore the broken models ^^ was doing some testing.
DragonSeth

In the original src have the same bug if put %n in find guild member and party too, check it if you not fixed already :D
 

Attachments

You must be registered for see attachments list
Upvote 0
Status
Not open for further replies.
Back
Top