Ticket #46055

Cyclic improvement obsoletion

Open Date: 2022-11-10 03:43 Last Update: 2024-02-09 15:37

Reporter:
Owner:
(None)
Type:
Status:
Open
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
1

Details

With a bit of sophisticated fantasy, you can create a ruleset where not only several buildings obsolete each other (that's normal - e.g. small wonders represent mutually excepting specialities of a civilization), but at some point two improvements obsoleting each other may appear together that will turn the requirement calculator cycled (e.g.: wonder A is obsoleted by technology X and wonder B at Player range, so is wonder B by Y and A; Player 1 (knowing Y but not X) built A, Player 2 (knowing X but not Y) built B, then one of them forgets all technologies and conquers another one's wonder city). It would be probably too complicated to catch such situations on ruleset load, we should have a method of tie breaking.

Ticket History (3/10 Histories)

2022-11-10 03:43 Updated by: ihnatus
  • New Ticket "Cyclic improvement obsoletion" created
2022-11-10 03:57 Updated by: cazfi
Comment

There was a meta-ticket about "infinite recursions" opened recently (and one related ticket might be duplicate of this)

Sorry for being mostly absent currently - personal reasons.

2022-11-10 05:02 Updated by: ihnatus
Comment

Yes, it's a duplicate (but extended) of #45963. I have put some code that I wanted to put into improvement.c but I don't know if it will work and even if it will, would it be the best solution.

2022-12-10 18:30 Updated by: cazfi
2023-02-03 00:34 Updated by: cazfi
2023-04-04 03:09 Updated by: cazfi
2023-06-29 00:35 Updated by: cazfi
2023-11-10 15:05 Updated by: cazfi
2024-02-09 15:37 Updated by: cazfi

Attachment File List

Edit

Please login to add comment to this ticket » Login