[A16.1387 Unstable] minifiedDef in benches cause warning spam

Started by notfood, December 14, 2016, 07:24:32 PM

Previous topic - Next topic

notfood

Using build 1387.

Steps to reproduce:
1. Add <minifiedDef>MinifiedFurniture</minifiedDef> to any bench that has BenchBase as parent.
2. In game build the bench, then order it to be minified.
3. Select resulting minified furniture.

Logs:Got temperature for null map.
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
Verse.Log:Error(String) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Debug\Log\Log.cs:46)
Verse.GenTemperature:TryGetTemperatureForCell(IntVec3, Map, Single&) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Map\Temperature\GenTemperature.cs:72)
Verse.GenTemperature:GetTemperatureForCell(IntVec3, Map) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Map\Temperature\GenTemperature.cs:61)
RimWorld.StatPart_WorkTableTemperature:Applies(ThingDef, Map, IntVec3) (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\Utility\Stats\StatParts\StatPart_WorkTableTemperature.cs:40)
RimWorld.StatPart_WorkTableTemperature:Applies(Thing) (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\Utility\Stats\StatParts\StatPart_WorkTableTemperature.cs:32)
RimWorld.CompReportWorkSpeed:CompInspectStringExtra() (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\ThingComps\CompReportWorkSpeed.cs:14)
Verse.ThingWithComps:InspectStringPartsFromComps() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Thing\ThingWithComps.cs:344)
Verse.ThingWithComps:GetInspectString() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Thing\ThingWithComps.cs:334)
RimWorld.MinifiedThing:GetInspectString() (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\Thing\Art\MinifiedThing.cs:201)
RimWorld.InspectPaneFiller:DrawInspectStringFor(ISelectable, Single&) (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\MainTabs\Inspect\InspectPaneFiller.cs:180)
RimWorld.InspectPaneFiller:DoPaneContentsFor(ISelectable, Rect) (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\MainTabs\Inspect\InspectPaneFiller.cs:56)
RimWorld.MainTabWindow_Inspect:DoPaneContents(Rect) (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\MainTabs\MainTabWindows\MainTabWindow_Inspect.cs:97)
RimWorld.InspectPaneUtility:InspectPaneOnGUI(Rect, IInspectPane) (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\MainTabs\Inspect\InspectPaneUtility.cs:173)
RimWorld.MainTabWindow_Inspect:DoWindowContents(Rect) (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\MainTabs\MainTabWindows\MainTabWindow_Inspect.cs:82)
Verse.<WindowOnGUI>c__AnonStorey291:<>m__1A0(Int32) (at C:\Dev\RimWorld\Assets\Scripts\Verse\UI\Windows\Window.cs:190)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle) (at /home/builduser/buildslave/unity/build/Runtime/IMGUI/Managed/GUI.cs:1896)




I suspect it's the new feature that <workSpeedPenaltyTemperature>true</workSpeedPenaltyTemperature> enables.

Tynan

This isn't really a game bug since you created it by modding, but I've fixed it to make this kind of modding a bit easier.

Thanks for reporting.
Tynan Sylvester - @TynanSylvester - Tynan's Blog