Removal of Star Trek Voyager: Elite Force Single-player #2
thecybermind
started this conversation in
General
Replies: 1 comment
-
I tried again to re-order the initialization in GetGameAPI games so that the mod could be loaded before returning from GetGameAPI() but it still ended up failing, so there is clearly some other interaction that would need fixing. Also, Jedi Academy and Jedi Knight II single players function the same, so no plans to add support for them either. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While adding support for GetGameAPI engines, I included STVOYSP.
After running it, it would crash at odd locations. Not before vmMain, or after entering the mod's export->Init function as I expected. But when calling syscall(G_PRINT). It was actually calling a syscall in the engine, rather than jumping to STVOYSP_syscall in game_stvoysp.cpp.
As it turns out, the single player mod is compiled with both the cgame and game code in the same DLL. The cgame system uses dllEntry/vmMain and the game system uses GetGameAPI. As a result, both entry points of QMM were being called, and it was getting increasingly difficult in having custom code JUST for STVOYSP to handle dllEntry being called first, passing the cgame syscall directly to the mod's dllEntry, then also passing all cgame vmMain calls through (but NOT the game calls routed through the export struct) without handling them.
The mod loading order had to change drastically, which basically ended up having a separate call flow just for STVOYSP.
I ended up removing support entirely, as I'm not sure it would have really gotten any use even if I got it working anyway.
Beta Was this translation helpful? Give feedback.
All reactions