Save System error
Posted: Tue Dec 18, 2018 1:24 am
Hi Tony,
I've started getting this error and I can't figure out where it's coming from. I do suspect that it is because of my attempt to reset the database through a button press.
My button calls this method:
It appears to work, but I can't help but feel that it is causing the following error:
Is it possible that settings are being reset and some are not,, thus causing this error?
Thanks in advance,
Nathan
I've started getting this error and I can't figure out where it's coming from. I do suspect that it is because of my attempt to reset the database through a button press.
My button calls this method:
Code: Select all
public void ResetDS()
{
DialogueManager.ResetDatabase(DatabaseResetOptions.KeepAllLoaded);
DialogueManager.SendUpdateTracker();
uSurvivalQuestJournal.ResetToOriginalState
foreach (var npc in FindObjectsOfType<PixelCrushers.QuestMachine.QuestGeneratorEntity>())
{
npc.GenerateQuest();
}
}
Code: Select all
NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.SaveSystem.ApplySavedGameData (PixelCrushers.SavedGameData savedGameData) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:497)
UnityEngine.Debug:LogException(Exception)
PixelCrushers.SaveSystem:ApplySavedGameData(SavedGameData) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:502)
PixelCrushers.uSurvivalSupport.uSurvivalSaveLoadPixelCrushers:OnLoadingCharacter(GameObject) (at Assets/VSSurvival/Addons/Quest Machine Addon/Scripts/Save and Load/uSurvivalSaveLoadPixelCrushers.cs:44)
Database:CharacterLoad(String, List`1) (at Assets/VSSurvival/Scripts/Database.cs:461)
NetworkManagerSurvival:<MakeCharactersAvailableMessage>m__0(String) (at Assets/VSSurvival/Scripts/NetworkManagerSurvival.cs:245)
System.Linq.Enumerable:ToList(IEnumerable`1)
NetworkManagerSurvival:MakeCharactersAvailableMessage(String) (at Assets/VSSurvival/Scripts/NetworkManagerSurvival.cs:246)
NetworkManagerSurvival:OnServerCharacterCreate(NetworkMessage) (at Assets/VSSurvival/Scripts/NetworkManagerSurvival.cs:440)
Mirror.NetworkConnection:InvokeHandler(Int16, NetworkReader) (at C:/projects/hlapi-community-edition/Mirror/Runtime/NetworkConnection.cs:295)
Mirror.NetworkServer:InvokeBytes(ULocalConnectionToServer, Byte[]) (at C:/projects/hlapi-community-edition/Mirror/Runtime/SyncList.cs:243)
Mirror.ULocalConnectionToServer:SendBytes(Byte[], Int32)
Mirror.NetworkConnection:Send(Int16, MessageBase, Int32) (at C:/projects/hlapi-community-edition/Mirror/Runtime/LocalClient.cs:56)
Mirror.NetworkClient:Send(Int16, MessageBase) (at C:/projects/hlapi-community-edition/Mirror/Runtime/NetworkClient.cs:329)
UICharacterCreation:<Update>m__1() (at Assets/VSSurvival/Scripts/_UI/UICharacterCreation.cs:43)
UnityEngine.EventSystems.EventSystem:Update()
Thanks in advance,
Nathan