Nothing seem to match
Posted by: PanCave
Date: 2017-03-08 08:33:36
first of all: I hope this is the right place to ask this question, if not please forgive me.
The thing is, I'm new to this kind of "programming", but very interested!
I read some sources (mainly from this forum), but sadly nothing seems to match…
A few examples explaining my problem:
1)
This thread's first answer: http://forums.glitchcity.info/index.php?topic=7871.msg204526#msg204526
When i compare his(/her?)
Back into raw code using the Big List:
- Repel x index number of wanted Pokemon
- X Speed x14
- Ultra Ball x 64
- TM05 (Mega Kick) x72
- Lemonade x201
Becomes
1e xx 43 0e 02 40 cd 48 3e c9
I get the exact same Byte-String, using the Big List. So far so good. But when he shows how the Bytes should look like @3E59:
Now, CF91 is one of the addresses that is reduced by 1 in Yellow; so if we search for 78 ea 90 cf [ld a,b ld (cf90),a ld a,c] in a hex editor (I like to use HxD which is freeware) we can luckily find the beginning gift Pokémon routine in Yellow at 3E59.
78 EA 90 CF 79
So we need to change cd 48 3e to cd 59 3e (59 3e because the call routine expects big endian, which may mean highest value comes first; sadly not sure but remember it's the often the opposite byte order you would find in a memory viewer)
My Bytes (read with VBA's Memory viewer) are: CD 18 38 37 C9 78 EA 95 CF 79 EA 2B D1 AF EA 49
Why? :/
2)
In another thread there is linked the RAM map of red/blue: http://datacrystal.romhacking.net/wiki/Pok%C3%A9mon_Red/Blue:RAM_map#Items
When i search for yellow map, everyone tells me, it's just red/blue - 1. So according to that list my total item counter should be @(D31D - 1 = D31C), but it's actually @D321.
Reading from there on gives me the correct information about my items, but it's acutally +4 instead of -1. Why? :/
3)
Again in another thread is this link: http://aurellem.org/vba-clojure/html/rom.html#sec-9-1
0DE2F. Duration of Repel. A single byte, representing the number of steps you can take before the effect wears off. 100
But when I take a look @0DE2F and the nearby bytes, there is nowhere a 64, which should indicate the 100 steps of repel. Why? :/
I get the feeling, that i missed something important on how to find the location of any information in the memory…
My final goal to achieve is to write code in yellow to change the OT and ID of a specific pokemon (yes mew pokebank). I know, that there are guides out there either doing that in Red/Blue or changing OT/ID of the player in Yellow. But I want to change one specific pokemon in yellow and i can't find any guides/codes/hints on that. If someone knows one, please tell me, I'm very interested, but I really want also to learn how to read and write the code by myself, so the original question would still be a thing.
I hope i worked out, what my problem is and what i want to be able to learn/code.
Thank you,
PanCave