Member Controls

Developers > Persistent Plugin Data storage
pljonesLink to postposted: Sat Feb 11, 2006 1:43 pm
Avator for pljones

Member since:
 2005-04-02
From:
 London, UK
Posts:
 610
Quaxi,

I'm currently using a folder under Plugins\pjse.coder.plugin to store various bits of information. Some of it, such as GlobalStrings.package, is intended to be "internal" to the plugin and I expect to replace it without letting the user know whenever needed.

However, I also have user-configurable information there: packages.txt identifies additional .package files and folders to add to the PJSE filetable.

(I also store small data items in simpe.xreg.)

My question is - should things like packages.txt be in the Plugins folder or under SimPe\Data (perhaps in a sub-folder called .\Plugins\pjse.coder.plugin)?
quaxiLink to postposted: Sat Feb 11, 2006 3:26 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
It would make sens to put that into the Data Folder.

You can find it's location through the SimPE.Helper class. There is a static Property in it called SimPeDataPath.

I can also add a SimPePluginDataPath Property for the next Release.
pljonesLink to postposted: Sun Feb 12, 2006 3:22 pm
Avator for pljones

Member since:
 2005-04-02
From:
 London, UK
Posts:
 610
"quaxi" wrote:
I can also add a SimPePluginDataPath Property for the next Release.

Up to you -- I'm happy just to append \Plugins\<pluginfolder> to SimPeDataPath... Of course, I'd like ...\Plugins to exist. Should my plugin have to worry about that? If there was a SimPePluginDataPath, I'd definitely expect it to exist... ;)
Inge JonesLink to postposted: Sun Feb 12, 2006 3:46 pm
Avator for Inge Jones

Member since:
 2005-03-06
Posts:
 1899
What?
jaxad0127Link to postposted: Sun Feb 12, 2006 8:45 pm
Avator for jaxad0127

Member since:
 2005-10-01
From:
 Near my laptop
Posts:
 1067
Good question. I think pljones is worried about there being a plugins folder.
quaxiLink to postposted: Mon Feb 13, 2006 9:43 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
"pljones" wrote:
"quaxi" wrote:
I can also add a SimPePluginDataPath Property for the next Release.

Up to you -- I'm happy just to append \Plugins\<pluginfolder> to SimPeDataPath... Of course, I'd like ...\Plugins to exist. Should my plugin have to worry about that? If there was a SimPePluginDataPath, I'd definitely expect it to exist... ;)



SimPE will make sure that it exists.
pljonesLink to postposted: Mon Feb 13, 2006 11:47 pm
Avator for pljones

Member since:
 2005-04-02
From:
 London, UK
Posts:
 610
"quaxi" wrote:
SimPE will make sure that it exists.

Thanks :)
quaxiLink to postposted: Tue Feb 14, 2006 12:29 am
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
0.55h does include that Property.


viewthread, 0, 0, Persistent-Plugin-Data-storage