HELP! When using the save system, I get "Invalid type in function 'get_var' in base 'FileAccess'. Cannot convert argument 1 from Dictionary to bool." Any solutions???
get_var returns the data in sequence make sure youre loading it the same way youre saving it. ie Saving file.store_var(number) file.store_var(some_string) then when loading the first call to get_var will return the number value then calling it again will next return the some_string value. looks like youre trying to set the get_var value which is returning a Dictionary to a bool variable.
So I might have missed it, but can you save entire instances or objects of a class to the save file? So instead of just strings and floats and ints, but say color data or texture data, saved to a member variable of that instance?
Hey great channel, I subbed and keep it up! EDIT: Also at 5:00 you have a black screen editing error and one short after that
really good video. i watched a few videos before this one and didnt get it. but now i get it. thank you
man you really helped me, thank you
HELP! When using the save system, I get "Invalid type in function 'get_var' in base 'FileAccess'. Cannot convert argument 1 from Dictionary to bool." Any solutions???
get_var returns the data in sequence make sure youre loading it the same way youre saving it.
ie Saving
file.store_var(number)
file.store_var(some_string)
then when loading the first call to get_var will return the number value then calling it again will next return the some_string value.
looks like youre trying to set the get_var value which is returning a Dictionary to a bool variable.
So I might have missed it, but can you save entire instances or objects of a class to the save file? So instead of just strings and floats and ints, but say color data or texture data, saved to a member variable of that instance?
Sorry for the late response but yes it's all just data. You can save plenty of things using resource saver and resource loader.