Ticket #47587

Client counter's ruleset packet not handled in some cases

Open Date: 2023-03-18 04:14 Last Update: 2023-03-27 09:06

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
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 History (3/11 Histories)

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

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 Updated by: cazfi
  • Milestone Update from (None) to 3.2.0
  • Component Update from (None) to Client common
  • Priority Update from 6 to 5 - Medium
Comment

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 Updated by: lachu
Comment

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 Updated by: cazfi
Comment

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

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

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 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2023-03-27 09:06 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Attachment File List

Edit

Please login to add comment to this ticket » Login