Tíquete #47587

Client counter's ruleset packet not handled in some cases

: 2023-03-18 04:14 Última Atualização: 2023-03-27 09:06

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
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
Comentário

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
  • Marco Update from (Nenhum) to 3.2.0
  • Componente Update from (Nenhum) to Client common
  • Prioridade Update from 6 to 5 - Medium
Comentário

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
Comentário

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
Comentário

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

2023-03-22 22:42 Updated by: lachu
Comentário

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
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Nenhum to Accepted
2023-03-27 09:06 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed

Attachment File List

Editar

Please login to add comment to this ticket » Login