Page 1 of 1

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

Posted: Wed May 17, 2023 6:10 pm
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.

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

Posted: Thu May 18, 2023 5:40 pm
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?

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

Posted: Thu May 18, 2023 5:57 pm
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]

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

Posted: Sat May 20, 2023 5:34 am
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!