Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help in build a trainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
padlets
How do I cheat?
Reputation: 0

Joined: 11 Sep 2007
Posts: 8

PostPosted: Wed Sep 12, 2007 1:04 pm    Post subject: Help in build a trainer Reply with quote

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
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Wed Sep 12, 2007 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
padlets
How do I cheat?
Reputation: 0

Joined: 11 Sep 2007
Posts: 8

PostPosted: Wed Sep 12, 2007 2:52 pm    Post subject: Reply with quote

the address is static and i try this before and it's not working.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

Joined: 09 May 2003
Posts: 25871
Location: The netherlands

PostPosted: Wed Sep 12, 2007 3:54 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
padlets
How do I cheat?
Reputation: 0

Joined: 11 Sep 2007
Posts: 8

PostPosted: Wed Sep 12, 2007 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Wed Sep 12, 2007 6:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
padlets
How do I cheat?
Reputation: 0

Joined: 11 Sep 2007
Posts: 8

PostPosted: Thu Sep 13, 2007 3:51 am    Post subject: Reply with quote

What is cave? and how i make a cave?
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Thu Sep 13, 2007 3:01 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=112385

Look at this thread and you will see how to find and use a cave.
Back to top
View user's profile Send private message
padlets
How do I cheat?
Reputation: 0

Joined: 11 Sep 2007
Posts: 8

PostPosted: Thu Sep 13, 2007 5:34 pm    Post subject: Reply with quote

Thanks! Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites