autsave manger, changing the file path
Posted: Fri Aug 27, 2021 12:39 pm
Hi,
I have been implementing save slots for my game, I change the path for the save manager and the autosave path using below:
public void SetSaveSlotAndLoad(int slot)
{
if (slot == 1)
{
ES3AutoSaveMgr.Instance.settings.path = "SaveFile1/AutoSave1.es3";
ES3Settings.defaultSettings.path = "SaveFile1/SaveSlot1";
}
else if (slot == 2)
{
ES3AutoSaveMgr.Instance.settings.path = "SaveFile2/AutoSave2.es3";
ES3Settings.defaultSettings.path = "SaveFile2/SaveSlot2";
}
else if (slot == 3)
{
ES3AutoSaveMgr.Instance.settings.path = "SaveFile3/AutoSave3.es3";
ES3Settings.defaultSettings.path = "SaveFile3/SaveSlot3";
}
else
{
ES3AutoSaveMgr.Instance.settings.path = "SaveFile1/AutoSave1.es3";
ES3Settings.defaultSettings.path = "SaveFile1/SaveSlot1";
}
}
the ES3Settings.defaultSettings.path = "SaveFile1/SaveSlot1";
this works and stays like that until i change it, but the autosave path goes back to default when i quit/load change scene.
Also when the scene loads because it has been set back to default file path the autosave does not load anything.
I have been implementing save slots for my game, I change the path for the save manager and the autosave path using below:
public void SetSaveSlotAndLoad(int slot)
{
if (slot == 1)
{
ES3AutoSaveMgr.Instance.settings.path = "SaveFile1/AutoSave1.es3";
ES3Settings.defaultSettings.path = "SaveFile1/SaveSlot1";
}
else if (slot == 2)
{
ES3AutoSaveMgr.Instance.settings.path = "SaveFile2/AutoSave2.es3";
ES3Settings.defaultSettings.path = "SaveFile2/SaveSlot2";
}
else if (slot == 3)
{
ES3AutoSaveMgr.Instance.settings.path = "SaveFile3/AutoSave3.es3";
ES3Settings.defaultSettings.path = "SaveFile3/SaveSlot3";
}
else
{
ES3AutoSaveMgr.Instance.settings.path = "SaveFile1/AutoSave1.es3";
ES3Settings.defaultSettings.path = "SaveFile1/SaveSlot1";
}
}
the ES3Settings.defaultSettings.path = "SaveFile1/SaveSlot1";
this works and stays like that until i change it, but the autosave path goes back to default when i quit/load change scene.
Also when the scene loads because it has been set back to default file path the autosave does not load anything.