Register - Login
Views: 99807937
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 08:30:35 AM
Jul - NSMB Hacking (Archive) - header corruption, or something else? New poll - New thread - New reply
Pages: 1 2Next newer thread | Next older thread
Ehm
Member
Level: 49


Posts: 159/533
EXP: 844177
For next: 39706

Since: 06-13-09

From: Canada

Since last post: 4.0 years
Last activity: 4.0 years

Posted on 02-14-10 11:13:39 PM (last edited by m64m at 02-14-10 08:15 PM) Link | Quote
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)

plushifoxed

King Yoshi
la chica dijo...

Mood: The current mood of roxiemika at www.imood.com
Level: 119


Posts: 2241/3990
EXP: 18465929
For next: 463362

Since: 08-22-07

Pronouns: it/its or she/her
From: kamihama city

Since last post: 2 days
Last activity: 1 day

Posted on 02-14-10 11:22:26 PM Link | Quote
Supakitsune
Originally posted by m64m
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)


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

Posted on 02-14-10 11:29:22 PM Link | Quote
my thoughts exactly. Wanted to get some feedback before having to export and then re-import the edited levels, though.
gridatttack

Buzzy Beetle
Rarity FTW
Level: 42


Posts: 199/375
EXP: 494254
For next: 27108

Since: 08-26-09


Since last post: 5.3 years
Last activity: 2.0 years

Posted on 02-14-10 11:57:35 PM (last edited by gridatttack at 02-14-10 08:59 PM) Link | Quote
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

Posted on 02-15-10 12:13:15 AM Link | Quote
I dunno what I did. I recently saw the new editor, so I dled it, edited some levels slightly, and this was the result (no change at all).
jceggbert5
Member
again
Level: 33


Posts: 175/218
EXP: 216784
For next: 12395

Since: 12-01-09


Since last post: 12.1 years
Last activity: 360 days

Posted on 02-15-10 01:20:26 AM Link | Quote
Originally posted by gridatttack
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)

<!--Strange, jc5 hasnt come for the rescue-->

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:
<blockquote class='code'><hr><pre><code>New Super Mario Bros.
Nintendo</code></pre><hr></blockquote>
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...))

____________________
gridatttack

Buzzy Beetle
Rarity FTW
Level: 42


Posts: 200/375
EXP: 494254
For next: 27108

Since: 08-26-09


Since last post: 5.3 years
Last activity: 2.0 years

Posted on 02-15-10 01:26:19 AM (last edited by gridatttack at 02-14-10 10:28 PM) Link | Quote
Originally posted by jceggbert5
Originally posted by gridatttack
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)



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.


____________________
jceggbert5
Member
again
Level: 33


Posts: 176/218
EXP: 216784
For next: 12395

Since: 12-01-09


Since last post: 12.1 years
Last activity: 360 days

Posted on 02-15-10 01:55:22 AM Link | Quote
Originally posted by Gridatttack
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.


No problems caused...

Dirbaio and I had a small discussion about it, and I have experienced it myself, so yeah...

____________________
dirbaio
For future reference, "Responsible disclosure" isn't "acting like a douche about an exploit and demanding compensation".
Level: NaN


Posts: 386/-1288
EXP: NaN
For next: 0

Since: 07-28-09

From: Spain

Since last post: 10.8 years
Last activity: 9.9 years

Posted on 02-15-10 03:55:58 PM Link | Quote
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
jceggbert5
Member
again
Level: 33


Posts: 180/218
EXP: 216784
For next: 12395

Since: 12-01-09


Since last post: 12.1 years
Last activity: 360 days

Posted on 02-15-10 04:27:18 PM Link | Quote
Originally posted by dirbaio
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

What I do is click "This is a HomeBrew game" because it puts the icon data at the end

____________________
dirbaio
For future reference, "Responsible disclosure" isn't "acting like a douche about an exploit and demanding compensation".
Level: NaN


Posts: 390/-1288
EXP: NaN
For next: 0

Since: 07-28-09

From: Spain

Since last post: 10.8 years
Last activity: 9.9 years

Posted on 02-15-10 05:09:46 PM Link | Quote
Well.. I dont know how your flashcart works... but the icon/title stuff shouldnt affect you playing the game. Just open it like a normal game.
Ehm
Member
Level: 49


Posts: 164/533
EXP: 844177
For next: 39706

Since: 06-13-09

From: Canada

Since last post: 4.0 years
Last activity: 4.0 years

Posted on 02-15-10 05:29:10 PM Link | Quote
okay. thanks for all the advice. *exporting and importing to clean rom now*
dirbaio
For future reference, "Responsible disclosure" isn't "acting like a douche about an exploit and demanding compensation".
Level: NaN


Posts: 392/-1288
EXP: NaN
For next: 0

Since: 07-28-09

From: Spain

Since last post: 10.8 years
Last activity: 9.9 years

Posted on 02-15-10 05:31:46 PM Link | Quote
Nooo!! I meant: Do it when the new version comes out, or else you'll get it corrupted again
Ehm
Member
Level: 49


Posts: 165/533
EXP: 844177
For next: 39706

Since: 06-13-09

From: Canada

Since last post: 4.0 years
Last activity: 4.0 years

Posted on 02-15-10 05:35:54 PM Link | Quote
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

Posted on 02-15-10 05:39:09 PM Link | Quote
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

Posted on 02-15-10 05:44:22 PM Link | Quote
okay. Thanks. I'll wait until you release the new version. No rush.
dirbaio
For future reference, "Responsible disclosure" isn't "acting like a douche about an exploit and demanding compensation".
Level: NaN


Posts: 394/-1288
EXP: NaN
For next: 0

Since: 07-28-09

From: Spain

Since last post: 10.8 years
Last activity: 9.9 years

Posted on 02-15-10 05:56:02 PM Link | Quote


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

Posted on 02-15-10 06:06:16 PM Link | Quote
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

Posted on 02-15-10 06:18:12 PM Link | Quote
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.

http://nocash.emubase.de/gbatek.htm#dscartridgeicontitle That thing is what gets corrupted...

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

Posted on 02-15-10 06:26:14 PM Link | Quote
buh. I have TTDS 1.17 with YSMenu running. Very much possible that it recognizes the games in an odd manner.
Pages: 1 2Next newer thread | Next older thread
Jul - NSMB Hacking (Archive) - header corruption, or something else? New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

31 database queries, 10 query cache hits.
Query execution time: 0.088443 seconds
Script execution time: 0.025799 seconds
Total render time: 0.114242 seconds