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 


Converting Integer to AoB

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

Joined: 15 Dec 2013
Posts: 1

PostPosted: Sun Dec 15, 2013 7:22 pm    Post subject: Converting Integer to AoB Reply with quote

OK, so I'm looking at hacking some Gnomoria character stats, just for the heck of it, and I figured out how to find each of the stats in reference to each other (the address distance between them), but I need to use stat integers from their stats list to find the array. How do I take the user input, likely from a text field somewhere, and convert it into an AoB, when, if the number is 2001 and the hex equivalent is 07 D1, but the AoB in the address list is D1 07?
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Mon Dec 16, 2013 11:19 am    Post subject: Reply with quote

convert to hex
Code:
string.format("%X",number)

from here build it up as a AoB


Here's an AoB example.
http://forum.cheatengine.org/viewtopic.php?p=5510896&highlight=#5510896

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
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 Lua Scripting 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