Battle-Modders / mod-reforged

The main repository for the Battle Brothers Reforged mod.
16 stars 0 forks source link

` the index 'DefenderProperties' does not exist` crash to desktop #543

Closed kovasap closed 1 month ago

kovasap commented 2 months ago

See my log at https://drive.google.com/file/d/1UGuEisHx24459GMg0f_j3K4cAuwOb_CI/view?usp=drive_link

I think this is the most relevant part:

02:47:05SQ
Invincible Spear Syker uses skill Prong
02:47:05Script Error
the index 'DefenderProperties' does not exist
Function:
-> mod_modular_vanilla/hooks/skills/skill.nut : 533
Variables:
hitInfo = Table, injuries = Array, bodyPartDamageMult = 1, bodyPart = 0, partHit = 67, _info = Table, this = Table
Function:
-> scripts/!mods_preload/mod_hitchance_caps_98_2.nut : 227
Variables:
info = Table, isHit = True, r = 12, shield = Null, shieldBonus = 0, skill = 78, toHit = 78, distanceToTarget = 2, levelDifference = 0, defense = 0, defenderProperties = Table, astray = False, userTile = Instance, properties = Table, _allowDiversion = True, _targetEntity = Table, _user = Instance, this = Table
Function:
acall -> NATIVE : -1
Function:
-> career_stats/skill.nut : 12
Variables:
attackEntity = Function, vargv = Array, this = Table
Function:
-> msu/hooks/skills/skill.nut : 317
Variables:
__original = Function, targetEntity = Table, container = Instance, _forFree = False, _targetTile = Instance, this = Table
Function:
executeEntitySkill -> scripts/states/tactical_state.nut : 1343
Variables:
skill = Table, _targetTile = Instance, _activeEntity = Table, this = Table
Function:
setActionStateByMouseEvent -> scripts/states/tactical_state.nut : 1037
Variables:
tile = Instance, activeEntity = Table, _mouseEvent = Instance, this = Table
02:47:05Script Error
the index 'DefenderProperties' does not exist
Function:
-> career_stats/skill.nut : 12
Variables:
attackEntity = Function, vargv = Array, this = Table
Function:
-> msu/hooks/skills/skill.nut : 317
Variables:
__original = Function, targetEntity = Table, container = Instance, _forFree = False, _targetTile = Instance, this = Table
Function:
executeEntitySkill -> scripts/states/tactical_state.nut : 1343
Variables:
skill = Table, _targetTile = Instance, _activeEntity = Table, this = Table
Function:
setActionStateByMouseEvent -> scripts/states/tactical_state.nut : 1037
Variables:
tile = Instance, activeEntity = Table, _mouseEvent = Instance, this = Table
02:47:06Core
A critical exception occured.
02:47:06Core
Modules & Application Stacktrace:
SymInit: Symbol-SearchPath: '.;D:\SteamLibrary\steamapps\common\Battle Brothers;D:\SteamLibrary\steamapps\common\Battle Brothers\win32;C:\WINDOWS;C:\WINDOWS\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'kovas'
OS-Version: 6.2.9200 () 0x300-0x1
02:47:06Core
Script Stacktrace:
kovasap commented 2 months ago

This looks like it may be an incompatibility with the mod_hitchance_caps_98_2 mod

LordMidas commented 1 month ago

This is not a Reforged error but rather an incompatibility with one of your mods. One of your mods overwrites the attackEntity function of skill.nut making it incompatible with the Modular Vanilla mod which is a dependency of Reforged. You must remove that mod (to identify it you should look through the zip files of your mods and see which mod overwrites that function). As you mentioned in a comment above, perhaps it is the mod_hitchance_caps_92_2 mod.