Skip to content

Wrong replay and database data with Non-Fixed TeamSpawn Settings (e.g., 'balanced') #6878

@Gatsik

Description

@Gatsik

Describe the issue

When the lobby setting TeamSpawn is set to 'balanced' (or any non-'fixed' value), several problems occur:

  1. Misleading Replay Header Army Information
    The replay header displays incorrect army details (ArmyName, StartSpot). It doesn't reflect the post-auto-balance state

  2. Incorrect Faction Recording in game_player_stats
    If a player selects "Random" faction in the lobby, the game_player_stats database table records their actual faction instead of the intended "Random" value (5) (it is recorded by the server, but the server receives it from the game)

Expected Behavior

ArmyName and StartSpots are adjusted correctly to reflect changes made by auto-balancing, random faction remains random

Screenshots

Example on the replay 25111746

From parsed data:

Image

Expected:

Image

Actual pre-start lobby:

Image

Scoreboard appearance:

Image

Example of scoreboard with some random factions:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions