First off, I'm new to more "Low level" things like this using Python, so please excuse me if this is a noob question.
I had an idea for something like an "Achievement" system similar to Xbox and Playstation, where you could possibly track certain things in a Gameboy emulator using Python by reading memory addresses.
I decided that I should try this with Pokemon. (Leaf Green to start out)
My first idea was to make a couple achievements like so:
Fire! - Chose Charmander as your starter
Water! - Chose Squirtle as your starter
Grass! - Chose Bulbasaur as your starter
So after Googling a little for some memory addresses I ended up HERE.
It says in the article that in Leaf Green, a Trainer's Party Data starts at 0x02024284 and each Pokemon's individual data is 100 bytes. Right.
So I go into VisualBoyAdvance (My emulator) and click
Tools -> Memory Viewer
Now I type in 02024284 in the search box and it takes me to the data.
The article says that from that line, with an offset of 8 bits over, the next 10 bytes are the pokemon's nickname.
If I read this from my emulator (in 8 bit mode) I read the next 10 sets of 8 bits, and I get:
C3 D0 D3 CD BB CF CC FF 00 00
Which should be Ivysaur (I am assuming this is in hexidecimal, so I googled a hex to string converter and typed this in, but it brought back a bunch of gibberish (below) )
ÃÐÓÍ»ÏÌÿ��
Now, my two questions.
How would I go about pulling these memory addresses from VBA to Python? (I'm using Python 2.7 on Windows 7)
How would I decode/decrypt the string returned into a "Human readable format"? - Thanks to @blubberdiblub for clearing this part up
I couldn't find much info to guide me on this, regarding VBA and Python working together, and was hoping that someone could help shed some light on this for me. I would like to get into memory addresses (For reasons like this) and I think this would be a cool little project to start out with.