Page 1 of 2

Auto Save Load - Load On Start throwing errors

Posted: Sat Jan 30, 2021 2:38 pm
by Jbacal
My project is combining Opsive TPC, UIS and Dialogue System. I have tried to set up the Pixel Crushers save system but perhaps I missed a step or two. As soon as scene starts I get the following errors. Most of the errors appear to have some relationship to the Kinematic Object Manager. The code does seem to be successfully loading and restoring the player's position and rotation, but seeing the error message makes me nervous. Any thoughts about how to get this working properly? Thanks, Jay


transform.position assign attempt for 'Main Camera' is not valid. Input position is { NaN, NaN, NaN }.
UnityEngine.Transform:set_position(Vector3)
Opsive.UltimateCharacterController.Game.SmoothFixedLocation:SmoothMove(Single) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:66)
Opsive.UltimateCharacterController.Game.KinematicObjectManager:Update() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:813)


transform.position assign attempt for 'Player' is not valid. Input position is { NaN, NaN, NaN }.
UnityEngine.Transform:set_position(Vector3)
Opsive.UltimateCharacterController.Game.SmoothFixedLocation:SmoothMove(Single) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:66)
Opsive.UltimateCharacterController.Game.KinematicCharacter:SmoothMove(Single) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:215)
Opsive.UltimateCharacterController.Game.KinematicObjectManager:Update() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:830)


Error: Unable to find the ItemSet for item 1 My Body (259752473) in category index 0.
UnityEngine.Debug:LogError(Object)
Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.UltimateInventorySystemBridge:OnItemActionEquipUnequip(ItemInfo, Boolean) (at Assets/Opsive/UltimateCharacterController/Integrations/UltimateInventorySystem/Scripts/UltimateInventorySystemBridge.cs:313)
Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.UltimateInventorySystemBridge:OnAddItemToInventory(ItemInfo, ItemStack) (at Assets/Opsive/UltimateCharacterController/Integrations/UltimateInventorySystem/Scripts/UltimateInventorySystemBridge.cs:247)
Opsive.Shared.Events.InvokableAction`2:Invoke(ItemInfo, ItemStack)
Opsive.Shared.Events.EventHandler:ExecuteEvent(Object, String, ItemInfo, ItemStack)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:NotifyAdd(ItemInfo, ItemStack) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:381)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemSlotCollection:SetItemAmount(Item, Int32, Int32, Boolean) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemSlotCollection.cs:261)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemSlotCollection:AddItem(ItemInfo, Int32) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemSlotCollection.cs:225)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemSlotCollection:AddItem(ItemInfo, ItemStack) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemSlotCollection.cs:178)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:AddItem(Item, Int32) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:463)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:AddItems(ListSlice`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:499)
Opsive.UltimateInventorySystem.SaveSystem.InventorySaver:DeserializeAndLoadSaveData(Serialization) (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/InventorySaver.cs:128)
Opsive.UltimateInventorySystem.SaveSystem.SaverBase:Load() (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/SaverBase.cs:84)
Opsive.UltimateInventorySystem.SaveSystem.SaveSystemManagerNoDisk:LoadInternal(Int32) (at Assets/Pixel Crushers/Common/Third Party Support/Opsive UIS Support/Scripts/SaveSystemManagerNoDisk.cs:52)
Opsive.UltimateInventorySystem.SaveSystem.SaveSystemManager:Load(Int32) (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/SaveSystemManager.cs:216)
PixelCrushers.UISSupport.UISSaver:ApplyData(String) (at Assets/Pixel Crushers/Common/Third Party Support/Opsive UIS Support/Scripts/UISSaver.cs:32)
PixelCrushers.SaveSystem:ApplySavedGameData(SavedGameData) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:625)
PixelCrushers.<LoadSceneCoroutine>d__105:MoveNext() (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:736)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)



Dialogue System: Lua code '{"m_DateTimeTicks":637476132695708533,"m_SaveDataKeys":
["Player_Opsive.UltimateInventorySystem.SaveSystem.InventorySaver_","Player_Opsive.UltimateInventorySystem.SaveSystem.CurrencyOwnerSaver_","Player_Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.InventoryBridgeSaver_","StorageHouse_Opsive.UltimateInventorySystem.SaveSystem.InventorySaver_","Game_Opsive.UltimateInventorySystem.SaveSystem.InventorySystemManagerItemSaver_"],"m_SerializedSaveData":[{"m_ObjectType":"Opsive.UltimateInventorySystem.SaveSystem.InventorySaver+InventorySaveData","m_ValueHashes":[733500480,1708831699,-2071929160,-583050453,956548525,1708831044,1708830969,-2071170354,724054277,-820727933,1708832362,-2071666029,620062084,-1060504830],"m_ValuePositions":[0,4,8,8,12,16,20,24,24,28,32,36,36,40],"m_Values":[4,0,0,0,1,0,0,0,145,52,150,191,1,0,0,0,0,0,0,0,1,0,0,0,25,130,123,15,1,0,0,0,1,0,0,0,5,89,56,80,1,0,0,0],"m_UnityObjects":[],"m_Version":"3.1"},{"m_ObjectType":"Opsive.UltimateInventorySystem.SaveSystem.CurrencyOwnerSaver+CurrencyOwnerSaveData","m_ValueHashes":[-737939060,1370898499,289906580,-176488174,1370902236,291402591,-178065959,1370901801,290689254,-177271200],"m_ValuePositions":[0,4,4,8,12,12,16,20,20,24],"m_Values":[3,0,0,0,249,225,97,43,30,0,0,0,6,129,21,143,20,0,0,0,188,84,128,135,10,0,0,0],"m_UnityObjects":[],"m_Version":"3.1"},{"m_ObjectType":"Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.InventoryBridgeSaver+InventoryBridgeSaveData","m_ValueHashes":[733500480,1708831699,-2071929160,-583050453,956548525,1708831044,1708830969,-2071170354,724054277,-820727933,733500484,-1814277130,267452687,-988094595,-890626886,595361266,-1710417032,1903846161,-426168836,217360553,-1873009247,-83010912,1537455981,-638485168,937204725,-1853063389,-592671975,-1853063387,-1282536467,-1229309548,-491958374,-411877825,-426169503,217096712,-1776357898,-400816525,1219685310,-891281021,617465638,-1853327998,-623665686,-1853327996,-1282801332,-1229049035,-492223173,-411618146,-426170094,217864079,-1536794541,-685219654,2005306743,-170637494,469344751,-1853587451,-1853587450,-1070126314,-1283001141,-1229797710,-492457796,-411320039,-426170233,217792062,-1498796624,1342429693,-257084368,1929379341,-1663952728,-1853625932,-1008939908,-1853625930,-1283351174,-1229607165,-492644083,-411260760,-426170872,201792781,540910773,-629969732,2061336945,-124826804,379760105,-1853896057,-916409051,-1853896055,-1283604919,-1236693968,-497092034,-411006053,-1807309655,1465954661],"m_ValuePositions":[0,4,8,8,12,16,20,24,24,28,32,36,40,44,44,48,58,62,66,66,70,70,77,81,85,86,90,94,98,103,104,105,109,109,113,113,120,124,128,129,133,137,141,153,154,155,159,159,163,163,170,174,178,179,183,187,191,194,195,196,200,200,204,204,211,215,219,220,224,228,232,232,233,234,238,238,242,242,249,253,257,258,262,266,270,274,275,276,280,284],"m_Values":[4,0,0,0,1,0,0,0,145,52,150,191,1,0,0,0,0,0,0,0,1,0,0,0,25,130,123,15,1,0,0,0,255,255,255,255,0,0,0,0,1,0,0,0,88,207,19,237,69,113,117,105,112,112,97,98,108,101,4,0,0,0,5,0,0,0,1,0,0,0,68,101,102,97,117,108,116,0,0,0,0,0,0,0,0,1,2,0,0,0,1,0,0,0,255,255,255,255,83,119,111,114,100,1,1,255,255,255,255,1,0,0,0,68,101,102,97,117,108,116,2,0,0,0,0,0,0,0,1,2,0,0,0,3,0,0,0,255,255,255,255,65,115,115,97,117,108,116,82,105,102,108,101,1,1,255,255,255,255,1,0,0,0,68,101,102,97,117,108,116,4,0,0,0,0,0,0,0,1,2,0,0,0,255,255,255,255,5,0,0,0,66,111,119,1,1,255,255,255,255,1,0,0,0,68,101,102,97,117,108,116,6,0,0,0,0,0,0,0,1,2,0,0,0,7,0,0,0,255,255,255,255,1,1,255,255,255,255,1,0,0,0,68,101,102,97,117,108,116,8,0,0,0,0,0,0,0,1,2,0,0,0,9,0,0,0,255,255,255,255,66,111,100,121,1,0,255,255,255,255,1,0,0,0,4,0,0,0],"m_UnityObjects":[{"instanceID":-19125038},{"instanceID":17180},{"instanceID":-19125040},{"instanceID":17182},{"instanceID":-19125042},{"instanceID":-258036},{"instanceID":-19125044},{"instanceID":-906540},{"instanceID":-19125046},{"instanceID":-1882296}],"m_Version":"3.1"},{"m_ObjectType":"Opsive.UltimateInventorySystem.SaveSystem.InventorySaver+InventorySaveData","m_ValueHashes":[733500480,1708831699,-2071929160,-583050453,956548525],"m_ValuePositions":[0,4,8,8,12],"m_Values":[1,0,0,0,1,0,0,0,145,52,150,191,3,0,0,0],"m_UnityObjects":[],"m_Version":"3.1"},{"m_ObjectType":"Opsive.UltimateInventorySystem.SaveSystem.InventorySystemManagerItemSaver+ItemsSaveData","m_ValueHashes":[1606553928,1747267347,704049074,-1539243910,120360732,1650266376,-336450385,-648531920,-405565812,-761272633,732131312,388644791,388644160,388644061,388643438,388643323,388630388,388629761,388629650,-437350186,-346589053,-346588400,-346602131,-346601478,-346601865,-346603324,-346602671,-346600018,-856342111,-1535084703,-1535084900,-1535085553,-1535085638,-1535086283,-1535086432,-1535086893,-1535087538,-1535087623,-1535088268,-1535088409,-1535089134,-1535089267,-1535089864,-1535090005,-1535090650,-1535091119,-1535091252,-1535091841,-1535091990,-1535092635,-432760565,1027710388,-405567237,-763329308,733744595,1778374350,1778373723,1778373588,1778372961,1778372850,1778376335,1778375704,1778375573,-437128459,-510385514,-510382877,-510382224,-510383667,-510384038,-510383401,-510380764,-510380111,-857070718,-1144017540,-1144017681,-1144018406,-1144018539,-1144019200,-1144019277,-1144019922,-1144020391,-1144020524,-1144021177,-1144021262,-1144021907,-1144022120,-1144022773,-1144022906,-1144023503,-1144023636,-1144024097,-1144024758,-1144024891,-1144025488,-1144025629,-1144026338,-433325272,1029635991,1747267300,703944785,-1539131495,120535295,1650370283,-336487604,-629493873,978548513,585390070,-606544191,1410323920,1410323309,1410323198,1410322571,1410326020,1410325905,1410325282,1410325183,362095079,31748384,31749053,31748618,31751303,31751956,31750497,31751166,31750731,1016000656,-1786925178,-1786925775,-1786925908,-1786926369,-1786927030,-1786927163,-1786927760,-1786927901,-1786928610,-1786928759,-1786929404,-1786929481,-1786930142,-1786930595,-1786930744,-1786931333,-1786931466,-1786932127,-1786932324,-1786932977,-1786933062,374286394,-851825531,978548396,585425255,-606574512,1439130263,1439129632,1439133629,1439133006,1439132891,1439132244,1439132129,1439135602,362125174,22677091,22675696,22676301,22679002,22678615,22679204,22677809,22678414,1015956993,-1804325311,-1804325380,-1804326033,-1804326246,-1804326891,-1804327040,-1804327629,-1804327762,-1804328231,-1804328876,-1804329017,-1804329614,-1804329747,-1804330472,-1804330613,-1804331258,-1804331343,-1804331988,-1804332449,-1804332598,-1804333243,-1804333328,-1804333981,374316715,-851797484,1747267689,703659280,-1538845992,120233406,1650131882,-336314867,-703381126,2063722455,442751053,1880584130,1472185784,-920763318,-920749347,-920749744,442751536,1880644827,1471215265,538288789,538288488,442752167,1880895056,1471448106,-544527104],"m_ValuePositions":[0,4,4,8,15,19,23,23,27,27,185,189,193,197,201,205,209,213,217,221,225,229,233,237,241,245,249,253,257,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,286,289,289,445,449,453,457,461,465,469,473,477,481,485,489,493,497,501,505,509,513,517,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,548,551,551,555,562,566,570,570,574,574,732,736,740,744,748,752,756,760,764,768,772,776,780,784,788,792,796,800,804,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,833,836,836,992,996,1000,1004,1008,1012,1016,1020,1024,1028,1032,1036,1040,1044,1048,1052,1056,1060,1064,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1095,1098,1098,1102,1108,1112,1116,1116,1120,1124,1124,1188,1192,1196,1200,1204,1204,1304,1308,1312,1316,1316,1386,1390],"m_Values":[3,0,0,0,5,89,56,80,77,121,32,66,111,100,121,102,39,86,169,0,0,0,0,2,0,0,0,79,112,115,105,118,101,46,85,108,116,105,109,97,116,101,73,110,118,101,110,116,111,114,121,83,121,115,116,101,109,46,67,111,114,101,46,65,116,116,114,105,98,117,116,101,83,121,115,116,101,109,46,65,116,116,114,105,98,117,116,101,96,49,91,91,83,121,115,116,101,109,46,66,111,111,108,101,97,110,44,32,109,115,99,111,114,108,105,98,44,32,86,101,114,115,105,111,110,61,52,46,48,46,48,46,48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,80,117,98,108,105,99,75,101,121,84,111,107,101,110,61,98,55,55,97,53,99,53,54,49,57,51,52,101,48,56,57,93,93,8,0,0,0,13,0,235,37,91,113,63,114,8,110,253,57,52,235,171,42,244,70,98,27,168,130,60,74,220,114,190,139,32,69,88,248,8,0,0,0,0,0,0,0,10,0,0,0,11,0,0,0,11,0,0,0,15,0,0,0,15,0,0,0,19,0,0,0,20,0,0,0,21,0,0,0,73,115,69,113,117,105,112,112,101,100,0,0,0,0,0,243,163,95,19,0,0,0,0,0,0,51,46,49,79,112,115,105,118,101,46,85,108,116,105,109,97,116,101,73,110,118,101,110,116,111,114,121,83,121,115,116,101,109,46,67,111,114,101,46,65,116,116,114,105,98,117,116,101,83,121,115,116,101,109,46,65,116,116,114,105,98,117,116,101,96,49,91,91,83,121,115,116,101,109,46,73,110,116,51,50,44,32,109,115,99,111,114,108,105,98,44,32,86,101,114,115,105,111,110,61,52,46,48,46,48,46,48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,80,117,98,108,105,99,75,101,121,84,111,107,101,110,61,98,55,55,97,53,99,53,54,49,57,51,52,101,48,56,57,93,93,8,0,0,0,13,0,235,37,91,113,63,114,8,110,253,57,52,235,171,42,244,70,98,27,168,130,60,74,66,75,40,15,134,29,194,123,8,0,0,0,0,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,11,0,0,0,11,0,0,0,15,0,0,0,19,0,0,0,23,0,0,0,65,116,116,97,99,107,0,0,0,0,0,177,109,136,17,0,0,0,0,5,0,0,0,0,0,0,0,51,46,49,25,130,123,15,77,121,32,66,111,100,121,102,39,86,169,1,0,0,0,2,0,0,0,79,112,115,105,118,101,46,85,108,116,105,109,97,116,101,73,110,118,101,110,116,111,114,121,83,121,115,116,101,109,46,67,111,114,101,46,65,116,116,114,105,98,117,116,101,83,121,115,116,101,109,46,65,116,116,114,105,98,117,116,101,96,49,91,91,83,121,115,116,101,109,46,66,111,111,108,101,97,110,44,32,109,115,99,111,114,108,105,98,44,32,86,101,114,115,105,111,110,61,52,46,48,46,48,46,48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,80,117,98,108,105,99,75,101,121,84,111,107,101,110,61,98,55,55,97,53,99,53,54,49,57,51,52,101,48,56,57,93,93,8,0,0,0,13,0,235,37,91,113,63,114,8,110,253,57,52,235,171,42,244,70,98,27,168,130,60,74,220,114,190,139,32,69,88,248,8,0,0,0,0,0,0,0,10,0,0,0,11,0,0,0,11,0,0,0,15,0,0,0,15,0,0,0,19,0,0,0,20,0,0,0,21,0,0,0,73,115,69,113,117,105,112,112,101,100,0,1,0,0,0,243,163,95,19,1,1,0,0,0,0,51,46,49,79,112,115,105,118,101,46,85,108,116,105,109,97,116,101,73,110,118,101,110,116,111,114,121,83,121,115,116,101,109,46,67,111,114,101,46,65,116,116,114,105,98,117,116,101,83,121,115,116,101,109,46,65,116,116,114,105,98,117,116,101,96,49,91,91,83,121,115,116,101,109,46,73,110,116,51,50,44,32,109,115,99,111,114,108,105,98,44,32,86,101,114,115,105,111,110,61,52,46,48,46,48,46,48,44,32,67,117,108,116,117,114,101,61,110,101,117,116,114,97,108,44,32,80,117,98,108,105,99,75,101,121,84,111,107,101,110,61,98,55,55,97,53,99,53,54,49,57,51,52,101,48,56,57,93,93,8,0,0,0,13,0,235,37,91,113,63,114,8,110,253,57,52,235,171,42,244,70,98,27,168,130,60,74,66,75,40,15,134,29,194,123,8,0,0,0,0,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,11,0,0,0,11,0,0,0,15,0,0,0,19,0,0,0,23,0,0,0,65,116,116,97,99,107,0,0,0,0,0,177,109,136,17,0,0,0,0,5,0,0,0,0,0,0,0,51,46,49,145,52,150,191,80,111,116,105,111,110,235,218,210,33,2,0,0,0,0,0,0,0,3,0,0,0,80,108,97,121,101,114,95,79,112,115,105,118,101,46,85,108,116,105,109,97,116,101,73,110,118,101,110,116,111,114,121,83,121,115,116,101,109,46,83,97,118,101,83,121,115,116,101,109,46,73,110,118,101,110,116,111,114,121,83,97,118,101,114,95,3,0,0,0,145,52,150,191,25,130,123,15,5,89,56,80,80,108,97,121,101,114,95,79,112,115,105,118,101,46,85,108,116,105,109,97,116,101,67,104,97,114,97,99,116,101,114,67,111,110,116,114,111,108,108,101,114,46,73,110,116,101,103,114,97,116,105,111,110,115,46,85,108,116,105,109,97,116,101,73,110,118,101,110,116,111,114,121,83,121,115,116,101,109,46,73,110,118,101,110,116,111,114,121,66,114,105,100,103,101,83,97,118,101,114,95,2,0,0,0,145,52,150,191,25,130,123,15,83,116,111,114,97,103,101,72,111,117,115,101,95,79,112,115,105,118,101,46,85,108,116,105,109,97,116,101,73,110,118,101,110,116,111,114,121,83,121,115,116,101,109,46,83,97,118,101,83,121,115,116,101,109,46,73,110,118,101,110,116,111,114,121,83,97,118,101,114,95,1,0,0,0,145,52,150,191],"m_UnityObjects":[{"instanceID":-1882296},{"instanceID":-1882296},{"instanceID":-3780392}],"m_Version":"3.1"}]}' threw exception 'Code has syntax errors:
Line 1, Col 109 'v': Failed to parse Letter of Name.
Line 1, Col 109 'v': Failed to parse Name of VarName.
Line 1, Col 109 'v': Failed to parse 'nil' of NilLiteral.
Line 1, Col 109 'v': Failed to parse Text of BoolLiteral.
Line 1, Col 109 'v': Failed to parse '0'...'9' of Digit.
Line 1, Col 109 'v': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 109 'v': Failed to parse Name of VariableArg.
Line 1, Col 109 'v': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 109 'v': Failed to parse Expr of ExprStmt.
Line 1, Col 102 's': Failed to parse Letter of Name.
Line 1, Col 102 's': Failed to parse Name of VarName.
Line 1, Col 102 's': Failed to parse 'nil' of NilLiteral.
Line 1, Col 102 's': Failed to parse Text of BoolLiteral.
Line 1, Col 102 's': Failed to parse '0'...'9' of Digit.
Line 1, Col 102 's': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 102 's': Failed to parse Name of VariableArg.
Line 1, Col 102 's': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 102 's': Failed to parse Expr of ExprStmt.
Line 1, Col 109 'v': Failed to parse Letter of Name.
Line 1, Col 109 'v': Failed to parse Name of VarName.
Line 1, Col 109 'v': Failed to parse 'nil' of NilLiteral.
Line 1, Col 109 'v': Failed to parse Text of BoolLiteral.
Line 1, Col 109 'v': Failed to parse '0'...'9' of Digit.
Line 1, Col 109 'v': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 109 'v': Failed to parse Name of VariableArg.
Line 1, Col 109 'v': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 109 'v': Failed to parse Expr of ExprStmt.
Line 1, Col 102 's': Failed to parse Letter of Name.
Line 1, Col 102 's': Failed to parse Name of VarName.
Line 1, Col 102 's': Failed to parse 'nil' of NilLiteral.
Line 1, Col 102 's': Failed to parse Text of BoolLiteral.
Line 1, Col 102 's': Failed to parse '0'...'9' of Digit.
Line 1, Col 102 's': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 102 's': Failed to parse Name of VariableArg.
Line 1, Col 102 's': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 102 's': Failed to parse Expr of ExprStmt.
Line 1, Col 109 'v': Failed to parse Letter of Name.
Line 1, Col 109 'v': Failed to parse Name of VarName.
Line 1, Col 109 'v': Failed to parse 'nil' of NilLiteral.
Line 1, Col 109 'v': Failed to parse Text of BoolLiteral.
Line 1, Col 109 'v': Failed to parse '0'...'9' of Digit.
Line 1, Col 109 'v': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 109 'v': Failed to parse Name of VariableArg.
Line 1, Col 109 'v': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 109 'v': Failed to parse Expr of ExprStmt.
Line 1, Col 102 's': Failed to parse Letter of Name.
Line 1, Col 102 's': Failed to parse Name of VarName.
Line 1, Col 102 's': Failed to parse 'nil' of NilLiteral.
Line 1, Col 102 's': Failed to parse Text of BoolLiteral.
Line 1, Col 102 's': Failed to parse '0'...'9' of Digit.
Line 1, Col 102 's': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 102 's': Failed to parse Name of VariableArg.
Line 1, Col 102 's': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 102 's': Failed to parse Expr of ExprStmt.
Line 1, Col 16 'k': Failed to parse Letter of Name.
Line 1, Col 16 'k': Failed to parse Name of VarName.
Line 1, Col 16 'k': Failed to parse 'nil' of NilLiteral.
Line 1, Col 16 'k': Failed to parse Text of BoolLiteral.
Line 1, Col 16 'k': Failed to parse '0'...'9' of Digit.
Line 1, Col 16 'k': Failed to parse (Digit)+ of FloatNumber.
Line 1, Col 16 'k': Failed to parse Name of VariableArg.
Line 1, Col 16 'k': Failed to parse firstTerm of OperatorExpr.
Line 1, Col 16 'k': Failed to parse Expr of ExprStmt.
Line 1, Col 12 'e': Failed to parse Letter of Name.

Re: Auto Save Load - Load On Start throwing errors

Posted: Sat Jan 30, 2021 3:39 pm
by Tony Li
Hi Jay,

Assign unique Keys to all of your savers (UCC Saver, UIS Saver, Dialogue System Saver, etc.). That should clear up some of the errors. If any errors remain, please post the ones that remain.

Re: Auto Save Load - Load On Start throwing errors

Posted: Sat Jan 30, 2021 3:49 pm
by Jbacal
Hi Tony,

I used the "assign unique keys" menu command and this cleared up the lua code error. Unfortunately, the other 3 errors still remain. Thanks for the help.


transform.position assign attempt for 'Main Camera' is not valid. Input position is { NaN, NaN, NaN }.
UnityEngine.Transform:set_position(Vector3)
Opsive.UltimateCharacterController.Game.SmoothFixedLocation:SmoothMove(Single) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:66)
Opsive.UltimateCharacterController.Game.KinematicObjectManager:Update() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:813)


transform.position assign attempt for 'Player' is not valid. Input position is { NaN, NaN, NaN }.
UnityEngine.Transform:set_position(Vector3)
Opsive.UltimateCharacterController.Game.SmoothFixedLocation:SmoothMove(Single) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:66)
Opsive.UltimateCharacterController.Game.KinematicCharacter:SmoothMove(Single) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:215)
Opsive.UltimateCharacterController.Game.KinematicObjectManager:Update() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/KinematicObjectManager.cs:830)


Error: Unable to find the ItemSet for item 1 My Body (259752473) in category index 0.
UnityEngine.Debug:LogError(Object)
Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.UltimateInventorySystemBridge:OnItemActionEquipUnequip(ItemInfo, Boolean) (at Assets/Opsive/UltimateCharacterController/Integrations/UltimateInventorySystem/Scripts/UltimateInventorySystemBridge.cs:313)
Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.UltimateInventorySystemBridge:OnAddItemToInventory(ItemInfo, ItemStack) (at Assets/Opsive/UltimateCharacterController/Integrations/UltimateInventorySystem/Scripts/UltimateInventorySystemBridge.cs:247)
Opsive.Shared.Events.InvokableAction`2:Invoke(ItemInfo, ItemStack)
Opsive.Shared.Events.EventHandler:ExecuteEvent(Object, String, ItemInfo, ItemStack)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:NotifyAdd(ItemInfo, ItemStack) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:381)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemSlotCollection:SetItemAmount(Item, Int32, Int32, Boolean) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemSlotCollection.cs:261)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemSlotCollection:AddItem(ItemInfo, Int32) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemSlotCollection.cs:225)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemSlotCollection:AddItem(ItemInfo, ItemStack) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemSlotCollection.cs:178)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:AddItem(Item, Int32) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:463)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:AddItems(ListSlice`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:499)
Opsive.UltimateInventorySystem.SaveSystem.InventorySaver:DeserializeAndLoadSaveData(Serialization) (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/InventorySaver.cs:128)
Opsive.UltimateInventorySystem.SaveSystem.SaverBase:Load() (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/SaverBase.cs:84)
Opsive.UltimateInventorySystem.SaveSystem.SaveSystemManagerNoDisk:LoadInternal(Int32) (at Assets/Pixel Crushers/Common/Third Party Support/Opsive UIS Support/Scripts/SaveSystemManagerNoDisk.cs:52)
Opsive.UltimateInventorySystem.SaveSystem.SaveSystemManager:Load(Int32) (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/SaveSystemManager.cs:216)
PixelCrushers.UISSupport.UISSaver:ApplyData(String) (at Assets/Pixel Crushers/Common/Third Party Support/Opsive UIS Support/Scripts/UISSaver.cs:32)
PixelCrushers.SaveSystem:ApplySavedGameData(SavedGameData) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:625)
PixelCrushers.<LoadSceneCoroutine>d__105:MoveNext() (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:736)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Re: Auto Save Load - Load On Start throwing errors

