Search found 6 matches

by hamh
Mon Dec 26, 2022 3:53 pm
Forum: General Discussion
Topic: Throwing exception:::System.InvalidOperationException error
Replies: 8
Views: 1117

Re: Throwing exception:::System.InvalidOperationException error

hello,

I seem to have found the problem.
The problem seems to be the part where something written with stringbuilder is converted to tostring() and then stored in a string[,] array.
First problem after removing it, running the type check worked fine.
I'll test some more and let you know.

thank you
by hamh
Mon Dec 26, 2022 2:34 pm
Forum: General Discussion
Topic: Throwing exception:::System.InvalidOperationException error
Replies: 8
Views: 1117

Re: Throwing exception:::System.InvalidOperationException error

Unfortunately, since it is a game that has already been published,
I have to restore save this data (there is no way to do it because it did not exist until now) :(
by hamh
Mon Dec 26, 2022 1:54 pm
Forum: General Discussion
Topic: Throwing exception:::System.InvalidOperationException error
Replies: 8
Views: 1117

Re: Throwing exception:::System.InvalidOperationException error

Ah, this is the result of removing the try catch statement and executing it. FormatException: Expected ',' separating properties or '"' before property name, found '{'. ES3Internal.ES3JSONReader.ReadPropertyName () (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3JSONReader.cs:74) ES3Internal....
by hamh
Mon Dec 26, 2022 1:42 pm
Forum: General Discussion
Topic: Throwing exception:::System.InvalidOperationException error
Replies: 8
Views: 1117

Re: Throwing exception:::System.InvalidOperationException error

Once I removed easysave and reattached it, it works :) But another problem occurred :( System.FormatException: Expected ',' separating properties or '"' before property name, found '{'. this is it I'm doing the save async. Occasionally there may be omissions, but it doesn't matter if this data ...
by hamh
Mon Dec 26, 2022 12:45 pm
Forum: General Discussion
Topic: Throwing exception:::System.InvalidOperationException error
Replies: 8
Views: 1117

Re: Throwing exception:::System.InvalidOperationException error

When I open the json, I see this.
And in the try statement during loading, it is executed and then throws an exception.


"__type" : "company,Assembly-CSharp",
"value" : {
"a1" : null,
"a2" : [
by hamh
Mon Dec 26, 2022 12:42 pm
Forum: General Discussion
Topic: Throwing exception:::System.InvalidOperationException error
Replies: 8
Views: 1117

Throwing exception:::System.InvalidOperationException error

I used serializer before and now I am using this. But i can't solve the problem with this. Throwing exception:::System.InvalidOperationException: Trying to load data of type company, but data contained in file is type of System.String. 'company' is a serialized class. I didn't register it as a type ...