8000 Server-built battle logs carry the current log_file_version by inada-s · Pull Request #437 · inada-s/gdxsv · GitHub
[go: up one dir, main page]

Skip to content

Server-built battle logs carry the current log_file_version - #437

Merged
inada-s merged 1 commit into
masterfrom
ai/live-log-version
Oct 22, 2026
Merged

inada-s merged 1 commit into
masterfrom
ai/live-log-version

Conversation

@inada-s
@inada-s inada-s commented Oct 22, 2026
Copy link
Copy Markdown
Owner

Summary

  • Live spectating logs (lbs_spectator.go, was 20250101) and MCS room logs (mcs_room.go, was 20210803) now both use battleLogFileVersion = 20261023 (lbs.go).
  • Flycast reads this field the same way it reads a replay file's version. From 20261023 on (inada-s/flycast ai/cost-game-patch), Flycast no longer forces cost 300->295 and takes it from the game patches instead. Below that version it still writes 295 itself.
  • With the old fixed values, a live battle in a lobby without the cost295 patch would play at 295 on the spectator side while the players have 300.

Rollout

  • The cost295 patch has to be in m_patch for dc1 and dc2 (codes below), and every lobby's patch_names has to include it, before the Flycast release ships. Until old clients are gone, a lobby without it would mix 295 (old clients) and 300 (new clients) in one match.

dc1

#FixCost300To295
16, 0x0c1b0fd0, 0x012c, 0x0127

dc2

#FixCost300To295
16, 0x0c21bfec, 0x012c, 0x0127
16, 0x0c21bff4, 0x012c, 0x0127
16, 0x0c21c034, 0x012c, 0x0127

Test

  • go test ./gdxsv/ passes (mcs_room_test checks the constant).

🤖 Generated with Claude Code

Live spectating (20250101) and MCS rooms (20210803) stamped fixed versions.
Flycast reads it like a replay file's version: from 20261023 it no longer
forces cost 295 and takes it from the game patches, so both use
battleLogFileVersion = 20261023.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@inada-s
inada-s merged commit 1a63a17 into master Oct 22, 2026
2 checks passed
@inada-s
inada-s deleted the ai/live-log-version branch October 22, 2026 22:27
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.

1 participant

0