Posted: Sat Jan 30, 2021 4:17 pm
by Tony Li
Hi,

Does the save and load of the UCC integration's example scene work correctly?

If so, compare the character setup there to your scene.

You might want to make a scene with your UCC character but not UIS. In other words, make sure you can save and load a UCC character first. Then add in UIS and the integration.

Re: Auto Save Load - Load On Start throwing errors

Posted: Sun Jan 31, 2021 4:33 pm
by Jbacal
Hi Tony,

I'm making some progress on the errors except for one error.

I eliminated the "transform.position assign attempt for 'Main Camera' is not valid" and "transform.position assign attempt for 'Player' is not valid." errors by adding a Timed Event component with a 4 frame timer set to activate the Auto Save Load component.

I later discovered that you had suggested this solution in a note in the "Opsive Ultimate Inventory System Support" section of the documentation. Perhaps consider including this note in the "Save System" section in addition..

I am still getting an error about whatever weapon is currently equipped by the player at the save point. The error talks about not being able to find the ItemSet for the weapon. I wonder if this has anything to do with fact that my project has no Item Set Manager. Instead it has the Inventory System Item Set Manager. I tried adding both scripts with no success.

Do you happen to have a basic scene that combines the Opsive Third Person Controller and the Ultimate Inventory System along with the Save System of the Dialogue System?

