Repository navigation
add native library loading and update readme - #88
Conversation
Added note about mobile versions and Mono mod loader.
|
Tested on android.. it works! i got holy c running! |
|
alr nvm mods can load native libraries as "mods" themselves. anyway this should be complete now |
inmny
left a comment
There was a problem hiding this comment.
Review by Codex (GPT-6.2-Sol).
I’d hold off on merging until native library loading works both at startup and when enabling mods in-game, and existing Android asset bundles remain compatible.
-
[P1] Keep the startup queue running when one mod’s native library fails to load (
WorldBoxMod.cs:148)
LoadNativeLibrariesFromFoldercan throw if a library has the wrong architecture, a dependency is missing, ororder.jsonis invalid. The exception escapes the startup callback, andSmoothLoaderadvances its queue only after the callback returns successfully. That means one broken mod can prevent later mods and NeoModLoader itself from finishing initialization. Please record the error against the affected mod, skip loading it, and let unrelated startup tasks continue. -
[P1] Load native libraries when enabling a mod in-game (
WorldBoxMod.cs:148)
The new loader is called only at startup. When a player enables a mod from Manage Mods,TryLoadCompiledModAtRuntimeloads its resources and asset bundles, then callsLoadModwithout loading its native libraries. A mod that callsGetNativeFunctionfromOnLoadcan therefore fail to enable in-game even though it loads at startup. Please share the native library loading step between both paths and run it beforeOnLoad. -
[P2] Preserve support for existing Android asset bundle folders (
utils/ResourcesPatch.cs:138)
Changing the Android folder fromAssetBundles/andtoAssetBundles/androidcauses existing mods packaged underandto lose their asset bundles. Please keepandas the existing convention, or fall back to it whenandroidis absent.
The Windows CI check and a local build passed. The findings above are based on tracing the affected code paths; I haven’t verified them in-game.
|
-the "and" folder hasn't been used by anyone to my knowledge (yet) |
why? idk. seems fun. also allows modders to create their own mods in native code like holy C or rust