Barren Rimworld

Started by Wolf619, December 19, 2017, 03:04:11 PM

Previous topic - Next topic

Wolf619

http://steamcommunity.com/sharedfiles/filedetails/?id=1236664326
I've posted my mod here but when you run it in dev mod you get an error, it doesn't affect the game or generator it seems but it's just annoying.
I know it has to do with the fact that it does not like that I messed with the world generator and removed factions that way, maybe there is a better way? I'm posting this in unfinished although its already on steam, it works but just the small error.
Anyone got a fix for me? It's probably something small I am missing!
Thanks for the help in advance! Error only shows up in DEV mode won't show up with out DEV mode on, which is why I published the mod as is.

#####Error on world map:#######

RimWorld 0.18.1722 rev1198
Verse.Log:Message(String)
RimWorld.VersionControl:LogVersionNumber()
Verse.Root:CheckGlobalInit()
Verse.Root:Start()
Verse.Root_Entry:Start()

Getting random element from empty collection.
Verse.Log:Warning(String)
Verse.GenCollection:RandomElement(IEnumerable`1)
RimWorld.FactionGenerator:GenerateFactionsIntoWorld()
RimWorld.Planet.WorldGenStep_Factions:GenerateFresh(String)
RimWorld.Planet.WorldGenerator:GenerateWorld(Single, String, OverallRainfall, OverallTemperature)
RimWorld.Page_CreateWorldParams:<CanDoNext>m__0()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()

Error in WorldGenStep: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.FactionGenerator.NewGeneratedFaction (RimWorld.FactionDef facDef) [0x00000] in <filename unknown>:0
  at RimWorld.FactionGenerator.GenerateFactionsIntoWorld () [0x00000] in <filename unknown>:0
  at RimWorld.Planet.WorldGenStep_Factions.GenerateFresh (System.String seed) [0x00000] in <filename unknown>:0
  at RimWorld.Planet.WorldGenerator.GenerateWorld (Single planetCoverage, System.String seedString, OverallRainfall overallRainfall, OverallTemperature overallTemperature) [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
RimWorld.Planet.WorldGenerator:GenerateWorld(Single, String, OverallRainfall, OverallTemperature)
RimWorld.Page_CreateWorldParams:<CanDoNext>m__0()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()






#####then this error at the colonist world level######


RimWorld 0.18.1722 rev1198
Verse.Log:Message(String)
RimWorld.VersionControl:LogVersionNumber()
Verse.Root:CheckGlobalInit()
Verse.Root:Start()
Verse.Root_Entry:Start()

Getting random element from empty collection.
Verse.Log:Warning(String)
Verse.GenCollection:RandomElement(IEnumerable`1)
RimWorld.FactionGenerator:GenerateFactionsIntoWorld()
RimWorld.Planet.WorldGenStep_Factions:GenerateFresh(String)
RimWorld.Planet.WorldGenerator:GenerateWorld(Single, String, OverallRainfall, OverallTemperature)
RimWorld.Page_CreateWorldParams:<CanDoNext>m__0()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()

Error in WorldGenStep: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.FactionGenerator.NewGeneratedFaction (RimWorld.FactionDef facDef) [0x00000] in <filename unknown>:0
  at RimWorld.FactionGenerator.GenerateFactionsIntoWorld () [0x00000] in <filename unknown>:0
  at RimWorld.Planet.WorldGenStep_Factions.GenerateFresh (System.String seed) [0x00000] in <filename unknown>:0
  at RimWorld.Planet.WorldGenerator.GenerateWorld (Single planetCoverage, System.String seedString, OverallRainfall overallRainfall, OverallTemperature overallTemperature) [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
RimWorld.Planet.WorldGenerator:GenerateWorld(Single, String, OverallRainfall, OverallTemperature)
RimWorld.Page_CreateWorldParams:<CanDoNext>m__0()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()

Initializing new game with mods Core, 867467808, and Barren Rimworld
Verse.Log:Message(String)
Verse.Game:InitNewGame()
Verse.Root_Play:<Start>m__1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()

RandomElementByWeight with totalWeight=0 - use TryRandomElementByWeight.
Verse.Log:Error(String)
Verse.GenCollection:RandomElementByWeight(IEnumerable`1, Func`2)
RimWorld.WildSpawner:SpawnRandomWildAnimalAt(IntVec3)
RimWorld.GenStep_Animals:Generate(Map)
Verse.MapGenerator:GenerateContentsIntoMap(IEnumerable`1, Map)
Verse.MapGenerator:GenerateMap(IntVec3, MapParent, MapGeneratorDef, IEnumerable`1, Action`1)
Verse.Game:InitNewGame()
Verse.Root_Play:<Start>m__1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()

No spawnable animals right now.
Verse.Log:Error(String)
RimWorld.WildSpawner:SpawnRandomWildAnimalAt(IntVec3)
RimWorld.GenStep_Animals:Generate(Map)
Verse.MapGenerator:GenerateContentsIntoMap(IEnumerable`1, Map)
Verse.MapGenerator:GenerateMap(IntVec3, MapParent, MapGeneratorDef, IEnumerable`1, Action`1)
Verse.Game:InitNewGame()
Verse.Root_Play:<Start>m__1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()




SpaceDorf

You are in Luck, there is :
Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker

Wolf619

Yes i know about Rainbeau's faction control, but I'm making something different

SpaceDorf

#3
But you could look up how he handles removing factions and events

It would be helpful if you described what you Plan to do.
Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker

Wolf619

Yeah Rainbeau's mod isn't done with def's I think it's done in c#? I can't look at any of the things he does.

The mod I am spawns no factions or animals at so I'm getting a small error when the mod starts up. I just want to make it so I won't get that error.

If you want to try the mod out or take at look at my defs go ahead it's on steam!

http://steamcommunity.com/sharedfiles/filedetails/?id=1236664326