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 


Problem with an auto assembler script in a trainer

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

Joined: 28 Jan 2007
Posts: 1

PostPosted: Sun Jan 28, 2007 4:54 pm    Post subject: Problem with an auto assembler script in a trainer Reply with quote

I'm having problems getting an auto assembler script to work in a trainer. It works fine in my cheat table, but when I've created a trainer with it, activating the option does nothing. Checking the game with CE's memory viewer shows that the code was not injected. Here's the script:

Code:

[ENABLE]
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

angband.exe+65DAFB56:
jmp newmem
nop
nop
nop
nop
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov edx,eax

originalcode:
mov [esi+ebx],edx
or byte ptr [ecx+0000014c],10

exit:
jmp returnhere


[DISABLE]
dealloc(newmem)

angband.exe+65DAFB56:
mov [esi+ebx],edx
or byte ptr [ecx+0000014c],10


I can't imagine it's a configuration error, as I can't change any options when adding the script to the trainer. Just to be sure CE wasn't damaged or something, I downloaded the table from DarkByte's pinball trainer tutorial and made a trainer with it. That trainer worked, although oddly, the code browser didn't show the code being updated for it, either.

Originally I had the addresses listed directly, i.e. "angband.exe+65DAFB56" was "661AFB56" as the address never seemed to change, but that wasn't working so I changed it to the format DarkByte used, not that it helped.

Can anybody spot an obvious problem with the code? Again, it works great in the CE table as a toggleable option; it just doesn't work in the trainer. Is there some special way to add AA scripts to trainers? I just clicked "Add Entry"->Address Tab "Add"->Selected my AA script from the list, which switched the options to "Only freeze/unfreeze the address" and "Normal Freeze" and greyed everything else out. It added my script with an x under "Frozen". That is how it's supposed to be done, right?

Another question: is there a way to add basic assembly changes to a trainer? I wouldn't need the auto assembler script if I could just change the line above this code from "je 661fb68" to "jle 661fb68". I know I could set up two entries in a trainer and use them to change the value, but I'd prefer to have a single key that toggles the change.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Mon Jan 29, 2007 3:09 am    Post subject: Reply with quote

Can you post the trainer you made with that ce here ? (or pm me)
I can run it under a debugger and see where it goes wrong

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
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