problem while saving custom dictionary via ES3.

Discussion and help for Easy Save 3
Post Reply
ChaudaryFaizan
Posts: 3
Joined: Sat May 08, 2021 11:50 am

problem while saving custom dictionary via ES3.

Post by ChaudaryFaizan »

hi, i am facing problem during save and load my custom type dictionary<int, custom_Class>
```
ES3.Save<Dictionary<int, F_saveLoad>>("customDic", obj);
Dictionary<int, F_saveLoad> dic = ES3.Load<Dictionary<int, F_saveLoad>>("customDic");
F_saveLoad loadedDic = dic.Single(s => s.Key == 1).Value;
Debug.Log(loadedDic) //output Null
```
when it load the result it return null

its due to data save is incorrect or loaded
can you provide any example or solve my problem?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: problem while saving custom dictionary via ES3.

Post by Joel »

Hi there,

We've had no reports of Dictionaries saving improperly. Please could you send me your F_saveLoad script, and the contents of Assets/Easy Save 3/Types (if it exists).

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
ChaudaryFaizan
Posts: 3
Joined: Sat May 08, 2021 11:50 am

Re: problem while saving custom dictionary via ES3.

Post by ChaudaryFaizan »

message (3).txt
(3.05 KiB) Downloaded 92 times
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: problem while saving custom dictionary via ES3.

Post by Joel »

Hi there,

You appear to have sent me your F_initializePlayer script, not your F_saveLoad script.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply