Search found 4 matches

by aallenfx
Thu May 25, 2023 5:15 pm
Forum: General Discussion
Topic: Saving and Loading Dictionaries
Replies: 6
Views: 1159

Re: Saving and Loading Dictionaries

Ah, one last question in this regard- How do you do a null check to see if the save file exists or not? My save file name is "recipes" (saving it as a separate entity). This appears to work, just double checking that this is the proper method/syntax. Reads as "If dictionary/file doesn...
by aallenfx
Thu May 25, 2023 4:31 pm
Forum: General Discussion
Topic: Saving and Loading Dictionaries
Replies: 6
Views: 1159

Re: Saving and Loading Dictionaries

Awesome, looks like this worked for me. Thanks!

Code: Select all

 recipesDictionary = ES3.Load<Dictionary<string, int>>("recipesDictionary");
by aallenfx
Thu May 25, 2023 2:15 pm
Forum: General Discussion
Topic: Saving and Loading Dictionaries
Replies: 6
Views: 1159

Re: Saving and Loading Dictionaries

Hey, thanks for responding. Can you provide an example of the proper syntax for loading a dictionary? Some tests that didn't work: ES3.Save("recipesDictionary", recipesDictionary); recipesDictionary = ES3.Load<Dictionary>(string, int); recipesDictionary = ES3.Load("recipesDictionary&q...
by aallenfx
Wed May 24, 2023 5:01 pm
Forum: General Discussion
Topic: Saving and Loading Dictionaries
Replies: 6
Views: 1159

Saving and Loading Dictionaries

Hi, I'm having some trouble getting my Dictionary to load. I have this "recipe unlock" system that checks to see if an entry already exists on file. It will save the data to a file, but the problem is loading it. I tried following the documentation but am getting errors: https://docs.moodk...