- 好友
- 1
- 在线时间
- 0 小时
- 最后登录
- 2026-2-1
随仆

- UID
- 3840361
- 第纳尔
- 0
- 精华
- 0
- 互助
- 0
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 0
- 注册时间
- 2026-1-13
 鲜花( 0)  鸡蛋( 0)
|
发表于 2026-1-13 19:22:53
|
显示全部楼层
本帖最后由 gsanders 于 2026-1-13 13:46 编辑
ERROR 520 is found by inspecting header_operations.py at the mod's source code
I show that as
troop_get_slot = 520 # (troop_get_slot, <destination>, <troop_id>, <slot_no>),
Now we look at the rest of the message:
ERROR ON OPCODE 520: Invalid Party ID: 1744; LINE NO: 14:
script:process_hero_aiAt script:process_hero_aiAt
script:process_hero_aiAt script:process_hero_aiAt
script:process_hero_aiAt script:process_hero_aiAt
script:process_kingdom_parties_aiAt script:process_kingdom_parties_ai
script_process_kingdom_parties_ai would have been called from module_simple_triggers but to find the 14th line of the script we open module_script.py
search on process_hero_ai and look for the 14th line (not counting labels and white spaces)
called from process_kingdom_parties_ai
As the issue was invalid party ID, there is a party id 1744 that should have been found by a try_for_parties operation
probably as the enemy party in a previous battle as found during by operation (party_get_battle_opponent, <destination>, <party_id>),
called by script_game_event_simulate_battle where the party ID the party was last in battle with has already been removed when trying to access the party leader
Knowing what Warband saw is only half the battle; the real problem is finding when and why the party ID is no longer pointing to a not (disabled or removed) party.
Only the source code can solve that, and for most modules, the source is considered top secret and not published, otherwise anyone could make a mod just a little newer with pretty pictures using code that took 5+ years to develop. But this kind of thinking lets most mods die when the original author gets married/divorced/graduates school/drops dead or any other significant change in their status. Since Warband mods pay exactly 0 (per rule from Taleworlds), mods die daily. But the big mods generally hide their source, to this day, like a dragon sitting on gold coins FOREVER. Pity that.
|
|