Skip to content

[xash3d] Use client/server libs shipped in the game dir - #17409

Closed
vjt wants to merge 1 commit into
batocera-linux:masterfrom
vjt:xash3d-game-dir-libs
Closed

vjt wants to merge 1 commit into
batocera-linux:masterfrom
vjt:xash3d-game-dir-libs

Conversation

@vjt

@vjt vjt commented Nov 20, 2026

Copy link
Copy Markdown

Mods without an hlsdk build in Batocera (Counter-Strike via cs16-client, Blue Shift via hlsdk-portable) ship their own cl_dlls/client<arch>.so and dlls/<gamedll_linux><arch>.so in the game dir. They currently fall back to the hl libs and run as Half-Life.

Use the game dir libs when both are present, otherwise keep the hlsdk fallback.

Tested on Batocera 44 x86_64: cstrike and bshift load their own client/server libs. Two tests added in test_xash3d_fwgs.py.

🤖 Generated with Claude Code

Mods with no hlsdk build (cs16-client, hlsdk-portable bshift) ship
cl_dlls/client<arch>.so and dlls/<gamedll_linux><arch>.so in the game
dir: prefer them when both exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dmanlfc

dmanlfc commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the info. I'd rather not load prebuilt .so files from the user's game dir, though.
They're built against someone else's toolchain and libs, and they're tied to whatever xash3d-fwgs version they were built for, so an engine bump on our side can break them with no way for us to know and this is not a good user experience.

We already package hlsdk-portable mods (hlsdk-xash3d-dmc, hlsdk-xash3d-opfor) into /usr/lib/xash3d/hlsdk//, and the launcher picks them up from liblist.gam automatically.
Could you add hlsdk-xash3d-bshift (the hlsdk-portable bshift branch) and a cs16-client package the same way instead? That way they're built for every arch against our libs and versioned with the engine, and no launcher change is needed.

@dmanlfc

dmanlfc commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

either have your AI modify this PR & force push it or do another one. I have marked this currently as do not merge.

@vjt

vjt commented Nov 20, 2026

Copy link
Copy Markdown
Author

Thanks for the feedback. I'll rework this and send a new one, referencing this discussion.

Sorry if I went the wrong direction, I disn't notice those libs were already packaged.

Indeed this can also open a security issue.

Cheers,

@vjt vjt closed this Nov 20, 2026
@dmanlfc

dmanlfc commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

I did it here - #17413 @vjt this should guide you for any others.

@vjt

vjt commented Nov 21, 2026

Copy link
Copy Markdown
Author

@dmanlfc ah, ok, cool :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants