Error 1 when loading Pokemon moon randomized

Issue:
So a guy in my youtube suscription box released a video yesterday about how to randomize a pokemon rom that will be compatible with citra. I did followed all the steps requiered in the video: which roughly means that I encrypted (with Hacking Tool kit 3ds) a decrypted moon rom that I already had, randomized the encrypted files using PK3DS and finally decrypted the randomized files. But then when I try to load the file a error message appear and the rom will not load.
Is Citra now able to run modified games? (last time I checked it wasn’t)

System Information

  • Operating System: Windows 10 familly
  • CPU: Intel Core i5-7200U
  • GPU: NVIDIA Geforce GTX 950m
  • Citra Version (found in title bar): Citra Nightly HEAD-587450c
  • Game: Pokemon Moon (modified with PK3DS)
  • Screenshot of Issue (include the full Citra window including titlebar):

Log:

./citra-qt : [ 0.000000] Frontend citra_qt/main.cpp:CheckForUpdates:464: Update
check started
Au caractère Ligne:1 : 1

  • ./citra-qt 2>log.txt
  •   + CategoryInfo          : NotSpecified: ([   0.000000] F...e check started:String) [], 
      RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

[ 3.542125] Frontend citra_qt/main.cpp:OnUpdateFound:477: No updates found
[ 29.735444] Frontend citra_qt/main.cpp:BootGame:604: Citra starting…
[ 29.776453] Render.OpenGL
video_core/renderer_opengl/renderer_opengl.cpp:Init:488: GL_VERSION: 3.3.0 - Build
21.20.16.4534
[ 29.776470] Render.OpenGL
video_core/renderer_opengl/renderer_opengl.cpp:Init:489: GL_VENDOR: Intel
[ 29.776475] Render.OpenGL
video_core/renderer_opengl/renderer_opengl.cpp:Init:490: GL_RENDERER: Intel® HD Graphics
620
[ 29.783042] Loader core/loader/ncch.cpp:Load:159: Program ID: 0004000000175E00
[ 29.783171] Service.FS core/file_sys/ncch_container.cpp:OpenFile:109: Failed
to open C:\Users\mitte\AppData\Roaming/Citra/sdmc/Nintendo 3DS/0000000000000000000000000000
0000/00000000000000000000000000000000/title/0004000e/00175e00/content/00000000.app
[ 29.783302] Core core/core.cpp:Load:114: Failed to load ROM (Error 1)!

All I can say is that the ROM wasn’t rebuilt properly. From my experience with pk3DS, it renames code.bin to .code.bin which could break the ROM.

Thanks for the answer!
Do you have any idea how to be sure that this problem will not happen? For now I’ll just try to recreate a new rom. See if it works.

Some tools (IIRC 3DS Hacking Toolkit is one) will correct the name for you when rebuilding.

Yes i tried to do all this and it still not work please i really need help