Help Needed: Error with Save System for Opsive Controllers
Posted: Tue Sep 24, 2024 12:51 am
Hi everyone,
I’ve been working on integrating the Save System with Opsive's Ultimate Character Controller and ran into an issue I can't seem to resolve. Everything was going smoothly until I tried saving and loading data for my player character’s progress, and now I’m hitting an error that’s preventing the game from loading properly.
Here’s what’s happening: after the player saves the game, the save file gets created without any issues. However, when attempting to load, the game freezes, and I get the following error in the console:
I’ve double-checked the save points and components I’ve added, and I made sure that the player character has the necessary saveable components. I’m also calling SaveSystem.SaveToSlot(1) and SaveSystem.LoadFromSlot(1) in the right places, but the error persists.
Has anyone run into a similar issue, or does anyone have ideas on what might be causing this? I suspect I might be missing a critical setup step, but I’m not sure where to look next. Any tips or guidance would be much appreciated!
Thanks in advance for your help!
I’ve been working on integrating the Save System with Opsive's Ultimate Character Controller and ran into an issue I can't seem to resolve. Everything was going smoothly until I tried saving and loading data for my player character’s progress, and now I’m hitting an error that’s preventing the game from loading properly.
Here’s what’s happening: after the player saves the game, the save file gets created without any issues. However, when attempting to load, the game freezes, and I get the following error in the console:
Code: Select all
NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.SaveSystem.Load (System.String) (at Assets/PixelCrushers/SaveSystem.cs:123)
Has anyone run into a similar issue, or does anyone have ideas on what might be causing this? I suspect I might be missing a critical setup step, but I’m not sure where to look next. Any tips or guidance would be much appreciated!
Thanks in advance for your help!