If you ever had issues launching or running software with Wine, then try this script. I made it as a replacement for Wine/Proton-tricks, it functions similarly to Valve's installscript.vdf. Because not every piece of software comes with all the required dependencies, this script installs every single required dependency. So you can spend more time on using the software you want and less time on tinkering.
The main goal of this project is to provide users with dependencies that Wine can't ship. For that reason WMP and Windows System Files aren't included here. If something still doesn't work after using this script and no Wine version fixes your issues, there's a good chance that you're trying to run a half-baked piece of software.
Tip
If you're having issues with your game or program of any kind try different Wine/Proton versions.
Patching prefixes for each program can get really annoying if you have multiple things you need to configure and become a giant time-waster if some patch doesn't work well with a different one.
Dependency | What it fixes |
---|---|
DirectX End-User Runtimes | Video and audio playback, missing or broken in-game elements |
Wine Mono & Microsoft .NET Desktop Runtime | Crashing programs, installers and games |
NVIDIA PhysX | Crashes when relying heavily on the technology |
Microsoft Visual C++ Redistributable Packages | Various crashes and missing .dll issues |
Xvid MPEG-4 Video Codec | Video playback issues |
Make sure to have the following packages installed before proceeding: 7z wget
.
-
Run
this command
in your terminal.bash <(wget -qO- https://raw.githubusercontent.com/FanderWasTaken/wine-dependency-hell-solver/main/WDHS.sh)
-
Start
WDHS.bat
with Wine.
Even after installing all of these dependencies I still ran into some issues:
- Missing dlls (
unarc.dll
andISDone.dll
). - Crashing games and installers.
Here are the solutions I've found:
Increase swap-file size to 2x the size of your RAM.
-
Disable the swap file with
swapoff
.sudo swapoff /swapfile
-
Resize the file using
fallocate
, in this instance to a4GB
swap file.sudo fallocate -l 4G /swapfile
-
Mark the file as a swapfile using
mkswap
.sudo mkswap /swapfile
-
Enable the swap file with
swapon
.sudo swapon /swapfile
-
Verify changes with
swapon
.swapon --show
Increase the value of vm.max_map_count
.
-
Open
/etc/sysctl.conf
withnano
.sudo nano /etc/sysctl.conf
-
Add
vm.max_map_count=1048576
to the end of the file and save usingCTRL+X
. -
Verify changes with
sysctl
, the result should be1048576
.sysctl vm.max_map_count
- installscript.vdf | Valve
- Troubleshooting Guide | PCGamingWiki
- Reddit comment | acejavelin69
- Virtual memory | Elasticsearch
- Project was created with the help of Visual Studio Code ❤️
Feel free to donate if you like my work or if I was of any help to you!