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 


XYZ coordinates value is "-9.862392901E-32"? (floa

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

Joined: 07 Mar 2020
Posts: 2

PostPosted: Sat Mar 07, 2020 11:01 am    Post subject: XYZ coordinates value is "-9.862392901E-32"? (floa Reply with quote

Hello,
The game I'm playing updated last week. Before update charactor XYZ coordinates value was like "256.23521"(float) .
After update XYZ coordinates value changed to this "-9.862392901E-32"? (float) .The coordinates address that I found seems right . because when I lock the values charactor can't move. but I don't know what the coordinates value "-9.862392901E-32" means . Is it encrypted?
I tried to change value type to 2Bytes, 4Bytes, 8Bytes, Double, None of these types seems right .
Any ideas Question [/b]
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Sat Mar 07, 2020 2:52 pm    Post subject: Reply with quote

Look at an instruction that accesses that value and post the code around there, give and take ~10 instructions. Register values would be nice too ("more info" window).
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
ryuteki
How do I cheat?
Reputation: 0

Joined: 07 Mar 2020
Posts: 2

PostPosted: Sun Mar 08, 2020 7:52 am    Post subject: Reply with quote

ParkourPenguin wrote:
Look at an instruction that accesses that value and post the code around there, give and take ~10 instructions. Register values would be nice too ("more info" window).


Do these screenshots help? Smile



xyz.PNG
 Description:
 Filesize:  30.37 KB
 Viewed:  2217 Time(s)

xyz.PNG



xyz-x1.png
 Description:
 Filesize:  140.49 KB
 Viewed:  2217 Time(s)

xyz-x1.png



xyz-y1.png
 Description:
 Filesize:  143.44 KB
 Viewed:  2217 Time(s)

xyz-y1.png



xyz-z1.png
 Description:
 Filesize:  143.49 KB
 Viewed:  2217 Time(s)

xyz-z1.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Sun Mar 08, 2020 1:38 pm    Post subject: Reply with quote

Those values are being obfuscated, but I can't tell what's going on with just that much information. The xor key is stored in the stack far enough outside this stack frame that it was probably first assigned several callers up. Perhaps it's simply the value itself, but I still don't know where eax is first set in this function.

Attach CE to the game, run this Lua code (table -> show cheat table Lua script -> copy/paste this code -> execute), and paste the result here:
Code:
local strings = createStringlist()
strings.beginUpdate()
strings.add'[code]'

local addr = assert(getAddressSafe'CryPhysics.dll+2A52F','invalid address')

for i = 1, 40 do
  addr = getPreviousOpcode(addr)
  if readBytes(addr, 1) == 204 then break end -- int 3
end

local stop_addr = assert(getAddressSafe'CryPhysics.dll+2A57A','invalid address')
local overflow = 1
while addr <= stop_addr do
  strings.add(disassemble(addr))
  addr = addr + getInstructionSize(addr)

  overflow = overflow + 1
  assert(overflow < 1000,'Something went horribly wrong')
end

strings.add'[/code]'
strings.endUpdate()
copyToClipboard(strings.getText())
strings.destroy()
showMessage'Copied text to clipboard.'


Also, the value stored in the stack when that code is executed would be useful. Right click one of the coordinates (doesn't matter which), select "Browse this memory region", right click on that value in the memory viewer, and select "Data breakpoint -> Break on write". Do something to make the breakpoint trigger (e.g. unpause the game and it'll probably do this by itself). Using a calculator that can add hex numbers, add esi to edi, add that address to the cheat table with value type 4-byte, and post what that value is. You can then delete the breakpoint (e.g. memory viewer -> view -> breakpointlist -> right click the breakpoint -> delete) and resume (memory viewer -> debug -> run).
Make sure you don't have any "Find out what accesses/writes to this value" windows running while doing this.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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