Skip to content

fix(host): read the game files servers run now, not master-install - #152

Merged
sivert-io merged 1 commit into
masterfrom
claude/current-game-dir
Nov 18, 2026
Merged

sivert-io merged 1 commit into
masterfrom
claude/current-game-dir

Conversation

@sivert-io

Copy link
Copy Markdown
Collaborator

On a host with instances, a CS2 update goes into games/current, and master-install stays at the build it was set up with. Radars, pictures and the catalogs read master-install, so they served that old build. On a real host that was 1.41.8.6 from September, without Cobblestone. The agent now gets the game folder from CurrentGameDir() on every use, the same lookup the inventory uses for master_patch.

Options.CS2Dir becomes a function, because an update moves games/current while the agent keeps running.

Checked against a real host's games/current: maps.json lists de_cbble at patch 1.41.9.8, and its picture and icon read.

🤖 Generated with Claude Code

On an instance host the current CS2 lives in games/current and
master-install stays at the build it was set up with, so radars,
pictures and catalogs came from that old build (no Cobblestone).
The agent now asks for the current game folder each time, the way the
inventory already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sivert-io
sivert-io merged commit ba1e8c5 into master Nov 18, 2026
2 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant