骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买霸主CDKEY 购买战帆CDKEY
查看: 2192|回复: 1

[求助] 求助RROR ON OPCODE 520: Invalid Party ID: 1744; LINE NO: 14:

[复制链接]

1

主题

2

回帖

6

积分

平民

Rank: 1

UID
3297800
第纳尔
13
精华
0
互助
1
荣誉
0
贡献
0
魅力
0
注册时间
2021-12-12
鲜花(0) 鸡蛋(0)
发表于 2023-8-15 21:38:30 | 显示全部楼层 |阅读模式
战团玩着玩着发现信息开始不显示了,包括战斗信息和其他的,点开最近信息都是这个鬼,求助大神大佬。RROR 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


1

主题

31

回帖

10

积分

随仆

Rank: 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.


   



您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2026-2-2 16:43 , Processed in 0.091334 second(s), 20 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表