Opened 4 years ago

Closed 3 years ago

#5747 closed defect (duplicate)

Replay diferent from real play (AI serialization)

Reported by: tuxayo Owned by:
Priority: Should Have Milestone:
Component: Core engine Keywords:
Cc: Patch:

Description

The first thing wrong I noticed was that my (blue) cavalry rush had only 3 or 5 cav when in reality it had 15 or 20. Thus in the replay the rush is a total failure instead of destroying red's eco. And red even counter attack and destroys my eco!

A sign of this (when one hasn't seen the real game) is between 11min and 12min blue has a various messages (see when spectating as blue) about not being able to build in neutral territory. In the real game, it was controlled.

After 13 min we can see that blue isn't really active when the replay file should show that I continued to give commands.

We can also see as blue many "insufficient resources" messages

Attachments (2)

2020-05-08_0002.tar.xz (64.6 KB ) - added by tuxayo 4 years ago.
replay
replays-2020-05-10.tar.xz (20.8 KB ) - added by tuxayo 4 years ago.

Download all attachments as: .zip

Change History (13)

by tuxayo, 4 years ago

Attachment: 2020-05-08_0002.tar.xz added

replay

comment:1 by tuxayo, 4 years ago

Anything else useful besides the replay?

comment:2 by tuxayo, 4 years ago

When following the player tuxayo, I pretty sure I can see wrong things after 3 mins. Because it looks like sometimes I'm sending cavs to do nothing when at that moment I was using all of them to hunt. On the left of my civ center. Then on the north, down the hill.

Few minutes after. The never built 2 houses clearly don't make sense. After that it just snowballs.

At least when played twice, the wrong replay is the same.

It's funny that my first game where I got wrecked is saved[1] in #5741 but my 2nd game which is my 1st win doesn't show that in the replay ^^"

[1] Now I'm not sure it's accurate actually.

comment:3 by tuxayo, 4 years ago

Interesting. In the menu before replaying we can see the summary. Which shows that I won as opposed to the summary at the end of the replay.

Idea for automated tests: have a few short replays run and get the summaries and compare them with the original which was saved. Of course it's very resource intensive but it could be nice to run from time to time to ensure the replays aren't broken.

Should I open a ticket for that? (even to have it closed quickly in case it's not a good idea)

comment:4 by Freagarach, 4 years ago

Were you using any mods? Did you save and load the game?

comment:5 by elexis, 4 years ago

According to commands.txt first line there were no mods involved.

If tuxayo saved and loaded the game then the replay from where he loaded the match isnt the replay that started from beginning and isnt a replay that appears in the replay menu.

tuxayo could upload the replay files from the day of that replay, then one could see. The replay uploaded here would still be an authentic replay that happened as is however unless there is a bug we havent become aware of yet.

One suggestion: You can use multiplayer-mode (and still play alone against AI), this way there will be hash states in the replay, and when replaying the match, there will be an error message if the hash doesn't match.

in reply to:  5 ; comment:6 by tuxayo, 4 years ago

Replying to Freagarach:

Were you using any mods?

No.

Did you save and load the game?

You are right.

  • Saved at around second 5
  • Changed a hotkey in user.cfg
  • restarted the game
  • loaded the save

Replying to elexis:

If tuxayo saved and loaded the game then the replay from where he loaded the match isnt the replay that started from beginning and isnt a replay that appears in the replay menu.

It actually appears in the replay menu

tuxayo could upload the replay files from the day of that replay, then one could see. The replay uploaded here would still be an authentic replay that happened as is however unless there is a bug we haven't become aware of yet.

I actually removed the first replay T_T . At first I didn't know what was this 5 second replay... Until your response here.

One suggestion: You can use multiplayer-mode (and still play alone against AI), this way there will be hash states in the replay, and when replaying the match, there will be an error message if the hash doesn't match.

Should I try this? Or is the save/load a known issue?

comment:7 by elexis, 4 years ago

Summary: Replay diferent from real playReplay diferent from real play (AI serialization)

This sounds a lot like #3858.

The replay you uploaded is one that actually happened this way I think, but you thought its the replay after you loaded the game after 5 seconds - at least that model fits the facts.

in reply to:  7 comment:8 by tuxayo, 4 years ago

Replying to elexis:

This sounds a lot like #3858.

The replay you uploaded is one that actually happened this way I think,

but you thought its the replay after you loaded the game after 5 seconds - at least that model fits the facts.

I'm sure the replay of 5 sec that I deleted was first on the list. I hope that helps.

comment:9 by tuxayo, 4 years ago

I reproduced the issue.

  • started a game
  • waited a few seconds
  • saved and restarted the game
  • lost because my rush was weak and late T_T
  • watched the replay
  • 1st thing wrong: 7:30 I didn't have 10 cavs idleling at the civic center
  • 2nd thing wrong: 10:00 my rush was weak but not with one cav!!! "
  • 3rd thing wrong: houses never built

Replays comming

by tuxayo, 4 years ago

Attachment: replays-2020-05-10.tar.xz added

in reply to:  6 comment:10 by Freagarach, 3 years ago

Replying to tuxayo:

Replying to Freagarach:

Did you save and load the game?

You are right.

  • Saved at around second 5
  • Changed a hotkey in user.cfg
  • restarted the game
  • loaded the save

Or is the save/load a known issue?

#4367

comment:11 by Freagarach, 3 years ago

Milestone: Backlog
Resolution: duplicate
Status: newclosed

Replays from savegames are not yet supported.

Note: See TracTickets for help on using tickets.