RimWorld

RimWorld

[1.4] Vanilla Factions Expanded - Medieval
Harmonea 24 Mar, 2023 @ 2:07am
NullReferenceException related to Ideo Cultures on starting Renegade Lord scenario
Error from Player.log:
Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object at RimWorld.Page_ChooseIdeoPreset+<>c.<PostOpen>b__25_0 (RimWorld.CultureDef x) [0x0000a] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at System.Linq.Enumerable+WhereListIterator`1[TSource].ToList () [0x00017] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at Verse.GenCollection.TryRandomElement[T] (System.Collections.Generic.IEnumerable`1[T] source, T& result) [0x00029] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at RimWorld.Page_ChooseIdeoPreset.PostOpen () [0x0004c] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at Verse.WindowStack.Add (Verse.Window window) [0x0003a] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at RimWorld.Page.DoNext () [0x0000d] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at RimWorld.Page_SelectStartingSite.<>n__0 () [0x00000] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at RimWorld.Page_SelectStartingSite+<>c__DisplayClass17_0.<DoNext>b__0 () [0x00010] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at RimWorld.Planet.SettlementProximityGoodwillUtility.CheckConfirmSettle (System.Int32 tile, System.Action settleAction) [0x000bb] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at RimWorld.Page_SelectStartingSite.DoNext () [0x0001d] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at RimWorld.Page_SelectStartingSite.DoCustomBottomButtons () [0x00346] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at RimWorld.Page_SelectStartingSite.ExtraOnGUI () [0x00032] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at Verse.WindowStack.WindowStackOnGUI () [0x00038] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at Verse.UIRoot_Entry.UIRootOnGUI () [0x0003d] in <3f18ad3e53b3425f9e38babcac471e1f>:0 at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root) (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Load order from ModsConfig.xml:

<activeMods> <li>brrainz.harmony</li> <li>ludeon.rimworld</li> <li>ludeon.rimworld.royalty</li> <li>ludeon.rimworld.ideology</li> <li>oskarpotocki.vanillafactionsexpanded.core</li> <li>oskarpotocki.vanillafactionsexpanded.medievalmodule</li> </activeMods>

Steps to reproduce:

1. Start a new colony
2. Select the Renegade Lord scenario
3. Select any storyteller and world settings, these do not seem to matter
4. Select any colony site and click "Next"

What should happen:
-The world map is removed from player view and the ideology screen appears.
-At any time before the player hits the start button on the colonist selection screen, the player SHOULD be able to hit the back button to go reselect a colony site if desired.
-After hitting the start button, play should immediately zoom in to the colony map.

What happens instead:
-The world map is not removed from player view; instead, the ideology screen is drawn over it along with the above error.
-Attempting to create a custom ideoligion after receiving the error results in a darkened and not fully operable ideo customization screen. (image[i.imgur.com])
-If the player selects a pre-built ideology, it's possible to click next and go to the colonist selection screen, but it becomes impossible to go back to site selection, because clicking the back button alternates between the ideology and colonist selection, with the error repeating on each return to the ideology screen.
-After hitting the start button, play stays zoomed out over the world map view, though players may manually zoom in for normal play.

Please let me know if I can provide any more information.
Last edited by Harmonea; 24 Mar, 2023 @ 2:10am
< >
Showing 1-6 of 6 comments
Lord Beef Broth 26 Mar, 2023 @ 9:35am 
Thank you for showing this. I kept running into this issue with the New Kingdom scenario, and it was driving me crazy trying to figure out which mod was responsible.
Spürgelwürg 2 Apr, 2023 @ 9:21am 
To fix it, add in FactionDefs to VFEM_PlayerKingdom the line:
<allowedCultures><li>VFEM_Feudal</li></allowedCultures>

Either got lost in a corrupt steam update, or they forgot.

Also, the Site VFE_Skirmish the tag <expandingIconTexture> has the same texture as the <siteTexture> and could be replaced with
<expandingIconTexture>World/WorldObjects/Skirmish</expandingIconTexture>
. No wonder I never really saw it.
Last edited by Spürgelwürg; 2 Apr, 2023 @ 9:22am
velascoje 15 Apr, 2023 @ 10:32am 
Is this going to be fixed? Still happening 4/15/23.
Fera 24 May, 2023 @ 3:46pm 
Originally posted by Spürgelwürg:
To fix it, add in FactionDefs to VFEM_PlayerKingdom the line:
<allowedCultures><li>VFEM_Feudal</li></allowedCultures>

Either got lost in a corrupt steam update, or they forgot.

Also, the Site VFE_Skirmish the tag <expandingIconTexture> has the same texture as the <siteTexture> and could be replaced with
<expandingIconTexture>World/WorldObjects/Skirmish</expandingIconTexture>
. No wonder I never really saw it.

Thank you for the fix, this error has been driving me crazy. Hope this gets a proper fix eventually.
Hanz 1 Jun, 2023 @ 9:34pm 
Just wanted to chime in. This is still an issue. Error log is identical. I apparently have never actually used the Renegade Lord start, and just so happened to try it when another mod updated. Spent 3 hours trying to see if I had a load order issue. Spurglewurg's fix worked for me.
Dartfish 22 Jul, 2023 @ 3:50pm 
Originally posted by Spürgelwürg:
To fix it, add in FactionDefs to VFEM_PlayerKingdom the line:
<allowedCultures><li>VFEM_Feudal</li></allowedCultures>

Either got lost in a corrupt steam update, or they forgot.

Also, the Site VFE_Skirmish the tag <expandingIconTexture> has the same texture as the <siteTexture> and could be replaced with
<expandingIconTexture>World/WorldObjects/Skirmish</expandingIconTexture>
. No wonder I never really saw it.


I'm sorry, where do you add this in? The mod file itself under the steam folders?
< >
Showing 1-6 of 6 comments
Per page: 1530 50