
So if we repeat our value finding process, but this time, we find it with the paradigm in mind that the value will count up from 0. While we might disagree that one method is easier than another, he was indeed correct that the programmer of Pillars of Eternity decided to implement it that way. In this case, I figured it out by talking it over with my more-experience programmer significant other, who, once he heard the design of the game, pointed out that it would be easier to count up from 0, instead of down from whatever the arbitrary number of spells for that tier was. Pillars of Eternity 2: Deadfire allows players to used console commands with the developer console, infamously known as the 'cheat engine', to alter stats and variables in the game. I am a programmer, but I made the above mistake when trying to find this value at first and thought it would be a good demonstration of how using Cheat Engine effectively is much like reverse engineering, and by extension, requires that you get into the mindset of the programmer that wrote the game.

In this SPECIFIC case, the programmer of the game decided to count spell casts up from 0, meaning that what you're seeing in the UI of PoE above is the value (4 - N), where N is the number of spells of that level you have cast. What this means is sort of vague - basically the programmer decided, for whatever reason, to count differently than you're counting. There's enough memory space available that most numbers will be 4 bytes, but there are memory optimizations that COULD be made to compress how much memory each value is taking up that would reduce it from 4 bytes to 1 or 2 bytes.ģ) The value is not being tracked how you think it is being tracked.
#PILLARS OF ETERNITY II DEADFIRE CHEAT ENGINE PC#
This is less common nowadays than it used to be, I think, especially for PC games. This might be you, so repeat these steps a few times just to be sure.Ģ) The value is not a 4 byte number. It's not very intuitive and it's all downhill from here. You'll want to get comfortable finding values in games before you do more with Cheat Engine. I did this a lot, in my early days of using Cheat Engine.

Below are the Unique Weapons found in Pillars of Eternity II: Deadfire.

There are a few possibilities here:ġ) You messed up somewhere along the line. Cheat Engine is an open source development environment thats focused on modding. Now, this is definitely a common thing that happens when you're trying to find a particular value in a particular game.
