Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this patch on Linux via Proton? #8

Open
KianaDaEditor3701 opened this issue Apr 1, 2022 · 6 comments
Open

How to use this patch on Linux via Proton? #8

KianaDaEditor3701 opened this issue Apr 1, 2022 · 6 comments

Comments

@KianaDaEditor3701
Copy link

Tried to find some guides online on how to add launch options for Windows games running on Linux via Steam's Proton compatibility layer, but nothing showed up.

@HenryJk
Copy link
Owner

HenryJk commented Apr 2, 2022

If you are talking about the steam version, then this project is currently incompatible with steam version (may change in the future). If you are talking about how to run standalone proton instance outside of steam, run this command

export STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.local/share/Steam"
export STEAM_COMPAT_DATA_PATH="$STEAM_COMPAT_CLIENT_INSTALL_PATH/steamapps/compatdata/3590"
export WINEPREFIX="$STEAM_COMPAT_DATA_PATH/pfx"
export PROTON_USE_WINED3D=1
"$STEAM_COMPAT_CLIENT_INSTALL_PATH/steamapps/common/Proton - Experimental/proton" run PlantsVsZombies.exe

Note: these commands require you to own and launch pvz goty steam via proton experimental before.

@Shin-Aska
Copy link

Shin-Aska commented Jun 13, 2022

Before doing this, its important you have wine installed on your system, although you can also use the wine bundled on Steam, but I was a bit lazy when I wrote the script, but eitherway, feel free to modify the script at step 2 to your liking.

I was able to manage to run this directly on Steam Proton by doing the following:

  1. The obvious step, apply the mod first, overwriting the files needed for the mod to work
  2. Creating a bash script (I named mine, pvz_ws), with chmod 777 applied, you can store it anywhere btw
#!/bin/bash
cd "~/.steam/steamapps/common/Plants Vs Zombies/"
WINEPREFIX="~/.steam/steamapps/compatdata/3590/pfx/" wine pvz_widescreen.exe
  1. Go to steam, right click Plants vs Zombies and put this as your launch options
    /path/to/script/pvz_ws #%command%
    example: /home/richard/Games/pvz_ws #%command%

PS: When you do this, you lose access temporarily to your steam save, but you can just copy the steam save from Steamplay to Windows original save, please refer here: https://www.pcgamingwiki.com/wiki/Plants_vs._Zombies

Also I don't think this trigger's Steam's achievements, so if you're that guy that cares about achievements, get them first before applying this patch.

@lavenderdotpet
Copy link

lavenderdotpet commented Jul 21, 2022

its weird your bash script works if i copy paste it into a terminal but not if i run it from steam

had to modify it a bit for my folder layout

cd "/run/media/lavender/TheLargeOne/GameLibrary/SteamLibrary/steamapps/common/Plants Vs Zombies/"
WINEPREFIX="/run/media/lavender/TheLargeOne/GameLibrary/SteamLibrary/steamapps/compatdata/3590/pfx/" wine pvz_widescreen.exe```

@lavenderdotpet
Copy link

lavenderdotpet commented Jul 21, 2022

also this is what im putting into steam launch options

/home/lavender/bin/pvz_ws #%command%

@lavenderdotpet
Copy link

disregard i fixed it

@46620
Copy link

46620 commented Aug 26, 2022

I used the following launcher option to load my game after extracting the latest release to the steam versions folder

/usr/bin/proton pvz_widescreen.exe && echo %command% > /dev/null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants