- There is a regression in wine's MSI installer affecting Proton 3.16.
- If you are using protonfixes to play games that require dotnet tricks,
- you can temporarily switch to Proton 3.7 to get protonfixes to install
- dotnet tricks for that game. Alternatively you can install a compiled
- Proton 3.16 with a the patched version of wine available on my Proton
- repo at https://github.com/simons-public/Proton/releases/tag/msi-fix
- On Proton 3.16 some games may treat the XBox and Steam Controller trigger
- axis as a joystick input causing controls to drift upwards and to the
- left (this can be observed by running '/tmp/proton_$USER/run control' and
- looking at the Test Joystick tab under Game Controllers.
A module for applying fixes at runtime to unsupported games with Steam Proton without changing game installation files. The idea is to include seperate fixes that are only loaded when a game matching that ID is run. This should keep the individual game fixes from affecting any other games. Applying the fixes at runtime should also them to persist after game updates.
Current fixes include:
Current utilities available:
util.protontricks('verb')
util.use_win32_prefix()
util.replace_command('original', 'replacement')
util.append_argument('argument')
util.protonprefix()
util.set_environment('VARIABLE', 'value')
util.winedll_override('dllname', 'x')
util.disable_dxvk()
util.disable_esync()
util.disable_d3d10()
util.disable_d3d11()
util.disable_nvapi()
util.get_game_install_path()
util.create_dosbox_conf('filename', conf_dict)
Winetricks
If you want to be able to use fixes with winetricks it must be installed and be in your $PATH. Fixes that do not use winetricks will still work without winetricks being installed.
Winetricks can take a long time to run
Wine
If you want to use a win32 (32bit) prefix, you need to have wine installed and be in your $PATH. Currently creating a 32bit prefix with Proton wine doesn't work because the wineserver is already running by the time user_settings.py
is loaded.
Progress Dialog / Splashscreen
If Steam is in big picture mode, protontricks will try to launch a similarly themed splash dialog using cefpython
(pictured above). Otherwise it will try to use zenity
to display a progress bar. If Steam is not in big picture mode, it will default to zenity
. The progress bar or splashscreen can help let you know that protonfixes is running a long task, for example installing dotnet35
.
For the progress dialog to work, you need to have zenity
installed on your system, the steam-runtime version is broken. It can probably be installed using your distro's package manager.
For the big screen splashscreen to work, you need to have cefpython3
installed. It can be installed with pip using sudo pip install cefpython3
.
Make sure to use the version of pip that matches the version of Python that Proton is running. Proton should be running on python3. If you are unsure, try installing with both pip3 and pip2 in the below commands.
# sudo pip3 install protonfixes
# sudo pip3 install protonfixes --upgrade
# sudo python3 setup.py install
In the steamapps/common/Proton* directory, add the following line to the bottom of the user_settings.py
file:
import protonfixes
If there is no user_settings.py
file, make a copy of the user_settings.sample.py
file included with Proton.
Proton output can be seen in either /tmp/dumps/${USER}_stdout.txt
or the terminal you started Steam from. To add additional protonfixes
debugging information, add the following line above import protonfixes
:
from protonfixes import debug
This will add information like this:
ProtonFixes[27351] DEBUG: ---- begin protontricks debug info ----
ProtonFixes[27351] DEBUG: Proton Python Version:
ProtonFixes[27351] DEBUG: /usr/bin/python3
ProtonFixes[27351] DEBUG: 3.7.0 (default, Jul 15 2018, 10:44:58)
[GCC 8.1.1 20180531]
ProtonFixes[27351] DEBUG: ---------------------------------------
Although the environment variables are dumped, the sensitive variables like SteamUser and SteamAppUser are filtered out.
Game fixes are written in python and are named by the Steam game ID with the extension .py. For example, the file 377840.py
will be loaded when the game FINAL FANTASY IX is run. Gamefixes can be added to the ~/.config/protonfixes/localfixes/
directory. Here are some things to consider when writing fixes:
When testing, local fixes can be added to ~/.config/protonfixes/localfixes/
. They should be imported the same way as an included fix would be. For example, ~/.config/protonfixes/localfixes/377840.py
would be loaded for FFIX. Please feel free to submit working gamefixes to improve the project.
377840.py
- Changing the executable launched and setting an environment variable
""" Game fix for FINAL FANTASY IX
"""
#pylint: disable=C0103
from protonfixes import util
from protonfixes.logger import log
def main():
""" Changes the proton argument from the launcher to the game
"""
log('Applying fixes for FINAL FANTASY IX')
# Fix crackling audio
util.set_environment('PULSE_LATENCY_MSEC', '60')
# Replace launcher with game exe in proton arguments
util.replace_command('FF9_Launcher.exe', 'x64/FF9.exe')
410900.py
- Running a winetricks verb
""" Game fix for Forts
"""
#pylint: disable=C0103
from protonfixes import util
from protonfixes.logger import log
def main():
""" Uses winetricks to install the ole32 verb
"""
log('Applying fixes for Forts')
util.protontricks('ole32')
15700.py
- Example using a win32 prefix
Oddworld doesn't actually require a win32 prefix or dotnet35, but I used it for testing since it's 32bit
from protonfixes import util
from protonfixes.logger import log
def main():
""" Adds -interline to arguments, uses a win32 prefix, and installs dotnet35
"""
log('Applying fixes for Oddworld: Abe\'s Oddysee')
# Adding -interline fixes slow video but adds scanlines
util.append_argument('-interline')
log('Using a win32 prefix')
util.use_win32_prefix()
# Make sure any winetricks are run after changing to a win32 prefix
util.protontricks('dotnet35')
Pull requests are welcome! If you're not comfortable doing pull requests, send your fixes to me by any other means and you will be credited in the comments.
Version | Tag | Published |
---|---|---|
1.0.16 | 4yrs ago | |
1.0.14 | 4yrs ago | |
1.0.12 | 4yrs ago | |
1.0.11 | 4yrs ago |