Switch to full style
Discussion and help for Easy Save 3
Post a reply

"Specified cast is not valid" when using Playmaker Load

Sun Jun 09, 2019 5:30 pm

When using load on playmaker for ints and bools after saving the engine gives a "Specified cast is not valid" error. Arrays and Gameobject's work fine so I am unsure as to why. This only started recently, it worked fine previously and I have not updated anything in that time.

EDIT. If I delete the save file it works fine but once it saves it gives this error.
Attachments
Screenshot (29).png
Only Saving Array and Gameobject
Screenshot (29).png (109.22 KiB) Viewed 372 times
Screenshot (28).png
The Console
Screenshot (28).png (70.49 KiB) Viewed 372 times
Screenshot (27).png
With Loading Bool
Screenshot (27).png (115.96 KiB) Viewed 372 times

Re: "Specified cast is not valid" when using Playmaker Load

Mon Jun 10, 2019 4:47 pm

Hi there,

Please could you show me the actions you are using to save? This error is thrown when the type of data you are loading is different to the action you are using to load it with.

All the best,
Joel

Re: "Specified cast is not valid" when using Playmaker Load

Mon Jun 10, 2019 10:37 pm

Here is the save action.

P.S. I love the tool, it has helped immensely with the development time!
Attachments
Screenshot (32).png
Save Action
Screenshot (32).png (110.34 KiB) Viewed 367 times

Re: "Specified cast is not valid" when using Playmaker Load

Tue Jun 11, 2019 6:01 pm

Thanks for the praise, much appreciated.

With regards to your error, I don't appear to be able to replicate this at my end. Please could you PM me a project and instructions to replicate it?

All the best,
Joel

Re: "Specified cast is not valid" when using Playmaker Load

Fri Jun 21, 2019 7:47 am

Hi there,

Thanks for sending over the project, I've managed to locate the problem.

You have not set the global variables you are using as the Key to a value (i.e. these are blank strings). See the image below. This means that all data will be saved to the same key, meaning that the key will be overwritten each time you save, so there will only ever be one piece of data in your file.

All the best,
Joel
Attachments
Screenshot 2019-06-21 at 08.47.27.png
Screenshot 2019-06-21 at 08.47.27.png (47.57 KiB) Viewed 330 times

Re: "Specified cast is not valid" when using Playmaker Load

Mon Jul 08, 2019 2:41 pm

Thank you sir!
Post a reply