I have several NSMB isos I created (new levels/textures). But since 4.0-6163, it's reporting most of the isos (not all for some reason) as the default gameid of SMNE01. If I crack them open and look at the partition.bin + boot.bin, the game ids are different and unique. If I look at the save file via dolphin explorer, I am being taken also to different and unique save files further proving that the id Dolphin reporting in the list is wrong. Purging cache and emptying the 'cache' folder did not help.
This is causing it to pull the wrong title from my title.txt file and use the wrong config file.Where exactly is it pulling this gameid for the game list now?
There was a change a while ago that changed Dolphin from reading the game ID at the beginning at the game partition to reading the game ID from the beginning of unencrypted area, but that was before 4.0-6163. 4.0-6163 didn't change how game IDs are handled, but it did change how titles are read from Wii games. Instead of reading from the header, it now reads from the opening.bnr file, just like the Wii Menu. The opening.bnr files in your ISOs are have probably not been changed from their default names.
(09-14-2015, 06:16 PM)JosJuice Wrote: [ -> ]There was a change a while ago that changed Dolphin from reading the game ID at the beginning at the game partition to reading the game ID from the beginning of unencrypted area, but that was before 4.0-6163. 4.0-6163 didn't change how game IDs are handled, but it did change how titles are read from Wii games. Instead of reading from the header, it now reads from the opening.bnr file, just like the Wii Menu. The opening.bnr files in your ISOs are have probably not been changed from their default names.
Got it , thanks! What's the easiest way to change these?
I'm assuming you already have a way to unpack and repack an ISO to regular files? If so, open opening.bnr with a hex editor, and you should find the English name at 0xB0. The Japanese name comes before it, and afterwards come names in other languages, all at 54-byte intervals. They're stored in big-endian UTF-16, so you can use regular ASCII as long as you include a 0x00 byte between each ASCII character. Don't change the total length of the file - just overwrite the existing bytes, don't insert any new bytes.
Alternatively, if the ISOs all have unique IDs, you can override the titles using titles.txt.
(09-15-2015, 01:52 AM)JosJuice Wrote: [ -> ]I'm assuming you already have a way to unpack and repack an ISO to regular files? If so, open opening.bnr with a hex editor, and you should find the English name at 0xB0. The Japanese name comes before it, and afterwards come names in other languages, all at 54-byte intervals. They're stored in big-endian UTF-16, so you can use regular ASCII as long as you include a 0x00 byte between each ASCII character. Don't change the total length of the file - just overwrite the existing bytes, don't insert any new bytes.
Alternatively, if the ISOs all have unique IDs, you can override the titles using titles.txt.
Thanks! I confirmed changing the title in the opening.bnr works (as an alternative to the title.txt).
However, I was unable to find the gameid in there. Are you sure this is where Dolphin retrieves the gameid? I could not find it in there at all! Attached my file to see if I missed it.
No, the game ID is not in opening.bnr. Dolphin reads it from the six first bytes of the ISO.
(09-16-2015, 07:32 PM)JosJuice Wrote: [ -> ]No, the game ID is not in opening.bnr. Dolphin reads it from the six first bytes of the ISO.
Cool, thanks for continuing to support me here. What's the easiest way to modify that?
Get a hex editor and change the first six bytes of the iso. Just make sure it supports large files.
(09-17-2015, 11:39 AM)AnyOldName3 Wrote: [ -> ]Get a hex editor and change the first six bytes of the iso. Just make sure it supports large files.
Any recommendations?
I've used HexVUI32 for years but if I open it in there and change just one char in the gameid and save, the file size goes for 4 gb to 400mg and hangs on boot in Dolphin.
I also noticed that the game appears at the top of the game list in Dolphin, even though the first character in the title throughout everything is "N". Still not sure how exactly the sort order is determined in the Dolphin game list.
(09-18-2015, 02:10 AM)Legend80 Wrote: [ -> ]I also noticed that the game appears at the top of the game list in Dolphin, even though the first character in the title throughout everything is "N". Still not sure how exactly the sort order is determined in the Dolphin game list.
When sorting by name, Dolphin always uses the name that is in opening.bnr, which sometimes is different from the name that actually is displayed. With your 400 MB ISO, it probably can't read opening.bnr at all, giving the game an empty name for sorting purposes. This will be fixed in an upcoming development build called "DolphinWX: Fix sorting games by custom titles". I'm not sure if Dolphin actually sorts by names by default, though, so you might want to check that first.
The hex editor I use is HxD, if you'd like to give it a try. I haven't had any problems with it, even when editing 8 GB large Super Smash Bros. Brawl ISOs.