Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Emulation & ROM Hacking

Repair the (J) slots overlay file for (US) HG/SS versions? - Page 1

Repair the (J) slots overlay file for (US) HG/SS versions?

Posted by: Halfshadow
Date: 2019-03-16 18:40:08
Hi. I found the slots overlay file in Japanese HG/SS, is overlay_0077, but inserting it into the US version don't work, the game crash. I tried to insert it replacing the Voltorb filp overlay file (Overlay_0122), 'cause the script command is the same in US and J versions, and overlay_0077 in US version is only a placeholder, a dummy file of 20 bytes.

The pointer to the slot machines texts group have to be updated to work with the US rom versions, 'cause in (J) version the text group is the number 429 (0x01AD) in the US versions also if is blank is the number 436. Is at the offsets:

0xA48 (uncompressed overlay_0077 file)
0x7A6 (compress overlay_0077 file)

I verified changing it in the J version, where the overlay file works.

I found also the graphic file, is cleared but isn't a problem, I can replace the J graphic file with the censored and the code still works however, however is stored in A/1/2/7 file.

I don't know why the Overlay_0077 file can't works in the U version, maybe have to be updated like the texts to right other resources file in the rom. Someone could know how repair it? And maybe (also if this is harder) link it to dummy script commands to keep both Voltorb flip and Slots minigames? Overlay_0077 is however existing in the US version and can be replaced trough NitroExplorer, but I don't know if there are script commands linked, I know only that there are a lot that do the same black screen/return to the game function.

However the major thing to do will be repair the Overlay file, Voltorb Flip isn't so important, I'll prefer replace it if necessary to restore the slots.

I found the script command link (I think) in the ARM9 file, I can change the value 0x7A (Voltorb flip 122 overlay file) to 0x4D (Overlay 77 slot file) and then the game crash when have to load the Voltorb flip… I think is the right place where force the game to load Overlay_0077 instead of 122, but the code is certainly incompatible (yet) with US roms.

Someone could fix it please?

Re: Repair the (J) slots overlay file for (US) HG/SS versions?

Posted by: Parzival
Date: 2019-03-16 20:18:32

Hi. I found the slots overlay file in Japanese HG/SS, is overlay_0077, but inserting it into the US version don't work, the game crash. I tried to insert it replacing the Voltorb filp overlay file (Overlay_0122), 'cause the script command is the same in US and J versions, and overlay_0077 in US version is only a placeholder, a dummy file of 20 bytes.

The pointer to the slot machines texts group have to be updated to work with the US rom versions, 'cause in (J) version the text group is the number 429 (0x01AD) in the US versions also if is blank is the number 436. Is at the offsets:

0xA48 (uncompressed overlay_0077 file)
0x7A6 (compress overlay_0077 file)

I verified changing it in the J version, where the overlay file works.

I found also the graphic file, is cleared but isn't a problem, I can replace the J graphic file with the censored and the code still works however, however is stored in A/1/2/7 file.

I don't know why the Overlay_0077 file can't works in the U version, maybe have to be updated like the texts to right other resources file in the rom. Someone could know how repair it? And maybe (also if this is harder) link it to dummy script commands to keep both Voltorb flip and Slots minigames? Overlay_0077 is however existing in the US version and can be replaced trough NitroExplorer, but I don't know if there are script commands linked, I know only that there are a lot that do the same black screen/return to the game function.

However the major thing to do will be repair the Overlay file, Voltorb Flip isn't so important, I'll prefer replace it if necessary to restore the slots.

I found the script command link (I think) in the ARM9 file, I can change the value 0x7A (Voltorb flip 122 overlay file) to 0x4D (Overlay 77 slot file) and then the game crash when have to load the Voltorb flip… I think is the right place where force the game to load Overlay_0077 instead of 122, but the code is certainly incompatible (yet) with US roms.

Someone could fix it please?
Ganix/Cryo was the one working on HG/SS/D/P/P overlays, maybe see if he can help?

Re: Repair the (J) slots overlay file for (US) HG/SS versions?

Posted by: Sherkel
Date: 2019-03-16 21:38:04
I linked Ganix to this and he said he couldn't find any more debug functions after searching for a while when working on PokePlat. Not sure if this answers your question.

Re: Repair the (J) slots overlay file for (US) HG/SS versions?

Posted by: Halfshadow
Date: 2019-03-17 05:09:11

I linked Ganix to this and he said he couldn't find any more debug functions after searching for a while when working on PokePlat. Not sure if this answers your question.
And he cannot works on the overlay_0077 file in HG/SS to adapt it to work with the localized versions? I think I discovered something important to start when I found the overlays and the ARM9 script pointer, but I don't know the DS assembly and then I don't know what do now to finish the work.

You said that worked with PokéPlat, but HG/SS arrived after it, then is obvious that don't have these functions added after. Or you said something else? I'm not a native english and then I can't understand all correctly. XD

Re: Repair the (J) slots overlay file for (US) HG/SS versions?

Posted by: Sherkel
Date: 2019-03-17 10:59:59
I was just reporting back what he said. He didn't mention any particular files. I've never done anything related to Gen IV hacking or ARM9 assembly, so I can't really help. :(

Re: Repair the (J) slots overlay file for (US) HG/SS versions?

Posted by: Halfshadow
Date: 2019-03-17 11:13:45
Ok, thank you. Maybe can you please tell him if he want to talk in this thread or on Discord or Skype? I'm always available to help with ideas, suggestions and useful annotations.

And now I'm thinking that HG/SS have also some leftovers from Platinum, about Platinum slot machines. But these HG/SS slot machines are very different, are deleted by the censorship, I have the (J) file from Japanese HG/SS. Can you please tell him also this? I doubt that him understood wrong with Platinum slots leftovers. XD XD XD