I can't tell if the header on my rom is corrupted or not. Can someone diagnose this issue for me?
The game works fine, it's just that the DS doesn't recognise the rom as New Super Mario Bros. (eg. image is f'ked up, no proper title, cheats box doesn't appear next to reset)
Originally posted by m64mI can't tell if the header on my rom is corrupted or not. Can someone diagnose this issue for me?
The game works fine, it's just that the DS doesn't recognise the rom as New Super Mario Bros. (eg. image is f'ked up, no proper title, cheats box doesn't appear next to reset)
Header's probably fucked up.
____________________
Hey! YOU! Yeah, you, with the face! Come fold some proteins with us! For SCIENCE!
Ehm
Member
Level: 49
Posts: 160/533
EXP: 844177 For next: 39706
Since: 06-13-09
From: Canada
Since last post: 4.0 years Last activity: 4.0 years
How did it get corrupt? Changing the gfx? if so, try the new editor, open every level, save and try. I once got the icon of nsmb messed up by changing the gfx.(hope Im talking about the topic)
____________________
Ehm
Member
Level: 49
Posts: 162/533
EXP: 844177 For next: 39706
Since: 06-13-09
From: Canada
Since last post: 4.0 years Last activity: 4.0 years
Originally posted by gridatttackHow did it get corrupt? Changing the gfx? if so, try the new editor, open every level, save and try. I once got the icon of nsmb messed up by changing the gfx.(hope Im talking about the topic)
lol, nice HTML comment... Were you referring to me? (if so, I was gone for about 6 hours and just got back)
Anyway, the NSMBe modifies the header of the ROM with the new value of the 'end of used data' used in the ROM so that the DSTT will work with modified tilesets, etc, because when NSMBe replaces a file, if it is even one byte larger than the original, it gets placed at the end of the ROM because of how some patch formats work (if data is moved, it says that all of it is modified...)...
(ask Dirbaio for a better explanation of above, I am no good at explaining that stuff...)
The only way that I know of how to fix it is to use RomeR (the one that's included with DSxINF seems to work best for me) and replace the header data with either what you want or what it originally was...
I think that it is:
New Super Mario Bros.
Nintendo
You will have to get the image from another ROM or make your own...
(32x32 BMP file with 16-color palette (must be an indexed palette, I forgot how to do that...))
LOL yeah, i was a little joke, i was bored so sorry if I caused problems
I think thats the cause of the corruption, im not sure im not good at this fields.
yeah...
The problem with the icon/title of NSMB is that the editor recognises it as a free space and uses that space for files. It's already fixed in the next version.
What you SHOULDN'T do is to use any icon/title editors to put it back to the original, because you'll end up modifying whatever files the editor put there, so you would modify your levels / custom gfx / whatever. Wait for the next version, export a patch and import it in a clean rom with the new version. That should fix it
yeah, just tested it. Same shit. When's teh new version coming out? I might just export and import every area like I did the last time this happened. (I've only edited the first world, so it's not too bad)
dirbaio
For future reference, "Responsible disclosure" isn't "acting like a douche about an exploit and demanding compensation".
Level: NaN
Posts: 393/-1288
EXP: NaN For next: 0
Since: 07-28-09
From: Spain
Since last post: 10.8 years Last activity: 9.9 years
I'm not sure when i'll finish the texture thing... Maybe next week?
yeah, but dont worry about it. You can try to import all levels, but it will end up corrupting the icon/title anyways, if not now, at any time in the future. It happens because the editor recognises that as a free space and whenever it has to replace a file that fits there, it puts it there, so if you don't get it corrupt now, you'll get it later when you edit stuff
Ehm
Member
Level: 49
Posts: 167/533
EXP: 844177 For next: 39706
Since: 06-13-09
From: Canada
Since last post: 4.0 years Last activity: 4.0 years
ok...
It's weird why doesnt your flashcart show the cheats box... It seems to recognise the game by its title, and not by game id??? (it is stored in the rom header, which is never corrupted. BTW, dont confuse the rom header which stores game id, pointers to code, filesystem and game icon/title, and the icon/title itself, they are in different places)
Ehm
Member
Level: 49
Posts: 168/533
EXP: 844177 For next: 39706
Since: 06-13-09
From: Canada
Since last post: 4.0 years Last activity: 4.0 years
I dunno. It didn't recognize the game. The title at the top is just the filename. Nothing to recognize there. That's why the rom is f'ked up. When it tries to find the game ID, it epic fails due to the data movement within the file, like you said. Therefore, no cheats, unless I manually re-enter them, which would be pointless/a pain.
dirbaio
For future reference, "Responsible disclosure" isn't "acting like a douche about an exploit and demanding compensation".
Level: NaN
Posts: 396/-1288
EXP: NaN For next: 0
Since: 07-28-09
From: Spain
Since last post: 10.8 years Last activity: 9.9 years
no...
The Game ID is stored always at the same place, that's what puzzles me...
Look at http://nocash.emubase.de/gbatek.htm#dscartridgeheader. That's the cartridge header. It contains the game ID, and it is always at the very beginning of the rom, and the editor doesnt corrupt that... Notice that at address 068h it has an offset to the icon/title thing.
What I was thinking is that your flashcart seems to recognise games by icon/title (which has changed), not by game ID (which has not changed NEVER), which is weird. Also due to the fact that games like NSMB itself have the very same title for all regions, but cheats aren't cross region...
Meh... I dont like all this flashcart stuff. Each one works different, and some are extremely picky with things like this one...
Ehm
Member
Level: 49
Posts: 169/533
EXP: 844177 For next: 39706
Since: 06-13-09
From: Canada
Since last post: 4.0 years Last activity: 4.0 years