shabbywu / Battle-Brothers-CN

Battle Brothers(战场兄弟)中文翻译项目
https://battle-brothers-cn.shabbywu.cn/
GNU General Public License v3.0
509 stars 6 forks source link

【BUG】游戏卡死 #215

Open FaelGnahz opened 6 months ago

FaelGnahz commented 6 months ago

问题描述 新的翻译器目前还是有问题,接野兽任务第一次不显示,第二次会UI消失卡死

如何复现 复现问题的步骤: 点击对应类型任务在城镇界面的“展开卷轴”图标 新旧启动器均会发生这个错误

操作系统信息: Windows 10 22H2

Additional context

22:45:10
SQ
位置已输入:达哈卜
22:45:11
Scene
Finished saving scene.
22:45:12
SQ
展示合约:狩猎野兽 (id: 13)
22:45:12
Script Error
the index 'RenderTemplate' does not exist
Function:
_7ed3a9a60d3a40520e968646bbb6b198d6f9095e605e74b3ce980383a2fbf276 -> __main__ : 3
Variables:
this = Table
Function:
start -> scripts/contracts/contracts/roaming_beasts_desert_contract.nut : 66
Variables:
this = Table
Function:
setState -> scripts/contracts/contract.nut : 358
Variables:
_state = Table, this = Table
Function:
start -> scripts/contracts/contract.nut : 196
Variables:
this = Table
Function:
start -> scripts/contracts/contracts/roaming_beasts_desert_contract.nut : 54
Variables:
this = Table
Function:
showContract -> scripts/contracts/contract_manager.nut : 318
Variables:
_c = Table, this = Table
Function:
showContractByID -> scripts/contracts/contract_manager.nut : 297
Variables:
c = Table, _id = 13, this = Table
Function:
onContractClicked -> scripts/ui/screens/world/world_town_screen.nut : 445
Variables:
_data = 13, this = Table
22:45:13
SQ
展示合约:狩猎野兽 (id: 13)
22:45:13
Script Error
the index 'Text' does not exist
Function:
getUIContent -> scripts/contracts/contract.nut : 479
Variables:
result = Array, this = Table
Function:
convertEventToUIData -> scripts/ui/screens/world/world_event_screen.nut : 166
Variables:
_event = Table, this = Table
Function:
show -> scripts/ui/screens/world/world_event_screen.nut : 95
Variables:
_withSlideAnimation = False, _event = Table, this = Table
Function:
showEventScreenFromTown -> scripts/states/world_state.nut : 355
Variables:
_playSound = False, _isContract = True, _event = Table, this = Table
Function:
showContract -> scripts/contracts/contract_manager.nut : 326
Variables:
_c = Table, this = Table
Function:
showContractByID -> scripts/contracts/contract_manager.nut : 297
Variables:
c = Table, _id = 13, this = Table
Function:
onContractClicked -> scripts/ui/screens/world/world_town_screen.nut : 445
Variables:
_data = 13, this = Table
shabbywu commented 6 months ago

收到,尽快处理。

shabbywu commented 6 months ago

找到问题了. 重构时改漏了2行,导致未注入这个 RenderTemplate 函数

shabbywu commented 6 months ago

翻译器已更新 1.1.0,这个 bug 需要玩几天才能触发,隐藏比较深。

FaelGnahz commented 6 months ago

👍