find variables in memory
i want to find certain values in a games memory.. but when the game's memory usage is over 200megs which is full of models, textures etc etc. i can't work out a way to locate the memory address of say, your players health.. or stats.
can someone please point me in the right direction? thanks!
Sounds like you want to manipulate those variables, a.k.a. cheat. Am I right?
actually i don't want to change memory, just analyze it to create extended ui.
do you know how to do it?
It's difficult.  Yes, I've done it before. [/edit] You often get segmentation faults if you're not careful, and searching through memory is a real pain. Often data is not stored how you expect it to be. You might be better off downloading a program that does this instead of trying to program it yourself.
But really, what do you want it for? GDB or other debuggers work really well for programs you have written. (I don't think you would have written that program anyway. ;) ) Why do you need to do this? It would be next to impossible to glean anything from the computer's memory. Even a simple integer like your money would be stored in the sort of format that you get when you write to a binary file. It would be completely unrecognisable.
The simplest way to identify where a variable actually is is to change it, and watch the memory to see what changes. But in a complex game that would be impossible.
So, again: what are you doing? Why?
tbh, couple of days ago i found a program that does that !! it find the variables everytime the game runs and you can alter em to cheat. But the page is lost now :(. Try to google it
You encourage people to cheat?
Originally Posted by Hussain Hani
Programming should have as a prerequisite a sense of morality and decency.
>> Programming should have as a prerequisite a sense of morality and decency.
Living should have as a prerequisite a sense of morality and decency.
Programming should just require that you are alive.
Threads about hacking, cheating, or otherwise breaking into code you either have not written or for which you have malicious intent to either break, modify, or somehow alter are not encouraged on this board.
I like that. Thank you very much for posting this. Speaking of morality, I might have to steal it. :p
Originally Posted by Daved