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.09k stars 158 forks source link

FNIS SE Error 2012 on Linux unless Data/tools/GenerateFNIS_for_Users directory exists in Skyrim SE Install Directory #1678

Open rallias opened 2 years ago

rallias commented 2 years ago

The problem:

Unless I create a directory in the Skyrim SE install directory Data/tools/GenerateFNIS_for_Users, or I install FNIS unmanaged, running GenerateFNISForUsers will error out with the following error (or something similar):

ERROR(2012): Could not generate: defaultfemale.hkx defaultmale.hkx weapequip.hkx staggerbehavior.hkx sprintbehavior.hkx shout_behavior.hkx mt_behavior.hkx magicmountedbehavior.hkx magicbehavior.hkx magic_readied_direction_behavior.hkx 1hm_locomotion.hkx 1hm_behavior.hkx 0_master.hkx

Because the workaround of creating a directory Data/tools/GenerateFNIS_for_Users works, I believe this to be an issue specific to ModOrganizer2 or it's bundled components.

To Reproduce:

Steps to reproduce the behavior:

  1. Install ModOrganizer2 with Proton: env WINEDLLOVERRIDES="xaudio2_7=n,b" STEAM_COMPAT_CLIENT_INSTALL_PATH="/home/rallias/.steam/steam" STEAM_COMPAT_DATA_PATH="/home/rallias/.steam/steam/steamapps/compatdata/489830" /home/rallias/.steam/root/steamapps/common/Proton\ -\ Experimental/proton run modorganizer2_installer.exe
  2. Launch ModOrganizer2 with Proton: env WINEDLLOVERRIDES="xaudio2_7=n,b" STEAM_COMPAT_CLIENT_INSTALL_PATH="/home/rallias/.steam/steam" STEAM_COMPAT_DATA_PATH="/home/rallias/.steam/steam/steamapps/compatdata/489830" /home/rallias/.steam/root/steamapps/common/Proton\ -\ Experimental/proton run /home/rallias/.steam/steam/steamapps/compatdata/489830/pfx/drive_c/Modding/MO2/ModOrganizer.exe
  3. Install FNIS SE 7.6 from Nexus.
  4. Create Executable profile like follows: image
  5. Run this executable, using FNIS as you would normally.
  6. Observe error.
  7. Note wine: could not open working directory L"Z:\\home\\rallias\\.local\\share\\Steam\\steamapps\\common\\Skyrim Special Edition\\data\\tools\\GenerateFNIS_for_Users\\", starting in the Windows directory. error in terminal you launched ModOrganizer2 from several times, I believe that relevant.
  8. Close FNIS
  9. Create directory Data/tools/GenerateFNIS_for_Users in Skyrim Install.
  10. Relaunch FNIS
  11. Observe no error.

Environment:

Link to Mod Organizer logs:

USVFS:

log

MO Interface:

log

JackH3103 commented 1 year ago

I get the same error for the GOG version.

I have Skyrim SE installed in drive_c/GOG Games/Skyrim Anniversary Edition/ and MO2 in drive_c/Modding/MO2/. The FNIS exe is in drive_c/Modding/MO2/mods/FNIS Behavior SE 7_6/tools/GenerateFNIS_for_Users/GenerateFNISforUsers. All of this is in the same Wine prefix.

The wine error is wine: could not open working directory L"C:\\GOG Games\\Skyrim Anniversary Edition\\data\\tools\\GenerateFNIS_for_Users\\", starting in the Windows directory.

qudix commented 1 year ago

We don't officially support Linux, and unless an outside developer familiar with wine knows how to fix it there's little we can do. We can only fix issues that are reproducible on Windows as that's what we use and what USVFS hooks into.

DominicWatson commented 1 year ago

Putting this here to clarify for other Linux users. The workaround is to create an empty folder in the location where your Skyrim Executable is installed. In my case, I installed with steam and this folder is found at:

~/.steam/steam/steamapps/common/Skyrim Special Edition

There was already a Data directory beneath that for me, so I created an empty tools/GenerateFNIS_for_Users directory beneath that so that I had an empty ~/.steam/steam/steamapps/common/Skyrim Special Edition/Data/tools/GenerateFNIS_for_Users directory.

FNIS is installed with Mod Installer 2 for me, and my profile lives in a completely separate location (~/.steam/steam/steamapps/compatdata/489830/pfx/drive_c/users/steamuser/AppData/Local/ModOrganizer/Skyrim Special Edition/ - with mods beneath this).

Now, when I run Mod Installer and choose the "Run FNIS" option from the main menu (icon with jigsaw puzzle), FNIS appears to generate all the files, though no FNIS UI shows up - I just see this happening in the console.

I'll try to get round to getting a post up for LInux installation in 2023, but for now hopefully this helps someone ^^. @rallias - do you have a link where you found this workaround mentioned?

rallias commented 1 year ago

@DominicWatson To be honest, I think it was trial and error, not research, although I can't say for sure given how long it's been.

Ant-V commented 1 year ago

Putting this here to clarify for other Linux users. The workaround is to create an empty folder in the location where your Skyrim Executable is installed. In my case, I installed with steam and this folder is found at:

~/.steam/steam/steamapps/common/Skyrim Special Edition

There was already a Data directory beneath that for me, so I created an empty tools/GenerateFNIS_for_Users directory beneath that so that I had an empty ~/.steam/steam/steamapps/common/Skyrim Special Edition/Data/tools/GenerateFNIS_for_Users directory.

FNIS is installed with Mod Installer 2 for me, and my profile lives in a completely separate location (~/.steam/steam/steamapps/compatdata/489830/pfx/drive_c/users/steamuser/AppData/Local/ModOrganizer/Skyrim Special Edition/ - with mods beneath this).

Now, when I run Mod Installer and choose the "Run FNIS" option from the main menu (icon with jigsaw puzzle), FNIS appears to generate all the files, though no FNIS UI shows up - I just see this happening in the console.

I'll try to get round to getting a post up for LInux installation in 2023, but for now hopefully this helps someone ^^. @rallias - do you have a link where you found this workaround mentioned?

I can confirm that this fix also works for macOS under all implementations of Wine (like Crossover and Wineskin)

alexzk1 commented 1 year ago

Didn't work. FNIS works when it is not redirected to dedicated plugin (i.e. overwrite folder), but then it is replaced by other mods. If you setup redirection, then it will do some files into output folder you've set, and some files into "override" and maybe in skyrim's too. So it is mess with output & redirection there, need to catch up and symlink all of them into single place.

ianare commented 7 months ago

Didn't work. FNIS works when it is not redirected to dedicated plugin (i.e. overwrite folder), but then it is replaced by other mods. If you setup redirection, then it will do some files into output folder you've set, and some files into "override" and maybe in skyrim's too. So it is mess with output & redirection there, need to catch up and symlink all of them into single place.

Works for me on Ubuntu using wine 9.0 staging and latest version of MO2 and FNIS. Outputs correctly to redirect folder as long as the empty (dummy) folder is created.