Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null ref exception when trying to get dominant faction #295

Open
Zematus opened this issue Apr 8, 2021 · 5 comments
Open

Null ref exception when trying to get dominant faction #295

Zematus opened this issue Apr 8, 2021 · 5 comments
Labels
bug High High priority
Milestone

Comments

@Zematus
Copy link
Owner

Zematus commented Apr 8, 2021

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 Zematus added bug High High priority labels Apr 8, 2021
@Zematus Zematus added this to the 0.3.4 alpha 2 milestone Apr 8, 2021
@Zematus
Copy link
Owner Author

Zematus commented Apr 15, 2021

@Zematus
Copy link
Owner Author

Zematus commented Apr 25, 2021

@Zematus
Copy link
Owner Author

Zematus commented May 11, 2021

debug_11_05_2021_10_55_13-1.log

world_1498479954.plnt

@Zematus
Copy link
Owner Author

Zematus commented May 12, 2021

debug(2).log

AutoSave(1).plnt

@Zematus
Copy link
Owner Author

Zematus commented May 20, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug High High priority
Projects
None yet
Development

No branches or pull requests

1 participant