Hi,
a few days ago I upgraded AC from an older version to the latest. This because I'm still using Unity 4. After some script adaptation, things seems to go well.
Things gone well except for the save/load function. When I save, quit the game, load that save, actions I perform, object I get and also inventory are not affected. Only the camera is correct...
I have this error after load and I don't know how to fix:
ArgumentException: The thing you want to instantiate is null.
UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) (at C:/buildslave/unity/build/artifacts/EditorGenerated/UnityEngineObject.cs:104)
UnityEngine.Object.Instantiate (UnityEngine.Object original) (at C:/buildslave/unity/build/artifacts/EditorGenerated/UnityEngineObject.cs:90)
AC.StateHandler.CreateSoundtrackEngine[Ambience] (System.String resourceName) (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:944)
AC.StateHandler.CreateAmbienceEngine () (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:937)
AC.StateHandler.LoadMainData (MainData mainData) (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:918)
AC.SaveSystem.ReturnMainData () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:1258)
AC.SaveSystem._OnLevelWasLoaded () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:582)
AC.SaveSystem.ReceiveDataToLoad (AC.SaveFile saveFile, System.String saveFileContents) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:485)
AC.SaveFileHandler_SystemFile.Load (AC.SaveFile saveFile, Boolean doLog) (at Assets/AdventureCreator/Scripts/Save system/FileHandling/SaveFileHandler_SystemFile.cs:124)
AC.SaveSystem.LoadSaveGame (AC.SaveFile saveFile) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:415)
AC.SaveSystem.LoadGame (Int32 elementSlot, Int32 saveID, Boolean useSaveID) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:340)
AC.MenuSavesList.ProcessClick (AC.Menu _menu, Int32 _slot, MouseState _mouseState) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuSavesList.cs:700)
AC.PlayerMenus.CheckClick (AC.Menu _menu, AC.MenuElement _element, Int32 _slot, MouseState _mouseState) (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:2163)
AC.PlayerMenus.CheckClicks (AC.Menu menu) (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:1862)
AC.PlayerMenus.CheckForInput () (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:1944)
AC.StateHandler.Update () (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:299)
Help is appreciated...
Thanks and bye
Comments
So I tried to copy from another project created with Unity 2017 but it hangs Unity 4. There is a possibility to have the package in Unity 4 compatible?
Thanks
Now I'm trying to convert the entire project in U2017 so I don't have other issue... I already fixed some of the errors (from other assets) and I noticed some things are changed also with AC (like the navmesh that I have to re-bake, the collision cylinder of the player (and I think of the others chars) I have to make smaller because now they run near the walls standing still) but I think I can handle easily those issue than the other issue caused by the old Unity version.
And yes, the save/load systems back to work ^_^