Pages: 1
TheTimebreaker |
Posted on 08-20-18, 04:12 pm
|
Ninji
W1 out :) Karma: 544 Posts: 181/229 Since: 10-22-17 |
Hello everyone,
when replacing the Sound Database of the ROM with my edited one (the edited one is about 0.2MB/200KB bigger) I always face the problem that my ROM exceeds the 32MB cap (always becoming 34,4MB), therefore creating an Invalid Header. Just wondering what exactly this invald header means (how do i get one, why does it occur, is this bad, can I still work with this without worrying) and if there are methods of avoiding this invalid header. And why the new files size is 34,4MB while the Sound Database isn't even one MB bigger. Greets BooChewbaca _________________________ previously (un)known as BooChewbaca |
Skylander |
Posted on 08-20-18, 06:36 pm
|
Giant Paratroopa
Cream Cheese King Karma: 2140 Posts: 473/1379 Since: 04-24-18 |
I have that too. But as long as it doesn't hurt the gameplay then I don't worry about it.
_________________________ Discord Server 1 - Discord Server 2 - Youtube Channel |
Arceus |
Posted on 08-20-18, 08:15 pm
|
We do what we must because we can
Karma: 5558 Posts: 1338/1425 Since: 06-25-13 |
Ignoring is not the best way, I did that too and suddendly my ROM was 500MB big after I imported the sdat which made no sense to me but well, it happened. I worked around it that I made a .nmp patch of my hack and reimported it and replaced the sdat file only once. Then ROM size was normal and I released the xdelta.
_________________________ Super Mario Bros. - The New Worlds | Full release Super Mario Castle 2 | Full release My Youtube channel Best friends forever |
TheTimebreaker |
Posted on 08-20-18, 08:59 pm
|
Ninji
W1 out :) Karma: 544 Posts: 182/229 Since: 10-22-17 |
A nmp patch does not apply ASM hacks and Overlay edits, or does it? As far as I know it only applies changed tiles(ets), backgrounds and levels.
Either way, I'll try this out later. At worst I have to apply all the ASM hacks again. _________________________ previously (un)known as BooChewbaca |
Ndymario |
Posted on 08-21-18, 01:27 am
|
Fuzzy
That MvL Hacker Karma: 1599 Posts: 651/789 Since: 04-11-15 |
.nmp doesn't apply ASM hacks, not sure about overlay edits
_________________________ Here's my MvL Hacking thread Consider joining the NSMB DS Hacking Discord Server! #HakingNoMore |
Arceus |
Posted on 08-21-18, 02:37 pm
|
We do what we must because we can
Karma: 5558 Posts: 1339/1425 Since: 06-25-13 |
Of course it doesn't, I added them manually afterwards. I'm sure there is a hacky way to solve that problem easier but as long as there isn't one posted I guess that is the only way.
_________________________ Super Mario Bros. - The New Worlds | Full release Super Mario Castle 2 | Full release My Youtube channel Best friends forever |
Dirbaio |
Posted on 08-23-18, 05:49 pm
|
Super Mario
( ͡° ͜ʖ ͡°) Karma: 10010 Posts: 4429/4457 Since: 06-08-11 |
What tool gives you the "invalid header" error?
It might be becuase the "device capacity" field at offset 0x14 is not updated. (see here) NSMB has it set to 8, which means 32MB. If the ROM is bigger than 32MB, that field should be increased. Try increasing it to 9 (64MB) or 10 (128MB) maybe? If that doesn't fix it, I don't know what's the issue. |
TheTimebreaker |
Posted on 08-23-18, 05:53 pm
|
Ninji
W1 out :) Karma: 544 Posts: 193/229 Since: 10-22-17 |
I used NSMBe (latest version) to replace the Sound Database. This Database was edited with Nitro Studio.
If I encounter that error again, I might try this, thanks. But for now, rebuilding the ROM like Arceus suggested helped. The ROM now has a valid header and new music. _________________________ previously (un)known as BooChewbaca |
Pages: 1