Help With Randomizing Pokemon Moon

Discussion in '3DS - Games & Content' started by John_Titor, Jan 23, 2017.

  1. John_Titor
    OP

    John_Titor Newbie

    Newcomer
    5
    0
    Jan 23, 2017
    United States
    So I recently saw a video online of someone doing a randomizer nuzlocke of pokemon sun moon, and decided that i wanted to give it a try myself. I installed homebrew and Luma from that online 3ds.guide website. I should also note that i installed a cia version of moon using FBI because i didn't want to lose/ruin my save on pokemon Sun. Anyhow, I updated moon to 1.1, and followed all of the tips/guide etc i could find online to try and get the randomizer to work. I just dont know what i am doing wrong. One weird thing i noticed is that from homebrew, i can see two moon entries, and if i try to launch one, it causes an error, and forces me to reboot, while the other just works as normal, but seemingly disallows any custom code. Im not sure if that is relevant. I've tried using the up to date SMPatcher, .isps, everything. No matter what i do, the game just refuses to get randomized. And yes, i properly carried over the modified code and put it in SaltySD/SunMoon/ etc etc. Please help me solve this, as i've literally been trying to figure this out for nearly 24 hours straight without sleep. Im losing my mind.
     
    Last edited by John_Titor, Jan 23, 2017


  2. TheMachinumps

    TheMachinumps <insert custom title here>

    Member
    291
    144
    Oct 31, 2016
    Portugal
    yes
    Well, I'm guessing you already did this, but just to be sure:
    Update Luma3DS to the latest Nightly build
    Hold select while booting to launch the Luma3DS configuration setup.
    Scroll down using the d-pad to the "Enable game patching" option and press A. (that must be activated)

    Then, you can download this: V1.1 SM Patches for SaltySD.zip (It contains patches for Sun and Moon on version 1.1, pre-compiled by myself, and you can choose to go with outlines or no outlines).
    Inside of the zipped file you should have 2 folders, open which you prefer and copy its contents (the 2 folders with the title ids of both games) to the folder "/luma/titles" on your SD card (if it doesn't exist, make sure to make one)

    You will also need a CIA (which you can get with Decrypt9 or Hourglass9) or a RomFS (which you can get from a CIA file or using Braindump, for example) file of the Pokémon game, decrypt it and edit it with this version of PK3ds (If you already knew this, then skip it, obviously)

    After randomizing the Pokémon, you want to copy the "/a/0/8/2" (if you have Pokémon Sun) or "/a/0/8/3" (if you have Pokémon Moon) file into the "/SaltySD/SunMoon/a/0/8" (if you don't have any of the folders, then make them in the correct order)

    Now, just launch the game like any other game you have on your home menu, and it should work just fine. (don't worry if it takes a little bit longer than usual)
     
    John_Titor likes this.
  3. John_Titor
    OP

    John_Titor Newbie

    Newcomer
    5
    0
    Jan 23, 2017
    United States
    EDIT: Ooookkaay... Im not sure what was different, but i put your patch in place of my old one, and for some reason, that seemed to do the trick. Not sure why this one is any different, but thanks for the help. You saved me a lot of frustration.
     
    Last edited by John_Titor, Jan 23, 2017
  4. TheMachinumps

    TheMachinumps <insert custom title here>

    Member
    291
    144
    Oct 31, 2016
    Portugal
    yes
    For trainers you need to copy the "a/1/0/4", "a/1/0/5" and "a/1/0/6" files and for static encounters, copy the "a/1/5/5" file. If you want to check in more detail which files you need to make this work, then just open pk3ds with the selected game and select "Options" and then "About GARCs". If you want, just select yes and that information will be copied to the clipboard so you can copy some other stuff.
     
    John_Titor likes this.
  5. John_Titor
    OP

    John_Titor Newbie

    Newcomer
    5
    0
    Jan 23, 2017
    United States
    Yeah, i had done that, i was just making sure i wasn't being misled somehow. Anyhow, it works now, and im guessing it was probably your patch. So thanks a lot!
     
  6. TheMachinumps

    TheMachinumps <insert custom title here>

    Member
    291
    144
    Oct 31, 2016
    Portugal
    yes
    Well, no problem. There are plenty of people out there helping people solve their problems.
    I also had a problem with hacking the game... First, I didn't have the code.bin file for my game in the right place, then, it wouldn't patch the random encounters because I was using a code.bin file that wasn't patched with the SaltySD thing and sometimes it would freeze while trying to launch the game because I was using the wrong code.bin file for the wrong version. In the end, I decided to dump a CIA of the 1.1 update, decrypting it with the PackHack tool, and patching the code.bin that came with it with the SMPatcher and SaltySD patcher. It was a pain to do all of that, but it worked!
     
    John_Titor likes this.
  7. Exypnos

    Exypnos Member

    Newcomer
    22
    1
    Jan 25, 2017
    United States
    I need help to, I'm almost 100% sure I did everything right but when I try to launch Sun it just hangs at the 3DS loading screen. I let it sit for 10 minutes and still nothing. I made a folder in Luma (which I have 6.6) called "titles" like you said and pasted the 2 folders from outline into there. That one setting in Luma that I can't remember at the top of my head is on, I know that. I copied all the files from "a" that should be copied into SaltySD on the root of the SD card. I've done all the dumping and done what I needed to do in pk3DS but I'm just so tired of this not working. I'm on a New 3DS if that matters. I'm trying to run Pokémon Sun v1.1. Please help. Also, how long do you think it would take to launch the game? Is it actually more than 10 minutes?
     
    Last edited by Exypnos, Jan 25, 2017
  8. TheMachinumps

    TheMachinumps <insert custom title here>

    Member
    291
    144
    Oct 31, 2016
    Portugal
    yes
    Well, I don't know if it worked for Pokémon Sun, but it should have. I'm now installing the game to test (using freeshop), even though I would prefer to use a legit game cart (I bought all of my Pokémon games on store, all physical copies, except for Pokémon Sun, but that one is on my brother's 2ds and it's a digital copy, that came pre-installed, and since it doesn't, and won't have CFW, I can't get it by any means).
     
  9. KunoichiZ

    KunoichiZ GBAtemp Guru

    Member
    7,620
    2,962
    Mar 16, 2012
    United States
    For SaltySD on 6.6, you need the following:

    1) Patch the code.bin from the 1.1 update and place it in luma/code_sections, not luma_titles.
    2) Make sure you're placing the files in SaltySD/SunMoon, and not just in SaltySD.
    3. Make sure that you have "Enable region/language emu. and ext. .code" enabled in your Luma settings.

    It takes the same amount of time to launch the game as you would launch any normal 3DS game. It's your code.bin and your placement of it that's giving you issues.
     
  10. Exypnos

    Exypnos Member

    Newcomer
    22
    1
    Jan 25, 2017
    United States
    Didn't work... This is so dumb. I randomized the starters and after sitting for 20 minutes of dialogue the starters are normal. Weird question, but what is the file size of the "code.bin"? Of my desperate scavenger hunt for files to get the randomizer to work, I have 3 files for "code.bin" and I'm unsure of which one to use. One of them is 3 KB, one of them is 5,588 KB, and the last in 5,580 KB. Please help. I've been trying all week to get this damn thing to work.
     
  11. TheMachinumps

    TheMachinumps <insert custom title here>

    Member
    291
    144
    Oct 31, 2016
    Portugal
    yes
    Note that the text for the starters doesn't actually change. The only way to see if they are random is to get to the nickname screen. (Unless you did that and it's still the same)
     
  12. Exypnos

    Exypnos Member

    Newcomer
    22
    1
    Jan 25, 2017
    United States
    I loaded up a save file and everything was normal. Trainers and wild encounters, so no it didn't work. Here are some images of my file setup. http://imgur.com/a/aXCjN http://imgur.com/qGRBDqW (a having its respective files.)
     
    Last edited by Exypnos, Jan 25, 2017
  13. MarcusCarter

    MarcusCarter Goodra the Great

    Member
    438
    104
    Jan 7, 2012
    United States
    Indianapolis, IN
    code.bin goes in sd:/code_sections/<titleid>/, not sd:/code_sections/...
     
  14. Exypnos

    Exypnos Member

    Newcomer
    22
    1
    Jan 25, 2017
    United States
    So you're saying on the root? Wouldn't it be sd:/luma/code_sections/<(Sun's Id)>/code.bin ?
     
  15. MarcusCarter

    MarcusCarter Goodra the Great

    Member
    438
    104
    Jan 7, 2012
    United States
    Indianapolis, IN
    Yeah, sorry, my bad. sd:/luma/code_sections/<titleid>/ is correct.

    Edit: in your case, the titleid for Sun is 0004000000164800
     
    Last edited by MarcusCarter, Jan 26, 2017
  16. Exypnos

    Exypnos Member

    Newcomer
    22
    1
    Jan 25, 2017
    United States
    Still doesn't work...
     
  17. MarcusCarter

    MarcusCarter Goodra the Great

    Member
    438
    104
    Jan 7, 2012
    United States
    Indianapolis, IN
    Is the patched code.bin that you're using still the 5580 KB one? The patched code.bin should be 5588 KB. Use the proper code.bin in "V1.1 SM Patches for SaltySD.zip" from the 2nd post of this thread.

    Edit: also, show me the a screenshot of the directory structure of your /SaltySD/SunMoon/a/ folder.
     
    Last edited by MarcusCarter, Jan 26, 2017
  18. Exypnos

    Exypnos Member

    Newcomer
    22
    1
    Jan 25, 2017
    United States
    I downloaded the file from the the 2nd post of the thread and when I extracted the files code.bin in 0004000000164800 came out to be 5588 KB.
     
  19. MarcusCarter

    MarcusCarter Goodra the Great

    Member
    438
    104
    Jan 7, 2012
    United States
    Indianapolis, IN
    The code.bin in your screenshot is 5580KB, though.

    — Posts automatically merged - Please don't double post! —

    check the edit to my second to last post (#17).
     
  20. Exypnos

    Exypnos Member

    Newcomer
    22
    1
    Jan 25, 2017
    United States
    Well then the 5580 KB one was from a patch I got from someone else. And also it wasn't called "code.bin" I renamed it that from (sun's id).bin. And show you the directory as in? There's a lot of folders and files for randomizing static encounters and trainers, not only wild encounters. I'm thinking now I just can't/shouldn't be randomizing.
     
    Last edited by Exypnos, Jan 26, 2017