Romhacking.net

Romhacking => Newcomer's Board => Topic started by: mikey3 on January 19, 2013, 05:04:29 pm

Title: File format decode
Post by: mikey3 on January 19, 2013, 05:04:29 pm
How do you decode the file format of a file in a DS rom?
Title: Re: File format decode
Post by: Gideon Zhi on January 19, 2013, 05:21:35 pm
With a secret decoder ring found in select boxes of Kelloggs(tm) brand cereal! Collect the whole set!

In all honesty? You either stare at it really hard until the pattern emerges, or you use some kind of debugger, watch the game as it executes, and figure out what it's doing while it's doing it.
Title: Re: File format decode
Post by: FAST6191 on January 19, 2013, 06:14:20 pm
Gideon Zhi has the short of it. To add to that though DS formats usually follow certain patterns (examples of known formats- http://www.romhacking.net/?page=documents&category=&platform=23&game=&author=&perpage=20&level=&title=&desc=&docsearch=Go there are lots more out there) so it helps to know common formats for the "stare at it" method* and once you have found out what a file does you can tweak things in file/memory and then run the game to see what changed- tracing and assembly level debugging are flawless methods but bloody hard to do (not helped by the DS debuggers being considerably more annoying the many other systems).

*though staring works having a hex editor to change things and/or a way to fiddle with numbers also helps.