Ultra Sun randomized wont launch

I randomized a pokemon Ultra Sun 3DS file by doing the following:

Extracted the 3DS file in HackingTookit3DS V9, moved files and then used pk3DS Build 301 to randomize. Then copied the ExtractedRomFS back into folder with HackingToolkit3DS and rebuilt the 3DS file. When I try opening it in Citra I get:

“An Unknown error occured. Please see the log for more details.”

[ 0.000000] Frontend citra_qt\main.cpp:BootGame:382: Citra starting…
[ 0.125309] Service.APT core\hle\service\apt\apt.cpp:Init:1004: Unable to load shared font
[ 0.126283] Render.OpenGL video_core\renderer_opengl\renderer_opengl.cpp:Init:488: GL_VERSION: 3.3.0 NVIDIA 388.13
[ 0.126625] Render.OpenGL video_core\renderer_opengl\renderer_opengl.cpp:Init:489: GL_VENDOR: NVIDIA Corporation
[ 0.126669] Render.OpenGL video_core\renderer_opengl\renderer_opengl.cpp:Init:490: GL_RENDERER: GeForce GTX 970/PCIe/SSE2
[ 0.129199] Loader core\loader\ncch.cpp:Load:349: Program ID: 00040000001B5000
[ 0.129345] Core core\core.cpp:Load:104: Failed to load ROM (Error 1)!
[ 0.130793] WebService web_service\web_backend.cpp:PostJson:42: Environment variables CITRA_WEB_SERVICES_USERNAME and CITRA_WEB_SERVICES_TOKEN must be set to POST JSON

The 3DS file works before randomising. I also have low FPS issue and the game running slow when not randomised.

  • Operating System: Windows 10
  • CPU:
  • GPU: 970 GTX
  • Citra Version (found in title bar): Citra Bleeding Edge | HEAD-0ceraf22
  • Game: Pokemon Ultra Sun
  • Screenshot of Issue (include the full Citra window including titlebar):

Log:
[ 0.000000] Frontend citra_qt\main.cpp:BootGame:382: Citra starting…
[ 0.125309] Service.APT core\hle\service\apt\apt.cpp:Init:1004: Unable to load shared font
[ 0.126283] Render.OpenGL video_core\renderer_opengl\renderer_opengl.cpp:Init:488: GL_VERSION: 3.3.0 NVIDIA 388.13
[ 0.126625] Render.OpenGL video_core\renderer_opengl\renderer_opengl.cpp:Init:489: GL_VENDOR: NVIDIA Corporation
[ 0.126669] Render.OpenGL video_core\renderer_opengl\renderer_opengl.cpp:Init:490: GL_RENDERER: GeForce GTX 970/PCIe/SSE2
[ 0.129199] Loader core\loader\ncch.cpp:Load:349: Program ID: 00040000001B5000
[ 0.129345] Core core\core.cpp:Load:104: Failed to load ROM (Error 1)!
[ 0.130793] WebService web_service\web_backend.cpp:PostJson:42: Environment variables CITRA_WEB_SERVICES_USERNAME and CITRA_WEB_SERVICES_TOKEN must be set to POST JSON

Bleeding Edge is discontinued. Please retest this with the latest Canary release which you can get from our installer on our website.

Still the same problem.

setGeometry: Unable to set geometry 640x480+484+373 on QWidgetWindow/‘QMessageBoxClassWindow’. Resulting geometry: 943x285+484+373 (frame: 3, 26, 3, 3, custom margin: 0, 0, 0, 0, minimum size: 943x285, maximum size: 943x285).
[ 0.000000] Frontend citra_qt/main.cpp:CheckForUpdates:510: Update check started
[ 1.336190] Frontend citra_qt/main.cpp:OnUpdateFound:523: No updates found
[ 9.061378] Frontend citra_qt/main.cpp:BootGame:650: Citra starting…
[ 9.210843] Render.OpenGL video_core/renderer_opengl/renderer_opengl.cpp:Init:488: GL_VERSION: 3.3.0 NVIDIA 388.13
[ 9.211293] Render.OpenGL video_core/renderer_opengl/renderer_opengl.cpp:Init:489: GL_VENDOR: NVIDIA Corporation
[ 9.211363] Render.OpenGL video_core/renderer_opengl/renderer_opengl.cpp:Init:490: GL_RENDERER: GeForce GTX 970/PCIe/SSE2
[ 9.304556] Loader core/loader/ncch.cpp:Load:159: Program ID: 00040000001B5000
[ 9.304870] Service.FS core/file_sys/ncch_container.cpp:OpenFile:109: Failed to open C:\Users\Admin\AppData\Roaming/Citra/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/0004000e/001b5000/content/00000000.app
[ 9.305046] Core core/core.cpp:Load:115: Failed to load ROM (Error 1)!

pk3DS renames a certain file when modifying the game.

Citra is currently in very early stages of development. Games usually run less than full-speed even on the best computers. Expect bugs and glitches to appear in most games. Many features for a more stable emulation are still in the works. For any major updates, please visit our Homepage.

It did indeed change the file name to .code.bin. Was hoping changing that file name then rebuilding again would work but no such luck…

Edit: The HackingToolkit never seemed to finish so i thought it wasnt working but when I closed it, it had actually made an edited file which seems to work. So after 2 full days of trying, finally got what I wanted XD thank you for the help.

Hey. I need help with randomizing and rebuilding a 3ds file to be used in Citra. Specifically looking to remove Trade Evolutions in ORAS. I followed the pk3DS tutorial and randomized the ROM, but I’m not sure on how to rebuild the 3ds file from the luma folder. Can you please help me?

This sort of question isn’t really supposed to be asked in the Citra forums. Please ask it in their forums / page.

How did you actually get it to work? I renamed my .code.bin to code.bin but it just removes my randomization when it loads

Did you rebuild the file using the HackingToolKit after renaming the code.bin file?