Homebrew Pokemon Sun and Moon Randomizer Help

PKMWM1

Well-Known Member
OP
Newcomer
Joined
Sep 6, 2015
Messages
51
Trophies
0
Age
26
XP
279
Country
United States
I've been wanting to create a Sun and Moon randomizer for fun and also to be able to modify some trainers teams. Ie elite four have level 70s and 80s instead of 60s. However, I can't seem to acquire the necessary files in order to start doing this. I have a CFW 3ds with A9LH and Luma as well as homebrew with HANS. However, I don't know how to go about extracting the romfs and exefs for Pokemon Sun or Moon and get them into PK3ds. I am in 11.2 and Decrypt9, Hourglass9 and braindump all have problems.

Braindump never seems to work with sun or moon at all. It always goes to a red or black screen and just freezes there.

Hourglass9 and Decrypt9 seem to yield a .3ds file or .cia if I request it. However, these aren't the files I want. the files that I need are decrypted exefs and romfs and I don't know how to make either program generate those files. Plus, after modifying them, I don't know how to implement them with luna (as Hans functionality seems to be inconsistent). I have the cartridge versions of both of them if that helps. Any help would be greatly appreciated.
 

PKMWM1

Well-Known Member
OP
Newcomer
Joined
Sep 6, 2015
Messages
51
Trophies
0
Age
26
XP
279
Country
United States
Since you have the decrypted .3ds/.cia file, just run a ROM extracting program like this one.

http://gbatemp.net/threads/how-to-u...-to-extract-rebuild-3ds-and-cia-files.456630/

Then learn about saltysd, http://gbatemp.net/threads/someone-know-how-to-use-saltysd-with-pokemon-su-mo.451401/

I finished trying it and it eventually just throws me an error during the extraction and I'm only left with the following files:
DecryptedPartition0
DecryptedPartition1
DecryptedPartition6
DecryptedPartition7
HeaderNCCH

None of these give me a RomFs, exefs and the code.bin that everyone keeps requiring and that is apparently easy to compile. What am I doing wrong?
 

KunoichiZ

Well-Known Member
Member
Joined
Mar 16, 2012
Messages
8,830
Trophies
0
Age
28
XP
4,597
Country
United States
I finished trying it and it eventually just throws me an error during the extraction and I'm only left with the following files:
DecryptedPartition0
DecryptedPartition1
DecryptedPartition6
DecryptedPartition7
HeaderNCCH

None of these give me a RomFs, exefs and the code.bin that everyone keeps requiring and that is apparently easy to compile. What am I doing wrong?
Make sure the .3DS/.CIA is decrypted otherwise HackingToolkit3DS won't extract all that it needs to. Re-decrypt the file. You're better off using a decrypted CIA.
 

PKMWM1

Well-Known Member
OP
Newcomer
Joined
Sep 6, 2015
Messages
51
Trophies
0
Age
26
XP
279
Country
United States
Make sure the .3DS/.CIA is decrypted otherwise HackingToolkit3DS won't extract all that it needs to. Re-decrypt the file. You're better off using a decrypted CIA.
I thought I did this. I had the Pokemon Moon Cartridge inserted, loaded up Decrypt9, Went to cart dump options, clicked on Dump and Decrypt (trim). Let it finish, then I went to the Options and attempted to re-decrypt it twice and it said that it succeeded. Then I tried to exract it and it gave me these errors and an incomplete extraction. I'm currently trying a Dump and Decrypt (full) which is being dumped rght now, but I don't know how to tell or know if a file is encrypted.
 

RustInPeace

Samurai Cop
Member
Joined
Oct 13, 2014
Messages
5,942
Trophies
1
Age
31
XP
5,162
Country
United States
I thought I did this. I had the Pokemon Moon Cartridge inserted, loaded up Decrypt9, Went to cart dump options, clicked on Dump and Decrypt (trim). Let it finish, then I went to the Options and attempted to re-decrypt it twice and it said that it succeeded. Then I tried to exract it and it gave me these errors and an incomplete extraction. I'm currently trying a Dump and Decrypt (full) which is being dumped rght now, but I don't know how to tell or know if a file is encrypted.

You're supposed to use dump and decrypt (full), the output file will have "dec" or "decrypted" on it, indicating that it's a decrypted dump. I used dump and decrypt cia, same end result.
 

PKMWM1

