Opened 20 months ago

Last modified 7 months ago

#3858 new defect

Make AI serialization fully "reproducible"

Reported by: Imarok Owned by:
Priority: Must Have Milestone: Backlog
Component: AI Keywords: AI, Serialization, beta
Cc: Patch:

Description (last modified by elexis)

This would allow rejoining multiplayer games with AI without having an OOS. As said in this posthttps://wildfiregames.com/forum/index.php?/topic/20592-out-of-sync-error-still-a-known-issue/&do=findComment&comment=314691 the state of the AI after serialization is not exactly the same state as before.

Attachments (2)

AITerritory.patch (5.2 KB) - added by mimo 20 months ago.
let the AI recomputes territories only when receiving TerritoriesChanged? events, to cure one of the nonreproducibilities
AITerritory-v2.patch (5.5 KB) - added by mimo 20 months ago.
fixed version taking DiplomacyChanged? events into account

Download all attachments as: .zip

Change History (8)

Changed 20 months ago by mimo

Attachment: AITerritory.patch added

let the AI recomputes territories only when receiving TerritoriesChanged? events, to cure one of the nonreproducibilities

Changed 20 months ago by mimo

Attachment: AITerritory-v2.patch added

fixed version taking DiplomacyChanged? events into account

comment:1 Changed 19 months ago by mimo

In 18096:

petra: recomputes territory only when receiving some events, refs #3858

comment:2 Changed 19 months ago by elexis

Milestone: Alpha 21Backlog

Correct me if you are planning to work on this in the near future.

comment:3 Changed 18 months ago by mimo

In 18219:

AI: fix serialization of template changes, fixes #3993, refs #3858

Last edited 18 months ago by mimo (previous) (diff)

comment:4 Changed 13 months ago by Imarok

Keywords: beta added

comment:5 Changed 7 months ago by elexis

Description: modified (diff)

https://code.wildfiregames.com/D105 introduces a hint that MP games with AI are not supported. This string should be removed once this ticket becomes fixed.

comment:6 Changed 7 months ago by elexis

In 19491:

Translate the Out-Of-Sync error message and send it to the JS GUI for convenience and future extension.
Add a hint that multiplayer games with AI are currently not supported.

Differential Revision: https://code.wildfiregames.com/D105
Reviewed By: leper
Refs #3858

Note: See TracTickets for help on using tickets.