You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to assign any FArray object into an array field crashes the game. This means rather unintuitively, the following example will cause a crash:
obj1=bl2sdk.FindObject("MissionDefinition", "GD_Anemone_Side_VaughnPart2.M_Anemone_VaughnPart2")
obj2=bl2sdk.FindObject("WeaponTypeDefinition", "GD_Weap_Pistol.A_Weapons.WeaponType_Jakobs_Pistol")
obj3=bl2sdk.FindObject("SkillDefinition", "GD_Assassin_Skills.Bloodshed.Execute")
obj4=bl2sdk.FindObject("ItemPoolDefinition", "GD_CustomItemPools_Lilac.Psycho.BlueBold")
# Each line here causes a crashobj1.Dependencies=obj1.Dependenciesobj2.WeaponIdleAnimations=obj2.WeaponIdleAnimationsobj3.SkillConstraints=obj3.SkillConstraintsobj4.BalancedItems=obj4.BalancedItems
If you convert the FArray into a list beforehand it will correctly be set, and the game won't crash. Not all fields support being assigned from a list however.
Trying to assign any FArray object into an array field crashes the game. This means rather unintuitively, the following example will cause a crash:
If you convert the FArray into a list beforehand it will correctly be set, and the game won't crash. Not all fields support being assigned from a list however.
The text was updated successfully, but these errors were encountered: