Getting "SaveHelper" error when attempting to use the visual novel framework, method names seemed to have changed.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
LethDavidson
Posts: 7
Joined: Sun Mar 01, 2020 6:02 am

Getting "SaveHelper" error when attempting to use the visual novel framework, method names seemed to have changed.

Post by LethDavidson »

Howdy!

So I made a fresh project on the latest Unity 2019.3.3f1, impored dialogsystem as well as the menu extension, and when i attempt to add the visual novel framework I then recieve: Assets\Dialogue System Extras\Dialogue System Menu Framework\Scripts\TitleMenu.cs(30,17): error CS0246: The type or namespace name 'SaveHelper' could not be found (are you missing a using directive or an assembly reference?)

I went and saw taht the namespaces didn't line up, but even after getting it to recognize it i now have it telling me that :
var hasSavedGame = (m_saveHelper != null) ? m_saveHelper.HasAnySavedGame() : false;

doens't work cuz SaveHelper doesn't contain .HasAnySavedGame() anymore, and yeah it doesn't as far as I can see. So i imagine i need to change the function call name, however i'm not sure what i need to change it to in order to not break stuff. Any ideas on what's up or how i need to adapt the script? Thanks!
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Getting "SaveHelper" error when attempting to use the visual novel framework, method names seemed to have changed.

Post by Tony Li »

Hi,

The Visual Novel Framework and Menu Framework aren't compatible with each other. I recommend removing both from your project, and then importing only the Visual Novel Framework.
LethDavidson
Posts: 7
Joined: Sun Mar 01, 2020 6:02 am

Re: Getting "SaveHelper" error when attempting to use the visual novel framework, method names seemed to have changed.

Post by LethDavidson »

Okie doke that makes sense, thank you!
If you do have the time, putting an * note about that incompatibility on the dl page would be appreciated, as nothing about the two seem like they would conflict just form reading the pages. Might prevent future confusion. Either way, thank you!
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Getting "SaveHelper" error when attempting to use the visual novel framework, method names seemed to have changed.

Post by Tony Li »

Good thinking. Thank you for the feedback!
Post Reply