Opened 9 years ago

Closed 2 years ago

#3467 closed defect (fixed)

[PATCH] Visual replay menu - Civ and Name undefined for autostart games

Reported by: elexis Owned by:
Priority: Should Have Milestone: Alpha 26
Component: Core engine Keywords: patch
Cc: Patch: Phab:D4492

Description (last modified by Langbart)

If you start a match from command-line using the autostart arguments, the playerData objects may not contain the Civ property, causing an error when trying to show the description of that replay.

Reported by Stan.

Attachments (1)

t3467_supplement_missing_playerData_v1.patch (2.8 KB ) - added by elexis 9 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by elexis, 9 years ago

Keywords: patch review added
Milestone: BacklogAlpha 19
Owner: set to elexis
Status: newassigned
Summary: Visual replay menu - civ errors for autostart games[PATCH] Visual replay menu - Civ and Name undefined for autostart games

That autostart code is not funny.

Currently autostart games on random maps use athen by default, see Autostart() in GameSetup.cpp. Skirmish maps use player_defaults.json and scenario maps come with predefined civs.

Also notice that autostart games might not have their Name property set.

So we just supplement all possible missing properties with the player defaults and mimic the weird civ-behaviour for random maps until we improve the autostart function.

comment:2 by elexis, 9 years ago

Milestone: Alpha 19Alpha 20

comment:3 by Stan, 8 years ago

I'm getting a similar issue when trying to replay Atlas commands,as there are no player_data too. http://pastebin.com/S9jiuMb6

comment:4 by leper, 8 years ago

Keywords: review removed

We could also not display anything in case the information is missing (and autostart is a dev only feature, so no point in adding a lot of code to support that in the replay menu). (Same for Atlas commands.txt which are most likely broken too)

We either should make autostart load some of those defaults or do as little work as possible to not cause any errors in the replay menu.

comment:5 by Itms, 8 years ago

Milestone: Alpha 20Backlog

comment:6 by elexis, 8 years ago

Owner: elexis removed
Status: assignednew

comment:7 by Imarok, 5 years ago

Component: UI & SimulationCore engine

Move tickets to their correct component.

comment:8 by Langbart, 2 years ago

Description: modified (diff)
Milestone: BacklogAlpha 26
Patch: Phab:D4492
Resolution: fixed
Status: newclosed

[26584] Let the Gamesetup.cpp Autostart (starting from cl) use the gamesettings via the autostart gui page.

Note: See TracTickets for help on using tickets.