Skip to content

feat(valheim): report the player count from the Steam query - #74

Merged
ValgulNecron merged 1 commit into
GameplanePanel:mainfrom
bafulton:feat/valheim-player-count
Nov 17, 2026
Merged

ValgulNecron merged 1 commit into
GameplanePanel:mainfrom
bafulton:feat/valheim-player-count

Conversation

@bafulton

Copy link
Copy Markdown
Contributor

Summary

Valheim servers report no player count: Valheim has no RCON, and the agent read counts only from the console. So the dashboard shows no players, and idle sleep never puts an empty Valheim server to sleep ("this game reports no player count").

  • The template now declares capabilities.players.query with protocol: a2s and port: 2457. That's the Steam server query on Valheim's query port, the game port plus one, which the image's own status.json also reads.
  • Valheim answers A2S only when it is listed publicly (-public 1, from List publicly / SERVER_PUBLIC, which defaults to on). A server with it off still reports no player count, so it never sleeps. The README says so, under "Player count and idle sleep".
  • The comments that said the count "flows through the status HTTP endpoint" now describe what happens.
  • .schema/gametemplate.schema.json is regenerated from the CRD with hack/gen-module-schema.py. It gains players.query, plus master's fields added since the last refresh (envName, sentinelIsolation and others).
  • The bundle is bumped to 2.4.0.

Depends on GameplanePanel/Gameplane#991, which adds the agent support. Operators without it prune query, so they keep today's behavior and nothing breaks. gameplaneMinVersion is unchanged so that 0.4.0 installs can still load the bundle.

Verification

  • python3 validate.py: no errors. The only Valheim finding is a registry rate-limit warning on the image check.
  • gp-module validate valheim, built from #991: no findings. With port: 80, the new rule flags it as not a declared UDP port.
  • On a live Valheim server (this image, 0.4.0 install), A2S on 2457 answered players 0, max 10 with SERVER_PUBLIC=true, and didn't answer with it off.

🤖 Generated with Claude Code

Valheim has no RCON, so its servers reported no player count and never
slept. Read the count over A2S on the query port (2457) through the new
capabilities.players.query. Valheim answers it only when listed publicly,
the default. Regenerate the editor schema from the CRD. Bump the bundle
to 2.4.0.

Needs the agent support in GameplanePanel/Gameplane#991; older operators
drop the field and behave as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ben Fulton <fulton.benjamin@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 03ced586-e930-46e1-a07d-896ca0178a49
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ValgulNecron
ValgulNecron merged commit 03fe9ea into GameplanePanel:main Nov 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants