Search found 11 matches

by Tanoshimi
Thu Aug 17, 2023 4:23 pm
Forum: General Discussion
Topic: Incomplete Save File
Replies: 10
Views: 1719

Re: Incomplete Save File

Not a bad idea. I may try that if I cannot track down what's deleting my List before saving it.
by Tanoshimi
Thu Aug 17, 2023 3:06 pm
Forum: General Discussion
Topic: Incomplete Save File
Replies: 10
Views: 1719

Re: Incomplete Save File

I understand, and appreciate the feedback. I don't think it's possible to strip it down and still have a version that causes the problem. And you can see why I'm confused, because I specifically check to make sure the array is full before I call the Save, and I don't call the save if it's not: priva...
by Tanoshimi
Thu Aug 17, 2023 1:57 pm
Forum: General Discussion
Topic: Incomplete Save File
Replies: 10
Views: 1719

Re: Incomplete Save File

I do not think it's a SharedAccessError because the file is being written. This is what I get: { "b61e07d1-82a6-43f2-91c5-513ea7dd9032" : { "__type" : "UnityEngine.GameObject[],UnityEngine.CoreModule", "value" : [ { "_ES3Ref" : "7777038596456874...
by Tanoshimi
Thu Aug 17, 2023 11:32 am
Forum: General Discussion
Topic: Incomplete Save File
Replies: 10
Views: 1719

Re: Incomplete Save File

OK, so now I"m really confused. I thought that maybe the Save (OnApplicationQuit) and Load (Awake) might not be executing in time, or completely. So, I set the Save Event and Load Event to None, and then manually put code in my Awake and OnApplicationQuit functions that would make sure the obje...
by Tanoshimi
Sun Aug 13, 2023 1:18 pm
Forum: General Discussion
Topic: Incomplete Save File
Replies: 10
Views: 1719

Re: Incomplete Save File

So, I've been tracking this with Debug calls, and I'm not seeing anything in my code that's doing it. So, my code checks, in Start(), whether the List<PilotDatat>() contains 10 items, as this should always be the case. If it doesn't then it generates an error and creates 10 default. This is what's h...
by Tanoshimi
Fri Aug 11, 2023 12:28 pm
Forum: General Discussion
Topic: Incomplete Save File
Replies: 10
Views: 1719

Incomplete Save File

So, I've determined my issue does not lie with the AutoSave not being properly loaded before Start(). It actually has to do with the Player Data being missing from the AutoSave file. My settings are for it to AutoSave on Exit, but I've also had a manual save done when the game is properly exited (I ...
by Tanoshimi
Fri Aug 11, 2023 12:23 pm
Forum: General Discussion
Topic: I cant delete the file on game
Replies: 11
Views: 3883

Re: I cant delete the file on game

Any chance we can get a ClearSaves() function that might delete the cache and the file? I was surprised when I deleted the SaveFile.es3 from my directory and it still loaded the data. Now I get why, but that's kinda interesting behavior.
by Tanoshimi
Fri Aug 11, 2023 12:10 am
Forum: General Discussion
Topic: How to detect when loading is done?
Replies: 6
Views: 1518

Re: How to detect when loading is done?

So I wasn't sure if Start could run before all of Awake finished, I thought it would go as soon as Awake finished initiating commands. Good to know. It appears that somewhere, sometime, it's saving after my data structure has destroyed the object, so it's not saving any data, then the next time ther...
by Tanoshimi
Thu Aug 10, 2023 5:01 pm
Forum: General Discussion
Topic: How to detect when loading is done?
Replies: 6
Views: 1518

Re: How to detect when loading is done?

(Bumping this, instead of creating a new thread) I'm having a similar issue, but I'm using AutoSave. It's set to load the scene in the Awake() function, but when I try to access the object's it's loading in the Start() function, I see they have not been instantiated yet. This doesn't happen often, m...
by Tanoshimi
Thu Oct 07, 2021 5:51 pm
Forum: General Discussion
Topic: Advice on Saving a Player with Ships and Inventory
Replies: 3
Views: 922

Re: Advice on Saving a Player with Ships and Inventory

So the Player is a script/class I made, and a Ship is a prefab gameobject with a script that has all of the settings. So, to save a ship, I need to store: - GameObject or prefab, or at least which Prefab is used - Materials that may have been changed - The Class that stores the stats on the ship (sp...