Main Menu
Main Page
Forums
New pages
Recent changes
Random page
Help

Glitches
Arbitrary code execution
Pokémon cloning
Pomeg glitch and Glitzer Popping
Tweaking and voiding
Glitches by generation
Glitch categories

References/Resources
Databases
Disassembly projects
The Big HEX List
Pokémon cheat codes
Pokémon glitch terminology
Useful tools
More

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Technical
Site source code

Search Wiki

 

Search Forums

 

Author Topic: Repair the (J) slots overlay file for (US) HG/SS versions?  (Read 192 times)

0 Members and 1 Guest are viewing this topic.

Halfshadow

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Repair the (J) slots overlay file for (US) HG/SS versions?
« on: March 16, 2019, 05:40:08 pm »
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?
« Last Edit: March 16, 2019, 06:09:34 pm by Halfshadow »

Parzival

  • Buyer beware: House comes with 3 free skeletons in a closet of your choice.
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • This box intentionally left blank. ...wait...
    • View Profile
    • (null)
Re: Repair the (J) slots overlay file for (US) HG/SS versions?
« Reply #1 on: March 16, 2019, 07:18:32 pm »
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?
Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.

Sherkel

  • The first unquiring one to bare arms
  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Is it an illusion, or a tower built on sand?
    • View Profile
Re: Repair the (J) slots overlay file for (US) HG/SS versions?
« Reply #2 on: March 16, 2019, 08:38:04 pm »
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.
« Last Edit: March 16, 2019, 08:39:06 pm by Sherkel »
 
 

Halfshadow

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Repair the (J) slots overlay file for (US) HG/SS versions?
« Reply #3 on: March 17, 2019, 04:09:11 am »
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
« Last Edit: March 17, 2019, 04:21:13 am by Halfshadow »

Sherkel

  • The first unquiring one to bare arms
  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • Is it an illusion, or a tower built on sand?
    • View Profile
Re: Repair the (J) slots overlay file for (US) HG/SS versions?
« Reply #4 on: March 17, 2019, 09:59:59 am »
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. :(
 
 

Halfshadow

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Repair the (J) slots overlay file for (US) HG/SS versions?
« Reply #5 on: March 17, 2019, 10:13:45 am »
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
« Last Edit: March 17, 2019, 10:16:40 am by Halfshadow »