Talk:Pokémon data substructures (Generation III): Difference between revisions

Nevermind I figured it out
(Nevermind I figured it out)
Line 24: Line 24:
Using little endian. This means for every word (two bytes), you reverse the order of the bytes. The encryption and decryption will work as long as you keep the order the same for the key and the data.
Using little endian. This means for every word (two bytes), you reverse the order of the bytes. The encryption and decryption will work as long as you keep the order the same for the key and the data.
[[User:Twigpi|Twigpi]] 14:01, 29 October 2007 (UTC)
[[User:Twigpi|Twigpi]] 14:01, 29 October 2007 (UTC)
== Decryption ==
I think this article needs to be more specific about the decryption. I wanted to verify some of the game mechanics so I learned all about the data structures and how to decrypt them. So far I've figured out most of it but am stuck at the part where you add all the decrypted values up. Are you suppose to add up each individual value, each long value, or what? Also, is the checksum suppose to match the sum of these values? (After modding by 0x10000) If so, I've tried tons of different combinations and no luck. I know I decrypted everything right because all the other calculations work out, but not this one. Any help?
--[[User:EV Love|EV Love]] 16:41, 11 July 2008 (UTC)
174

edits