RimWorld

RimWorld

Vanilla Furniture Expanded - Security
Mihokyo 29 Feb, 2020 @ 5:42am
[Bug]Beartrap
Beartrap are bugged when they are minimized and reloading save => They have no minimized picture and make (Form Caravan, Selling) broken when you are scrolling at BearTrap


FromCaravan / Selling bug => https://www.noelshack.com/2020-09-6-1582983630-bt1.jpg

Minimized visual bug => https://www.noelshack.com/2020-09-6-1582983630-bt2.jpg

Visual bug without reloading => https://www.noelshack.com/2020-09-6-1582983630-bt3.jpg

Originally posted by Debug log:
Exception drawing MinifiedThing569578: System.NullReferenceException: Object reference not set to an instance of an object
at VFESecurity.Building_TrapBear.get_Graphic () [0x00001] in <a8aacccfe3a14f0b99683e4c913e5ad9>:0
at RimWorld.MinifiedThing.get_Graphic () [0x00012] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
at RimWorld.MinifiedThing.DrawAt (UnityEngine.Vector3 drawLoc, System.Boolean flip) [0x00077] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
at Verse.Thing.Draw () [0x00007] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
at Verse.ThingWithComps.Draw () [0x00000] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
at Verse.DynamicDrawManager.DrawDynamicThings () [0x000d8] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
Verse.Log:Error(String, Boolean)
Verse.DynamicDrawManager:DrawDynamicThings()
Verse.Map:MapUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
Last edited by Mihokyo; 29 Feb, 2020 @ 5:42am
< >
Showing 1-4 of 4 comments
verybigcat 6 Apr, 2020 @ 4:54pm 
I'm getting this too, has it been figured out?

Edit: I assume other people are stupid like me and are going to encounter this, so let me explain what I found out. You probably got this because, like me, you were save scumming during a fight; you had bear traps on the ground that got destroyed during the fight, and you happened to save and load while some of those bear traps were destroyed or "minified" or something. I don't remember precisely how it happens, but the problem is that an object got turned into an install-able object when it shouldn't have been. I guess it's not a mod specific bug, so basically just go into dev mode and destroy the minified objects and the error spam will stop. For me, I didn't even have to go into dev mode, I could just order my pawns to destruct the minified bear trap.
Last edited by verybigcat; 10 Apr, 2020 @ 8:56am
obviouslyacat 2 Feb, 2022 @ 2:53am 
Originally posted by Mihokyo:
Beartrap are bugged when they are minimized and reloading save => They have no minimized picture and make (Form Caravan, Selling) broken when you are scrolling at BearTrap


FromCaravan / Selling bug => https://www.noelshack.com/2020-09-6-1582983630-bt1.jpg

Minimized visual bug => https://www.noelshack.com/2020-09-6-1582983630-bt2.jpg

Visual bug without reloading => https://www.noelshack.com/2020-09-6-1582983630-bt3.jpg

Originally posted by Debug log:
Exception drawing MinifiedThing569578: System.NullReferenceException: Object reference not set to an instance of an object
at VFESecurity.Building_TrapBear.get_Graphic () [0x00001] in <a8aacccfe3a14f0b99683e4c913e5ad9>:0
at RimWorld.MinifiedThing.get_Graphic () [0x00012] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
at RimWorld.MinifiedThing.DrawAt (UnityEngine.Vector3 drawLoc, System.Boolean flip) [0x00077] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
at Verse.Thing.Draw () [0x00007] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
at Verse.ThingWithComps.Draw () [0x00000] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
at Verse.DynamicDrawManager.DrawDynamicThings () [0x000d8] in <33b99ab6cf5748ec8fe371b3321b9db6>:0
Verse.Log:Error(String, Boolean)
Verse.DynamicDrawManager:DrawDynamicThings()
Verse.Map:MapUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

This is happening to me as well. If the bear traps are uninstalled, there are issues with the caravan as mentioned by the OP. Further, reloading the game spawns the uninstalled bear traps but their graphics are missing.

Stopped using bear traps as a result.
Splaetos 7 Mar, 2022 @ 8:16am 
A year later.

Originally posted by verybigcat:
You probably got this because, like me, you were save scumming during a fight

No.

This happens with only VE Security installed, any time you load a save with packed up bear traps. I should say "I" instead of you obviously, but the point is - this is not user error.

In case anyone else comes looking and thinks they did something wrong.
albucc 30 Apr, 2023 @ 7:18am 
And yet another year, with another victim. What I did to recover my save was to convert the bear trap into steel directly from my save file.

Open the save file , look for a minified thing similar to this:
<thing Class="MinifiedThing"> <def>MinifiedThing</def> <id>MinifiedThing1278</id> <map>0</map> <pos>(126, 0, 130)</pos> <health>100</health> <stackCount>1</stackCount> <questTags IsNull="True" /> <sourcePrecept>null</sourcePrecept> <everSeenByPlayer>True</everSeenByPlayer> <innerContainer Class="Verse.ThingOwner`1[Verse.Thing]"> <maxStacks>1</maxStacks> <innerList> <li Class="VFESecurity.Building_TrapBear"> <def>VFES_BearTrap</def> <id>VFES_BearTrap1142</id> <pos>(126, 0, 121)</pos> <health>40</health> <stuff>Steel</stuff> <faction>Faction_15</faction> <questTags IsNull="True" /> <armed>True</armed> <autoRearm>True</autoRearm> <testees> <li>Thing_Human889</li> </testees> </li> </innerList> </innerContainer> </thing>

I've simply replaced it with a stack of 130 steel:

<thing Class="ThingWithComps"> <def>Steel</def> <id>Steel9999</id> <map>0</map> <pos>(126, 0, 130)</pos> <stackCount>130</stackCount> <questTags IsNull="True" /> </thing>
< >
Showing 1-4 of 4 comments
Per page: 1530 50