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 


Parse Block ID from getBlock Function Return Value or String

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

Joined: 28 Jul 2024
Posts: 14

PostPosted: Fri Aug 23, 2024 11:45 pm    Post subject: Parse Block ID from getBlock Function Return Value or String Reply with quote

I wanted to ask for some advice from you experts. Here’s the situation:
I found a getBlock function and wrapped it up, so whenever I do:
Code:

  push xyz
  call getBlock

I get a value returned in eax.
In this game, each block has its own name, like air, stone, grass.
I noticed that this return value is a pointer, and each type of block (including different orientations of the same block) returns a different value in eax. However, [eax+0] is always the same. I want to use this return value to find the block type, either as a fixed numeric ID or a string name.

What should I do? Previously, I found a "block ID" that changes with each map, but I didn't realize it was different for each map. I spent a whole night creating an assembly script to scan the blocks in a 21x21x21 area around me and record the coordinates of the nearest non-air block. I plan to use this to create an auto-bridging script that extends a block under my feet based on the nearest block.

But... when I switched to a different map, I found that the ID had changed, and this is not what I wanted.

I have the ability to create an assembly script for auto-bridging based on the nearest block. I've completed every other step of this function, but I haven't been able to find the block ID corresponding to this return value.
This is the last step, and I'm even considering making an assembly script that inputs an address and traverses four or five levels deep to find a string and return the offset—something absurd like that. But I feel there has to be a simpler way... Please help me
Back to top
View user's profile Send private message Send e-mail
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