チケット #44291

"action_is_signal(chance) || chance.max < 200" assert fail

登録: 2022-04-08 03:22 最終更新: 2022-04-22 03:49

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

詳細

S3_0 autogame with variant2 ruleset ended to failing assert "action_is_signal(chance) || chance.max < 200"

I'll try to reproduce, but each iteration is going to take some time as this seems to have happened on turn 2842 (and as loading from the savegame does not result in exactly same state as continuous run from the beginning, we have to make each reproducing run from the beginning)

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

2022-04-08 03:22 更新者: cazfi
  • 新しいチケット ""action_is_signal(chance) || chance.max < 200" assert fail" が作成されました
2022-04-08 17:26 更新者: cazfi
コメント

Reproduced, and backtrace attached.

A lot of things going in that backtrace, but I suspect that the bug is as simple as ap_dipl_battle_win() not clipping the chance after all the modifications. As the calls in the backtrace are only using such value acquired earlier, I need to add logging to confirm that it's what happens, on the next reproducing iteration.

Deciphering the backtrace there's a Spy who is escaping after a successful mission - teleporting to closest own city. For such a teleport (non-adjacent) move unit_move wants to figure out action to take against the city. As the spy as able to poisoning water, that is considered. It's a city-targeted action, for which the success probability comes directly from the likelihood of winning diplomatic battle. Own diplomats should not be considered for such a battle, but I'm guessing there's an allied diplomat in the city that is picked as the potential defender.

2022-04-10 12:18 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
  • マイルストーン(未割り当て) から 3.0.2 (完了済み) に更新されました
  • コンポーネント(未割り当て) から General に更新されました
コメント

Reply To cazfi

I suspect that the bug is as simple as ap_dipl_battle_win() not clipping the chance after all the modifications.

Confirmed to be the cause.

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

添付ファイルリスト

編集

ログインしていません。ログインしていない状態では、コメントに記載者の記録が残りません。 » ログインする