Add Linux build support and update .gitignore #37

Closed
Satanas1275 wants to merge 0 commits from upstream-pr/37 into main
Satanas1275 commented 2026-11-24 20:45:37 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Satanas1275 on 2026-11-24T20:45:37Z.


Just added linux build/run support and update gitignore...

<!-- greyfinch-sync:fxceless/victory-fork:issue:5480038692 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/37). Originally posted by [Satanas1275](https://github.com/Satanas1275) on 2026-11-24T20:45:37Z. --- Just added linux build/run support and update gitignore...
ericomeehan commented 2026-11-24 23:09:33 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ericomeehan on 2026-11-24T22:18:56Z.


Two small things before this goes in:

  • The default game folder names the title. The fallback for VICTORY_GAME_DIR in run_game.sh is a folder named after the title and its version, which puts the name back into the tree, which 4e17478 just removed everywhere. Requiring VICTORY_GAME_DIR (exit with a message when it's unset) avoids the name and also avoids guessing someone's folder layout.
  • The Proton default is one distribution's path (/usr/share/steam/compatibilitytools.d/proton-cachyos-slr). Most installs won't have it, so the script fails with a less obvious error than "set PROTON".

There are now several overlapping Linux paths open: this PR (run_game.sh at the root), #64 (scripts/*-linux.sh plus umu, Nix and a CI cross-compile job), #128 (building and testing the host-independent crates on Linux), and the Wine fixes in #20, #28 and #127. It may be worth settling on one launch script before merging any of them.

Written with an AI assistant (Claude).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7146077646 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/37#issuecomment-7146077646). Originally posted by [ericomeehan](https://github.com/ericomeehan) on 2026-11-24T22:18:56Z. --- Two small things before this goes in: - **The default game folder names the title.** The fallback for `VICTORY_GAME_DIR` in `run_game.sh` is a folder named after the title and its version, which puts the name back into the tree, which 4e17478 just removed everywhere. Requiring `VICTORY_GAME_DIR` (exit with a message when it's unset) avoids the name and also avoids guessing someone's folder layout. - **The Proton default is one distribution's path** (`/usr/share/steam/compatibilitytools.d/proton-cachyos-slr`). Most installs won't have it, so the script fails with a less obvious error than "set PROTON". There are now several overlapping Linux paths open: this PR (`run_game.sh` at the root), #64 (`scripts/*-linux.sh` plus umu, Nix and a CI cross-compile job), #128 (building and testing the host-independent crates on Linux), and the Wine fixes in #20, #28 and #127. It may be worth settling on one launch script before merging any of them. Written with an AI assistant (Claude).
ErRusso commented 2026-11-24 23:44:05 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-24T23:44:05Z.

Review: CHANGES_REQUESTED


Reviewed at e36aa70 against 2119b0e.

The script is a useful minimal runner, but it has a path bug:

  • VICTORY_GAME_DIR and the title path are converted with winepath -w, but VICTORY_DATA_DIR and VICTORY_CACHE_DIR are exported as Unix paths ($(dirname "$here")/victory-data). victory.exe is a Windows process and will not interpret those as the intended directories; convert them with winepath -w too (or use Z:\...), after creating them.
  • exew is not checked; if winepath fails, the script execs with an empty title path.
  • The proton variable is only used for its wine binary; consider naming it accordingly.

Once the data/cache paths are Windows paths, this should work.

<!-- greyfinch-sync:fxceless/victory-fork:review:6049241379 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/37#pullrequestreview-6049241379). Originally posted by [ErRusso](https://github.com/ErRusso) on 2026-11-24T23:44:05Z. **Review:** CHANGES_REQUESTED --- Reviewed at `e36aa70` against `2119b0e`. The script is a useful minimal runner, but it has a path bug: - `VICTORY_GAME_DIR` and the title path are converted with `winepath -w`, but `VICTORY_DATA_DIR` and `VICTORY_CACHE_DIR` are exported as Unix paths (`$(dirname "$here")/victory-data`). `victory.exe` is a Windows process and will not interpret those as the intended directories; convert them with `winepath -w` too (or use `Z:\...`), after creating them. - `exew` is not checked; if `winepath` fails, the script execs with an empty title path. - The `proton` variable is only used for its `wine` binary; consider naming it accordingly. Once the data/cache paths are Windows paths, this should work.
Satanas1275 commented 2026-11-25 08:08:58 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Satanas1275 on 2026-11-25T07:10:58Z.


Okay i've modified what's you want me to modify, I can't test right now but i will test if it run today at 7:00pm UTC+1 (basicely when I'm back from work)

<!-- greyfinch-sync:fxceless/victory-fork:comment:7155577842 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/37#issuecomment-7155577842). Originally posted by [Satanas1275](https://github.com/Satanas1275) on 2026-11-25T07:10:58Z. --- Okay i've modified what's you want me to modify, I can't test right now but i will test if it run today at 7:00pm UTC+1 (basicely when I'm back from work)
ErRusso commented 2026-11-25 11:15:19 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-25T11:15:19Z.

Review: CHANGES_REQUESTED


Reviewed at 06fb604. Two of my items are fixed:

  • VICTORY_DATA_DIR/VICTORY_CACHE_DIR are created and converted with winepath before export.
  • exew is checked and the script exits if winepath fails.

Two defaults from @ericomeehan's review are still in the script and are blocking:

  1. game=${VICTORY_GAME_DIR:-"$here/../GTA6.Xbox.v1.0.2.1"} still names the title in the tree. Require VICTORY_GAME_DIR and exit with the variable name when it is unset.
  2. proton_dir=${PROTON:-/usr/share/steam/compatibilitytools.d/proton-cachyos-slr} assumes one distribution's layout. Require PROTON, or search the standard compatibilitytools.d locations and fail with a clear message when neither finds a Proton.

There are also several overlapping Linux launchers in flight (#64, #128, #179, this one); the maintainers should settle on one before this lands. Please make the two changes above and report the run you planned.

<!-- greyfinch-sync:fxceless/victory-fork:review:6056598914 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/37#pullrequestreview-6056598914). Originally posted by [ErRusso](https://github.com/ErRusso) on 2026-11-25T11:15:19Z. **Review:** CHANGES_REQUESTED --- Reviewed at `06fb604`. Two of my items are fixed: - `VICTORY_DATA_DIR`/`VICTORY_CACHE_DIR` are created and converted with `winepath` before export. - `exew` is checked and the script exits if `winepath` fails. Two defaults from @ericomeehan's review are still in the script and are blocking: 1. `game=${VICTORY_GAME_DIR:-"$here/../GTA6.Xbox.v1.0.2.1"}` still names the title in the tree. Require `VICTORY_GAME_DIR` and exit with the variable name when it is unset. 2. `proton_dir=${PROTON:-/usr/share/steam/compatibilitytools.d/proton-cachyos-slr}` assumes one distribution's layout. Require `PROTON`, or search the standard `compatibilitytools.d` locations and fail with a clear message when neither finds a Proton. There are also several overlapping Linux launchers in flight (#64, #128, #179, this one); the maintainers should settle on one before this lands. Please make the two changes above and report the run you planned.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!37
No description provided.