That really needs to be documented in the wiki. There is no mention of an addPref method. Will adding a preference in this way also make it appear in the Guide Preferences menu?
While looking for something else I also noticed a <Pref> entry in the XMLNodes section and read up on that, and discovered that defining the preferences that way made everything work, so I'm not sure about your comment that keyExists is looking for the description. It seemed to work once I defined the settings in <PREF>.
You should also add a simple note on the GuideSettings page that says "guide settings are created using the PREF xmlnode and set and retrieved using ...", or something like that. It would have saved me hours of wasted time.
I had not noticed <Pref> in the wiki before because the pages list on the right is limited to 15 pages and I forget to click the "Show More" button at the bottom. I won't forget again though. Lesson learned.
Now, another question/request: Are there plans for a trophy or milestone type feature? What I would like to do is have a tease start out with certain paths available, and completing a path opens up new paths. So I would need to set some kind of flag like FinishedPath1, and this flag would have to be saved like GuideSettings, but I don't want the user to be able to edit the setting.
Guideme is a huge advance over Teaseme. Thanks for all the hard work on it.
Playful
philo wrote:If they are new preferences you need to use addPref not setPrefPlayfulGuy wrote: Philo,
I took the sample code you provided and wrapped it in a simple Guide for testing and it worked properly for userSettings. I then modified it so that the start page sets three guideSettings (a string, a number and a boolean) and modified your code to use guideSetting instead of userSetting.
guideSetting definitely does not work. the keyExists call always returns false. The jscript.log is in the spoiler below. This time I'm sure it's not just me.
Key, Value, Text displayed in Guide Preferences
guideSettings.addPref("myGuideName", "This is my name", "Please enter the name you wish to be known by");
guideSettings.addPref("myGuideage", 27 "Please enter your age");
guideSettings.addPref("myGuidecbt", false, "Do you like cock and ball torture?");
However key exits is looking for the description not the key![]()
So I will fix that.
Not at the moment but I will look at adding a node in the tease xml for when it is loaded.PlayfulGuy wrote: And one other question - is it possible to override the saved state and force a tease/guide to always start at the beginning? It often doesn't make sense to jump in to the middle of a tease.
I will also add something accessible from java script, as it may be useful to force a restart part way through a tease, e.g. if they fail they have to restart from the beginning.




