bottlesdevs / Bottles

Run Windows software and games on Linux
https://usebottles.com
GNU General Public License v3.0
6.33k stars 265 forks source link

[BUG] Bottles can't find dll files needed to run Mod Organizer #319

Closed poperigby closed 3 years ago

poperigby commented 3 years ago

Describe the bug I'm attempting to run Mod Organizer 2 through bottles, but it doesn't seem to be able to find the dll files it needs to run. Every time I run it, it fails to launch and Bottles outputs this in the console:

Bottles output ```018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Quick.dll") not found 018c:err:module:import_dll Library Qt5Quick.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WebEngineCore.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WebEngineCore.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WebEngineCore.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WebEngineCore.dll") not found 018c:err:module:import_dll Library Qt5WebEngineCore.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WebEngineWidgets.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Quick.dll") not found 018c:err:module:import_dll Library Qt5Quick.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WebEngineWidgets.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Widgets.dll") not found 018c:err:module:import_dll Library Qt5Widgets.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5PrintSupport.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5PrintSupport.dll") not found 018c:err:module:import_dll Library Qt5PrintSupport.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WebEngineWidgets.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Widgets.dll") not found 018c:err:module:import_dll Library Qt5Widgets.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WebEngineWidgets.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WebEngineWidgets.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Quick.dll") not found 018c:err:module:import_dll Library Qt5Quick.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5QuickWidgets.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Widgets.dll") not found 018c:err:module:import_dll Library Qt5Widgets.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5QuickWidgets.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5QuickWidgets.dll") not found 018c:err:module:import_dll Library Qt5QuickWidgets.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WebEngineWidgets.dll") not found 018c:err:module:import_dll Library Qt5WebEngineWidgets.dll (which is needed by L"C:\\Program Files\\MO2\\ModOrganizer.exe") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5WinExtras.dll") not found 018c:err:module:import_dll Library Qt5WinExtras.dll (which is needed by L"C:\\Program Files\\MO2\\uibase.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Quick.dll") not found 018c:err:module:import_dll Library Qt5Quick.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5QuickWidgets.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Widgets.dll") not found 018c:err:module:import_dll Library Qt5Widgets.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5QuickWidgets.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5QuickWidgets.dll") not found 018c:err:module:import_dll Library Qt5QuickWidgets.dll (which is needed by L"C:\\Program Files\\MO2\\uibase.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Widgets.dll") not found 018c:err:module:import_dll Library Qt5Widgets.dll (which is needed by L"C:\\Program Files\\MO2\\uibase.dll") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\uibase.dll") not found 018c:err:module:import_dll Library uibase.dll (which is needed by L"C:\\Program Files\\MO2\\ModOrganizer.exe") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Widgets.dll") not found 018c:err:module:import_dll Library Qt5Widgets.dll (which is needed by L"C:\\Program Files\\MO2\\ModOrganizer.exe") not found 018c:err:module:import_dll Library d3d11.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library dxgi.dll (which is needed by L"C:\\Program Files\\MO2\\dlls\\Qt5Gui.dll") not found 018c:err:module:import_dll Library Qt5Gui.dll (which is needed by L"C:\\Program Files\\MO2\\ModOrganizer.exe") not found 018c:err:module:LdrInitializeThunk Importing dlls for L"C:\\Program Files\\MO2\\ModOrganizer.exe" failed, status c0000135 ```

Installation

To Reproduce Steps to reproduce the behavior:

  1. Create a new Gaming bottle,
  2. Download the installer for Mod Organizer 2.4.2,
  3. Run the installer from within the Gaming bottle,
  4. Choose the default options in the install wizard,
  5. Attempt to run the newly installed Mod Organizer program from within Bottles,

Expected behavior Mod Organizer launches successfully,

Desktop (please complete the following information):

mirkobrombin commented 3 years ago

