Ticket #45072

Sandbox: Demonstrate counters

Eröffnet am: 2022-07-09 05:19 Letztes Update: 2022-08-06 14:30

Auswertung:
Verantwortlicher:
(Keine)
Typ:
Status:
Offen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
2

Details

sandbox ruleset should have a demonstration of using counters.

Ticket-Verlauf (3/9 Historien)

2022-07-09 05:19 Aktualisiert von: cazfi
  • New Ticket "Sandbox: Demonstrate counters" created
2022-08-01 21:15 Aktualisiert von: lachu
Kommentar

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 Aktualisiert von: ihnatus
Kommentar

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 Aktualisiert von: lachu
Kommentar

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 Aktualisiert von: ihnatus
Kommentar

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 Aktualisiert von: lachu
Kommentar

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

2022-08-06 14:30 Aktualisiert von: cazfi
Kommentar

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.

Dateianhangliste

Bearbeiten

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