任务单 #47587

Client counter's ruleset packet not handled in some cases

开放日期: 2023-03-18 04:14 最后更新: 2023-03-27 09:06

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
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.

任务单历史 (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
评论

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
  • 里程碑 Update from (无) to 3.2.0
  • 组件 Update from (无) to Client common
  • 优先 Update from 6 to 5 - Medium
评论

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
评论

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
评论

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

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

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
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
2023-03-27 09:06 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

Attachment File List

编辑

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