Worlds icon indicating copy to clipboard operation
Worlds copied to clipboard

Null ref exception when trying to get dominant faction

Open Zematus opened this issue 3 years ago • 5 comments

Running Worlds 0.3.4 alpha 2 (WindowsPlayer Debug)... Trying to generate world with seed: 12050424, Altitude Scale: 0.75, Sea Level Offset: 0, River Strength: 0.5, Avg. Temperature: 13.7, Avg. Rainfall: 990 Active Mods: Mods\Base [Date: Year 0, Day 0] - Finished generating world with seed: 12050424 [Date: Year 0, Day 0] - Active Mods: Mods\Base [Date: Year 0, Day 0] - Player went back to mode selection dialog. [Date: Year 0, Day 0] - Game entered history simulator mode. [Date: Year 0, Day 0] - Player set starting speed to 7... [Date: Year 0, Day 0] - Player chose to do random population placement of 5019... [Date: Year 0, Day 0] - Adding random population group [0] at [324,140] with population: 5019 [Date: Year 881890, Day 33] - Removing polity prominence of faction that had core in group 0000000000274301510:0829065853962778644, removing faction 0000000000319386023:0829065852836477546 - polity: 0000000000319395149:0829065855526915886 - Date:321889883 [Date: Year 1201676, Day 264] - Removing polity prominence of faction that had core in group 0000000000110164438:8158879611651224628, removing faction 0000000000435866837:8158879611651224628 - polity: 0000000000435866837:8158879611651224628 - Date:438612004 [Date: Year 1230042, Day 346] - Removing polity prominence of faction that had core in group 0000000000285145551:1382237591873140476, removing faction 0000000000438071012:1382237590845001392 - polity: 0000000000358204261:1705286197463977044 - Date:448965676 [Date: Year 1334376, Day 215] - Removing polity prominence of faction that had core in group 0000000000403670882:2368100770462449360, removing faction 0000000000486777565:2368100770462449360 - polity: 0000000000486777565:2368100770462449360 - Date:487047455 [Date: Year 1526705, Day 280] - Removing polity prominence of faction that had core in group 0000000000391390433:2575626641291680560, removing faction 0000000000551447968:2575626639965949246 - polity: 0000000000545215893:2460103906530075192 - Date:557247605 [Date: Year 1620937, Day 300] - Removing polity prominence of faction that had core in group 0000000000001148373:7556708709795072096, removing faction 0000000000492104691:7556708710005343424 - polity: 0000000000492113817:7556708710568358532 - Date:591642305 [Date: Year 1992148, Day 65] - NullReferenceException: Object reference not set to an instance of an object PolityEntity.GetDominantFaction () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Entities/PolityEntity.cs:174) DelayedSetEntity1[T].get_Setable () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Entities/Utility Entities/DelayedSetEntity.cs:92) FactionEntity.get_Faction () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Entities/FactionEntity.cs:24) GetRelationshipAttribute.get_Value () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Entities/Attributes/Faction Entity Attributes/GetRelationshipAttribute.cs:26) ValueEntityAttributeExpression1[T].get_Value () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Expressions/ValueEntityAttributeExpression.cs:23) PropertyEntity1[T].get_Value () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Entities/Property Entities/PropertyEntity.cs:23) ValueEntity1[T].GetValue () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Entities/Utility Entities/ValueEntity.cs:38) ValueGetterExpression1[T].get_Value () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Expressions/ValueGetterExpression.cs:16) SubtractExpression.get_Value () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Expressions/NumericExpressions/SubtractExpression.cs:32) MultiplyExpression.get_Value () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Expressions/NumericExpressions/MultiplyExpression.cs:34) PropertyEntity1[T].get_Value () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Entities/Property Entities/PropertyEntity.cs:23) ValueEntity1[T].GetValue () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Entities/Utility Entities/ValueEntity.cs:38) ValueGetterExpression1[T].get_Value () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Expressions/ValueGetterExpression.cs:16) ValueGetterExpression`1[T].get_ValueObject () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Modding/Expressions/ValueGetterExpression.cs:18) ModDecision.InitEvaluation () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/WorldEngine/Decisions/Decision Generation/ModDecision.cs:160) GuiManagerScript.TryResolvePendingDecisions () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/2D/GuiManagerScript.cs:2369) GuiManagerScript.Update () (at C:/Users/jb_ta/Documents/GitHub/Worlds/Assets/Scripts/2D/GuiManagerScript.cs:621)

Zematus avatar Apr 08 '21 03:04 Zematus

debug_11_05_2021_10_55_13-1.log

world_1498479954.plnt

Zematus avatar May 11 '21 15:05 Zematus

debug(2).log

AutoSave(1).plnt

Zematus avatar May 12 '21 16:05 Zematus