Valhalla Legends Forums Archive | Battle.net Bot Development | [Warden Module] - Crash during Initialization

AuthorMessageTime
Fr3DBr
Hello, im trying to initialize my module using the example on skulls website.

Altough i noticed that its usually crashing inside the module when we call init at :

[code]
CPU Disasm
Address  Hex dump          Command                                  Comments
005053DD    56              PUSH ESI <--- ESI Had the address to the Function Callback Struct PTR
005053DE    BE 0CA00000    MOV ESI,0A00C
005053E3    EB 08          JMP SHORT 005053ED
005053E5    6A 00          PUSH 0
005053E7    FF15 04900000  CALL DWORD PTR DS:[9004]
005053ED    33C0            XOR EAX,EAX
005053EF    40              INC EAX
005053F0    8BD6            MOV EDX,ESI
005053F2    33C9            XOR ECX,ECX
005053F4    F0:0FB10A      LOCK CMPXCHG DWORD PTR DS:[EDX],ECX <------ crash here
005053F8    85C0            TEST EAX,EAX
005053FA  ^ 74 E9          JE SHORT 005053E5
005053FC    5E              POP ESI
005053FD    C3              RETN
[/code]
EDX points to the following : 000A00C and ECX is 000000.

So im wondering, whats its exactly the module trying to do here ? seems it replaces the reference to the function callback array, and changes it to A00C but wtf lol ? :D
January 24, 2010, 5:06 PM
Fr3DBr
Ok this was a issue with the global variables that didnt got properly replaced in the module, so as we can see we had a 'kaboom' there :P
January 24, 2010, 5:41 PM

Search