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

Discussion and help for Easy Save 3
mjspritzer
Posts: 25
Joined: Sun Mar 27, 2022 6:22 am

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

Post 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!
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

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

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
mjspritzer
Posts: 25
Joined: Sun Mar 27, 2022 6:22 am

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

Post by mjspritzer »

Thanks for the quick reply! Will post attachments in multiple posts because it's a lot.
Attachments
Save Selections 1.JPG
Save Selections 1.JPG (58.61 KiB) Viewed 1732 times
Save Selections 2.JPG
Save Selections 2.JPG (59.99 KiB) Viewed 1732 times
Save Selections 3.JPG
Save Selections 3.JPG (65.43 KiB) Viewed 1732 times
Last edited by mjspritzer on Fri Jan 06, 2023 11:02 pm, edited 1 time in total.
mjspritzer
Posts: 25
Joined: Sun Mar 27, 2022 6:22 am

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

Post by mjspritzer »

Batch 2
Attachments
Save Selections 4.JPG
Save Selections 4.JPG (58.88 KiB) Viewed 1732 times
Save Selections 5.JPG
Save Selections 5.JPG (61.45 KiB) Viewed 1732 times
Save Selections 6.JPG
Save Selections 6.JPG (69.69 KiB) Viewed 1732 times
mjspritzer
Posts: 25
Joined: Sun Mar 27, 2022 6:22 am

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

Post by mjspritzer »

Batch 3
Attachments
Save Selections 7.JPG
Save Selections 7.JPG (66.4 KiB) Viewed 1732 times
Save Selections 8.JPG
Save Selections 8.JPG (58.05 KiB) Viewed 1732 times
Achievments Stats Save Selection 1.JPG
Achievments Stats Save Selection 1.JPG (61.4 KiB) Viewed 1732 times
mjspritzer
Posts: 25
Joined: Sun Mar 27, 2022 6:22 am

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

Post 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!!
Attachments
Achievments Stats Save Selection 2.JPG
Achievments Stats Save Selection 2.JPG (62.55 KiB) Viewed 1732 times
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

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

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
mjspritzer
Posts: 25
Joined: Sun Mar 27, 2022 6:22 am

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

Post 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.
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

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

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
mjspritzer
Posts: 25
Joined: Sun Mar 27, 2022 6:22 am

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

Post 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
Post Reply