Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,433,915
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-19-24 01:44 AM
Guest: Register | Login

0 users currently in ROM Hacking | 2 guests

Main - ROM Hacking - ROM is Corrupt Hyrule Magic New thread | New reply


Frozen2Dream
Posted on 06-07-10 06:01 PM Link | Quote | ID: 131812


Octorok
Level: 15

Posts: 8/33
EXP: 13492
Next: 2892

Since: 06-06-10

Last post: 4967 days
Last view: 4953 days
I figure id pst a new thread because its not related to ASM.(well, mostly)
Its kinda hard to add new ASM to LTTP when the rom is VERY tight and almost has no free space.
Usually, id add more space. Using Black Magic or just adding more via HxD or something.
However, when I add more then 100ish bytes, Hyrule Magic coughs a error when opening it, and says the Rom is Corrupt.

Id use Black Magic, because I know HM has a problem corrupting roms anyway by itself. But BM isnt exactly 100% workable yet D:

Anyone have any ideas on how to add more space, in a fashion HM wont mind?

____________________

Anyone mind teaching me ASM? D:
For some reason, although I read guides, somehow I am still confused, but I also understand it a bit more.
Anyway, if youd like to help at all, add me on Frozen2Dream@hotmail.com

MathOnNapkins
Posted on 06-07-10 07:59 PM (rev. 3 of 06-07-10 08:00 PM) Link | Quote | ID: 131816


Super Koopa
Level: 62

Posts: 774/842
EXP: 1934370
Next: 50316

Since: 02-19-07
From: durff

Last post: 4481 days
Last view: 4004 days
Adding space to a ROM is not tricky, but generally it's advisable to add ROM space in at least multiples of half megabytes. In hex that's 0x80000 bytes. And it's generally not advisable to go above 4 megabytes (0x400000 bytes). Also consider that your ROM likely has a header attached which adds an additional 0x200 bytes at the very beginning of the rom. In which case that would mean a maximum of 0x400200 bytes. Assuming your ROM has a header you should make sure that in hex the number of bytes is either 0x180200 or 0x200200. Subtract 0x200 if your ROM has no header.

Oh, and you are adding space to the end of the rom, right? Just checking.

Hyrule Magic does some rudimentary checks to tell whether your ROM is valid, and they can make problems for you if Hyrule Magic doesn't like the modifications you've done to the ROM. Assuming Hyrule Magic didn't expand your rom itself already, you can make sure that the 4 bytes at 0x100000 always read as 00 00 00 00. That may be sufficient enough to get HM to open it. My editor fills expanded ROM space with FF's, which is one reason that HM tends to not like BM modified ROMs. (There are many other reasons why you wouldn't want to use them in HM, though).

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

Frozen2Dream
Posted on 06-08-10 12:08 AM Link | Quote | ID: 131827


Octorok
Level: 15

Posts: 10/33
EXP: 13492
Next: 2892

Since: 06-06-10

Last post: 4967 days
Last view: 4953 days
Yes, i do add all the stuff at the end lol.

For some reason, as you said, adding a bundle of FF's made HM hate the rom.
I just added a bundle of 00's instead and it works fine. Thanks.

____________________

Anyone mind teaching me ASM? D:
For some reason, although I read guides, somehow I am still confused, but I also understand it a bit more.
Anyway, if youd like to help at all, add me on Frozen2Dream@hotmail.com

Main - ROM Hacking - ROM is Corrupt Hyrule Magic New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.019 seconds. (339KB of memory used)
MySQL - queries: 47, rows: 69/70, time: 0.016 seconds.