Well-Known Member
OP
Newcomer
Joined
Sep 6, 2015
Messages
51
Trophies
0
Age
26
XP
279
Country
United States
You're supposed to use dump and decrypt (full), the output file will have "dec" or "decrypted" on it, indicating that it's a decrypted dump. I used dump and decrypt cia, same end result.
Will it also work with a decrypted .3ds file or will it only work on .cia files?
 

PKMWM1

Well-Known Member
OP
Newcomer
Joined
Sep 6, 2015
Messages
51
Trophies
0
Age
26
XP
279
Country
United States
So I've gone through the whole process of extracting the files, using PKK3DS to apply the desired changes, rebuilt a ROMFS, and named it "00175E00.romfs" and placed it in the HANS folder. But when I try to launch it with HANS, it simply kicks me back to the homebrew menu. I have A9LH, LUMA, Homebrew v2.8, and firmware 11.2. If I can't launch it with HANS, could someone explain how to do it with LUMA or another source
 

KunoichiZ

Well-Known Member
Member
Joined
Mar 16, 2012
Messages
8,830
Trophies
0
Age
28
XP
4,597
Country
United States
So I've gone through the whole process of extracting the files, using PKK3DS to apply the desired changes, rebuilt a ROMFS, and named it "00175E00.romfs" and placed it in the HANS folder. But when I try to launch it with HANS, it simply kicks me back to the homebrew menu. I have A9LH, LUMA, Homebrew v2.8, and firmware 11.2. If I can't launch it with HANS, could someone explain how to do it with LUMA or another source

More specifically, follow this post, but use the IPS patches that I attached instead of the ones in this post, since these files work with Sun & Moon v1.1.

1. Once you have patched the code.bin file with the IPS patches above, rename it to the title ID of Sun/Moon.
2. Go to your luma folder and make a folder called code_sections in that folder. In the code_sections folder, place your .bin file.
3. On the root of your SD card, make a folder called saltysd. Inside of that folder, make a folder called SunMoon. Place your randomized files in SunMoon.
4. Open your luma settings and make sure that Enable region/language emu. and ext. .code is enabled.
5. Launch Sun/Moon to see if the changes have been made.
 

Attachments

  • v1.1 code IPS patches.zip
    1.4 KB · Views: 427
Last edited by KunoichiZ,

RustInPeace

Samurai Cop
Member
Joined
Oct 13, 2014
Messages
5,942
Trophies
1
Age
31
XP
5,162
Country
United States
So I've gone through the whole process of extracting the files, using PKK3DS to apply the desired changes, rebuilt a ROMFS, and named it "00175E00.romfs" and placed it in the HANS folder. But when I try to launch it with HANS, it simply kicks me back to the homebrew menu. I have A9LH, LUMA, Homebrew v2.8, and firmware 11.2. If I can't launch it with HANS, could someone explain how to do it with LUMA or another source

Make the directory luma/titles/"titleid"/ where "titleid" is that of the game, in your case 0004000000175E00, rename the romfs to "romfs.romfs" and it should work. I did the SaltySD way because it's simply copy/pasting edited files and their directories into a designated saltysd directory.

Edit: ninja'd by a better explanation.
 

PKMWM1

Well-Known Member
OP
Newcomer
Joined
Sep 6, 2015
Messages
51
Trophies
0
Age
26
XP
279
Country
United States
More specifically, follow this post, but use the IPS patches that I attached instead of the ones in this post, since these files work with Sun & Moon v1.1.

1. Once you have patched the code.bin file with the IPS patches above, rename it to the title ID of Sun/Moon.
2. Go to your luma folder and make a folder called code_sections in that folder. In the code_sections folder, place your .bin file.
3. On the root of your SD card, make a folder called saltysd. Inside of that folder, make a folder called SunMoon. Place your randomized files in SunMoon.
4. Open your luma settings and make sure that Enable region/language emu. and ext. .code is enabled.
5. Launch Sun/Moon to see if the changes have been made.
What do you mean by "randomized files"? Do you mean that a simple romfs will suffice, if so what do I need to name and place it? If not, what types of files should I copy over?
 

KunoichiZ

Well-Known Member
Member
Joined
Mar 16, 2012
Messages
8,830
Trophies
0
Age
28
XP
4,597
Country
United States
What do you mean by "randomized files"? Do you mean that a simple romfs will suffice, if so what do I need to name and place it? If not, what types of files should I copy over?
The files that the randomizer made. Put them in saltysd/SunMoon. Follow the same folder structure as the romfs.
 

