Help Needed: Error with Save System for Opsive Controllers

Announcements, support questions, and discussion for Save System for Opsive Character Controllers.
Post Reply
aliambere
Posts: 2
Joined: Mon Sep 23, 2024 8:13 am

Help Needed: Error with Save System for Opsive Controllers

Post by aliambere »

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:

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)
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!
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Help Needed: Error with Save System for Opsive Controllers

Post by Tony Li »

Hi,

Are you using the Save System for Opsive Controllers asset or the save system included with Quest Machine, Dialogue System, and Love/Hate? They're the same save system, but this will be helpful to know.

What version are you using? Line 123 of SaveSystem.cs is not a code line, so the error message is strange.
Post Reply