Stupide Question:
I use ES3 to save and load all the data and scene.
when I load my game in scene 1, it won't jump to scene2 where i actually saved my game.
here is my save code:
string s = PixelCrushers.SaveSystem.Serialize(PixelCrushers.SaveSystem.RecordSavedGameData());
ES3.Save("DialogData", s, "SaveFile/saver.es3");
and here is my load code:
PixelCrushers.SaveSystem.ApplySavedGameData(PixelCrushers.SaveSystem.Deserialize<PixelCrushers.SavedGameData>(ES3.Load<string>("DialogData", "SaveFile/saver.es3")));
I don't quite know where i go wrong since i 've read many the topic contains "es3" and "load"/"scene".etc.
Not loading to correct scene with es3
Re: Not loading to correct scene with es3
Hi,
Are there any errors or warnings in the Console window?
On your Save System component, is "Save Current Scene" ticked?
Are there any errors or warnings in the Console window?
On your Save System component, is "Save Current Scene" ticked?
Re: Not loading to correct scene with es3
Hi
There is no error waring and SaveCurrentScene is ticked.
that's why i m confused
There is no error waring and SaveCurrentScene is ticked.
that's why i m confused
Re: Not loading to correct scene with es3
And I m sure that the scene data is saved:
"DialogData" : {
"__type" : "string",
"value" : "{\"m_sceneName\":\"Scene0.1_bus\",\"m_list\":[{\"key\":\"SaveSystem\",\"sceneIndex\":-1,\"data\":\"…………
"DialogData" : {
"__type" : "string",
"value" : "{\"m_sceneName\":\"Scene0.1_bus\",\"m_list\":[{\"key\":\"SaveSystem\",\"sceneIndex\":-1,\"data\":\"…………
Re: Not loading to correct scene with es3
Hi,
I misread your first post. Instead of SaveSystem.ApplySavedGameData, use SaveSystem.LoadGame:
This will load the scene in addition to applying saved data to the savers in the scene.
I misread your first post. Instead of SaveSystem.ApplySavedGameData, use SaveSystem.LoadGame:
Code: Select all
PixelCrushers.SaveSystem.LoadGame(PixelCrushers.SaveSystem.Deserialize<PixelCrushers.SavedGameData>(ES3.Load<string>("DialogData", "SaveFile/saver.es3")));
Re: Not loading to correct scene with es3
It worked ,thans for your help!
Re: Not loading to correct scene with es3
Glad to help!