| View previous topic :: View next topic |
| Author |
Message |
padlets How do I cheat?
Reputation: 0
Joined: 11 Sep 2007 Posts: 8
|
Posted: Wed Sep 12, 2007 1:04 pm Post subject: Help in build a trainer |
|
|
I made a script in the cheats table and then i enable the cheat (it's not the same script that i ask for help in my other post) but when i make a trainer the cheat not working, Please help!
| 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)
Bioshock.exe+377556:
jmp newmem
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [eax+4c],64
mov ebx,64
originalcode:
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
Bioshock.exe+377556:
sub [eax+4c],ecx
sub ebx,ecx
|
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Wed Sep 12, 2007 2:43 pm Post subject: |
|
|
Not sure if it matters but try using a '4' instead of Bioshock.exe...
Or its not a static address and it changed...
| Code: | [ENABLE]
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
4377556: //Is that a static address? maybe thats the problem...
jmp newmem
returnhere:
newmem:
mov [eax+4c],64
mov ebx,64
originalcode:
exit:
jmp returnhere
[DISABLE]
dealloc(newmem)
4377556: //Or isn't it? :O I guess it has changed when you closed the game... find the pointer?
sub [eax+4c],ecx
sub ebx,ecx |
|
|
| Back to top |
|
 |
padlets How do I cheat?
Reputation: 0
Joined: 11 Sep 2007 Posts: 8
|
Posted: Wed Sep 12, 2007 2:52 pm Post subject: |
|
|
| the address is static and i try this before and it's not working.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25871 Location: The netherlands
|
Posted: Wed Sep 12, 2007 3:54 pm Post subject: |
|
|
it's a bug in ce 5.3
trainers that use scripts with alloc do not work (hopefully fixed in 5.4)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
padlets How do I cheat?
Reputation: 0
Joined: 11 Sep 2007 Posts: 8
|
Posted: Wed Sep 12, 2007 4:22 pm Post subject: |
|
|
Oow dam! in 5.2 it's working?
and there is other way to build a trainer with scripts? (maybe another app?)
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Wed Sep 12, 2007 6:15 pm Post subject: |
|
|
Just as DB says, alloc doesnt work in a trainer on 5.3
But you can, change that to your own cave and then your good to go for a trainer. And by doing it that way you gain a skill of using code caves thats a + for anyone.
| Code: | [ENABLE]
label(exit)
Bioshock.exe+??????: <------ Code cave address
mov [eax+4c],64 <------ Write to the cave
mov ebx,64 <------ Write to the cave
jmp exit <------ creats a Jump back to game
Bioshock.exe+377556: <---- When this is reached
jmp Bioshock.exe+?????? <---- Jump to the cave and read your code you wrote to it
nop <---- cleaning up
exit: <---- Jump Back to the game code
[DISABLE]
Bioshock.exe+377556:
sub [eax+4c],ecx
sub ebx,ecx |
|
|
| Back to top |
|
 |
padlets How do I cheat?
Reputation: 0
Joined: 11 Sep 2007 Posts: 8
|
Posted: Thu Sep 13, 2007 3:51 am Post subject: |
|
|
| What is cave? and how i make a cave?
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
|
| Back to top |
|
 |
padlets How do I cheat?
Reputation: 0
Joined: 11 Sep 2007 Posts: 8
|
Posted: Thu Sep 13, 2007 5:34 pm Post subject: |
|
|
Thanks!
|
|
| Back to top |
|
 |
|