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 


something simple that i dont know how! "trainer"

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

Joined: 03 Dec 2009
Posts: 6

PostPosted: Sun Jun 13, 2010 8:27 am    Post subject: something simple that i dont know how! "trainer" Reply with quote

well i been trying to make a simple trainer on cheat engine..
i found a adress and i want to adjust the value.. make a trainer on ce to add or decrease value on the current adress every time i press the hot key

but the trainer in ce only lets u make a trainer that freezes the value or set a value, it does not have a option to add or decrease value

soo how can i make a trainer for this..?
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5636

PostPosted: Sun Jun 13, 2010 12:00 pm    Post subject: Reply with quote

Unfortunately there is no option for it as far as I know.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Jun 13, 2010 12:08 pm    Post subject: Reply with quote

Not currently implemented but you can do it manually

Following AA script increases address 00400500 with 1 each time it's toggled
You can assign this to a trainer as well
Code:

globalalloc(increaser,64) //allocate once, don't reallocate if executed again
createthread(increaser)
fullaccess(00400500,4) //make sure it's writable, if it's a writable address, this can be skipped

increaser:
inc dword [00400500]
ret
 
[enable]
[disable]

_________________
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
jigoku
How do I cheat?
Reputation: 0

Joined: 03 Dec 2009
Posts: 6

PostPosted: Sun Jun 13, 2010 10:37 pm    Post subject: Reply with quote

great ty! and how would the aa code be if i wanted to decrease value of 100 or 200 on the adress?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Jun 13, 2010 10:57 pm    Post subject: Reply with quote

sub dword [xxxxxxxx],#100
_________________
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
Darklin
How do I cheat?
Reputation: 0

Joined: 16 Jun 2010
Posts: 3

PostPosted: Wed Jun 16, 2010 8:43 pm    Post subject: Reply with quote

I have the same problem - need to inc/dec values with pressing hotkeys. Where should i inject this code? Didnt find it in tutorials, sorry =/
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Jun 16, 2010 9:04 pm    Post subject: Reply with quote

this isn't an script that injects, it's just a script you add to your cheat table that you can then give a hotkey (it only allocates the memory for the thread that does the increasing/decreasing and then calls it when the script is triggered)
_________________
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
Darklin
How do I cheat?
Reputation: 0

Joined: 16 Jun 2010
Posts: 3

PostPosted: Thu Jun 17, 2010 3:58 pm    Post subject: Reply with quote

Oh, ty a lot. I added this code to my script and used it in trainer - it works fine. But how can i use a pointer in this script instead of dynamic address, if i have a pointer like that?


Pointer_to_script.jpg
 Description:
 Filesize:  105.35 KB
 Viewed:  6857 Time(s)

Pointer_to_script.jpg


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Jun 17, 2010 4:20 pm    Post subject: Reply with quote

Then the code part would be:
Code:

label(invalid)
...

mov eax,[AgeOfConan.exe+01xxxxxxxx]
test eax,eax
je invalid
mov eax,[eax+1c]
test eax,eax
je invalid
mov eax,[eax+14]
test eax,eax
je invalid
mov eax,[eax+10]
test eax,eax
je invalid
mov eax,[eax+4]
test eax,eax
je invalid

inc [eax+22] //increase by 1
invalid:
ret


and you can probably do away with the fullaccess line assuming that the memory address is already writable

edit: Added some tests to see if it's a valid pointer path (e.g the pointerscanner can sometimes return pointers that are only valid when alt tabbed out of the game, or while you're not active, e.g breaks during shooting. This reduces the chance of a crash)

_________________
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
Darklin
How do I cheat?
Reputation: 0

Joined: 16 Jun 2010
Posts: 3

PostPosted: Fri Jun 18, 2010 8:38 pm    Post subject: Reply with quote

Great ty! It works perfectly.
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