| View previous topic :: View next topic |
| Author |
Message |
Grizzly232 How do I cheat?
Reputation: 0
Joined: 17 Nov 2020 Posts: 1
|
Posted: Tue Nov 17, 2020 1:47 pm Post subject: Can't find simple values in Hearts of Iron 4 |
|
|
I was trying to play around with Hearts of Iron 4. There are plenty of different values that would be interesting to change, but I don't seem to be able to find any of them in cheat engine.
The value I'm trying to find is my country's number of civilian factories. As Germany, I start off with 31 factories and I routinely deconstruct factories while I scan for the value.
Factories are just a discrete number that should be easy to find, but when I try to narrow down the value, I never find it. I've changed all of the scan settings to make the scan as vague as possible and to search through every possible value, but that just leads to me finding even more values that aren't the one I'm looking for.
I've had this problem with every single value in the game. The number of factories, my country's stability or the number of tanks I've produced should all be recorded somewhere, so I think this is an issue with where I'm searching, but I can't be sure.
|
|
| Back to top |
|
 |
Lionitus How do I cheat?
Reputation: 0
Joined: 27 Aug 2024 Posts: 1
|
Posted: Tue Aug 27, 2024 8:43 pm Post subject: State Based Values |
|
|
This is a truely ancient message, but better late than never. Most values are state based. From messing around with cheat engine, I have found that the total manpower is based on the sum of the available state manpower pools (which can be seen by mousing over the state) and the STATE manpower pool can be modified with cheat engine. To narrow down your search, it is a 4 byte number.
Additionally, for ATLEAST Military factories (and likely all other constructions), they are ALSO state based, and a 4 byte number.
|
|
| Back to top |
|
 |
ali430 How do I cheat?
Reputation: 0
Joined: 14 Sep 2025 Posts: 1
|
Posted: Sun Sep 14, 2025 11:11 pm Post subject: |
|
|
| I managed to cheat manpower but didn't manage to cheat other stuff like resourcse, factories, etc
|
|
| Back to top |
|
 |
C1aref5 Cheater
Reputation: 0
Joined: 20 Feb 2025 Posts: 32
|
Posted: Thu Oct 23, 2025 3:49 pm Post subject: |
|
|
Values like “Civilian Factories” or “Steel Production” are not stored as a single integer.
They’re calculated dynamically from:
The sum of individual states’ industrial values (each province has a record).
Global or national modifiers (laws, advisors, focuses, etc.).
Ongoing construction queues.
When you change something like a building or mobilization law, the engine recalculates everything on the fly.
So if you’re scanning for “31 factories” — there is no memory address that literally holds “31.”
Instead, the game computes that number based on dozens of smaller values.
|
|
| Back to top |
|
 |
|