- Joined
- Dec 21, 2008
- Messages
- 192
- Reaction score
- 8
anyone got the right script.pk because there are lost many files^^
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!
Any one got this reward.txt or how iam can do this ?
[LimitCheck]
HWID = 0
;(Reward (ID %d) (ItemIndex %[0-9/,]) (ItemAmount %[0-9/,]) (HonorPt %d) (RewardPt %d) (EXP %lld) (HTML %d) (Bound %d))
Crash happens on line: 2510 in Core.cpp
remove this lineConfigDBCheck = 1;
and server stops crashing.
----------------------------------------------------
But here is the real fix to fix it without removing that line since it removes alot of features.
line 2525 crashes the whole server
DetourAttach(&(PVOID&)CIOSocket::Create, CIOSocketCreate);
Problem starts from Functions.h static int(__cdecl *Create)(int Socket, int Infos) = (int(__cdecl*)(int,int))0x0047E940;
isn't a thiscall and is missing 1 argument
I replaced it with
static int(__thiscall* Create)(int CServerThisPointer, int Socket, int Infos) = (int(__thiscall*)(int, int, int))0x0047E940;
this in Process.h find CIOSocketCreate(int Socket, int Infos)
replace that
int __cdecl CIOSocketCreate(int Socket, int Infos) {
with
int __fastcall CIOSocketCreate(int CServerThisPointer, void *edx, int Socket, int Infos)
replace the return at the end of the function with
return CIOSocket::Create(CServerThisPointer, Socket, Infos);
Now the server doesn't crash anymore :)
Mano você sabe como corrigir erro onde a rb não é retirada do inventário após o uso?[código]
A falha acontece na linha: 2510 em Core.cpp
remova esta linhaConfigDBCheck = 1;
e o servidor para de travar.
-------------------------------------------------- --
Mas aqui está a correção real para corrigi-lo sem remover essa linha, pois remove muitos recursos.
linha 2525 trava todo o servidor
DetourAttach(&(PVOID&)CIOSocket::Criar, CIOSocketCriar);
O problema começa em Functions.h static int(__cdecl *Create)(int Socket, int Infos) = (int(__cdecl*)(int,int))0x0047E940;
não é uma thiscall e está faltando 1 argumento
eu troquei por
static int(__thiscall* Create)(int CServerThisPointer, int Socket, int Infos) = (int(__thiscall*)(int, int, int))0x0047E940;
isso em Process.h encontre CIOSocketCreate(int Socket, int Infos)
substitua isso
int __cdecl CIOSocketCreate(int Socket, int Info) {
com
int __fastcall CIOSocketCreate(int CServerThisPointer, void *edx, int Socket, int Infos)
substitua o retorno no final da função por
return CIOSocket::Create(CServerThisPointer, Socket, Infos);
Agora o servidor não trava mais
[/código]