Do you have any other things I can try to get rid of the "Unable to find the ItemSet for item" error?

Thanks for your time and knowledge,
Jay

Below is a print out of the console error:

Error: Unable to find the ItemSet for item 1 My Sword (981394677) in category index 0.
UnityEngine.Debug:LogError(Object)
Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.UltimateInventorySystemBridge:OnItemActionEquipUnequip(ItemInfo, Boolean) (at Assets/Opsive/UltimateCharacterController/Integrations/UltimateInventorySystem/Scripts/UltimateInventorySystemBridge.cs:313)
Opsive.UltimateCharacterController.Integrations.UltimateInventorySystem.UltimateInventorySystemBridge:OnAddItemToInventory(ItemInfo, ItemStack) (at Assets/Opsive/UltimateCharacterController/Integrations/UltimateInventorySystem/Scripts/UltimateInventorySystemBridge.cs:247)
Opsive.Shared.Events.InvokableAction`2:Invoke(ItemInfo, ItemStack)
Opsive.Shared.Events.EventHandler:ExecuteEvent(Object, String, ItemInfo, ItemStack)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:NotifyAdd(ItemInfo, ItemStack) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:381)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemSlotCollection:SetItemAmount(Item, Int32, Int32, Boolean) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemSlotCollection.cs:261)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemSlotCollection:AddItem(ItemInfo, Int32) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemSlotCollection.cs:225)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemSlotCollection:AddItem(ItemInfo, ItemStack) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemSlotCollection.cs:178)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:AddItem(Item, Int32) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:463)
Opsive.UltimateInventorySystem.Core.InventoryCollections.ItemCollection:AddItems(ListSlice`1) (at Assets/Opsive/UltimateInventorySystem/Scripts/Core/InventoryCollections/ItemCollection.cs:499)
Opsive.UltimateInventorySystem.SaveSystem.InventorySaver:DeserializeAndLoadSaveData(Serialization) (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/InventorySaver.cs:128)
Opsive.UltimateInventorySystem.SaveSystem.SaverBase:Load() (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/SaverBase.cs:84)
Opsive.UltimateInventorySystem.SaveSystem.SaveSystemManagerNoDisk:LoadInternal(Int32) (at Assets/Pixel Crushers/Common/Third Party Support/Opsive UIS Support/Scripts/SaveSystemManagerNoDisk.cs:52)
Opsive.UltimateInventorySystem.SaveSystem.SaveSystemManager:Load(Int32) (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/SaveSystemManager.cs:216)
PixelCrushers.UISSupport.UISSaver:ApplyData(String) (at Assets/Pixel Crushers/Common/Third Party Support/Opsive UIS Support/Scripts/UISSaver.cs:32)
PixelCrushers.SaveSystem:ApplySavedGameData(SavedGameData) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:625)
PixelCrushers.<LoadSceneCoroutine>d__105:MoveNext() (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:736)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Re: Auto Save Load - Load On Start throwing errors

