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.2k stars 163 forks source link

When MO2 is launched through command line, F4SE doesn't load the vfs #97

Closed azamorapl closed 6 years ago

azamorapl commented 7 years ago

If I launch MO2 and F4SE through the command line, the virtual file system is not loaded, and I can't see any mods. However, if I do it through the GUI, F4SE and the vfs load fine.

The same happens if I add Steam as an external executable in the GUI, but it's easier to test just by launching F4SE.

Example commands:

"ModOrganizer.exe" -p "Default" "F4SE"
"ModOrganizer.exe" -p "Default" "Steam" (given you have added an executable called Steam with -applaunch 377160 as arguments through the GUI)

I've skimmed through the logs and haven't figured out what the cause is. I see that I get the following message in mo_interface.log when I run it succesfully through the UI, not command line:

[D] Failed to get process exit code: Error 6

I've tried with ALL versions of MO2 and this issue is present. Also tried running as administrator and compatibility mode. This works fine in MO1.

Just a wild guess, but could it be because too many processes are spawned and MO can't hook itself to them?

I'm attaching success and failure logs:

logs.zip

Silarn commented 6 years ago

This sounds a bit like it's failing to call usvfs_proxy.exe - and I wonder if it's still present on the latest builds. I'll try to test this sometime soon.

azamorapl commented 6 years ago

I've just tested with the latest build from Discord and can confirm that this still happens.

Silarn commented 6 years ago

I believe this is related to the same problem as desktop shortcuts. This should be resolved on the latest builds.