• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

Not A Bug Plugins need to be able to save settings

vamX

Well-known member
Featured Contributor
Joined
Jun 29, 2020
Messages
239
Solutions
2
Reactions
683
With the new security feature, some of the features in my plugin are broken. I have a file that I overwrite for settings, and another I overwrite during a temporary process in order to generate a new look (some features I've found are only possible to implement by saving a temporary json file then loading that look). By the time the user gets a chance to accept, we've already tried to load the file we created and failed.

First of all, and this is quite urgent for me, can you please create a Custom/Temp and Saves/Temp folders where we can overwrite items without prompting the user.

Second, in the security page this should be able to be disabled in the plugins area. Perhaps someone wants a plugin that can change their files.
 
Change your plugin to write to Custom/PluginData/ or Saves/PluginData/ area. This is mentioned here:


There are also new methods for saving files that provide callbacks (info also in the apidoc linked in the trello item above) to allow you to asynchronously respond to the user's response if you still do need to write to other areas.
 
Back
Top Bottom