Overview of the libultraship Scripting System
mainThe scripting system allows mods to be packaged as .o2r files (standard ZIP archives) containing game assets, a manifest.json metadata file, and either C source files for JIT-compilation or pre-compiled shared libraries.
When a mod is loaded, the engine uses TCC (Tiny C Compiler) to JIT-compile C sources or loads the appropriate platform-specific binary. The lifecycle is managed through ModInit and ModExit entry points.