Simplest way to load 4 bytes from game memory based on a string location?
- OtakuGamer
- 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?
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?
Hi, its x64 or x86 version?OtakuGamer wrote: ↑Wed May 17, 2023 6:10 pmI'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?
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]
This is a tutorial on how to do it.
[Link]
- Attachments
-
- fheroes2.CT
- fHeroes x64
- (4.96 KiB) Downloaded 138 times
- OtakuGamer
- 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?
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!
Who is online
Users browsing this forum: No registered users