Ticket #45072

Sandbox: Demonstrate counters

Open Date: 2022-07-09 05:19 Last Update: 2022-08-06 14:30

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

Details

sandbox ruleset should have a demonstration of using counters.

Ticket History (3/9 Histories)

2022-07-09 05:19 Updated by: cazfi
  • New Ticket "Sandbox: Demonstrate counters" created
2022-08-01 21:15 Updated by: lachu
Comment

I copy example from some patch example ruleset's changes.

But I decided to add one more thing - reduce production for conquered cities.

I set def value to 6, checkpoint to 5, so If player create city, there;s no production penalty. But server sets the counter's value to 0, when city was conquered. Taking above in mind, each city's tile should get food penalty, when city is conquered, but no when founded.

But something do not work.

2022-08-02 01:11 Updated by: ihnatus
Comment

Yup, currently "OWNED" counters are zeroed any time a city gets an owner and for complicated effects we must have a control of the reason why it happens (like the "reason" parameter in "transfer_city" callback). But now for new cities we may turn the effect off by "Age" requirement.

2022-08-02 03:27 Updated by: lachu
Comment

Reply To ihnatus

Yup, currently "OWNED" counters are zeroed any time a city gets an owner and for complicated effects we must have a control of the reason why it happens (like the "reason" parameter in "transfer_city" callback). But now for new cities we may turn the effect off by "Age" requirement.

The reason may be good, but currently we have default value. When city is built, it counters get the default values. When conquered, OWNED are zeroed. I check in the code twice.

2022-08-02 06:53 Updated by: ihnatus
Comment

Reply To lachu

The reason may be good, but currently we have default value. When city is built, it counters get the default values. When conquered, OWNED are zeroed. I check in the code twice.

Hm yes, looked at it, likely some inconsistency but that's an early realization any way. As a wild guess, some underflow in tile output value?

2022-08-02 23:24 Updated by: lachu
Comment

It looks like client do not update tile information on minimap. But I update ruleset too.

2022-08-06 14:30 Updated by: cazfi
Comment

Reply To lachu

... client do not update ...

You've not implemented #41123. Likely we need also another network protocol change ticket before the client side really begins to work.

Attachment File List

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login