Skip to content

Replay playback continues when the map is missing and reports a CRC mismatch #3262

Description

@bobtista

Playing back a replay whose map is not installed does not fail. The game loads, plays, and reports a CRC mismatch a few frames in. That looks identical to a real desync, so it sends you hunting for a simulation bug that is not there.

Repro

  1. Take a replay recorded on a user map (M=userdata/maps/<name> in the header).
  2. Make sure that map is not installed.
  3. generalszh.exe -headless -replay "<file>.rep"

Result: Could not find map "<path>", then CRC Mismatch in Frame 110. Playback carries on regardless.

Expected: playback stops with a clear error naming the missing map.

Suggested fix

Fail when TheMapCache->findMap returns NULL instead of carrying on with defaults. The replay header already stores the map CRC and size (MC= and MS=), so playback could also check the installed map matches the recording.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebugIs mostly debug functionalityGenRelates to GeneralsMinorSeverity: Minor < Major < Critical < BlockerZHRelates to Zero Hour

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions