Ticket #47587

Client counter's ruleset packet not handled in some cases

Eröffnet am: 2023-03-18 04:14 Letztes Update: 2023-03-27 09:06

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
3

Details

Currently, only owned and city counter are properly handled. I missed this piece of code (if statement in client code related to networking), so default value, checkpoint and others was not initialized, which causes strange behavior, which may occur sometime, sometime another strange behavior was caused, etc.

To be descriptive, it was caused by not initializing counter memory (do not copy default/checkpoint/etc.) from packet, where packet is related to CELEBRATION or DISORDER type. In future it may be related to other types.

Ticket-Verlauf (3/11 Historien)

2023-03-18 04:14 Aktualisiert von: lachu
  • New Ticket "Client counter's ruleset packet not handled in some cases " created
2023-03-18 04:19 Aktualisiert von: lachu
Kommentar

I look again at code and everything seems to work, but number city counters was not increased, so effects does not taking place. Values are set, but strange effect occurs without this patch.

2023-03-21 07:29 Aktualisiert von: cazfi
  • Meilenstein Update from (Keine) to 3.2.0
  • Komponente Update from (Keine) to Client common
  • Priorität Update from 6 to 5 - Mittel
Kommentar

It makes no sense to have such lists of ALL counters here and there. For the time being (as we have only city counters) you should be able to use just counter_behavior_is_valid()

2023-03-22 00:06 Aktualisiert von: lachu
Kommentar

Reply To cazfi

It makes no sense to have such lists of ALL counters here and there. For the time being (as we have only city counters) you should be able to use just counter_behavior_is_valid()

0001-OSDN-47587-S-awomir-Lach-slawek-lach.art.pl.patch(1KB)
Code refactorization to reduce work needed for further changes

This should do the trick.

2023-03-22 04:48 Aktualisiert von: cazfi
Kommentar

Patch doesn't apply. Tried both main and S3_2 branches.

2023-03-22 22:42 Aktualisiert von: lachu
Kommentar

2023-03-22 22:42 Updated by: lachu

File 0001-OSDN-47587-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 11938) is attached

Should apply. I work on other changes, when preparing previous patch (should switch to main and create new branch or squash changes).

2023-03-25 16:00 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
2023-03-27 09:06 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Dateianhangliste

Bearbeiten

Please login to add comment to this ticket » Anmelden