Page 40 of 121
Re: Is there a pageExists() function?
Posted: Fri Jul 03, 2015 6:05 pm
by philo
PlayfulGuy wrote:@Philo
Is there, or could there please be a way to test if a page exists in a tease? I've found a couple places where it would be handy to have that capability. Right now I could use it in my script engine project.
Thanks!
Well it was not anything I thought would be needed from java script as the author should know what pages exist.
But this works for page xxxxxxxxx
Code: Select all
var pageExists = guide.getChapters().get("default").getPages().containsKey("xxxxxxxxx");
Chapters is something on the todo list and is partially coded, currently there is only ever 1 chapter and it is called default.
So this code will check to see if page xxxxxxxxx exists within chapter default.
I may add var pageExists = guide.pageExists("default", "xxxxxxxxx") at some point, but I am not sure how much use it would get.
Re: Is there a pageExists() function?
Posted: Sun Jul 05, 2015 11:18 pm
by PlayfulGuy
philo wrote:PlayfulGuy wrote:@Philo
Is there, or could there please be a way to test if a page exists in a tease? I've found a couple places where it would be handy to have that capability. Right now I could use it in my script engine project.
Thanks!
Well it was not anything I thought would be needed from java script as the author should know what pages exist.
But this works for page xxxxxxxxx
Code: Select all
var pageExists = guide.getChapters().get("default").getPages().containsKey("xxxxxxxxx");
Chapters is something on the todo list and is partially coded, currently there is only ever 1 chapter and it is called default.
So this code will check to see if page xxxxxxxxx exists within chapter default.
I may add var pageExists = guide.pageExists("default", "xxxxxxxxx") at some point, but I am not sure how much use it would get.
Thanks, I'll give that a try. I agree it's a pretty obscure requirement, but I have a use for it in the script engine so I'm happy there's something I can use.
Cheers
PG
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Thu Jul 16, 2015 12:41 am
by desertfox
So I was goofing around with guideme a bit last night and had some questions, and I'm not quite sure if they are already answered... I tried to search the thread but didn't know the right keywords.
Anyway this may be javascript related or guideme related, am unsure since I haven't really touched javascript much.
Ok first off I was just trying to get the handle on how you write in javascript objects. After googling my thought was to try to write objects sort of like this, and it seemed to be working:
Code: Select all
function Mistress( name )
{
this.name = name;
this.getName = function(){
return this.name;
}
}
var sarah = new Mistress("Sarah");
var allison = new Mistress("Allison");
jscriptLog("set sarah: " +sarah.getName() );
jscriptLog("set allison: " +allison.getName() );
scriptVars.put("sarah", Mistress );
scriptVars.put("allison", Mistress );
I did this in an included file. Then I tried to load it into scriptvars and use it on a page and pull it out, but it seemed to blow up at this point.
Code: Select all
var Sarah = scriptVars.get("sarah");
var Allison = scriptVars.get("allison");
I think it loses the object type or what to do with it. Do I need to cast it as I pull it out of script vars, or can you not define this way and should stick to the singleton type way of doing it the
thing?
Question two was just simply persistence. How to save states of variables or even say dump the contents of scriptvars and persist? Could I google a standard javascript way of opening and writing/reading to a file to persist between sessions, or does guideme have any in built methods for doing that?
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Thu Jul 16, 2015 6:32 am
by philo
@desertfox
scriptvars should persist between sessions.
if you close a tease and reopen it it should restart on that page with the values in scriptvars.
Doing a reset on the menu will restart the tease and clear script vars.
I tried the following and it worked fine
Code: Select all
function Mistress( name )
{
this.name = name;
}
var sarah = new Mistress("Sarah");
var allison = new Mistress("Allison");
jscriptLog("set sarah: " +sarah.name );
jscriptLog("set allison: " +allison.name );
scriptVars.put("sarah", sarah);
scriptVars.put("allison", allison);
and to retrieve it in another function
Code: Select all
var allison = scriptVars.get("allison");
var sarah = scriptVars.get("sarah");
jscriptLog("sarah: " +sarah.name );
jscriptLog("allison: " +allison.name );
The state is stored in a file in the tease directory with the same names as the tease xml
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Thu Jul 16, 2015 11:48 pm
by desertfox
Great, thank you for the info! Now I know why when I was hitting reset tease it wasn't reloading my changes. Very cool on the auto persistence in there.
I must have a typo or doing something wrong in the way I have it structured for the classes, but good to know that form is a-ok to work.
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Tue Jul 21, 2015 12:17 am
by desertfox
Oh duh, now that I have learned english (didn't get to look at it again until today) my mistake was putting the objects in the array wrong, its the hashkey then the object to go in, I don't know why I was thinking it was the object type as the second parameter was my mistake there.
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Tue Jul 21, 2015 6:31 am
by philo
desertfox wrote:Oh duh, now that I have learned english (didn't get to look at it again until today) my mistake was putting the objects in the array wrong, its the hashkey then the object to go in, I don't know why I was thinking it was the object type as the second parameter was my mistake there.
Ah, and you didn't include the code where you put it in scriptvar.
you can use any name for the scriptvar variable name so could do
scriptvar.put("mistress", allison)
Or
scriptvar.put("mistress",sarah)
Depending on which they chose.
you can then do scriptvar.get("mistress)
And then your code does not need to know which one they chose.
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Tue Jul 21, 2015 9:24 pm
by MissKitsune
Hello!
I'm not new to Milovana, just never registered before.
I was going to try to create a GuideMe tease for my sub but I didn't quite understand how to do that. I apologize in advance as I'm pretty sure you all know how to do it.
I downloaded GuideMe and I tried to download a tease, it works, now I would like to create my own. Do I need to use the Nyx editor and then to, someway, export the tease in GuideMe?
Thank you for the help

Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Tue Jul 21, 2015 9:45 pm
by philo
MissKitsune wrote:Hello!
I'm not new to Milovana, just never registered before.
I was going to try to create a GuideMe tease for my sub but I didn't quite understand how to do that. I apologize in advance as I'm pretty sure you all know how to do it.
I downloaded GuideMe and I tried to download a tease, it works, now I would like to create my own. Do I need to use the Nyx editor and then to, someway, export the tease in GuideMe?
Thank you for the help

There are various ways to do it.
using nyx is one.
there is also an editor for teaseme (guideme is the next step on from teaseme) tease me teases work in guide me.
the most advanced way is to write the xml and java script direct in an text editor but that is complex.
the easiest way is probably this
viewtopic.php?f=2&t=15891
which is a special tease written for guideme that makes writing simpler teases a lot easier.
if you need any help feel free to ask here or pm me
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Wed Jul 22, 2015 12:04 am
by desertfox
I had a random question about audio. I once again am not right in front of a PC with guideme to just try it... but is it possible in anyway to layer audio and play a few tracks at once?
The ideal set up would be to be able to set a background track that plays regardless of changing pages (eg music or ambient) while being able to also play a track on the current page that would play at the same time as the background (sound effects or page specific audio (moans and what not).
I thought it would be cool to help set up the mood of a scene to play background music that wasn't stuck on one page. I think even the way the script engine does stuff would still cut off as you are still submitting back to the same page as you move forward.
I was thinking a hack around this would be to track how long you've been on the page from load to submit, then advance that far along the audio track on the next page, but even that would probably be jerky.
Maybe not a killer feature to add but would be really neat to put on the suggestions list.
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Wed Jul 22, 2015 3:20 am
by Trusfrated
philo wrote:MissKitsune wrote:Hello!
I'm not new to Milovana, just never registered before.
I was going to try to create a GuideMe tease for my sub but I didn't quite understand how to do that. I apologize in advance as I'm pretty sure you all know how to do it.
I downloaded GuideMe and I tried to download a tease, it works, now I would like to create my own. Do I need to use the Nyx editor and then to, someway, export the tease in GuideMe?
Thank you for the help

There are various ways to do it.
using nyx is one.
there is also an editor for teaseme (guideme is the next step on from teaseme) tease me teases work in guide me.
the most advanced way is to write the xml and java script direct in an text editor but that is complex.
the easiest way is probably this
viewtopic.php?f=2&t=15891
which is a special tease written for guideme that makes writing simpler teases a lot easier.
if you need any help feel free to ask here or pm me
MissKitsune,
Welcome to Milovana.
Philo is perhaps modest. His Offline Editor is a Windows application that is a nice, easy way to create teases offline in XML. The end result is a file that could be played in either TeaseMe or GuideMe.
Here is a link to its thread:
viewtopic.php?f=2&t=10941.
This is a little more full featured than the other tool he linked (by our own PlayfulGuy), but both make tease writing very accessible.
Hope that helps!

Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Wed Jul 22, 2015 4:48 am
by MissKitsune
Thank you very, very much! I'll give them a try

Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Wed Jul 22, 2015 6:30 pm
by 0385
Is there some database or uptodate list of Guideme Teases?
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Wed Jul 22, 2015 7:15 pm
by philo
0385 wrote:Is there some database or uptodate list of Guideme Teases?
Any of the teaseme teases will work
viewtopic.php?f=2&t=6993
viewtopic.php?f=2&t=14920
Also the second post in this thread has the guideme specific ones
viewtopic.php?f=2&t=12944#p165830
and
viewtopic.php?f=2&t=12944&start=510#p195699
viewtopic.php?f=2&t=12944&start=405#p189566
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Fri Jul 24, 2015 3:59 pm
by the_big_teaser
This is a great resource. Is it possible to provide a button on a tease page that would pause the video for a set amount of time?