チケット #41122

Support for multiple counters of the same type

登録: 2021-01-08 15:48 最終更新: 2022-12-03 00:36

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
3

詳細

While still having City Owned counter as the only supported counter type, add support multiple counters of that type. The counters can differ from each other by their rule_name and checkpoint.

Test by introducing two City Owned counters with different checkpoints. That way there should be three different situations; 1) neither counter has reached checkpoint, 2) first counter has reached checkpoint, 3) both counters have reached checkpoints. Introduce two effects that have these counters as requirements to see that these situations do happen.

チケットの履歴 (15 件中 3 件表示)

2021-01-08 15:48 更新者: cazfi
  • 新しいチケット "Support for multiple counters of the same type" が作成されました
2022-08-01 19:22 更新者: lachu
2022-08-01 19:22 更新者: lachu
  • 添付ファイル 0001-OSDN-41122-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 9995) が削除されました
2022-08-01 19:24 更新者: lachu
コメント

Done and tested (in real workload).

2022-08-06 14:26 更新者: cazfi
コメント

Hmm... yeah, maybe it makes sense to implement this one before #41123 after all - given that this adds setting of counter 'index' on the server side.

---

The "game.h" include should be in "/* common */" includes section, and the source file's own header ("counters.h") should be last, in a section of it's own.

2022-08-09 04:09 更新者: lachu
  • 添付ファイル 0001-OSDN-41122-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10045) が付加されました
2022-08-09 04:09 更新者: lachu
  • 添付ファイル 0001-OSDN-41122-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 10045) が削除されました
2022-08-12 04:59 更新者: lachu
コメント

Reply To cazfi

Hmm... yeah, maybe it makes sense to implement this one before #41123 after all - given that this adds setting of counter 'index' on the server side. --- The "game.h" include should be in "/* common */" includes section, and the source file's own header ("counters.h") should be last, in a section of it's own.

I forgot to reply. Is the:

2022-08-09 04:09 Updated by: lachu

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

correct?

2022-08-21 14:53 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
コメント

Works nicely. I noticed that it does allow adding multiple counters by the same name, which obviously leads to problems, but let's investigate that in a new ticket (likely counters are not the only ruleset item affected)

2022-08-23 05:06 更新者: cazfi
コメント

Reply To cazfi

I noticed that it does allow adding multiple counters by the same name, which obviously leads to problems, but let's investigate that in a new ticket (likely counters are not the only ruleset item affected)

-> #45428

Tested some other ruleset items, and ruleset loading time sanity checking wasn't catching them either.

2022-08-23 05:59 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました
2022-12-03 00:15 更新者: lachu
コメント

I need to add counter initialization routines somewhere. I think this ticket is related. Reopen it? Counter initialization is needed for #45892 and #45891 . Should I just create a new ticket? Currently initialization was part of ruleset loading routines.

2022-12-03 00:36 更新者: cazfi
コメント

Reply To lachu

I need to add counter initialization routines somewhere. I think this ticket is related. Reopen it? Counter initialization is needed for #45892 and #45891 . Should I just create a new ticket? Currently initialization was part of ruleset loading routines.

New ticket.

添付ファイルリスト

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする