Page 1 of 2

Autosave saving a bunch of unwanted data I don't have selected

Posted: Thu Jan 05, 2023 9:10 pm
by mjspritzer
Hey,

When I use the autosave manager, I only have one variable selected. However, when looking at the save file, it has a bunch of non-selected unwanted junk saved. When I delete the save file and create a new one, same thing happens. I cannot recreate in a simple scene. Autosave works well in a simple scene, but not with the main project. I want to post the code file but it's so large that it won't let me post it here or as an attachment. The code at the very end of the file is correct:

Code: Select all

{
			"_ES3Ref" : "4158496680168752840",
			"transformID" : 1016852802178884189,
			"components" : [
				{
					"__type" : "AchievementsStatsSystem,Assembly-CSharp",
					"_ES3Ref" : "6149551291058164828",
					"goID" : "4158496680168752840",
					"tilesDropped" : 6,
					"enabled" : true
				}
			]
		}
However the rest of the code above it is a bunch of things not wanted:

Code: Select all

{
	"758351fb-cae2-4ccf-a6ac-775b540f8b97" : {
		"__type" : "UnityEngine.GameObject[],UnityEngine.CoreModule",
		"value" : [
		{
			"_ES3Ref" : "4096053245456922813",
			"transformID" : 8795402199868133679,
			"children" : [
				{
					"_ES3Ref" : "6967997822982943296",
					"transformID" : 2341720508674887295,
					"layer" : 0,
					"tag" : "Untagged",
					"name" : "GameSystems",
					"hideFlags" : 0,
					"active" : true,
					"children" : [
						{
							"_ES3Ref" : "8267679461209591394",
							"transformID" : 6658336377583076711,
							"layer" : 0,
							"tag" : "Untagged",
							"name" : "EventSystem",
							"hideFlags" : 0,
							"active" : true,
							"children" : [
								
							],
							"components" : [
								{
									"__type" : "Transform",
									"_ES3Ref" : "6658336377583076711",
									"goID" : "8267679461209591394",
									"parent" : {
										"_ES3Ref" : "2341720508674887295"
									},
									"localPosition" : {
										"x" : -0.205432,
										"y" : 0.4972342,
										"z" : 0.196682185
									},
									"localRotation" : {
										"x" : 0,
										"y" : 0,
										"z" : 0,
										"w" : 1
									},
									"localScale" : {
										"x" : 1,
										"y" : 1,
										"z" : 1
									},
									"siblingIndex" : 0
								},{
									"__type" : "UnityEngine.EventSystems.EventSystem,UnityEngine.UI",
									"_ES3Ref" : "5229317280417347848",
									"goID" : "8267679461209591394"
								}
							]
						},{
							"_ES3Ref" : "2437471812114993033",
							"transformID" : 1063433724713904362,
							"layer" : 0,
							"tag" : "Untagged",
							"name" : "Snap Controller",
							"hideFlags" : 0,
							"active" : true,
							"children" : [
								
							],
							"components" : [
								{
									"__type" : "Transform",
									"_ES3Ref" : "1063433724713904362",
									"goID" : "2437471812114993033",
									"parent" : {
										"_ES3Ref" : "2341720508674887295"
									},
									"localPosition" : {
										"x" : -0.205432,
										"y" : 0.4972342,
										"z" : 0.196682185
									},
									"localRotation" : {
										"x" : 0,
										"y" : 0,
										"z" : 0,
										"w" : 1
									},
									"localScale" : {
										"x" : 1,
										"y" : 1,
										"z" : 1
									},
									"siblingIndex" : 1
								}
							]
						}
That's just a small example of the seemingly endless lines of JSON in the ES3 file.

Talk to you soon!

Re: Autosave saving a bunch of unwanted data I don't have selected

Posted: Fri Jan 06, 2023 9:30 am
by Joel
Hi there,

Please could you show me a screenshot of your Auto Save window and what is/isn't selected?

All the best,
Joel

Re: Autosave saving a bunch of unwanted data I don't have selected

Posted: Fri Jan 06, 2023 10:55 pm
by mjspritzer
Thanks for the quick reply! Will post attachments in multiple posts because it's a lot.

Re: Autosave saving a bunch of unwanted data I don't have selected

Posted: Fri Jan 06, 2023 10:56 pm
by mjspritzer
Batch 2

Re: Autosave saving a bunch of unwanted data I don't have selected

Posted: Fri Jan 06, 2023 10:56 pm
by mjspritzer
Batch 3

Re: Autosave saving a bunch of unwanted data I don't have selected

Posted: Fri Jan 06, 2023 10:56 pm
by mjspritzer
Final one, only one saved is the Achievements and Stats system, with only 1 variable and that the system is enabled.

Thank you!!

Re: Autosave saving a bunch of unwanted data I don't have selected

Posted: Sat Jan 07, 2023 10:59 am
by Joel
Hi there,

Thanks for sending those over. Please could you replicate this in a new project (or create a very minimal version of your existing project) and private message it to me with instructions so I can debug the project.

All the best,
Joel

Re: Autosave saving a bunch of unwanted data I don't have selected

Posted: Sun Jan 08, 2023 3:10 am
by mjspritzer
I can't recreate the bug by recreating the game in a new project. I kind of hoped we didn't have to rebuild the entire game in another project in order to avoid the bug (kind of annoying to rebuild your game just to avoid a bug) but thankfully the project is small and it's doable for us. I just imagine the nightmare this would be if it happened in a large scale game.

My thoughts on what might have caused the bug:

I had originally selected every object in the game to save in the autosave manager just to see if it was possible to save the entire game's state. This led to a bunch of bugs popping up when I was generating the type scripts, including namespace errors and null key errors. In order to try and start fresh, we manually deleted Easy Save 3 from the project and reimported it. It seems like something stuck around (some meta files or otherwise) in the project that made the system think everything was still selected. I don't know if you know what the cause might be (it would save us a lot of trouble if you had at least an idea of what could be causing the issue). If you don't have an idea of what it might be then I guess we'll just have to rebuild it.

Re: Autosave saving a bunch of unwanted data I don't have selected

Posted: Sun Jan 08, 2023 9:02 am
by Joel
Hi there,

As it's a bug we've not seen before, and the information we've gathered doesn't point us towards a possible reason, we ask for a project to replicate it so we can understand what is happening. We'll only ask for this if absolutely necessary as debugging a project requires significant time at our end.

Just to check: did you delete the save data left over from when you tried to save the entire state? Otherwise what you're seeing in the file could simply be the data left over from when you tried to save the entire state. In this case deleting the save file (Tools - Easy Save 3 - Clear Persistent Data Path) will remove this.

All the best,
Joel

Re: Autosave saving a bunch of unwanted data I don't have selected

Posted: Sun Jan 08, 2023 9:12 pm
by mjspritzer
Yeah I delete the save file a lot to test. Would I be able to send you the full project but with a smaller scene that replicates the issue? I can't get it to happen without it being in the same project.

Talk to you soon