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 


Trainer problem!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Leetboy
Newbie cheater
Reputation: 0

Joined: 25 Jun 2012
Posts: 22

PostPosted: Wed Jun 27, 2012 5:01 am    Post subject: Trainer problem! Reply with quote

Hey!
I want to make a very simple trainer (to start with) for Bloons TD3 (also because it's good to test on a game where it is easy to find codes)
, I am in the video linked below hacking on mozilla firefox, when I am done with the trainer I generated it works fine, but when I restart firefox it won't happen anything when I press the hotkeys I set on the trainer, have a look on this video to really see my problem!
h t t p ://imageshack.us/clip/my-videos/9/5v1.mp4/

_________________
//Leetboy
Back to top
View user's profile Send private message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Wed Jun 27, 2012 6:35 am    Post subject: Reply with quote

you need to find the pointer.
right click the money address that works, and hit find out what writes...
place a monkey
click replace
you're done

for how to find the pointer complete ce tutorial > ce 6.2 hit help and ce tut
have a look here :
http://forum.cheatengine.org/viewtopic.php?p=5370193&highlight=#5370193

if you want to skip the tutorial (not recommended)

_________________
... Fresco
Back to top
View user's profile Send private message
Kriogenic
Cheater
Reputation: -1

Joined: 13 Jun 2012
Posts: 36
Location: localhost

PostPosted: Wed Jun 27, 2012 6:39 am    Post subject: Reply with quote

The problem you are probably getting is that the trainer you are generating is using the addresses you found... and the addresses you found are dynamic (meaning they change every time the game is started). In that case you need to look for the pointers there are some tutorials on pointers in the tutorial section
Back to top
View user's profile Send private message
oLaudix
Expert Cheater
Reputation: 3

Joined: 25 Mar 2010
Posts: 138

PostPosted: Wed Jun 27, 2012 10:31 am    Post subject: Reply with quote

You cant use pointers with flash games. You need to manipulate AoBs to change them.
Back to top
View user's profile Send private message
Leetboy
Newbie cheater
Reputation: 0

Joined: 25 Jun 2012
Posts: 22

PostPosted: Wed Jun 27, 2012 2:35 pm    Post subject: Reply with quote

@Fresco I get stuck on the "find out what accesses this address because it pops up many different codes, and then I don't know which is the right code.
@oLaudix how do I then manipulate AoBs?

_________________
//Leetboy
Back to top
View user's profile Send private message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Thu Jun 28, 2012 2:49 am    Post subject: Reply with quote

You have to find the code, aob it, make a script and make the trainer.
If multiple codes pop up when you try to find what code writes ... try the first one. Worst luck the plugin shuts down and you will then have to press F5 to refresh the page.

The code that writes money on the address is a hex number like this:
Code:
0F AB 10 00 10

Around it there are more numbers. Since the location (address) of the code changes every time you restart the browser or refresh the page, you need to aob it. AOB scan searches the memory and gives you back an address, the address of your code.

Since in flash games the memory is messed up (the addresses changes every time you restart the game) you need cheat engine to search for a piece of memory that never changes, in order to find the code and nop it, so that next time you restart the game, you won't need to find the code again and nop the new one, and the trainer will then work.

So once you have found the code, nop it (replace it), see if it works and if you're happy with it. Once you're happy, go in advanced options, right click the right code (the one that nopped works) and replace it with the original code. Now right click on it again and hit show in disassembler option. Go down where you see all the hex numbers and right click on a random one, hit go to address and insert in the textbox the address of the code that appeared when you clicked show in disassembler.
Now select three lines from up-left till right, like this:
Code:
FF FF FF FF FF (line 1)
FF FF FF FF FF (line 2)
FF FF FF FF FF (line 3)

Now hit Ctrl+A, and in the little window Ctrl+I ; cheat engine will ask you for an address, insert the one that you inserted to find the three hex lines.
you should have something like that:
Code:
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

originalcode:
?? //here there should be a few lines of original code code

exit:
jmp returnhere

00400002:
jmp newmem
returnhere:

modify it like this :
DO NOT PASTE MY CODE, modify yours!!!
Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(aobaddy)

aobscan(aobaddy, FF FF FF FF FF FF FF FF FF FF FF FF)

newmem:
nop
originalcode:
//?? //here there should be a few lines of original code code
nop

exit:
jmp returnhere

aobaddy:
jmp newmem
returnhere:

[DISABLE]
dealloc(newmem)
label(aobaddy)

aobscan(aobaddy, FF FF FF FF FF FF FF FF FF FF FF FF)

aobaddy:
?? //here there should be a few lines of original code code

add enable and disable
as you can figure replace FF FF FF FF ... with your aob (the 3 lines)
place // befare every original code
insert nops
insert labels
plaste original code without // in the disable part
Once you're done, click file > assign to current cheat table, there should be no errors if you followed all my steps correctly.
Now make a trainer, but this time select the code not the address.
Cheers.
For an option that will allow you to change your money at will, place your code here and we'll try to modify it.
Or learn a little bit of assembly!

_________________
... Fresco
Back to top
View user's profile Send private message
Leetboy
Newbie cheater
Reputation: 0

Joined: 25 Jun 2012
Posts: 22

PostPosted: Thu Jun 28, 2012 8:08 am    Post subject: Reply with quote

Well, I find the pointers, but there is many pointers that got the same value as the money value, but, if u have time, and want to, we could chat at mibbit.c om, tell me if u want to Very Happy
It would be much easier to learn this then.

_________________
//Leetboy
Back to top
View user's profile Send private message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Thu Jun 28, 2012 10:08 am    Post subject: Reply with quote

It's better if we discuss problems here so everyone can see the solution.
if you have found the pointer, then nothing stops you, just treat the pointer in the table like you treated the address that changed every restart Smile

_________________
... Fresco
Back to top
View user's profile Send private message
Leetboy
Newbie cheater
Reputation: 0

Joined: 25 Jun 2012
Posts: 22

PostPosted: Thu Jun 28, 2012 5:20 pm    Post subject: Reply with quote

but there is like 7 different pointers with the same value as the money, I don't know which is the right pointer, can u describe short (u don't have to describe much on every step) step by step on how I can do this?
_________________
//Leetboy
Back to top
View user's profile Send private message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Fri Jun 29, 2012 8:42 am    Post subject: Reply with quote

i assume that they all work, so pick one of your choice and you're done Smile
_________________
... Fresco
Back to top
View user's profile Send private message
Leetboy
Newbie cheater
Reputation: 0

Joined: 25 Jun 2012
Posts: 22

PostPosted: Sat Jun 30, 2012 7:55 pm    Post subject: Reply with quote

I did, the trainer do still not work when I restart the game, and trainer. Don't I have to connect the trainer with the process is some way?
_________________
//Leetboy
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Jun 30, 2012 8:27 pm    Post subject: Reply with quote

your trainer script obviously needs to contain some code to register ce to auto attach to the process
If you used the option to generate the trainer script for you that code is in, but if you made it manually, you have to put that in yourself
strings_add(getAutoAttachList(),'Processname')

_________________
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
Leetboy
Newbie cheater
Reputation: 0

Joined: 25 Jun 2012
Posts: 22

PostPosted: Sun Jul 01, 2012 11:26 am    Post subject: Reply with quote

I am writing strings_add(getAutoAttachList(),'chrome.exe') and click execute.
Getting Error:[string "--TRAINERGENERATORSTART--..."]:63: attempt to call global 'registerHotkey' (a nil value)
anyway Sad

_________________
//Leetboy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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