PKMWM1

Well-Known Member
OP
Newcomer
Joined
Sep 6, 2015
Messages
51
Trophies
0
Age
26
XP
279
Country
United States
The files that the randomizer made. Put them in saltysd/SunMoon. Follow the same folder structure as the romfs.
What romfs structure? That was never told to me. Also, there are literally hundreds of files in the Pokemon Moon extraction that Pk3ds loaded. Do I have to copy over absolutely everything that was extracted, only the contents of the ExtractedROMFS folder? I don' t understand exactly what files are needed or where exactly to put them or name the directory. Also, once I do figure that out and I'm ready to start playing, how do I actually apply it on the 3ds?

I tried to just copy over all the code from the ExtractedROMFS directory. But when I tried to launch the game, it just lead to an endless "Nintendo 3ds" loading screen and now I can't play Pokemon Moon at all/
 
Last edited by PKMWM1,

KunoichiZ

Well-Known Member
Member
Joined
Mar 16, 2012
Messages
8,830
Trophies
0
Age
28
XP
4,597
Country
United States
What romfs structure? That was never told to me. Also, there are literally hundreds of files in the Pokemon Moon extraction that Pk3ds loaded. Do I have to copy over absolutely everything that was extracted, only the contents of the ExtractedROMFS folder? I don' t understand exactly what files are needed or where exactly to put them or name the directory. Also, once I do figure that out and I'm ready to start playing, how do I actually apply it on the 3ds?
Open the ExtractedRomFS folder. That's the romfs structure I was talking about. Follow that same structure in saltysd/SunMoon. If any of the files were touched by the randomizer, place them in the SunMoon folder, following the romfs folder structure.

1. Make sure that you have the latest version of Luma3DS (v6.6)
2. Open your Luma3DS configuration and make sure that "Enable region/language emulation and ext. .code" is enabled.
3. Make sure you have patched the code.bin from the 1.1 update and placed it in luma/code_sections/<title ID of Sun/Moon>.bin.
4. Make sure you have the romfs in saltysd/SunMoon.
5. Start your game and see if any changes were made.
 

PKMWM1

Well-Known Member
OP
Newcomer
Joined
Sep 6, 2015
Messages
51
Trophies
0
Age
26
XP
279
Country
United States
Open the ExtractedRomFS folder. That's the romfs structure I was talking about. Follow that same structure in saltysd/SunMoon. If any of the files were touched by the randomizer, place them in the SunMoon folder, following the romfs folder structure.

1. Make sure that you have the latest version of Luma3DS (v6.6)
2. Open your Luma3DS configuration and make sure that "Enable region/language emulation and ext. .code" is enabled.
3. Make sure you have patched the code.bin from the 1.1 update and placed it in luma/code_sections/<title ID of Sun/Moon>.bin.
4. Make sure you have the romfs in saltysd/SunMoon.
5. Start your game and see if any changes were made.
Do I need both the romfs.romfs file AND all the contents of the extractedRomFS folder? Its just not clear. I can't tell exactly what files were touched by the randomizer. When I copied the contents of the extractedROMFS folder to the SumMoon folder ,when I launch the game it just leads to an endless ""Nintendo 3ds loading screen and now I can't play Pokemon Moon at all. I don't know what I'm doing wrong.
 

KunoichiZ

Well-Known Member
Member
Joined
Mar 16, 2012
Messages
8,830
Trophies
0
Age
28
XP
4,597
Country
United States
Do I need both the romfs.romfs file AND all the contents of the extractedRomFS folder? Its just not clear. I can't tell exactly what files were touched by the randomizer. When I copied the contents of the extractedROMFS folder to the SumMoon folder ,when I launch the game it just leads to an endless ""Nintendo 3ds loading screen and now I can't play Pokemon Moon at all. I don't know what I'm doing wrong.
No you do not need the romfs.romfs file. Did you patch the code.bin file from the update? It sounds like you didn't.

Follow this to get the update as a decrypted CIA and to get the code.bin file from the update. It will be found in the ExtractedExeFS. Patch it with the IPS Patches I gave you earlier.

I'm not sure how the randomizer even works with game updates like this or if it even works with the update.
 

PKMWM1

Well-Known Member
OP
Newcomer
Joined
Sep 6, 2015
Messages
51
Trophies
0
Age
26
XP
279
Country
United States
No you do not need the romfs.romfs file. Did you patch the code.bin file from the update? It sounds like you didn't.