Posted: Sun Jan 31, 2021 7:29 pm
by Tony Li
Hi,

Have you unticked the UCC Saver's Save Inventory checkbox? You can leave that checkbox unticked because inventory is handled by UIS.

I have an example scene for UCC, but not one for TPC. Do you have access to UCC? If not, and if unticking Save Inventory doesn't resolve all of the issues, let me know and I'll put together a TPC example.

Re: Auto Save Load - Load On Start throwing errors

Posted: Sun Jan 31, 2021 8:58 pm
by Jbacal
Hi Tony,

Yes, I doubled checked that the UCC Saver's Save Inventory checkbox is unticked.

I only have TPC and UIS (plus Dialogue System and now Quest Machine too). If you can put together a test example that integrates TCP, UIS and Dialogue System with the Save System (and Quest Machine if possible also) that would be so great!

If you would prefer to check out my test scene, I'm happy to share my Github project with you.


Thanks,
Jay

Re: Auto Save Load - Load On Start throwing errors

Posted: Mon Feb 01, 2021 9:29 pm
by Tony Li
Hi Jay,

Here's an example scene exported from Unity 2019.4:

DS_TPC_UIS_SaveLoadExample_2021-02-01.unitypackage

To set it up, I did the following:
  • Created a new Unity 2019.4 project.
  • Imported TPC 2.2.8.
  • Imported UIS 1.1.4.
  • Imported DS 2.2.15.
  • Used the TPC Main Manager to set up the project.
  • Imported the TPC UIS integration.
  • Imported the DS UIS integration.
  • Imported the DS TPC integration.
  • Added the scripting define symbol "UIS".
  • Copied and opened the TPC UIS demo scene.
  • Did the DS UCC setup steps:
    - Added a Dialogue Manager prefab. Added SaveSystem, PlayerPrefsSavedGameDataStorer, and JsonDataSerializer components.
    - Stopped there. Since this scene tests saving and loading, didn't bother to add Converse ability.
  • Did the DS UIS setup steps:
    - Replaced SaveSystemManager with SaveSystemManagerNoDisk (optional for testing).
    - Added a UISSaver to the player (Nolan) and set a unique key.
    - Set up the test save menu as directed in the setup instructions.

Re: Auto Save Load - Load On Start throwing errors

Posted: Tue Feb 02, 2021 3:52 pm
by Jbacal
Thank you Tony for putting so much time into helping me try to solve this problem. Your example project is working on my machine so that's very hopeful! Now I just have to figure out exactly what specifically is causing the problem in my project.

I suspect that it's related to the problem in this thread but their "solution" doesn't help me.

https://www.opsive.com/forum/index.php? ... mset.3669/

I may try using the inventory database from the example and rebuild my project from there. I will report back if I find the culprit.

Best wishes,
Jay

Re: Auto Save Load - Load On Start throwing errors

Posted: Tue Feb 02, 2021 5:07 pm
by Tony Li
Hi Jay,

If that doesn't work, feel free to send me a reproduction project and reproduction steps.