| View previous topic :: View next topic |
| Author |
Message |
Smanettone83 Expert Cheater
Reputation: 3
Joined: 21 Feb 2011 Posts: 146 Location: Italia
|
Posted: Sat Mar 26, 2011 8:16 pm Post subject: Problem CE 5.6.1 Base Address |
|
|
i've created my scripts for serious sam 2 with CE 6.0 and works fine.... but i can't create trainer because in 6.0 there isn't "Trainer Maker". So i've create again my scripts with CE 5.6.1 and the scripts works fine... but if i try to reebot game the base addresses of script are changed! why?
example: this is script for infinte ammo in CE 6.0
| Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [edi+esi*4+14],3E7
pop edi
originalcode:
exit:
jmp returnhere
"Sam2Game.dll"+EB641:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Sam2Game.dll"+EB641:
sub [edi+esi*4+14],ebx
pop edi
//Alt: db 29 5C B7 14 5F
|
i can't paste it on CE 5.6.1 because:
Error in line 18 ("Sam2Game.dll"+EB641:) This Address specifier is not valid
In CE 5.6.1 i've rewrited code and his base address is: 032CB641. it work but at next reboot of game, the base address is changed. In CE 6.0 work every time!
Why? how can i resolve it?
|
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Sat Mar 26, 2011 8:42 pm Post subject: |
|
|
| Quote: | | Error in line 18 ("Sam2Game.dll"+EB641:) This Address specifier is not valid |
Remove the " " charachters. CE 5.6.1 is using this form:
Sam2Game.dll+EB641
After that it should work fine.
| Quote: | | In CE 5.6.1 i've rewrited code and his base address is: 032CB641. it work but at next reboot of game, the base address is changed. |
It is a dll so you should use the module+address form, that CE 6.0 is using by default.
_________________
|
|
| Back to top |
|
 |
Smanettone83 Expert Cheater
Reputation: 3
Joined: 21 Feb 2011 Posts: 146 Location: Italia
|
Posted: Sun Mar 27, 2011 11:18 am Post subject: |
|
|
| thanks friend now it work.
|
|
| Back to top |
|
 |
|