Opened 5 years ago

Last modified 16 months ago

#5546 reopened defect

First turn (turn 0) not executed in visual replays.

Reported by: Freagarach Owned by: wraitii
Priority: Nice to Have Milestone: Backlog
Component: Core engine Keywords: replay
Cc: Patch: Phab:D3067

Description (last modified by wraitii)

Commands given in turn 0 are not executed in visual-replay mode. Attached one can find two replays, the only difference being that the first replay has the cheats commanded at turn 0 and the second replay has the cheats commanded at turn 1. Replays are SVN 22574.

When moving a non-interacting command (e.g. reveal map) from turn 0 to turn 1 the hash does not change. But when moving e.g. the metacheat from turn 0 to turn 1 the hash does change. Moving the latter from turn 1 to turn 2 does not change the hash as well.

Attachments (2)

commands.txt (10.5 KB ) - added by Freagarach 5 years ago.
Replay 1.
commands.2.txt (10.5 KB ) - added by Freagarach 5 years ago.
Replay 2.

Download all attachments as: .zip

Change History (13)

by Freagarach, 5 years ago

Attachment: commands.txt added

Replay 1.

by Freagarach, 5 years ago

Attachment: commands.2.txt added

Replay 2.

comment:1 by Freagarach, 5 years ago

Description: modified (diff)

comment:2 by Freagarach, 5 years ago

Description: modified (diff)
Priority: Should HaveNice to Have

comment:3 by Freagarach, 4 years ago

(See also #5185.)

comment:4 by wraitii, 3 years ago

Description: modified (diff)
Milestone: BacklogAlpha 24
Owner: set to wraitii
Patch: Phab:D3067
Summary: First turn (turn 0) not executed in replays.First turn (turn 0) not executed in visual replays.

comment:5 by wraitii, 3 years ago

Resolution: fixed
Status: newclosed

In 24280:

Fix visual-replays not processing turn 0 commands.

Use FinishedOwnCommands, which is intented to plan commands for the N+2 turn, but can be used to run commands immediately by the replay manager, and unlike FinishedUpdate is called before the first update.

Reported by: Freagarach

Fixes #5546

Differential Revision: https://code.wildfiregames.com/D3067

comment:6 by wraitii, 3 years ago

In 24764:

Revert rP24280, causing false OOS in visual replays.

rP24280 fixed #5546, but it seems to cause some rare OOS in visual replays, as reported in #5909. The culprit is likely that hashes aren't computed at quite the same moment and onDestroy changes things.

Reverting for now before A24.

Reported by: Angen

Refs #5546.
Fixes #5909

comment:7 by wraitii, 3 years ago

Resolution: fixed
Status: closedreopened

Reopening following revert, need to give a better look at the code it seems.

comment:8 by wraitii, 3 years ago

Milestone: Alpha 24Alpha 25

comment:9 by Stan, 3 years ago

Milestone: Alpha 25Alpha 26

comment:10 by Stan, 2 years ago

Milestone: Alpha 26Alpha 27

Unlikely to get done for A26

comment:11 by Freagarach, 16 months ago

Milestone: Alpha 27Backlog

Pushing back.

Note: See TracTickets for help on using tickets.