Launching Silksong Failed #2942

Closed
opened 2026-10-10 18:41:06 +00:00 by oi-butchuh · 4 comments
oi-butchuh commented 2026-10-10 18:41:06 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oi-butchuh on 2026-10-10T18:41:06Z.


im trying to launch silksong, ive set up anyps5 all files are present, but when i try to launch the game this error shows up,

-> FAILED
Failed to load module: D:\holosilksong_decrypted\libs\Il2cppUserAssemblies.prx
GetLastError: 193 - %1 is not a valid Win32 application.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5794182474 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2942). Originally posted by [oi-butchuh](https://github.com/oi-butchuh) on 2026-10-10T18:41:06Z. --- im trying to launch silksong, ive set up anyps5 all files are present, but when i try to launch the game this error shows up, -> FAILED Failed to load module: D:\holosilksong_decrypted\libs\Il2cppUserAssemblies.prx GetLastError: 193 - %1 is not a valid Win32 application.
TheAggie commented 2026-10-10 20:32:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by TheAggie on 2026-10-10T20:32:46Z.


I hit the same error with a Unity IL2CPP homebrew from the catalog, Middle Ages Ping Pong (PPSA28319), on main b8a083b2:

Failed to load module: ...\libs\Il2cppUserAssemblies.prx

As far as I can tell it affects every Unity IL2CPP title. There are two parts.

1. The eboot needs modules that sit in Media/Modules. The eboot's DT_NEEDED lists Il2cppUserAssemblies.prx and PS5Util.prx. Unity ships them in Media/Modules/ (as SELF files), not in sce_module/. The relinker only resolves guest modules from sce_module, sce_modules and prx (GuestModuleBuilder.cpp). So it treats them as system libraries, and the exe tries to load them from libs\. That's the error above (GetLastError 193 in your case, because something else with that name was in libs\).

2. Unity also loads the same module at runtime by path. With the modules copied into sce_module (after ps5-native-tool self --extract), the exe starts. Then the player calls sceKernelLoadStartModule("/app0/Media/Modules/Il2CppUserAssemblies.prx"):

  • It fails with 0x80020002 (unable to load /app0/Media/Modules/Il2CppUserAssemblies.prx), because libkernel looks for <path>.guest.prx next to it.
  • IL2CPP then starts half-initialized. In this title that ends in a call through a null il2cpp_set_find_plugin_callback pointer: the module's name-to-API map lookup returns 0 for it.

Workaround that gets past both:

  1. Extract Media/Modules/*.prx to ELF.
  2. Put the ELF copies in sce_module/ before relinking the eboot.
  3. Also relink each one on its own to its runtime path: relinker --windows --skip-sce-module Il2CppUserAssemblies.prx app0/Media/Modules/Il2CppUserAssemblies.prx.guest.prx, and the same for PS5Util.prx.

With that, PPSA28319 gets through IL2CPP start-up and runs until its first 2x MSAA draw (register 0x2f8 = 0x00108001, which #419 covers).

This leaves two copies of each module (the startup one and the runtime one). A cleaner fix is probably for the relinker to resolve DT_NEEDED names from Media/Modules (case-insensitively: the eboot asks for Il2cpp, the file is Il2Cpp) and write the artifact there. Then the startup dependency and the runtime load would get the same module.

  • Why I'm asking first: test_guest_module_identity.py and test_guest_needed_nested_modules.py currently assert that providers in Media/Modules are not converted. Is that deliberate?
  • Offer: if a change there would be welcome, I can send a PR.

Windows 11, MinGW-w64 GCC 15.2.0, RTX 5070 Ti.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6101892072 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2942#issuecomment-6101892072). Originally posted by [TheAggie](https://github.com/TheAggie) on 2026-10-10T20:32:46Z. --- I hit the same error with a Unity IL2CPP homebrew from the catalog, Middle Ages Ping Pong (PPSA28319), on `main` b8a083b2: ``` Failed to load module: ...\libs\Il2cppUserAssemblies.prx ``` As far as I can tell it affects every Unity IL2CPP title. There are two parts. **1. The eboot needs modules that sit in `Media/Modules`.** The eboot's `DT_NEEDED` lists `Il2cppUserAssemblies.prx` and `PS5Util.prx`. Unity ships them in `Media/Modules/` (as SELF files), not in `sce_module/`. The relinker only resolves guest modules from `sce_module`, `sce_modules` and `prx` (`GuestModuleBuilder.cpp`). So it treats them as system libraries, and the exe tries to load them from `libs\`. That's the error above (`GetLastError` 193 in your case, because something else with that name was in `libs\`). **2. Unity also loads the same module at runtime by path.** With the modules copied into `sce_module` (after `ps5-native-tool self --extract`), the exe starts. Then the player calls `sceKernelLoadStartModule("/app0/Media/Modules/Il2CppUserAssemblies.prx")`: - It fails with `0x80020002` (`unable to load /app0/Media/Modules/Il2CppUserAssemblies.prx`), because libkernel looks for `<path>.guest.prx` next to it. - IL2CPP then starts half-initialized. In this title that ends in a call through a null `il2cpp_set_find_plugin_callback` pointer: the module's name-to-API map lookup returns 0 for it. **Workaround that gets past both:** 1. Extract `Media/Modules/*.prx` to ELF. 2. Put the ELF copies in `sce_module/` before relinking the eboot. 3. Also relink each one on its own to its runtime path: `relinker --windows --skip-sce-module Il2CppUserAssemblies.prx app0/Media/Modules/Il2CppUserAssemblies.prx.guest.prx`, and the same for `PS5Util.prx`. With that, PPSA28319 gets through IL2CPP start-up and runs until its first 2x MSAA draw (`register 0x2f8 = 0x00108001`, which #419 covers). This leaves two copies of each module (the startup one and the runtime one). A cleaner fix is probably for the relinker to resolve `DT_NEEDED` names from `Media/Modules` (case-insensitively: the eboot asks for `Il2cpp`, the file is `Il2Cpp`) and write the artifact there. Then the startup dependency and the runtime load would get the same module. - **Why I'm asking first:** `test_guest_module_identity.py` and `test_guest_needed_nested_modules.py` currently assert that providers in `Media/Modules` are not converted. Is that deliberate? - **Offer:** if a change there would be welcome, I can send a PR. Windows 11, MinGW-w64 GCC 15.2.0, RTX 5070 Ti. AI-assisted (Claude Code).
oneandonlydean commented 2026-10-11 05:06:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T05:06:34Z.


Yes, it's deliberate: since #2708 the relinker takes guest modules only from sce_module, sce_modules and prx. #846 adds --module-dir for Media/Modules and Media/Plugins (needed modules start with the executable, the rest when the title loads them); it needs a rebase. Does PPSA28319 start with #846 and --module-dir Media/Modules?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6105688358 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2942#issuecomment-6105688358). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T05:06:34Z. --- Yes, it's deliberate: since #2708 the relinker takes guest modules only from `sce_module`, `sce_modules` and `prx`. #846 adds `--module-dir` for `Media/Modules` and `Media/Plugins` (needed modules start with the executable, the rest when the title loads them); it needs a rebase. Does PPSA28319 start with #846 and `--module-dir Media/Modules`?
oi-butchuh commented 2026-10-11 15:58:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oi-butchuh on 2026-10-11T15:58:12Z.


excuse me for the late reply, i thought i would be ignored like on discord. yes a change is welcome, please send me the pr @TheAggie

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6110868572 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2942#issuecomment-6110868572). Originally posted by [oi-butchuh](https://github.com/oi-butchuh) on 2026-10-11T15:58:12Z. --- excuse me for the late reply, i thought i would be ignored like on discord. yes a change is welcome, please send me the pr @TheAggie
oneandonlydean commented 2026-10-11 23:25:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:25:55Z.


Closing: #846 is merged. Relink with --module-dir Media/Modules (and Media/Plugins if the title has one). Modules that are still SELF containers have to be extracted first. Reopen with the log if PPSA12544 still fails to start that way.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115088206 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2942#issuecomment-6115088206). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T23:25:55Z. --- Closing: #846 is merged. Relink with `--module-dir Media/Modules` (and `Media/Plugins` if the title has one). Modules that are still SELF containers have to be extracted first. Reopen with the log if PPSA12544 still fails to start that way.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#2942
No description provided.