Skip Navigation
wiki

Playing Sims 2 on Linux (continued): Lutris & Wine

<- Back to Wiki Guide <-- Back to How to Install on Linux: Intro, Steam & Bottles Please Note: This is copied from Reddit's r/TheSims2Help's Playing on Linux Wiki page. Any linked headings will be linked back to the Reddit Wiki. In line links should denote where they go (reddit, lemmy, tumbler) anything not mentioned is probably another off reddit guide or .exe file. Most if not all content contained below was created by the Reddit r/Sims2Help team and all credit for this guide goes to them. ——— ———

Linux Continued: Lutris & Wine

——— ———

6. Lutris

———

 
libGL error: MESA-LOADER: failed to open iris: /usr/lib/pressure-vessel/overrides/lib/i386-linux-gnu/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/dri:/usr/lib/pressure-vessel/overrides/lib/i386-linux-gnu/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/pressure-vessel/overrides/lib/i386-linux-gnu/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/dri:/usr/lib/pressure-vessel/overrides/lib/i386-linux-gnu/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/pressure-vessel/overrides/lib/i386-linux-gnu/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/dri:/usr/lib/pressure-vessel/overrides/lib/i386-linux-gnu/dri)
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext

 
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install \
  libgl1-mesa-dri:i386 \
  libgl1:i386 \
  libvulkan1:i386 \
  mesa-vulkan-drivers:i386

 
| NVIDIA-SMI 535.154.05    Driver Version: 535.154.05    CUDA Version: 12.2   |
+-----------------------------------------------------------------------------+

 
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Received return code -9 from call to vkCreateInstance in ICD libvulkan_dzn.so. Skipping this driver.
    deviceName        = Intel(R) UHD Graphics 630 (CFL GT2)
    deviceName        = Quadro RTX 3000
    deviceName        = llvmpipe (LLVM 20.1.8, 256 bits) # software renderer

7. Lutris: Running Related Programs

———

 
cd  /home/<user-name>/.local/share/applications/
nano CleanInstaller.desktop

 
[Desktop Entry]
Type=Application
Name=CleanInstaller
Exec=env WINEPREFIX=/home/<user-name>/Games/<prefix>/ /home/<user-name>/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine "/home/<user-name>/Downloads/Sims2Tools/MTS_Mootilda_1164470_Sims2PackInstaller_NoInstall/Sims2Pack Clean Installer/Sims2Pack Clean Installer.exe" %U
Terminal=false
Categories=Game;
MimeType=application/x-sims2pack;

 
chmod +x /home/<user-name>/.local/share/applications/CleanInstaller.desktop

 
Exec=WINEPREFIX="/home/[insert PC name]/Games/the-sims-2/" "/home/[insert PC name]/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine" "[insert path to CleanInstaller.exe]" %U

 
[Desktop Entry]
Type=Application
Name=CleanInstaller
Exec=sh -c 'WINEPREFIX=/home/<user-name>/Games/ea-app /home/<user-name>/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine "/home/<user-name>/Downloads/Sims2Tools/MTS_Mootilda_1164470_Sims2PackInstaller_NoInstall/Sims2Pack Clean Installer/Sims2Pack Clean Installer.exe" "$(/home/<user-name>/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/winepath -w "$1")"' -- %u
Terminal=false
Categories=Game;
MimeType=application/x-sims2pack;

———

8. Wine

———

 
Create a 32-bit prefix 
export WINEPREFIX=$HOME/.sims2
export WINEARCH=win32
wineboot -u
winetricks d3dx9 corefonts wininet
wine /path/to/your/setup.exe
For that last step, the path looks like wine "/home/<user-name>/Downloads/The_Sims_2_Repack_v5/The Sims 2_Repack_v5_Setup.exe". Make sure to include quotation marks when the path includes spaces. Running this command will launch the installer - step through it to install game.
Download DXVK from the latest release - it's the tar.gz archive you need to download.
Run the commands 
cd ~/Downloads # or wherever you downloaded DXVK to
tar -xzf dxvk-2.7.1.tar.gz # change version if using a newer one
cd dxvk-2.7.1
export WINEPREFIX=$HOME/.sims2
cp x32/*.dll $WINEPREFIX/drive_c/windows/system32
To avoid D3DERR_INVALID_CALL on launch, run command winecfg to see the wine config and click the libraries tab. In the dropdown at the top search for and add:

d3d9
d3dx9_36
d3dx9_30

 
Run the game: 
export WINEPREFIX=$HOME/.sims2
wine "$WINEPREFIX/drive_c/MagiPacks/The Sims 2/Fun with Pets/SP9/TSBin/Sims2EP9.exe"

 
To run in windowed mode use wine "$WINEPREFIX/drive_c/MagiPacks/The Sims 2/Fun with Pets/SP9/TSBin/Sims2EP9.exe" -w

 
If you have a Nvidia GPU and want to be sure the game uses it, use these commands to run the game 
export WINEPREFIX=$HOME/.sims2                          
__NV_PRIME_RENDER_OFFLOAD=1 \
__GLX_VENDOR_LIBRARY_NAME=nvidia \
__VK_LAYER_NV_optimus=NVIDIA_only \
wine "C:\\MagiPacks\\The Sims 2\\Fun with Pets\\SP9\\TSBin\\Sims2EP9.exe"

You can also make a bash script to run the game, this allows you to run the game using just one command but will execute all the commands in the script for you each time. For example, create the script using nano run-sims2.sh and copy contents:

 
Gecko
Mono-Gecko Install
Wine dependecies required for Origin

———

9. Wine: Running Related Programs

———

 
cd  /home/<user-name>/.local/share/applications/
nano CleanInstaller.desktop

 
[Desktop Entry]
Type=Application
Name=CleanInstaller
Exec=env WINEPREFIX=/home/<user-name>/.sims2 /usr/bin/wine "/home/<user-name>/Downloads/MTS_Mootilda_1164470_Sims2PackInstaller_NoInstall/Sims2Pack Clean Installer/Sims2Pack Clean Installer.exe" %U
Terminal=false
Categories=Game;
MimeType=application/x-sims2pack;

——— <- Back to Wiki Guide

Comments