Jump to content

ChatPacket cause game core crash.


Recommended Posts

  • Premium

Dear everyone!😃

I'm trying to solve this issue, but i didn't find anything. I'm ask for your help guys maybe someone can suggest something.

Serverfile: martysama 5.4 (boughted).

In the source i have vegas multilanguage + pickup (boughted).

LLDB:

spacer.png

input_login.cpp 85 line (sometimes it's item_drop_bonus etc..):

    exp_bonus = CPrivManager::instance().GetPriv(ch, PRIV_EXP_PCT);

it's chatpacket:

ch->ChatPacket(CHAT_TYPE_NOTICE,
            LC_TEXT("°ćÇčġ %d%% Ăß°ˇ Čąµć ŔĚşĄĆ® ÁßŔÔ´Ď´Ů."), exp_bonus);

(When entering the game i see this chat message and it's working fine.)

 

GDB:

spacer.png

 

Syslog:
 

Quote

Sep  1 09:10:47 :: SHOW: Poison 723756x502591x0
Sep  1 09:10:47 :: AddAffect Poison type 215 apply 0 0 flag 28 duration 5
Sep  1 09:10:47 :: ENTERGAME: Poison 723756x502591x0 45.134.238.92 map_index 71
Sep  1 09:10:47 :: HORSE STAMINA CONSUME EVENT CANCEL 0x0 -> NULL
Sep  1 09:10:47 :: HORSE STAMINA REGEN EVENT CREATE 0x31f90100
Sep  1 09:10:47 :: SendLandList map 71 count 0 elem_size: 0

What do you think? The server is crashing very often when someone entering the game. 

I've checked the locale_strings line by line, translates, source chatpackets, but i didn't find the issue.

Marty and VegaS tried to help me, but it was not enough.

 

I don't expect anyone to help me for free. I can pay for your help & time.

Thank you in advance!

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Hi, as far as i see, the problem at ChatPacket format argument, it comes from LC_TEXT, the memory address what comes from Vegas's LC_TEXT modificated function is empty, freed region or something is not correct inside that function, and the vsnprintf cant acces to that correctly. I dont know that multilanguage system, but it is a possible point to the problem location.

I dont know the full history of this problem, but it is my tip in first look.

Have a good luck.

  • Love 1

All wolves are gray in the dark.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.