Code: Select all
Quest Machine: Player Can't find quest mineOre. Is it registered with Quest Machine?
UnityEngine.Debug:LogError(Object, Object)
PixelCrushers.QuestMachine.QuestListContainer:ApplyData(String) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestListContainer.cs:356)
PixelCrushers.QuestMachine.QuestJournal:ApplyData(String) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestJournal.cs:174)
PixelCrushers.SaveSystem:ApplySavedGameData(SavedGameData) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:579)
GameManager:Awake() (at Assets/_Script/Managers/GameManager.cs:36)
Here's how I save and load:
Code: Select all
public void saveGame(string name)
{
storeScene();
SaveGame game = new SaveGame();
game.fullDB = fullDB;
string s = SaveSystem.Serialize(SaveSystem.RecordSavedGameData());
game.questSystem = s;
ES3.Save<SaveGame>("game", game,name);
}
Code: Select all
if (loadFromFile != "") {
Logger.log("LOAD", "Loading from file <b>" + loadFromFile + "</b>");
SaveGame game = ES3.Load<SaveGame>("game", loadFromFile);
fullDB = game.fullDB;
SaveSystem.ApplySavedGameData(SaveSystem.Deserialize<SavedGameData>(game.questSystem));
loadFromFile = "";
}
Not sure if it has something to do with it but the scene where I click a "Load" button, doesn't have the quest machine game object.
It doesn't need to as it's just the title screen with buttons.
The place where I execute the load logic is inside a scene that does have the QM game object so I don't think this is the issue, but just mention it... just in case.