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 


How to find Float and Byte values ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
sti228
Newbie cheater
Reputation: 0

Joined: 24 Jan 2015
Posts: 14
Location: Georgia/Tbilisi

PostPosted: Thu Feb 25, 2016 5:55 am    Post subject: How to find Float and Byte values ? Reply with quote

Hi. I'm interested to find Float and Byte values. For example look this picture:

http : // www . picz.ge /img/s4/1602/25/e/e7e07105b440.jpg

You see Fload and value: 0.1430000067 witch mean 140 bhp power in game. I want to find (don't know how it's name in English) something like this:

D9 47 28 D8 4E 28 D8 4C 24 14 D8 4C 24 10 D9 5E

for this function. How i can do that ? If i change original power - 0.1430000067 to 0.3430000067 in game i have 397 bhp but how this address will change ?

In short i want to know how i can get addresses like this:
D9 47 28 D8 4E 28 D8 4C 24 14 D8 4C 24 10 D9 5E

One for original 140 bhp and one for modified version 397 bhp Rolling Eyes

0.1430000067 =
D9 47 28 D8 4E 28 D8 4C 24 14 D8 4C 24 10 D9 5E (in game original car power 140bhp)

0.3430000067 = ? (in game changed car power - 397 bhp)
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Thu Feb 25, 2016 6:09 am    Post subject: Reply with quote

So, do you want to convert the float value to an AOB pattern, or do you just want to find an address that access this value?
Back to top
View user's profile Send private message
sti228
Newbie cheater
Reputation: 0

Joined: 24 Jan 2015
Posts: 14
Location: Georgia/Tbilisi

PostPosted: Thu Feb 25, 2016 7:03 am    Post subject: Reply with quote

hhhuut wrote:
So, do you want to convert the float value to an AOB pattern, or do you just want to find an address that access this value?


Both Smile If i convert Fload or Byte will this work ?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Feb 25, 2016 2:24 pm    Post subject: Reply with quote

Code:
local bytes = floatToByteTable(0.1430000067)
for i=1, #bytes do
  print(string.format("%02X", bytes[i]))
end
Back to top
View user's profile Send private message
sti228
Newbie cheater
Reputation: 0

Joined: 24 Jan 2015
Posts: 14
Location: Georgia/Tbilisi

PostPosted: Fri Feb 26, 2016 6:10 am    Post subject: Reply with quote

Zanzer wrote:
Code:
local bytes = floatToByteTable(0.1430000067)
for i=1, #bytes do
  print(string.format("%02X", bytes[i]))
end


Thanks but i want to get addresses like this one: D9 47 28 D8 4E 28 D8 4C 24 14 D8 4C 24 10 D9 5E
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Fri Feb 26, 2016 6:12 am    Post subject: Reply with quote

Just to clarify: That's not an address but just an AOB (array of byte) pattern (which can tell you where a specific address is located in the memory).
Back to top
View user's profile Send private message
sti228
Newbie cheater
Reputation: 0

Joined: 24 Jan 2015
Posts: 14
Location: Georgia/Tbilisi

PostPosted: Fri Feb 26, 2016 8:45 am    Post subject: Reply with quote

hhhuut wrote:
Just to clarify: That's not an address but just an AOB (array of byte) pattern (which can tell you where a specific address is located in the memory).


Ok. I will explain what i want to do. Making trainer using CE is very hard for me. So i use program Creator Trainer Studio v2 beta and there is only AOB lines. I have no idea how i can type there Float or Bytes... That's the reason i need to get this AOB.

http : // www . picz.ge / img/s4/1602/26/3/375f1aa97093.jpg
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