ModOrganizer2 / modorganizer

Mod manager for various PC games. Discord Server: https://discord.gg/ewUVAqyrQX if you would like to be more involved
http://www.nexusmods.com/skyrimspecialedition/mods/6194
GNU General Public License v3.0
2.13k stars 158 forks source link

[USVFS] OBSE Steam version can't be launched and hooked from MO2 #447

Closed PrivateUnknown closed 5 years ago

PrivateUnknown commented 6 years ago

The problem

The Script Extender workaround for Oblivion will not get loaded by OBSE when launching through Steam. obse.log displays the following:

plugin E:\Steam\steamapps\common\Oblivion\Data\OBSE\Plugins\usvfs_x86.dll does not appear to be an OBSE plugin

However hook.dll from MO1.3.5 will get loaded by OBSE and does work correctly with MO2.

Environment

Al12rs commented 5 years ago

OBSE steam version is just a dll from what I gathered and it relies on steam to get loaded, so if the game is started from MO2 OBSE is not loaded. The exact mechanism that OBSE uses to load needs to be investigated and we need to come up with a solution, either some whay to load usvfs even if the game is started from steam (like for MO1 and hook.dll) or to do it the other way around, find a way to load the OBSE dll like steam does for the game.

Al12rs commented 5 years ago

Usvfs is now able to load arbitrary libraries into arbitrary processes immediately after usvfs initialization. With this new system OBSE can be loaded into the game without the need to run it from Steam. More info here: https://github.com/ModOrganizer2/modorganizer/wiki/Running-Oblivion-OBSE-with-MO2