Skip to content

feat(host): build maps.json and skins.json on the host and serve them - #150

Merged
sivert-io merged 1 commit into
masterfrom
claude/catalog-from-install
Nov 18, 2026
Merged

sivert-io merged 1 commit into
masterfrom
claude/catalog-from-install

Conversation

@sivert-io

Copy link
Copy Markdown
Collaborator

csm builds both catalogs from the master install's pak01_dir.vpk and keeps them in its state folder (catalog/). They are built again only when pak01 changes, that is after a CS2 update. The platform asks for them with host.asset set catalog (file maps.json or skins.json), and hosts that can do this list catalog.v1 in hello. The platform side is in auto-tournament.

buildSkinsCatalog is the Python script from skin_extract.go in Go, using the existing KeyValues parser. Against a real install its output matches the committed skins.json field for field (2128 skins). maps.json reuses buildMapsManifest, with the screenshots and icons read from pak01's file list. It no longer lists four maps the game dropped, which the committed file still carried.

Review: csm/catalog.go, in particular the cache key (pak01's size and mtime), and the new catalog check in validateCommand.

🤖 Generated with Claude Code

csm builds both catalogs from the master install's pak01, keeps them in
its state dir and rebuilds them when pak01 changes. The platform asks with
host.asset set catalog (hosts list catalog.v1). The skin builder is the
old Python script in Go; against a real install its output matches the
committed skins.json field for field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sivert-io
sivert-io merged commit 8b122b6 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