It seems more of a problem with Wine than Bottles 🤔 Anyway, I took a look at the installer script for Lutris and it looks like it needs several tweaks to work (even if I read that it doesn't work for some anyway). Bottles does not currently support this level of tweaking and you should proceed manually. I recommend using Lutris as the installation process seems extremely simplified there.

Anyway, I'm going to close the issue as the problem is related to Wine and not Bottles. Feel free to comment, I will be happy to try to help you somehow.

poperigby commented 3 years ago

It seems more of a problem with Wine than Bottles thinking

Maybe, but I'm not so sure. I just ran the Mod Organizer installer with the system version of WINE 6.11 and it installed just fine. The problem is that it will crash with a dialog box about not being able to load .NET libraries (relevant MO bug). That error seems to be happening because .NET 4.8 isn't installed, which is why I'm trying to run it through Bottles and install that dependency in the prefix.

But, when I run it through Bottles, it doesn't give me any dialog box, and the issue seems unrelated. The Bottles prefix isn't able to find anything in the MO install directory.

Anyway, I took a look at the installer script for Lutris and it looks like it needs several tweaks to work (even if I read that it doesn't work for some anyway).

Judging by this issue on the MO issue tracker, it seems like this is no longer the case, and that the USVFS now mostly works with WINE. That comment you linked is also a year old.

Feel free to comment, I will be happy to try to help you somehow.

Thank you :slightly_smiling_face:

mirkobrombin commented 3 years ago

It seems more of a problem with Wine than Bottles thinking

Maybe, but I'm not so sure. I just ran the Mod Organizer installer with the system version of WINE 6.11 and it installed just fine. The problem is that it will crash with a dialog box about not being able to load .NET libraries (relevant MO bug). That error seems to be happening because .NET 4.8 isn't installed, which is why I'm trying to run it through Bottles and install that dependency in the prefix.

But, when I run it through Bottles, it doesn't give me any dialog box, and the issue seems unrelated. The Bottles prefix isn't able to find anything in the MO install directory.

Anyway, I took a look at the installer script for Lutris and it looks like it needs several tweaks to work (even if I read that it doesn't work for some anyway).

Judging by this issue on the MO issue tracker, it seems like this is no longer the case, and that the USVFS now mostly works with WINE. That comment you linked is also a year old.

Feel free to comment, I will be happy to try to help you somehow.

Thank you

Chardonnay (our wine runner) isn't too different from the Wine you install on Arch Linux. It is always a Vanilla version. Maybe you need an older version to run that software?

I reopen the issue as a reminder so in the next days I can try to run it on my installation. At the moment you could try to create a new Custom type bottle, using Chardonnay as a runner. Then in winecfg change the Windows version to Windows 7 and uninstall mono from Uninstaller, then install dotnet48 from the dependencies tab and see if it works.

poperigby commented 3 years ago

I did that, and now I get this popup when I try to launch MO image

Here's the MO2 output:

010c:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
010c:err:winediag:check_version ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
010c:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
[2021-06-21 20:07:00.555 D] timing: MOApplication() 0 ms
[2021-06-21 20:07:00.556 D] timing: main() multiprocess 111 ms
[2021-06-21 20:07:00.560 D] looking for plugins in C:\Modding\MO2\plugins
[2021-06-21 20:07:00.561 D] loaded plugin 'BSA Extractor' from 'bsa_extractor.dll' - [Plugin]
[2021-06-21 20:07:00.568 D] loaded plugin 'BSA Packer' from 'bsa_packer.dll' - [Tool]
[2021-06-21 20:07:00.569 D] loaded plugin 'FNIS Checker' from 'check_fnis.dll' - [Plugin]
[2021-06-21 20:07:00.570 D] loaded plugin 'Basic diagnosis plugin' from 'diagnose_basic.dll' - [Diagnose]
[2021-06-21 20:07:00.572 D] loaded plugin 'Enderal Support Plugin' from 'game_enderal.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.574 D] loaded plugin 'Enderal Special Edition Support Plugin' from 'game_enderalse.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.576 D] loaded plugin 'Fallout 3 Support Plugin' from 'game_fallout3.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.578 D] loaded plugin 'Fallout 4 Support Plugin' from 'game_fallout4.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.580 D] loaded plugin 'Fallout 4 VR Support Plugin' from 'game_fallout4vr.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.582 D] loaded plugin 'Fallout NV Support Plugin' from 'game_falloutNV.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.584 D] loaded plugin 'Morrowind Support Plugin' from 'game_morrowind.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.586 D] loaded plugin 'Oblivion Support Plugin' from 'game_oblivion.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.588 D] loaded plugin 'Skyrim Support Plugin' from 'game_skyrim.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.590 D] loaded plugin 'Skyrim Special Edition Support Plugin' from 'game_skyrimse.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.592 D] loaded plugin 'Skyrim VR Support Plugin' from 'game_skyrimvr.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.594 D] loaded plugin 'Fallout TTW Support Plugin' from 'game_ttw.dll' - [Game, File Mapper]
[2021-06-21 20:07:00.595 D] loaded plugin 'INI Bakery' from 'inibakery.dll' - [File Mapper]
[2021-06-21 20:07:00.597 D] loaded plugin 'INI Editor' from 'inieditor.dll' - [Tool]
[2021-06-21 20:07:00.598 D] loaded plugin 'BAIN Installer' from 'installer_bain.dll' - [Installer]
[2021-06-21 20:07:00.599 D] loaded plugin 'Bundle Installer' from 'installer_bundle.dll' - [Installer]
[2021-06-21 20:07:00.600 D] loaded plugin 'Fomod Installer' from 'installer_fomod.dll' - [Installer, Diagnose]
010c:err:mscoree:LoadLibraryShim error reading registry key for installroot
010c:err:mscoree:CLRRuntimeInfo_GetRuntimeDirectory error reading registry key for installroot
010c:err:mscoree:ReallyFixupVTable unable to fixup vtable, hr=80004005, status=0
010c:err:mscoree:expect_no_runtimes Process exited with a Mono runtime loaded.
mirkobrombin commented 3 years ago

