チケット #43647

lack of City_Vision_Radius_Sq effect with no reqs causes assert errors

登録: 2022-01-18 06:00 最終更新: 2022-04-27 13:57

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

詳細

If ruleset file effects.ruleset does not contain a City_Vision_Radius_Sq effect with no reqs, get assert errors. Should have ruleset loading time sanity check for this. See forum thread http://forum.freeciv.org/f/viewtopic.php?f=11&p=104769

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

2022-01-18 06:00 更新者: ddeanbrown
  • 新しいチケット "lack of City_Vision_Radius_Sq effect with no reqs causes assert errors" が作成されました
2022-04-09 06:37 更新者: cazfi
  • マイルストーン(未割り当て) から S3_1 d3f (完了済み) に更新されました
  • コンポーネントRulesets から Server に更新されました
コメント

We can't enforce this in (d3f) S3_0, as there are legal configurations where the "base" effect is needed - anything where there's parallel effects with such requirements that one of them is always active.

In S3_1 we can still declare requirement for base effect part of the format -> making this an S3_1-d3f issue.

2022-04-14 16:15 更新者: cazfi
コメント

At least for the implementation I have in mind, fixing #44371 is a dependency.

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

Attached patches do not check against the provided base effect having value 0 (or even negative one). If the ruleset author adds such a thing, they at least do it intentionally, and have nobody else to than themselves to blame if it bites them. It can even be handy as a temporary solution in migrating the ruleset from old format to the new.

We may turn that check stricter in the later versions.

2022-04-21 04:21 更新者: cazfi
  • 解決法受領 から なし に更新されました
コメント

In S3_1 version sanity_check_ruleset_data() uses compat without checking against if it's NULL, and there is a call with NULL compat.

2022-04-22 06:15 更新者: cazfi
  • 解決法なし から 受領 に更新されました
コメント

Reply To cazfi

In S3_1 version sanity_check_ruleset_data() uses compat without checking against if it's NULL, and there is a call with NULL compat.

Fixed

2022-04-25 05:15 更新者: cazfi
コメント

- Corrections to a comment

2022-04-27 13:57 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

編集

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