Follow this to get the update as a decrypted CIA and to get the code.bin file from the update. It will be found in the ExtractedExeFS. Patch it with the IPS Patches I gave you earlier.

I'm not sure how the randomizer even works with game updates like this or if it even works with the update.
So I have to dump the Pokemon Moon update v1.1 instead of the cartridge and edit all those files all over again?! Could I just try to delete the update and run the base game?
 

KunoichiZ

Well-Known Member
Member
Joined
Mar 16, 2012
Messages
8,830
Trophies
0
Age
28
XP
4,597
Country
United States
So I have to dump the Pokemon Moon update v1.1 instead of the cartridge and edit all those files all over again?! Could I just try to delete the update and run the base game?
You have to to get the code.bin. You could use the base game but you won't be able to use the online features.
 

PKMWM1

Well-Known Member
OP
Newcomer
Joined
Sep 6, 2015
Messages
51
Trophies
0
Age
26
XP
279
Country
United States
You have to to get the code.bin. You could use the base game but you won't be able to use the online features.
Ok so I can keep all my modified romfs files but should build then dump a decrypted .cia file and then use its code.bin, patch it with the tools you gave me, then place that patched code.bin in the code_sections and the copied contents of the ExtractedRomfs are in place, which is the G:\saltysd\SunMoon\(Extracted RomFS contents) then I have the luma settings which enable custom code and then I can launch the game it it should work? I just finished extracting the new code.bin file. Should I name the patched file after the Pokemon Moons title key (0004000000175e00) or the update's title key (0004000e00175e00)?

Also Thank you so much for sticking with me for this long. I really appreciate it.

--------------------- MERGED ---------------------------

Ok so I can keep all my modified romfs files but should build then dump a decrypted .cia file and then use its code.bin, patch it with the tools you gave me, then place that patched code.bin in the code_sections and the copied contents of the ExtractedRomfs are in place, which is the G:\saltysd\SunMoon\(Extracted RomFS contents) then I have the luma settings which enable custom code and then I can launch the game it it should work? I just finished extracting the new code.bin file. Should I name the patched file after the Pokemon Moons title key (0004000000175e00) or the update's title key (0004000e00175e00)?

Also Thank you so much for sticking with me for this long. I really appreciate it.

I did everything but it just gives a grey screen upon launch at it still doesn't work.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    eeewww
  • K3Nv2 @ K3Nv2:
    I thought it was the toilet
  • AncientBoi @ AncientBoi:
    okies. Time to go watch YT paranormal ghost things. L8er my luvs :D
    +1
  • K3Nv2 @ K3Nv2:
    I got a massive clue
  • BakerMan @ BakerMan:
    this mf def ain't watching ghost shit, he boutta beat his meat fr
    +1
  • K3Nv2 @ K3Nv2:
    Nah he's about to be the ghost in your bedroom
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, and leave ectoplasm all over the place
  • BakerMan @ BakerMan:

    this is him being described
    +2
  • Xdqwerty @ Xdqwerty:
    Sigh
  • Xdqwerty @ Xdqwerty:
    Yawn
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I dislike the kind of drm where you have to play single player games online all the time bc of some verification bs
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Don't use games that have Easy Anti-Cheat as its been exploited many times.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, my PC can't run most AAA games so i wont
    +1
  • Xdqwerty @ Xdqwerty:
    Most of the modern AAA games
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I also heard one of the Prince of Persia games was so unfinished that it required the "24/7 online" drm so a puzzle could be done and the game could be finished. And that when the Ubisoft servers were closed the (cracked) game was impossible to finish or something like that
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's extra scummy. Ubisoft nowadays ship out incomplete games like Skull and Bones which was being worked on for nearly a decade now.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i think they have been doing that since late 2000s
    +1
  • Xdqwerty @ Xdqwerty:
    Either that or their old games were unfinished aswell but we can't notice it
  • Psionic Roshambo @ Psionic Roshambo:
    I like that games can be fixed after the fact, hate that it's being abused via beta tests... And DLC... I was a 7800 owner back in the day and loved Impossible Mission, turns out I couldn't beat it because it was actually impossible lol
  • Psionic Roshambo @ Psionic Roshambo:
    I never knew about it at the time but a fixed version was available but you had to mail in your broken copy lol
  • Psionic Roshambo @ Psionic Roshambo:
    So that version is semi rare
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, I have a rom of the ds version of impossible mission
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, I have a rom of the ds version of impossible mission