GuideMe (TeaseMe v2.0) - Current Build 0.4.4

Webteases are great, but what if you're in the mood for a slightly more immersive experience? Chat about Tease AI and other offline tease software.

Moderator: 1885

philo
Explorer At Heart
Explorer At Heart
Posts: 831
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

Re: Is there a pageExists() function?

Post 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.
User avatar
PlayfulGuy
Experimentor
Experimentor
Posts: 1068
Joined: Sat Jul 07, 2012 10:08 pm
Gender: Male
Sexual Orientation: Bisexual/Bi-Curious
I am a: Switch
Dom/me(s): No domme
Sub/Slave(s): No sub
Location: British Columbia, Canada

Re: Is there a pageExists() function?

Post 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
desertfox
Explorer At Heart
Explorer At Heart
Posts: 365
Joined: Mon Dec 03, 2012 7:26 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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

Code: Select all

var Mistress{
name: myname
}
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?
philo
Explorer At Heart
Explorer At Heart
Posts: 831
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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
desertfox
Explorer At Heart
Explorer At Heart
Posts: 365
Joined: Mon Dec 03, 2012 7:26 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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.
desertfox
Explorer At Heart
Explorer At Heart
Posts: 365
Joined: Mon Dec 03, 2012 7:26 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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.
philo
Explorer At Heart
Explorer At Heart
Posts: 831
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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.
MissKitsune
Curious Newbie
Curious Newbie
Posts: 3
Joined: Tue Jul 21, 2015 9:01 pm
Gender: Female
Sexual Orientation: Bisexual/Bi-Curious

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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 :love:
philo
Explorer At Heart
Explorer At Heart
Posts: 831
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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 :love:
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
desertfox
Explorer At Heart
Explorer At Heart
Posts: 365
Joined: Mon Dec 03, 2012 7:26 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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.
User avatar
Trusfrated
Explorer At Heart
Explorer At Heart
Posts: 465
Joined: Mon Nov 08, 2010 8:41 am
Gender: Male

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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 :love:
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! :wave:
ImageImage
MissKitsune
Curious Newbie
Curious Newbie
Posts: 3
Joined: Tue Jul 21, 2015 9:01 pm
Gender: Female
Sexual Orientation: Bisexual/Bi-Curious

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by MissKitsune »

Thank you very, very much! I'll give them a try :love:
User avatar
0385
Explorer
Explorer
Posts: 97
Joined: Mon Jul 09, 2012 9:40 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Dom (Male)

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by 0385 »

Is there some database or uptodate list of Guideme Teases?
philo
Explorer At Heart
Explorer At Heart
Posts: 831
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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
the_big_teaser
Explorer
Explorer
Posts: 5
Joined: Sun Jun 08, 2014 2:49 pm

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post 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?
Post Reply