+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Zelda 3 ROM Header Issues
Pages: [1] 2
Author Topic: Zelda 3 ROM Header Issues  (Read 2 times)
JamesBrad277
Guest
« on: December 21, 2008, 11:47:49 pm »

I'm currently working on a Master Quest version of A Link to the Past, and I'm essentially finished editing the levels.  All I have left to do is edit my title screen and the dungeon maps, but I can't seem to get zcompress to dump the graphics.  It's not that I don't know how to use zcompress because I've used it successfully in the past.  I'm using a different rom this time because the last rom I used didn't respond well to my editing with Hyrule Magic, but this one doesn't like zcompress. 

Anyway, I think I have a good idea as to what the problem might be.  Zcompress is telling me "it either doesn't have a 0x200 byte header, or is too small for the Zelda rom".  The size of this rom is 1KB bigger than the previous rom so I don't think it's too small.  I think it also says that when I expand the rom.  I've tried giving it a new header with snestools, but that doesn't seem to work either. 

I would assume that it lacks a 0x200 byte header, but I'm not entirely sure what that is.  I assumed it was the header you could add to roms using snestools, but I tried that and it didn't work.  I'm sure there's something I'm doing wrong (at least I hope that's the case).  Is anyone familiar with this issue? 

Thanks in advance! Smiley
« Last Edit: December 23, 2008, 02:10:39 am by JamesBrad277 »
Ryusui
Guest
« Reply #1 on: December 22, 2008, 12:26:32 am »

What exactly are the sizes of the two files? In bytes, not kilobytes, please.
JamesBrad277
Guest
« Reply #2 on: December 22, 2008, 12:35:53 am »

The first rom I used is 1,049,088 bytes.  The one I'm currently using (and having trouble with) is 1,050,171 bytes.
Ryusui
Guest
« Reply #3 on: December 22, 2008, 12:50:14 am »

The second ROM is an odd size; it might be a corrupt dump. Is this the size of the "fresh" ROM, or the size after you edited it?

The first ROM, on the other hand, is a perfectly-formed 1MB ROM with a 512 ($200)-byte header. If Hyrule Magic is having problems with it, try using a tool to remove the header, then reapply the header before using zcompress.
JamesBrad277
Guest
« Reply #4 on: December 22, 2008, 12:57:09 am »

That's the size after I edited it.  The original size is 1,048,576 bytes.  I didn't realize the rom size would increase from editing it.

However, I didn't have many problems with this rom in Hyrule Magic so I don't think it's corrupt.  I think I might give Lunar Compress a shot.
« Last Edit: December 22, 2008, 01:34:12 am by JamesBrad277 »
Ryusui
Guest
« Reply #5 on: December 22, 2008, 01:54:48 am »

Yep. The second ROM is headerless.

Hmm. I wish I could help you further, but having never used the program, I have no idea why Hyrule Magic would increase the ROM size in such an odd way.
JamesBrad277
Guest
« Reply #6 on: December 22, 2008, 02:03:27 am »

Well I do appreciate the help you've given me.  I tried adding a header to the rom using snestools and it works according to the program, but it still doesn't allow me to use zcompress.  I looked at my old version and the file size was 1,053,124 bytes, but zcompress gives me no trouble at all with this one.
« Last Edit: December 22, 2008, 02:14:33 am by JamesBrad277 »
JamesBrad277
Guest
« Reply #7 on: December 22, 2008, 01:25:44 pm »

Yeah I think it is a bad rom.  I can't add a header to it with snestools without destroying it.  After I add a header to the rom it will not run on zsnes.  I'm trying to figure out how to use NSRT, but they don't provide you with any descent instructions.  They tell you what the commands are, but not how to use them.
« Last Edit: December 22, 2008, 01:57:13 pm by JamesBrad277 »
Deathlike2
Guest
« Reply #8 on: December 22, 2008, 02:49:14 pm »

