*UPDATED*
inside l2server.exe we have code (dont ask me how i got it):
Code:
Log->Add(2,L"[%s][%d] user[%s] failed to ride. no collar[%d]", CharName, CorallID);
so, as u see, here is mistake, first arg should be string, second - number, 3rd - string, 4th - number (4 parameters)
but in args there is TWO only, last two args Log->Add gets from stack garbage...
someone got the way how to invoke this error,
and server, when try to format this text crashes
Code:
IOThread [0][875] (ahehe): void IOThread_common(void *arglist) -> CUserSocket::OnRead -> IconAction -> User::IconAction() -> void User::Ride(CPet* pStrider) -> CLog::Add -> CLog::AddV -> Log::AddV - vswprintf_s
how to fix:
in any hex editor find UNICODE text
"[%s][%d] user[%s] failed to ride. no collar[%d]"
and change to
"user[%s] failed to ride. no collar[%d]"
edit: and dont forget to put 0000 after text as zero char (null termitnated string rule)
thats all, folks