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 )
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)
Change History (9)
by , 9 years ago
Attachment: | t3467_supplement_missing_playerData_v1.patch added |
---|
comment:1 by , 9 years ago
Keywords: | patch review added |
---|---|
Milestone: | Backlog → Alpha 19 |
Owner: | set to |
Status: | new → assigned |
Summary: | Visual replay menu - civ errors for autostart games → [PATCH] Visual replay menu - Civ and Name undefined for autostart games |
comment:2 by , 9 years ago
Milestone: | Alpha 19 → Alpha 20 |
---|
comment:3 by , 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 , 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 , 8 years ago
Milestone: | Alpha 20 → Backlog |
---|
comment:6 by , 8 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
comment:7 by , 5 years ago
Component: | UI & Simulation → Core engine |
---|
Move tickets to their correct component.
comment:8 by , 2 years ago
Description: | modified (diff) |
---|---|
Milestone: | Backlog → Alpha 26 |
Patch: | → Phab:D4492 |
Resolution: | → fixed |
Status: | new → closed |
[26584]
Let the Gamesetup.cpp
Autostart (starting from cl) use the gamesettings via the autostart gui page.
That autostart code is not funny.
Currently autostart games on random maps use athen by default, see
Autostart()
inGameSetup.cpp
. Skirmish maps useplayer_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.