RimWorld

RimWorld

[RH2] Faction: V.O.I.D.
Alex 7 Mar, 2024 @ 3:05pm
VOID base structure can't be generated, enemies stands in ruins
https://gist.github.com/HugsLibRecordKeeper/b3800ff98e053d3660e9f44300072b2a

Picture of bug in game
[img]https://imgur.com/dn9yY40[/img]
----
The error:

Error in DoSettlementGeneration: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at EncounterFramework.Utils.DoGeneration (Verse.Map map, EncounterFramework.LocationData locationData, RimWorld.Faction faction) [0x00c08] in <2bccb8c321cf43ce963cb7610c63f789>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

----
VOID's code EncounterFramework.Utils.DoSettlementGeneration mess up and get this ArgumentOutOfRangeException C# error

The error message is generated by try{} and catch{} syntax and it is at the bottom of DoSettlementGeneration method

so from my understanding of the code, the code try every possible base gen pattern depending on the location on world map. So it can be the biome change by mod/mod added biome that cause this exception?
Last edited by Alex; 7 Mar, 2024 @ 3:08pm
< >
Showing 1-1 of 1 comments
Alex 8 Mar, 2024 @ 12:52am 
It can also be conflict with real ruin
< >
Showing 1-1 of 1 comments
Per page: 1530 50