lost-RD / SlowDown

RimWorld mod
MIT License
2 stars 1 forks source link

NullReferenceException when pausing/changing time speed #1

Closed Mehni closed 5 months ago

Mehni commented 6 years ago

Hey Lost. I get a NRE when I try to change the game speed. It's likely a conflict with No Forced Slowdown by Dingo, but I figured I'd let you know. Love the mod!

Loading game from file New Arrivals15 with mods MOD-E, Core, HugsLib, Map Renderer, FoodAlert, Harvesting is for plant cutters, Minigun Handling Techniques, New Zone Tools, Number 22 with rice, RimWorld-Miniaturisation, VeinMiner, [A17] Plant Cutting is for Growers!, Conduit Deconstruct, P-Music , Allow-Tool, JTExport, QualityBuilder, Defensive Positions, Better Workbench Management, Animals Logic, RD Slow Down, No Forced Slowdown, No FireWatcher, Armor Stuff Expanded, More Planning,

[RD_SlowDown] I never saw this message in testing, lucky you!

[AllowTool] Injected 6 designators

QualityBuilder added to orders category.

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 11714.
Total: 90.961510 ms (FindLiveObjects: 0.394188 ms CreateObjectMapping: 0.615238 ms MarkObjects: 89.895248 ms  DeleteObjects: 0.056831 ms)

System.NullReferenceException: Object reference not set to an instance of an object
  at RD_SlowDown.SlowDown.GameComponentOnGUI () [0x00000] in <filename unknown>:0 

System.NullReferenceException: Object reference not set to an instance of an object
  at RD_SlowDown.SlowDown.GameComponentOnGUI () [0x00000] in <filename unknown>:0 

System.NullReferenceException: Object reference not set to an instance of an object
  at RD_SlowDown.SlowDown.GameComponentOnGUI () [0x00000] in <filename unknown>:0 
Verse.Log:Error(String)
RD_SlowDown.SlowDown:GameComponentOnGUI()
Verse.GameComponentUtility:GameComponentOnGUI()
Verse.UIRoot:UIRootOnGUI_Patch1(Object)
RimWorld.UIRoot_Play:UIRootOnGUI()
Verse.Root:OnGUI()
Mehni commented 6 years ago

Additional info: also happens without Dingo's No Forced Slowdown. Doesn't happen on a new save, but it does happen after you load that save.

lost-RD commented 6 years ago

Thanks Mehni, I'll take a look as soon as I can. I'm glad I left that log message in, finally I've seen it. Looks like maybe the settings or events are inaccessible on a load.

lost-RD commented 5 months ago

Assuming I fixed this?