任务单 #44291

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

开放日期: 2022-04-08 03:22 最后更新: 2022-04-22 03:49

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
3

Details

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)

任务单历史 (3/7 Histories)

2022-04-08 03:22 Updated by: cazfi
  • New Ticket ""action_is_signal(chance) || chance.max < 200" assert fail" created
2022-04-08 17:26 Updated by: 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 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
  • 里程碑 Update from (无) to 3.0.2 (关闭)
  • 组件 Update from (无) to 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 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

Attachment File List

编辑

Please login to add comment to this ticket » 登录名