Simplest way to load 4 bytes from game memory based on a string location?

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
User avatar
OtakuGamer
Cheater
Cheater
Posts: 48
Joined: Tue Jul 11, 2017 5:44 pm
Reputation: 11

Simplest way to load 4 bytes from game memory based on a string location?

Post by OtakuGamer »

I'm trying to make a table for Fheroes 2, and I noticed the spell points of a hero are always at the address of the first occurrence of their first name minus 54 (hex). I'd like to somehow automate the process of locating these values, but I'm not sure how to start. Should I get into lua scripting or can this be done with pointers? Pls advise.

User avatar
tdg6661
Table Makers
Table Makers
Posts: 682
Joined: Sat Dec 15, 2018 12:10 pm
Reputation: 252

Re: Simplest way to load 4 bytes from game memory based on a string location?

Post by tdg6661 »

OtakuGamer wrote:
Wed May 17, 2023 6:10 pm
I'm trying to make a table for Fheroes 2, and I noticed the spell points of a hero are always at the address of the first occurrence of their first name minus 54 (hex). I'd like to somehow automate the process of locating these values, but I'm not sure how to start. Should I get into lua scripting or can this be done with pointers? Pls advise.
Hi, its x64 or x86 version?

User avatar
tdg6661
Table Makers
Table Makers
Posts: 682
Joined: Sat Dec 15, 2018 12:10 pm
Reputation: 252

Re: Simplest way to load 4 bytes from game memory based on a string location?

Post by tdg6661 »

Of course, you can use LUA. However, it would be simpler if you used assembly script. Here's a simple table to help you figure out. You may begin scripting with anything available on the profile screen; for example, I used Exp to create this script.

This is a tutorial on how to do it.
[Link]
Attachments
fheroes2.CT
fHeroes x64
(4.96 KiB) Downloaded 122 times

User avatar
OtakuGamer
Cheater
Cheater
Posts: 48
Joined: Tue Jul 11, 2017 5:44 pm
Reputation: 11

Re: Simplest way to load 4 bytes from game memory based on a string location?

Post by OtakuGamer »

Wow, this is exactly what I was hoping to do myself. I'll take my time dissecting the code and trying to understand it. Thank you!

Post Reply

Who is online

Users browsing this forum: mikamiyui