Autosave mode : Encrption function makes error.

Discussion and help for Easy Save 3
Post Reply
sejongdw
Posts: 3
Joined: Tue Mar 05, 2019 9:15 am

Autosave mode : Encrption function makes error.

Post by sejongdw »

Hello.

I doing my project on your easysave3 auto-save system.

If I change 'none' to 'AES' and put some password in Easy save window,
When I start the scene, some errors show like below message.

How can I fix this problem? help me.

----------------------------------------------------------------------------------------------
ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
System.Buffer.BlockCopy (System.Array src, System.Int32 srcOffset, System.Array dst, System.Int32 dstOffset, System.Int32 count) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
Mono.Security.Cryptography.SymmetricTransform.FinalDecrypt (System.Byte[] inputBuffer, System.Int32 inputOffset, System.Int32 inputCount) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
Mono.Security.Cryptography.SymmetricTransform.TransformFinalBlock (System.Byte[] inputBuffer, System.Int32 inputOffset, System.Int32 inputCount) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.Security.Cryptography.CryptoStream.FlushFinalBlock () (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.Security.Cryptography.CryptoStream.Dispose (System.Boolean disposing) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.IO.Stream.Close () (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.IO.Stream.Dispose () (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
ES3Internal.AESEncryptionAlgorithm.Decrypt (System.IO.Stream input, System.IO.Stream output, System.String password, System.Int32 bufferSize) (at Assets/Plugins/Easy Save 3/Scripts/ES3Crypto.cs:139)
ES3Internal.UnbufferedCryptoStream..ctor (System.IO.Stream stream, System.Boolean isReadStream, System.String password, System.Int32 bufferSize, ES3Internal.EncryptionAlgorithm alg) (at Assets/Plugins/Easy Save 3/Scripts/ES3Crypto.cs:165)
(wrapper remoting-invoke-with-check) ES3Internal.UnbufferedCryptoStream..ctor(System.IO.Stream,bool,string,int,ES3Internal.EncryptionAlgorithm)
ES3Internal.ES3Stream.CreateStream (ES3Settings settings, ES3Internal.ES3FileMode fileMode) (at Assets/Plugins/Easy Save 3/Scripts/Streams/ES3Stream.cs:62)
ES3Reader.Create (ES3Settings settings) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:308)
ES3Writer.Merge () (at Assets/Plugins/Easy Save 3/Scripts/Writers/ES3Writer.cs:365)
ES3Writer.Save (System.Boolean overwriteKeys) (at Assets/Plugins/Easy Save 3/Scripts/Writers/ES3Writer.cs:395)
ES3Writer.Save () (at Assets/Plugins/Easy Save 3/Scripts/Writers/ES3Writer.cs:387)
ES3.Save[T] (System.String key, System.Object value, ES3Settings settings) (at Assets/Plugins/Easy Save 3/Scripts/ES3.cs:41)
ES3AutoSaveMgr.Save () (at Assets/Plugins/Easy Save 3/Scripts/Auto Save/ES3AutoSaveMgr.cs:38)
ES3AutoSaveMgr.OnApplicationQuit () (at Assets/Plugins/Easy Save 3/Scripts/Auto Save/ES3AutoSaveMgr.cs:69)
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Autosave mode : Encrption function makes error.

Post by Joel »

Hi there,

This is because you're telling Auto Save that the data is encrypted when your original data is not. You will need to delete your old save data by going to Window > Easy Save 3 > Settings > Tools > Open Persistent Data Path, and delete it from there.

Al the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
sejongdw
Posts: 3
Joined: Tue Mar 05, 2019 9:15 am

Re: Autosave mode : Encrption function makes error.

Post by sejongdw »

Hello.

I already did it several times.

But It had same result. how can I do?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Autosave mode : Encrption function makes error.

Post by Joel »

Hi there,

Please could you PM me a very basic project which replicates this and include some instructions to replicate it?

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply