GaidenFocus wrote: ↑Mon Mar 12, 2018 6:26 pm
Sup fellers. Love this game, but hate having to eat, sleep, and all that crud, thus failing quests because I can't keep my eyes open! They just updated to 1.3.1 so the trainer no longer works. No biggie, I want to make it myself! I understand the concept of scanning memory and documenting values, then re scanning after they change. I also understand the pointer system, I am a computer programmer after all. What I need help with is knowing the value of stamina! How would i find this?
Well, I'd say that you'd normally figure that out the same way the rest of us do: trial and error.
Granted, there are some indicators that can help. Usually values represented by a bar, or something that fills and drains is either a float or a double. If you notice a value never going above a certain number, you can usually start searching within the parameters that would make sense - like a value that never goes beyond 65535 would be a 4-byte value.
And then you have the clues left by previous coders. If they've previously found stamina, and stamina was a 4-byte value before, it's not very often that game programmers suddenly change that to a float or a double. If you can pull up an old table, that used to work, then you can start searching within the parameters that the value used to be and see if its changed.
In the end, to find what value it is usually starts the quickest way with an educated guess or two, and trial and error.