Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

how to save global settings?

For general discussion related FlowStone

how to save global settings?

Postby Nubeat7 » Tue Jul 09, 2013 12:20 pm

hello, in my actual project i have built in a settings section, now i have the problem that i don`t know how to save the choosen global settings in an exported vst, i could save it per preset with the preset manager, but i want that the settings are saved global, that means when the user change the settings how he like they should stay the same also when he change the preset, this works when choosing false at the preset in of the parameter preset prim but when closing the project and open it again, it sets the values back to the values like they where when exporting it from fs...

so the plug in remembers the last values from exporting to vst, so there must be a way to remember when reloading a project in host too or

it also would be great to say in the settings that something will be saved in presets or global(reminds when reopening a project) which would be nice for MIDI CC datas
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: how to save global settings?

Postby stw » Tue Jul 09, 2013 5:11 pm

Save your global settings in a text file and reload it when the plug is loaded with a "AfterLoad" prim trigger.
I do this with my REFLEX PRO settings. Best place for storing such data IMHO is the ProgramData folder. But you can change that to your personal taste. The "SysFolders" prim. provides the "id" selected folder.
I attached a .fsm with the needed modules.
I guess the used "Application Data settings file"-module was made by someone else who should be credited. But i don't know who it was and i even don't know what i changed.
Attachments
Save settings.fsm
(5.57 KiB) Downloaded 958 times
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: how to save global settings?

Postby Nubeat7 » Tue Jul 09, 2013 10:23 pm

thanks a lot STW, it works but where is the best place to save this, 35 - ProgramData doesn`t exist on my machine, i`m working on win7 with german version and the only place where the folders and files get created is 40 c:/user/username/mycompany...
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: how to save global settings?

Postby stw » Tue Jul 09, 2013 11:16 pm

Nubeat7 wrote:thanks a lot STW, it works but where is the best place to save this, 35 - ProgramData doesn`t exist on my machine, i`m working on win7 with german version and the only place where the folders and files get created is 40 c:/user/username/mycompany...


Hi Nubeat,
if the SystemFolder throws out the "ProgramData" folder assigned to id 35 it will exist on your system. That folder is invisible by default. You can easily check the available folders by stepping through the ids. I'm on a german system myself.

EDIT: Keep in mind that some english folder names are translated into german on a german system. E.g "administrative"="Verwaltung"
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: how to save global settings?

Postby RJHollins » Wed Oct 16, 2013 6:26 pm

Was ready to start a new topic, but this one is very relevant.

I've a couple issue trying to resolve ... the example posted here helps with the ID numbers for location to store a configuration file.

I'm still searching the forums ... but what I'm trying to solve is dealing with Save/Load of multiple ARRAYS.

Within many of my projects, having to Save/Load many ARRAYS is very common routine.

One of the things that complicates my effort is that these arrays are 'dynamic' in size.

Prefering to do this with PRIMS ... I'd like to post an example of the basic structure I've been using ... and hope that I can be guided to improve this ... as I'm running into several issues I've not been able to solve.

[marker in place] ;)
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: how to save global settings?

Postby billv » Wed Oct 16, 2013 9:32 pm

Nubeat7 wrote:save the choosen global settings in an exported vst

Why not use 'start folder prim'...works great exe or vst...location is perfect...
and you can bypass all issues like this....
stw wrote: SystemFolder throws out the "ProgramData" folder assigned to id 35


stw wrote:module was made by someone else who should be credited. But i don't know who it was

Looks like Trogs from Soopa Doopa Looper.

RJHollins wrote: but what I'm trying to solve is dealing with Save/Load of multiple ARRAYS

There's a few examples of this that 'might help' in latest X11 update...
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: how to save global settings?

Postby RJHollins » Thu Oct 17, 2013 7:08 am

Hi Billv,

Just dL'd the latest X11 ... oh my :shock: This is an incredible piece of work ! Cudos !! 8-)

I just had a peek inside :shock: oh yea ... this would take some time to get even a partial absorption :lol:

When I found my way back to the main GUI display ... I was looking for the PLAY button :lol: I've got to take a listen to what this does.

In the meantime ... I think I had better put together an excerpt example of what I've been doing with these data arrays. Maybe then, someone can slap this rookie around and put me on a better path. This is something that I'm going to be needing to use in most every project I can think off, and is fundamental to the entire operation.

I don't want to hi-jack anyone threads ... so I may start a clean one. Although, I have searched both forums and have found related info ... maybe others' have dealt with this and can educate on this. I've been mainly using PRIMS, but not against using RUBY ... I'll get a example together to highlight the central issue.
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: how to save global settings?

Postby RJHollins » Mon Oct 21, 2013 7:33 am

Hi Billv ...

I just switch the default location of my saved configuration with the 'FOLDER' primitive you mentioned. The data is being saved in the location of the VST/EXE.

This is working nicely, and now I see it makes better organizational sense, as all files are in a single locations.

Have not had any issues with WinXP, Win7-64, not Win8.1-64

Thanks again!
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: how to save global settings?

Postby billv » Tue Oct 22, 2013 4:07 am

RJHollins wrote:The data is being saved in the location of the VST/EXE.

RJHollins wrote:Have not had any issues with WinXP, Win7-64, not Win8.1-64

Thats great. :) .glad you got it sorted...
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: how to save global settings?

Postby RJHollins » Tue Oct 22, 2013 4:38 am

I retrack my statement of joy

The vst version doesn't load the config file, the same as exe
Works .

Crazy :/
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 52 guests