Skip to content

Weapons not loading on previous save #7

Description

@FishCells

After last nights update on April 26th, 2024 I loaded up a save and all weapons with attachments were not working properly. They are missing their attachment information on the weapons information page. Logs are spammed with the message below

System.NullReferenceException: Object reference not set to an instance of an object
  at RW_ModularizationWeapon.CompModularizationWeapon.get_AttachmentProperties () [0x0008b] in <ac95a7763fcf48e89a1e752751fbb8e3>:0 
  at RW_ModularizationWeapon.CompModularizationWeapon.WeaponAttachmentPropertiesById (System.String id) [0x00008] in <ac95a7763fcf48e89a1e752751fbb8e3>:0 
  at RW_ModularizationWeapon.CompModularizationWeapon.GetStatMultiplier (RimWorld.StatDef statDef, Verse.Thing part) [0x000e3] in <ac95a7763fcf48e89a1e752751fbb8e3>:0 
  at RW_ModularizationWeapon.CompModularizationWeapon.FinalStatWorker_FinalizeValue (RimWorld.StatWorker statWorker, RimWorld.StatRequest req, System.Boolean applyFinalProcess, System.Single result, System.Collections.Generic.Dictionary`2[TKey,TValue] stats, System.Exception exception) [0x0016b] in <ac95a7763fcf48e89a1e752751fbb8e3>:0 
  at RW_NodeTree.CompBasicNodeComp.internal_FinalStatWorker_FinalizeValue (RimWorld.StatWorker statWorker, RimWorld.StatRequest req, System.Boolean applyPostProcess, System.Single result, System.Collections.Generic.Dictionary`2[TKey,TValue] stats, System.Exception exception) [0x00000] in <686b507bf87b42fdbd6272a7e6706f89>:0 
  at RW_NodeTree.CompChildNodeProccesser.FinalStatWorker_FinalizeValue (RimWorld.StatWorker statWorker, RimWorld.StatRequest req, System.Boolean applyPostProcess, System.Single result, System.Collections.Generic.Dictionary`2[TKey,TValue] stats, System.Exception exception) [0x00015] in <686b507bf87b42fdbd6272a7e6706f89>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string)
RW_NodeTree.CompChildNodeProccesser:FinalStatWorker_FinalizeValue (RimWorld.StatWorker,RimWorld.StatRequest,bool,single,System.Collections.Generic.Dictionary`2<string, object>,System.Exception)
RW_NodeTree.Patch.StatWorker_Patcher:FinalStatWorker_FinalizeValue (RimWorld.StatWorker,RimWorld.StatRequest,bool,single&,System.ValueTuple`2<System.Collections.Generic.Dictionary`2<string, object>, RW_NodeTree.CompChildNodeProccesser>,System.Exception)
(wrapper dynamic-method) RimWorld.StatWorker:RimWorld.StatWorker.FinalizeValue_Patch3 (RimWorld.StatWorker,RimWorld.StatRequest,single&,bool)
(wrapper dynamic-method) RimWorld.StatWorker:RimWorld.StatWorker.GetValue_Patch0 (RimWorld.StatWorker,RimWorld.StatRequest,bool)
RimWorld.StatWorker:GetValue (Verse.Thing,bool,int)
RimWorld.StatExtension:GetStatValue (Verse.Thing,RimWorld.StatDef,bool,int)
Verse.Thing:get_MaxHitPoints ()
RimWorld.GenLabel:ThingLabel (Verse.Thing,int,bool,bool)
Verse.Thing:get_LabelNoCount ()
Verse.ThingWithComps:get_LabelNoCount ()
Verse.Thing:get_Label ()
Verse.Thing:get_LabelCap ()
RimWorld.InspectPaneUtility:AdjustedLabelFor (System.Collections.Generic.List`1<object>,UnityEngine.Rect)
RimWorld.MainTabWindow_Inspect:GetLabel (UnityEngine.Rect)
RimWorld.InspectPaneUtility:InspectPaneOnGUI (UnityEngine.Rect,RimWorld.IInspectPane)
RimWorld.MainTabWindow_Inspect:DoWindowContents (UnityEngine.Rect)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions