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 


need help making a trainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
coolman++
Advanced Cheater
Reputation: -1

Joined: 19 Jul 2012
Posts: 79
Location: Saudi Arabia

PostPosted: Thu Jul 19, 2012 6:18 am    Post subject: need help making a trainer Reply with quote

ok so i got the X Y Z coordinates of an fps game. they are fully editable and working. I've got the addresses but heres what I need to do:
When I press the jump button, the Z-coordinate address increases by a large number. In other words I want to create a fly hack. I tried the debugger but lots of addresses come up and it confuses me. I'll give more details if I get a response.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3336

PostPosted: Thu Jul 19, 2012 4:47 pm    Post subject: Reply with quote

I'd advise you to follow up on it yourself - you'll benefit from the knowledge and the experience in the long run.

Focus on the code pieces that write the Z coordinate while the player is falling after a jump.
Then, you need to find either:
- a) a code piece that writes only the player's Z coordinate, or,
- b) one code piece that writes the Z coordinate while the player's addressed can be found in a register or at and address easily accessible.

If you found a), bingo. Add a hotkey of your own using GetAsyncKeyState and do whatever you want with the coordinate (freeze, increase, decrease, etc).

If you found b), you'll need to find another piece of code the retrieve the player's pointer - which should not be hard in FPS games. Store that pointer and compare it with the one in the Z coordinate update code. If they match, again, add your own code.

Good luck!
Back to top
View user's profile Send private message
coolman++
Advanced Cheater
Reputation: -1

Joined: 19 Jul 2012
Posts: 79
Location: Saudi Arabia

PostPosted: Fri Jul 20, 2012 12:05 pm    Post subject: .. Reply with quote

thanks dude! the hotkey feature worked perfectly! i set a hotkey to move upon the vertical (y) axis and one for the horizontal (x) axis. As for the jump, i set an "increase by 300" hotkey. I don't have the skill for the Sync state thingy yet though. I killed two birds with one stone, as this helped me figure how to walk through walls as well Very Happy

Theres only one small problem. For the jump, gravity pulls me back down. There are some maps like Fallen in which there is an invisible layer you can walk on that makes you look like you are floating. But on other maps, if you do a high enough jump (more than 300 float units), you take falling damage and die. I've found one work-around, to pause the game during your fall, then manually change Z's value to ground level. On the ps3 version of the game you can get a perk called Dead silence pro which comes with no falling damage but I can't do it on PC. I need to know how to find the value of gravity! Idk if this would require me to start a new topic. Thanks alot for your help! Very Happy
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Fri Jul 20, 2012 1:15 pm    Post subject: Reply with quote

Most games store the acceleration vector near the position. Freezing the acceleration of the z axis might help
_________________
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
coolman++
Advanced Cheater
Reputation: -1

Joined: 19 Jul 2012
Posts: 79
Location: Saudi Arabia

PostPosted: Sat Jul 21, 2012 12:27 am    Post subject: worked Reply with quote

Cool a message from the site admin Very Happy

found it! i jumped, paused the game when i was in mid air, clicked "find out what writes to this address", resumed game, paused right before i hit the ground, and YES! for the first time there was only ONE command thingy there, so i did "replace with code that does nothing", and now i can float like in the map Fallen!

In the trainer there's no option for "Replace with code that does nothing", only hotkeys. It seems I have to learn LUA for that :""(. Anyone got links for that?

Thanks guys, there have been many people requesting flyhack on youtube so i need the trainer for them (they're too stupid to do nop themselves)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Jul 21, 2012 5:01 am    Post subject: Reply with quote

Just use an auto assembler script
Code:

[enable]
address:
nop
nop
nop
nop
nop
nop

[disable]
address:
db 11 22 33 44 55 66

Add this to your cheat table, assign a hotkey to it, and the trainerscript generator will add it

_________________
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
coolman++
Advanced Cheater
Reputation: -1

Joined: 19 Jul 2012
Posts: 79
Location: Saudi Arabia

PostPosted: Sat Jul 21, 2012 8:41 am    Post subject: .. Reply with quote

Thanks dude.. The enable works fine, but the disable causes the game to crash. Here's what I got:

[enable]
0062AEAD:
nop
nop
nop

[disable]
0062AEAD:
db 11 22 33

Edit: never mind this is what i did and it worked!

[enable]
0062AEAD:
nop
nop
nop

[disable]
0062AEAD:
fstp dword ptr [ebx+08]



So... are you gonna lock this topic up or something now?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3336

PostPosted: Sat Jul 21, 2012 10:09 am    Post subject: Reply with quote

Dark Byte gave you a skeleton to NOP out a certain instruction.
Make sure you add the right amount of NOPs on enable and restore all changed instructions on disable.

I have not seen topics being locked in the past just because they solved a problem. So, I guess the answer is no.
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