luxtorpeda-dev/packages

Jagged Alliance 2 Gold not being detected properly...

Closed this issue · 13 comments

Game

Jagged alliance 2 Gold

Engine

Jagged Alliance 2 Stracciatella

Linux Distribution

Steamdeck

Luxtorpeda Version

Latest

Bug description

When trying to use luxtropeda on Jagged Alliance 2 Gold, it asks me what engine to use with no option being Stracciatella

Steps To Reproduce

Install Jagged Alliance 2 Gold on steam deck
Change launcher to use luxtropeda
Run the game

Expected Behavior

Game should install Stracciatella automatically.

Additional Context

No response

Relevant log output

No response

Are you using gold owned on steam or another way?

Can you send me the store page of the one you have?

Also can you follow the log steps here: https://github.com/luxtorpeda-dev/luxtorpeda#configuration and upload the log file here?

Closing due to in-activity, but feel free to comment when you have a chance, and I'll take a look

Hi, sorry to add to this old (closed) ticket but I have the exact same problem with the owned version on Steam. Using the Steam Deck and this is the store page:

https://store.steampowered.com/app/1620/Jagged_Alliance_2_Gold/

I believe the problem could be that the app id is actually 12370 (verified with appcache images and compatdata folder setup), not 1620 as previously identified in (#1010). Not sure if that's important (kinda new to this whole thing ;D).

EDIT: I checked again and "Jagged Alliance 2 Gold" (which used to be id 1620) is actually now in the library as "Jagged Alliance 2: Gold Pack" (id 12370). So it probably got an id change some time ago.

I've updated the app id, can you see if that fixes it?

The game is now properly recognized and installation proceeds. Thank you very much!

However, it now says

"Download of ja2-binaries Error: Failed to get content length from 'https://github.com/ja2-strac...'"

Seems it can't fetch the binary.

Hi again,

I think I actually found the bug. :D

In metadata/packagessniper_v2.json under Jagged Alliance 2 Gold it says:

"file": "ja2-stracciatella_0.21.0-git+61938e1_x86-64.AppImagee"

but note the typo at the end. It should obviously say

"file": "ja2-stracciatella_0.21.0-git+61938e1_x86-64.AppImage"

If I knew anything about GitHub, I would have simply issued a pull request. ;)

Ah good catch! I've pushed up a change to fix that, can you see if it works now?

Great! This step now works and downloads proceed. However, when building/executing the thing after concluding the 2 download steps, it says:

"No such file or directory (os error 2)".

I could imagine that this may be due to this line in the build.sh:

cp -rfv assets/* "$diststart/215930/dist/"

It has the AppId for the other version of JA2 (215930) hardcoded in the path but there is no option for the Jagged Alliance 2 Gold version (12370). But maybe it's something else. Sorry I'm leading you from one error to the next ... but I'm sure we can get it running eventually.

EDIT: I enabled logging and the last two lines say it fails in/after the shell script:

[INFO] installing: ja2-stracciatella-12370-9
[INFO] run: "./run-ja2-gold.sh" with args: [] []
[ERROR] command::run_wrapper err: 0s {code: 2, kind: NotFound, message: "No such file or directory" }

Thanks, another good catch. I've pushed up a fix that should be live in a few minutes that copies the assets for gold as well. Let me know how that goes.

Thanks for the help in testing!

Amazing, we're good to go. Everything is working. Thanks a lot!
Happy to contribute, hope I can help in the future as well. :)

Good to hear :)