Skip to content

Commit

Permalink
64-bit versus 32-bit notice
Browse files Browse the repository at this point in the history
  • Loading branch information
kkots committed Dec 6, 2024
1 parent 773a0da commit acad9fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You don't need to ever launch this mod again unless you want to change the ping
## Usage on Linux

The launcher provided (launch_GGXrdAdjustConnectionTiers_linux.sh) only works if your Steam on Linux launches Guilty Gear Xrd through Steam Proton.
Cd into the directory where `GGXrdAdjustConnectionTiers.exe` and `launch_GGXrdAdjustConnectionTiers_linux.sh` files are and give yourself permission to execute the .sh script:
Cd into the directory where `GGXrdAdjustConnectionTiers_32bit.exe` and `launch_GGXrdAdjustConnectionTiers_linux.sh` files are and give yourself permission to execute the .sh script:

```bash
cd GGXrdAdjustConnectionTiers
Expand All @@ -54,9 +54,18 @@ chmod u+x launch_GGXrdAdjustConnectionTiers_linux.sh
./launch_GGXrdAdjustConnectionTiers_linux.sh
```

The .sh script will launch the app's .exe through Wine in the same virtual environment as Guilty Gear Xrd. You may then close Guilty Gear Xrd and press the **Patch GuiltyGear** button.
The .sh script will launch the app's 32-bit .exe through Wine in the same virtual environment as Guilty Gear Xrd. You may then close Guilty Gear Xrd and press the **Patch GuiltyGear** button.

Steam may start downloading 4GB of stuff and say it's validating something in this game. It will in fact not alter the patched files after it is over, and all the changes will remain.
Running the 64-bit version of the mod will cause this error:

```bash
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.
```

It is caused by attempting to run a 64-bit program on a 32-bit Wine prefix. Guilty Gear Xrd is a 32-bit game and is in a 32-bit Wine prefix.

After patching, Steam may start downloading 4GB of stuff and say it's validating something in this game. It will in fact not alter the patched files after it is over, and all the changes will remain.

## Undoing changes if game stopped working

Expand Down
7 changes: 6 additions & 1 deletion launch_GGXrdAdjustConnectionTiers_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
# This mod and its components do NOT require ".NET Desktop Runtime" in order to work.

# This mod's tool that we want to launch.
TOOLNAME="${1-GGXrdAdjustConnectionTiers.exe}" # ${VARNAME-DEFAULTVALUE} substitutes DEFAULTVALUE in case the variable is empty
TOOLNAME="${1-GGXrdAdjustConnectionTiers_32bit.exe}" # ${VARNAME-DEFAULTVALUE} substitutes DEFAULTVALUE in case the variable is empty
# Running the 64-bit (unsuffixed) version of the mod will cause this error:
# >Application could not be started, or no application associated with the specified file.
# >ShellExecuteEx failed: File not found.
# It is caused by attempting to run a 64-bit program on a 32-bit Wine prefix. Guilty Gear Xrd is a 32-bit game and is in a 32-bit Wine prefix.
# To tell if a Wineprefix is 64-bit or 32-bit, check the existence of $WINEPREFIX/drive_c/windows/syswow64. If that exists, it's 64-bit.

ONLY_PRINT_WINEPREFIX=false
if [ "$2" == "--only-print-wineprefix" ]; then
Expand Down

0 comments on commit acad9fe

Please sign in to comment.