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 


Same Pointer, 2 value? WTF

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Tue Jun 03, 2014 9:19 am    Post subject: Same Pointer, 2 value? WTF Reply with quote

mov [rbx+20],eax

//based on data/dissect - structure - "rbx-20"
offset 20 access both ammo and grenade both ammo and grenade have offset 20 and probly other values too

how can i separate them from each other?

so i can point to the right value?
Back to top
View user's profile Send private message
Daijobu
Master Cheater
Reputation: 13

Joined: 05 Feb 2013
Posts: 301
Location: the Netherlands

PostPosted: Tue Jun 03, 2014 9:46 am    Post subject: Reply with quote

Check the register states for both ammo and grenade ammo (preferably the opcode BEFORE the instruction, use a break and trace). See if there are notable differences.
Reboot the application and do the same again. If the differences still match you could try to differentiate between the types with a compare following a condition.

e.g.: ecx = 4 when it's ammo and ecx = 7 when it's grenades.

Then:

Code:
cmp ecx,4
je doSomethingWithAmmo
cmp ecx,7
je doSomethingWithGrenades
originalcode:


I bet someone else has a better tip than me though! Wink

_________________
Scripts/tables from scratch. Relation to other scripts is coincidental. Use of posted code is credited properly.
Euro Truck Simulator 2 Backwards Compatible Cheat
American Truck Simulator Backwards Compatible Cheat
Back to top
View user's profile Send private message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Tue Jun 03, 2014 12:40 pm    Post subject: Reply with quote

hmm i trying to do a player hook thing with all player stuff and i cant seperate those 2 values offset is the same, and i suspect all other guns and grenade types are in this code

when i add a manual address with offset 20 its ammo, how do i get to grenade?
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