边缘世界 RimWorld

边缘世界 RimWorld

Vanilla Furniture Expanded - Security
Mihokyo 2020 年 2 月 29 日 上午 5:42
[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

引用自 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()
最后由 Mihokyo 编辑于; 2020 年 2 月 29 日 上午 5:42
< >
正在显示第 1 - 4 条,共 4 条留言
verybigcat 2020 年 4 月 6 日 下午 4:54 
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.
最后由 verybigcat 编辑于; 2020 年 4 月 10 日 上午 8:56
obviouslyacat 2022 年 2 月 2 日 上午 2:53 
引用自 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

引用自 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 2022 年 3 月 7 日 上午 8:16 
A year later.

引用自 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 2023 年 4 月 30 日 上午 7:18 
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>
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50