Quote from: JamesBrad277 on December 22, 2008, 01:25:44 pm
Yeah I think it is a bad rom.  I can't add a header to it with snestools without destroying it.  After I add a header to the rom it will not run on zsnes.  I'm trying to figure out how to use NSRT, but they don't provide you with any descent instructions.  They tell you what the commands are, but not how to use them.

Your issues probably extend further more than ZSNES. Use NSRT's frontend (nf.exe) to add/remove headers (I'm assuming you are using Windows, but the other ports have a frontend with a similar executable). When the function is used, you will have to scan the file again for the changes (which probably is the annoying part, but that's not a big deal).

You will need to right click on the ROM while using the frontend.

If you're not using the frontend, you need to apply them via the command line (it's easy if you know what you're doing). If you fear the command line, that's what the frontend is for.
JamesBrad277
Guest
« Reply #9 on: December 22, 2008, 05:50:59 pm »

Thanks, I'll give that a shot.  I'm not entirely sure what I'm doing, but we'll see, lol.
JamesBrad277
Guest
« Reply #10 on: December 22, 2008, 06:40:30 pm »

Okay, I figured out how to use NSRT.  The rom runs fine after I select remove header, but it doesn't work when I add a header.

Heres the rom info copied from NSRT.  Hopefully this will help shed some light on the issue I'm having with this rom.

Internal ROM Info
File
The Legend of Zelda - A Link to the Past - Master Quest.smc
Name
THE LEGEND OF ZELDA
Company
Nintendo
Header
None
Bank
LoROM
Interleaved
None
SRAM
64 Kb
Type
Normal + Batt
ROM
8 Mb
Country
USA
Video
NTSC
ROM Speed
200ns (SlowROM)
Revision
1.0
Checksum
Bad 0x2EA5 != 0xAF0D
Game Code

Hashes
CRC32
9ADC4F9F
MD5
BF92B38B39D65F6233F6A7D153F37ED5
Database
Error
ROM wasn't found in the database (possible bad dump).
Error
You can try using -fix or -findover to see if the file has been slightly altered in a rectifiable way.
Deathlike2
Guest
« Reply #11 on: December 22, 2008, 08:16:07 pm »

My guess is that it isn't working because of the numerous bugs that exist in Hyrule Magic.

Are you sure you scanned the ROM after trying to add a header? (You don't want to add an NSRT header either.)

If the ROM you've hacked has changed sizes, that may cause issues when adding a header.. your modifications will most likely won't work on the original console either....

You don't need to add a header to run the game, just so you know.
« Last Edit: December 22, 2008, 08:35:32 pm by Deathlike2 »
JamesBrad277
Guest
« Reply #12 on: December 22, 2008, 09:12:03 pm »

I think your right, and yes I scanned it first.  I was able to give the original copy a header in NSRT (but not in snestools).  I was also able to dump the graphics with zcompress after I added the header.  So I assume this happened because I edited a rom with no header, and in order to fix in now; I would have to use a hex editor which is a nightmare to someone like me who has no experience in that area.  I'm going to experiment with it a little more. 
« Last Edit: December 22, 2008, 10:02:58 pm by JamesBrad277 »
Deathlike2
Guest
« Reply #13 on: December 22, 2008, 11:09:41 pm »

The header can be 512 bytes of nothing really (it's only used for copiers). All you'd have to do is insert 512 bytes of nothing to the beginning of the file....
JamesBrad277
Guest
« Reply #14 on: December 23, 2008, 12:42:55 am »

So if I did this manually, do you think it would work?  If so, do you know how to do it?  The only way I can think of doing this is by adding 4096 1s and 0s, lol.

Anyway, I found out that any Zelda 3 rom edited by Hyrule Magic will be considered a bad rom by zsnes.  Even Parallel Worlds.

Btw, thanks for the help you've given me so far.  I have a much better understanding of what's wrong now.
Pages: [1] 2  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC