I'm trying to make a mod to change how much influence is given from Council of Commons to be multiplied by a factor of .2 to help out with late-game influence inflation and bring that policy more in line with other influence gains. I've found the relevant section that handles influence change due to policies under Sandbox.GameComponents DefaultClanPoliticsModel class. I inherited from the class with my own sub-module myPolicies to override CalculateInfluenceChange. I also copied the private static TextObjects that are occasionally used through CalculateInfluenceChange.
However, when I try to run the game with my sub-module edits, the game crashes on startup due to NullReferences from the TextObjects. I tried simply replacing the whole Default Model and also inheriting and overriding the override within the default model but it still crashes. Seems like the game is trying to load my sub-module before campaign start and failing to find those TextObject strings. Any ideas on how to fix this?
However, when I try to run the game with my sub-module edits, the game crashes on startup due to NullReferences from the TextObjects. I tried simply replacing the whole Default Model and also inheriting and overriding the override within the default model but it still crashes. Seems like the game is trying to load my sub-module before campaign start and failing to find those TextObject strings. Any ideas on how to fix this?