Cant run any game that involve unityplayer.dll

Questions about Wine on Linux
Locked
amera_09
Level 3
Level 3
Posts: 88
Joined: Mon Dec 09, 2019 6:47 pm

Cant run any game that involve unityplayer.dll

Post by amera_09 »

Code: Select all

root@localhost:~/game# wine game.exe
it looks like wine32 is missing, you should install it.
multiarch needs to be enabled first.  as root, please
execute "dpkg --add-architecture i386 && apt-get update &&
apt-get install wine32"
0009:err:module:LdrInitializeThunk "UnityPlayer.dll" failed to initialize, aborting
0009:err:module:LdrInitializeThunk Initializing dlls for L"Z:\\root\\game\\game.exe" failed, status c0000005
wine-5.0.3 (Ubuntu 5.0.3-3)
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 124
Joined: Sat Sep 04, 2021 9:35 pm

Re: Cant run any game that involve unityplayer.dll

Post by JoseskVolpe »

You have only Wine 64-Bits architecture installed, install Wine32.
Wine 64 Bits should be built with WoW64, some repositories don't include it. Assuming you're using a ubuntu-based OS, download it https://wiki.winehq.org/Ubuntu
Or build it: https://wiki.winehq.org/Building_Wine#Shared_WoW64
amera_09
Level 3
Level 3
Posts: 88
Joined: Mon Dec 09, 2019 6:47 pm

Re: Cant run any game that involve unityplayer.dll

Post by amera_09 »

amera_09 wrote: Tue Nov 02, 2021 1:25 pm

Code: Select all

root@localhost:~/game# wine game.exe
it looks like wine32 is missing, you should install it.
multiarch needs to be enabled first.  as root, please
execute "dpkg --add-architecture i386 && apt-get update &&
apt-get install wine32"
0009:err:module:LdrInitializeThunk "UnityPlayer.dll" failed to initialize, aborting
0009:err:module:LdrInitializeThunk Initializing dlls for L"Z:\\root\\game\\game.exe" failed, status c0000005
wine-5.0.3 (Ubuntu 5.0.3-3)
I cant use wine32 on emulators
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 124
Joined: Sat Sep 04, 2021 9:35 pm

Re: Cant run any game that involve unityplayer.dll

Post by JoseskVolpe »

¿What's your operating system (or distribution) and the program you're trying to run?
That's important to know because there's some distros that are problematic with Wine, including Ubuntu-based.
According to your log, you Wine is not WoW64-enabled, that means there are critical dependencies missing for Wine or it was built without them. That's a unsupported configuration and leads to problems with 32-Bits programs and also with some 64-Bits programs.
amera_09
Level 3
Level 3
Posts: 88
Joined: Mon Dec 09, 2019 6:47 pm

Re: Cant run any game that involve unityplayer.dll

Post by amera_09 »

JoseskVolpe wrote: Wed Nov 03, 2021 3:39 pm ¿What's your operating system (or distribution) and the program you're trying to run?
That's important to know because there's some distros that are problematic with Wine, including Ubuntu-based.
According to your log, you Wine is not WoW64-enabled, that means there are critical dependencies missing for Wine or it was built without them. That's a unsupported configuration and leads to problems with 32-Bits programs and also with some 64-Bits programs.
With ubuntu 21.10
And wine 6.0 same issue

Code: Select all

root@localhost:/storage/0EA5-8CB0/Paranormal Buddies# wine --version
it looks like wine32-development is missing, you should install it.
multiarch needs to be enabled first.  as root, please
execute "dpkg --add-architecture i386 && apt-get update &&
apt-get install wine32-development"
wine-6.0 (Ubuntu 6.0+repack-1ubuntu1)
root@localhost:/storage/0EA5-8CB0/Paranormal Buddies# wine Paranormal\ Buddies.exe
it looks like wine32-development is missing, you should install it.
multiarch needs to be enabled first.  as root, please
execute "dpkg --add-architecture i386 && apt-get update &&
apt-get install wine32-development"
0058:err:service:validate_context_handle Handle is of an invalid type (1, 2)
0050:err:ole:start_rpcss Failed to open RpcSs service
0050:err:ole:start_rpcss Failed to open RpcSs service
0024:err:module:LdrInitializeThunk "UnityPlayer.dll" failed to initialize, aborting
0024:err:module:LdrInitializeThunk Initializing dlls for L"Z:\\storage\\0EA5-8CB0\\Paranormal Buddies\\Paranormal Buddies.exe" failed, status c0000005
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 124
Joined: Sat Sep 04, 2021 9:35 pm

Re: Cant run any game that involve unityplayer.dll

Post by JoseskVolpe »

Just a moment... Let me see that
Also, your Wine is outdated, current stable version is 6.0.2, development 6.20. ¿Where did you get that Wine from?
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 124
Joined: Sat Sep 04, 2021 9:35 pm

Re: Cant run any game that involve unityplayer.dll

Post by JoseskVolpe »

So, i've looked into Ubuntu with a virtual machine to check if i have any problems using official Ubuntu Wine package (Wine 5.0.3). I know reproducing issues with a virtual machine is not a good method, but i could run the game into it. It also runs sucessfully after uninstalling wine32

Something that could possible be causing this issue is a bug into Wine filesystem. It may occur if you extract the game using Linux zip applications sometimes. You can check if that's your case by opening the directory with Wine Explorer and checking if something is missing in there.
I suggest you to install a Windows Zip application in Wine (e.g. 7-Zip) and extract the game using it.

Also, it's hugely recommended that you update Wine from the WineHQ repository key, and include Wine32 in your installation. Uninstall your current Wine and install it by following the instructions from the Wiki: https://wiki.winehq.org/Ubuntu ;3
Locked