😂At least this time it comes out with a different error. I will try to understand in the next few days what generates the error 010c:err:mscoree:LoadLibraryShim error reading registry key for installroot

In the meantime, can you keep me updated if you do other tests?

poperigby commented 3 years ago

Sure thing, but I'm not sure what else I would try.

mirkobrombin commented 3 years ago

So I was able to make it works.. image

It asks me for the path of a game that I don't have but is actually working.

Now let's get to the funny stuff: I created a new custom type bottle with Chardonnay 6.10 and I just started the installer, then I started it from the Programs section and it just works.

poperigby commented 3 years ago

I'll have to check on this when I get home from my vacation, as my laptop doesn't have Fallout: New Vegas on it.

mirkobrombin commented 3 years ago

I close the issue as it was a problem with the runner and not Bottles. Let me know if it works for you anyway!

poperigby commented 3 years ago

The problem is that once I setup Mod Organizer with a game (which you won't be able to reproduce unless you own a game that's compatible, which is most Bethesda games) it crashes. The problem was theorized to be because dotnet48 isn't installed, but Mod Organizer also crashes with a different error if that's installed. Anyway, it probably isn't even a Bottles bug.

mirkobrombin commented 3 years ago

The problem is that once I setup Mod Organizer with a game (which you won't be able to reproduce unless you own a game that's compatible, which is most Bethesda games) it crashes. The problem was theorized to be because dotnet48 isn't installed, but Mod Organizer also crashes with a different error if that's installed. Anyway, it probably isn't even a Bottles bug.

Yes unfortunately I don't have any Bethesda games and I have to stop here, sorry.

poperigby commented 3 years ago

It's no problem. It's not even your bug.

poperigby commented 3 years ago

Quick question though, how does Bottles install .NET? Is it basically just installing it by running the official installer inside the prefix?

mirkobrombin commented 3 years ago

Quick question though, how does Bottles install .NET? Is it basically just installing it by running the official installer inside the prefix?

Yep