Search found 5 matches

by drwayyyne
Fri Apr 03, 2015 11:56 am
Forum: (Legacy) Easy Save 2 General Discussion
Topic: ES2.Exists
Replies: 3
Views: 5557

Re: ES2.Exists

Hey Joel,

thanks for the rapid reply once again! With two minor changes I got your suggestion working:
if (ES2.GetFiles("", "*.dat").Length > 0)
Thanks again,
David
by drwayyyne
Thu Apr 02, 2015 11:44 pm
Forum: (Legacy) Easy Save 2 General Discussion
Topic: ES2.Exists
Replies: 3
Views: 5557

ES2.Exists

Hey Joel, I want to give the player the opportunity to have multiple save files and name them as he/she sees fit. I now want to check if my save folder has any file of that type rather than a specific file, to see if it makes sense to give the option of loading. I was now doing this: if (ES2.Exists(...
by drwayyyne
Fri Mar 27, 2015 4:52 pm
Forum: (Legacy) Easy Save 2 General Discussion
Topic: Custom classes inside custom class - error
Replies: 5
Views: 5683

Re: Custom classes inside custom class - error

Hey Joel, so I checked that neither data.StockMarket nor any variables of it are null. What I think is weird is that data.StockMarket is of the same type as the seven variables before it, which is "Target". Here is the ES2UserType file for it: using System.Collections; using System.Collect...
by drwayyyne
Fri Mar 27, 2015 3:02 pm
Forum: (Legacy) Easy Save 2 General Discussion
Topic: Custom classes inside custom class - error
Replies: 5
Views: 5683

Re: Custom classes inside custom class - error

Hi Joel, thanks for the fast reply. Refresh ES2Init did the trick, thanks! However, now I get follow-up errors. Upon saving, Unity throws the following message: NullReferenceException: Object reference not set to an instance of an object ES2Writer.Write[Target] (.Target param) ES2UserType_City.Write...
by drwayyyne
Fri Mar 27, 2015 1:26 pm
Forum: (Legacy) Easy Save 2 General Discussion
Topic: Custom classes inside custom class - error
Replies: 5
Views: 5683

Custom classes inside custom class - error

Hey Moodkie-Team, I have a custom class " Agency " holding other custom classes, the latter being stored inside Lists. I have added all custom classes to Assets/Easy Save 2/Types , yet Unity tells me " Easy Save does not support loading of type Agency ". public class ES2UserType_...