SMB3-Foundry
SMB3-Foundry copied to clipboard
Add support for Super Mario Bros 3 (Japan)
Currently JP SMB3 doesn't appear to be compatible with the editor.
I don't know if the world maps are just in a different place or what the differences are, so I can't really support it. If there are any resources feel free to put them here and I might look into it then.
It appears that the SMB3 Workshop supports the Japanese version The levels.dat and rom.ini there are interesting
That is because Workshop doesn't read as much information from the ROM itself as Foundry does. Foundry is therefore more accurate, but also more reliant on the data in the ROM being where Foundry expects it to be. Palette data for example seems to be in different positions between the US and JP version, so since Workshop doesn't extract that data it doesn't fail, while Foundry does.
Many data positions, like the world maps and levels can be parsed from the ROM, since they are referenced somewhere. Like a list of positions of the individual world maps and a list of all levels in world 1, for example. But some data, like the palettes, exist only at one place in the code portion of the ROM, because it was only used that one time.
Parsing code to find that data or even recognizing it as such is very complex/next to impossible. So automatically locating palette Data in whatever ROM is given to Foundry is very difficult.
I guess you could try to detect the error, before Foundry crashes and go into a sort of compatibility mode, where we use a preset palette, like Workshop does.