shabbywu / Battle-Brothers-CN

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

新翻译器好像不支持modding script hooks #200

Closed BarbChosen closed 6 months ago

BarbChosen commented 7 months ago

data目录添加了hooks和hx_breditor这俩mod,使用新翻译器,翻译顺利完成。但用旧启动器开玩,屏幕黑屏,不显示界面了。 删去两个mod,旧启动器才能正常游戏。 附日志和mod文件: mod_hooks.zip-42-20-1-1621709174.zip mod_hx_breditor_VANILLA-294-4-31-1664773426.zip

23:52:14IO
Unexpected file or directory found: mod_hooks.zip-42-20-1-1621709174.zip
23:52:14IO
Unexpected file or directory found: mod_hx_breditor_VANILLA-294-4-31-1664773426.zip
23:52:14IO
Unexpected file or directory found: zdata_cn.zip
23:52:14IO
The game uses modified files or files that are not part of the official release. If you encounter any issues, please first remove any mods and try again before contacting support.
23:52:14Resource
Unloading: shaders/fow.vs
23:52:14Resource
Unloading: shaders/fow.fs
23:52:15Texture
Texture "gfx/fow.png" (ID: 5) took up approximately 16384kb in video memory.
23:52:15Resource
Unloading: shaders/water.vs
23:52:15Resource
Unloading: shaders/water.fs
23:52:15Texture
Texture "gfx/water.png" (ID: 6) took up approximately 16384kb in video memory.
23:52:15Texture
Texture "gfx/world_tiles.png" (ID: 7) took up approximately 43680kb in video memory.
23:52:15Texture
Texture "gfx/world_special.png" (ID: 8) took up approximately 256kb in video memory.
23:52:15Texture
Texture "gfx/terrain.png" (ID: 9) took up approximately 10912kb in video memory.
23:52:15Texture
Texture "gfx/transitions.png" (ID: 10) took up approximately 5456kb in video memory.
23:52:15Resource
Parsed Resource Package "preload/on_start.txt" with 5 items.
23:52:15Resource
Started loading Resource Package "preload/on_start.txt".
23:52:15Texture
Compressed texture "gfx/effects_0.png" from 16384kb to 4096kb.
23:52:15Texture
Compressed texture "gfx/world_weather.png" from 32768kb to 8192kb.
23:52:15Texture
Texture "gfx/ui.png" (ID: 13) took up approximately 10922kb in video memory.
23:52:15Texture
Texture "gfx/fonts/cinzel_bold_20.png" (ID: 14) took up approximately 512kb in video memory.
23:52:15Texture
Texture "gfx/fonts/cinzel_bold_100.png" (ID: 15) took up approximately 8192kb in video memory.
23:52:16SQ
mod_hooks: Redirecting core functions
23:52:16SQ
mod_hooks: mod_hooks (modding script hooks) version 21.1 registered.
23:52:16SQ
mod_hooks: mod_breditor (Breditor) version 1 registered.
23:52:16SQ
mod_hooks: Executing queued script for mod_breditor (Breditor).
23:52:17UI
Screen 'RootScreen' successfully registered.
23:52:17UI
Screen 'ConsoleScreen' successfully registered.
23:52:17UI
Screen 'LoadingScreen' successfully registered.
23:52:17UI
Screen 'TooltipScreen' successfully registered.
23:52:17UI
Screen 'DialogScreen' successfully registered.
23:52:17UI
Screen 'TacticalScreen' successfully registered.
23:52:17UI
Screen 'TacticalCombatResultScreen' successfully registered.
23:52:17UI
Screen 'TacticalDialogScreen' successfully registered.
23:52:17UI
Screen 'WorldScreen' successfully registered.
23:52:17UI
Screen 'WorldTownScreen' successfully registered.
23:52:17UI
Screen 'WorldGameFinishScreen' successfully registered.
23:52:17UI
Screen 'WorldEventPopupScreen' successfully registered.
23:52:17UI
Screen 'WorldEventScreen' successfully registered.
23:52:17UI
Screen 'WorldCombatDialog' successfully registered.
23:52:17UI
Screen 'WorldRelationsScreen' successfully registered.
23:52:17UI
Screen 'WorldObituaryScreen' successfully registered.
23:52:17UI
Screen 'WorldCampfireScreen' successfully registered.
23:52:17UI
Screen 'MainMenuScreen' successfully registered.
23:52:17UI
Screen 'WorldMenuScreen' successfully registered.
23:52:17UI
Screen 'TacticalMenuScreen' successfully registered.
23:52:17UI
Screen 'WorldCharacterScreen' successfully registered.
23:52:17UI
Screen 'TacticalCharacterScreen' successfully registered.
23:52:17UI
JS coui://ui/screens.js:105:63: ReferenceError: Can't find variable: WorldBreditorScreen
23:52:17Script
VM collected 4 object(s) and deleted them.
23:52:32Core
Shutting down engine core.
shabbywu commented 7 months ago

可能是 mod 挂载的顺序有些问题,我看下

shabbywu commented 7 months ago

@BarbChosen 修复了旧版本的翻译器报错的问题,建议目前继续使用旧版本。

新版本翻译器因为重构了,所以有可能出现表现不一致。我需要将翻译后的文件逐个对比确认下。

shabbywu commented 6 months ago

确认了是Mod挂载的逻辑写反了。。。等修复其他问题后更新新的

shabbywu commented 6 months ago

问题理论上已修复, 我在自测中. https://github.com/shabbywu/Battle-Brothers-CN/releases/tag/v20240525