Author
|
Topic: Hacking title of GBC Dragon Quests (Read 487 times)
|
Moulinoski
Guest
|
|
« on: June 09, 2007, 05:44:03 pm » |
|
Just out of randomness, I felt like changing the titlescreens from the US GBC Dragon Warriors to Dragon Quest... But erg! I can't find the logo anywhere on the rom! :(
Sooooo... I'd like some suggestions as to what I should do...
For reference, the ones I'm trying to hack are Dragon Warrior 1 & 2 Dragon Warrior 3 Dragon Warrior Monsters
(And don't ask me why I want to do this... :P)
|
|
« Last Edit: June 09, 2007, 07:04:36 pm by Garoth Moulinoski »
|
|
|
|
Ryusui
Guest
|
|
« Reply #1 on: June 09, 2007, 07:25:53 pm » |
|
Odds are it's compressed. Sorry.
If there's one thing that's most likely to be compressed in a game, it's the title screen. Big graphic, displayed only once, performance not really an issue...
Just an FYI, Sylvanian Melodies for GBC uses a metric buttload of compression. Thankfully, I wrote a nice app that rips all the graphics and reinserts them just dandy. ^_^
|
|
|
|
Moulinoski
Guest
|
|
« Reply #2 on: June 09, 2007, 10:17:14 pm » |
|
But only for Sylvanian Melodies, I presume? I sorta thought it was going to be compressed... :/ Nuts... Well, thanks.
|
|
|
|
Ryusui
Guest
|
|
« Reply #3 on: June 09, 2007, 10:44:00 pm » |
|
Well, compression is actually pretty easy to tackle. You typically need some ASM knowhow to handle compression, but you don't need to do any real hacking: to start with, you just need to figure out how the game does what it does, and then replicate it in a programming language like C++ or Visual Basic.
Most games use a variation on LZ: RHDN has a doc on compression which explains it nicely. In a nutshell, an LZ code is broken up into two types of byte group: "plaintext" and compression data. "Plaintext" is copied into the output buffer (wherever in memory it may be) as-is; compression data is an instruction to copy a number of bytes from a previous position.
For example, if you applied LZ compression to the sentence "In all your journeys, have you seen", the second instance of " you" (space included) could be replaced with an instruction that copies the identical previous sequence (right after "all").
The second half of tackling compression is a bit tougher, and takes a bit more programming prowess. Writing a decompressor is easy: just write a program that does exactly what the original ASM does. Writing a compressor is hard, because while you have the compression format, you don't have a blueprint for generating it from an uncompressed file. It takes trial, error and a bit of intuition, not to mention a hell of a lot more time than it takes to make a decompressor...but it's possible in every case. (I've even written compatible compressors that achieve a slightly higher compression ratio than the originals.)
|
|
|
|
Tauwasser
Guest
|
|
« Reply #4 on: June 10, 2007, 06:44:31 am » |
|
GB/C games generally don't use LZ-compression types, but rather RLE and "sequencing" types (like Code3 XXYY would result in XXYYXXYYXXYY). Anyway, trace your way back to the compression routine and write a decompressor. Oh, and compressors for those compressions are tough to do cYa, Tauwasser
|
|
|
|
Piotyr
Guest
|
|
« Reply #5 on: June 10, 2007, 11:29:12 am » |
|
Just out of randomness, I felt like changing the titlescreens from the US GBC Dragon Warriors to Dragon Quest... But erg! I can't find the logo anywhere on the rom! Sooooo... I'd like some suggestions as to what I should do... For reference, the ones I'm trying to hack are Dragon Warrior 1 & 2 Dragon Warrior 3 Dragon Warrior Monsters (And don't ask me why I want to do this... ) Too bad! I ask! No just kidding lol. But I do suggest doing a little bit more to it just to say rawr I did more then just hack the title screen! lol.
|
|
|
|
Moulinoski
Guest
|
|
« Reply #6 on: June 10, 2007, 01:14:18 pm » |
|
Too bad! I ask! No just kidding lol. But I do suggest doing a little bit more to it just to say rawr I did more then just hack the title screen! lol.
Well... You know how the series is really Dragon Quest, right? That's all I want to do... But... eww... compressing and decompressing all over the place! D: I guess I'll put this on hold until I'm finished with some of my other things. Thanks everyone!
|
|
|
|
|