- Post your Feature Requests in this thread -

Vote for new features, or make your own requests here.
nFighter
Posts: 49
Joined: Thu Apr 12, 2018 7:15 am

Re: - Post your Feature Requests in this thread -

Post by nFighter »

Joel wrote:
Sat Oct 30, 2021 10:56 am
I've been having an experiment today and this is indeed possible, and will be added in the next update. In the meantime I'll private message over an update the update, which includes a Save Multiple and Load Multiple action.
Hey! Not sure if I'm doing it right but I tweaked your Load Multiple action by adding an additional value.GetValue().
So the main part looks like this:

Code: Select all

value.SetValue(ES3.Load<object>(key.Value, value.GetValue(), GetSettings()));
this way it will not stop the whole FSM with an error if there is no such key in the file but will just use the current variable value instead. I believe it's much more convenient than assigning additional "Default Value" (as it was made in Load action). And definitely better than just getting an error that stops the FSM. What do you think, is it an acceptable solution to include it in official ES3? :roll:

User avatar
Joel
Moodkie Staff
Posts: 4016
Joined: Wed Nov 07, 2012 10:32 pm

Re: - Post your Feature Requests in this thread -

Post by Joel »

nFighter wrote:
Wed Nov 10, 2021 3:38 am
Joel wrote:
Sat Oct 30, 2021 10:56 am
I've been having an experiment today and this is indeed possible, and will be added in the next update. In the meantime I'll private message over an update the update, which includes a Save Multiple and Load Multiple action.
Hey! Not sure if I'm doing it right but I tweaked your Load Multiple action by adding an additional value.GetValue().
So the main part looks like this:

Code: Select all

value.SetValue(ES3.Load<object>(key.Value, value.GetValue(), GetSettings()));
this way it will not stop the whole FSM with an error if there is no such key in the file but will just use the current variable value instead. I believe it's much more convenient than assigning additional "Default Value" (as it was made in Load action). And definitely better than just getting an error that stops the FSM. What do you think, is it an acceptable solution to include it in official ES3? :roll:
Hi there,

There are very common situations where it is necessary for people to be alerted that the file does not exist (using the Error state) so that they can perform initialisation, and specifying a default value by default would prevent customers from being able to do this.

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

Post Reply