Opened 8 years ago

Last modified 20 months ago

#3858 new defect

Make AI serialization fully "reproducible" — at Version 5

Reported by: Imarok Owned by:
Priority: Must Have Milestone: Backlog
Component: AI Keywords: AI, Serialization, beta
Cc: Andy Alt 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.

Change History (7)

by mimo, 8 years ago

Attachment: AITerritory.patch added

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

by mimo, 8 years ago

Attachment: AITerritory-v2.patch added

fixed version taking DiplomacyChanged events into account

comment:1 by mimo, 8 years ago

In 18096:

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

comment:2 by elexis, 8 years ago

Milestone: Alpha 21Backlog

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

comment:3 by mimo, 8 years ago

In 18219:

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

Last edited 8 years ago by mimo (previous) (diff)

comment:4 by Imarok, 8 years ago

Keywords: beta added

comment:5 by elexis, 7 years ago

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.

Note: See TracTickets for help on using tickets.