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: GuideMe (TeaseMe v2.0): BETA Thread

Post by philo »

So for the FilesList function.
It currently will return all files in a directory
(it is a straight clone of the get directories but filters on files not directories)

But this will return any file whether it is image, video, xml etc.
I was thinking of adding the option to filter but wanted to understand how people think it should work.
I could make it key word so "all", "image", "video", "audio" but I would need to actually filter by file suffix.
So if I missed a video format it would not return it for videos.
Or pass wildcards so "*.*" for all "*.jpg" to just get jpeg files.
or a list of wildcards "*.jpg,*.gif,*.png"

or do you think returning all files is enough and let the tease author sort the rest?
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

personally, I'm OK with sorting it myself. For video/audio/pictures it's actually more sensible to create different folders rather than storing them all in 1 folder, so I'm totally fine with just returning all files. There's nothing that can't be sorted with good folder management, and I doubt a lot of authors will even get this far.

Also I wanted to ask. Which format will it return the images? is it array of strings or something? With extensions, I hope, not just names?
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
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 »

Nezhul wrote:Also I wanted to ask. Which format will it return the images? is it array of strings or something? With extensions, I hope, not just names?
It will return a comma separated list which you can then use split to convert to an array.
example javascript

Code: Select all

             var files = comonFunctions.ListFiles("");            jscriptLog("files: " + files);            var files2 = comonFunctions.ListFiles("folder1");            jscriptLog("files2: " + files2);            var files3 = comonFunctions.ListFiles("folder2");            jscriptLog("files3: " + files3);            var filesArray = files.split(",");            var filesArray2 = files2.split(",");            var filesArray3 = files3.split(",");            jscriptLog("files array length: " + filesArray.length);            jscriptLog("files first file: " + filesArray[0]);            jscriptLog("files2 last file: " + filesArray2[filesArray2.length - 1]);            jscriptLog("files3 last file: " + filesArray3[filesArray3.length - 1]); 
log output for the above code

Code: Select all

2015-02-21 17:37:23,017 INFO  Jscript - files: sumer_5.png,snow_1.jpg,snow_2.jpg,snow_3.jpg,snow_4.jpg,snow_5.jpg,snow_6.jpg,snow_7.png,snow_8.jpg,snow_9.jpg,sumer_1.jpg,sumer_2.jpg,sumer_3.jpg,sumer_4.jpg,Music.mp3,Video.flv,vlc.exe.lnk,Failed.jpg,passed.jpg,button.png,video2.wmv,SWTPortTest1.xml,temp.html,DSCF0049.JPG,black-dress-pearls-001a.jpg2015-02-21 17:37:23,022 INFO  Jscript - files2: images (3).jpg,images (4).jpg,images (5).jpg,images (6).jpg,images (7).jpg,images (8).jpg,images.jpg,download (1).jpg,download (2).jpg,download.jpg,images (1).jpg,images (2).jpg2015-02-21 17:37:23,032 INFO  Jscript - files3: wooden-stairs-2.mp3,bathroom-faucet-1.mp3,belt-3.mp3,car-interior-1.mp3,clock-ticking-2.mp3,cloth-1.mp3,creaking-door-1.mp3,crowd-talking-1.mp3,door-1-close.mp3,door-1-open.mp3,door-2-close.mp3,door-knock-1.mp3,door-lock-1.mp3,door-lock-2.mp3,electric-shaver-1.mp3,food-court-1.mp3,footsteps-1.mp3,footsteps-2.mp3,footsteps-3.mp3,footsteps-5.mp3,frying-pan-1.mp3,ice-cubes-1.mp3,ice-cubes-3.mp3,jacket-zipper-1.mp3,jacket-zipper-2.mp3,jeans-zipper-1.mp3,laughter-1.mp3,laughter-2.mp3,metro-interior-1.mp3,restaurant-1.mp3,shower-1.mp3,street-alley-ambience-1.mp3,street-traffic-1.mp3,toilet-flush-1.mp3,train-station-hall-1.mp3,urinating-1.mp3,vacuum-cleaner-1.mp3,washing-dishes-1.mp3,wooden-stairs-1.mp32015-02-21 17:37:23,035 INFO  Jscript - files array length: 252015-02-21 17:37:23,036 INFO  Jscript - files first file: sumer_5.png2015-02-21 17:37:23,036 INFO  Jscript - files2 last file: images (2).jpg2015-02-21 17:37:23,036 INFO  Jscript - files3 last file: wooden-stairs-1.mp3
Lazures
Explorer
Explorer
Posts: 20
Joined: Fri Oct 05, 2012 12:05 pm
Gender: Male
Sexual Orientation: Straight

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

Post by Lazures »

philo wrote:
Lazures wrote:I'm having some problems with GuideMe, for example, when I click next button on "User Settings" page, nothing happens, the page does not change, same happens with the "Skirmish" and "Hearts Club", in "Skirmish" the tease does not proceed after demanding a name, and in "Hearts Club" same thing happens when the first page when there are two options appears.

I have uploaded my whole logs folder. Can anyone help ?

https://mega.co.nz/#!L5YxVSrI!1SbgIQ0Du ... TuTzQZGb2k
This is definitely around the browser control, not sure what is happening as I can't reproduce it.
Guide Me uses a SWT browser control which uses the native browser engine for the OS (so IE for windows)
It is only happening when it is trying to retrieve values from html forms.

Not sure where to go on it as it seems to be unique to your setup
Thanks for identifying the problem, writing it out for anyone who may have the same problem as me, simply re-installing the Internet Explorer(PC) fixes it.
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

philo, that's perfect, thanks. You'll post it here when you build a new version?
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

also
I will look at adding a force start page option
I think it should be pretty simple. Just make a bool option that will force .state file to always record

Code: Select all

<SETTINGS><Page>start</Page><CurrPage>start</CurrPage><PrevPage>start</PrevPage>
. I'm guessing it's here that the state is saved.


Also a suggestion for the future - if you could add pages that do not reload media from a previous page, you could make a sequence of pages throughout which a single video is playing. I tried to make it happen by saving start and end times and feeding them to the video element, but it flickers because on each page it reloads the media file from scratch. Moreover, you get a couple of first frames of the video shown before it fast-forwards to a specified time. The bigger the video, the more the flicker, on a 1.6gb hour long clip it goes up to about half a second of downtime on page change, which is really annoying and noticeable. I would, personally, add some kind of flag to the page that forbids guideMe to clear/refresh media on page change. It would be nice to have functionality to change everything but don't touch the video completely. :innocent:

p.s. if you could point me to the part in your sources where it could be done, I may be able to write it in myself for ya.
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
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 »

Nezhul wrote:also
I will look at adding a force start page option
I think it should be pretty simple. Just make a bool option that will force .state file to always record

Code: Select all

<SETTINGS><Page>start</Page><CurrPage>start</CurrPage><PrevPage>start</PrevPage>
. I'm guessing it's here that the state is saved.


Also a suggestion for the future - if you could add pages that do not reload media from a previous page, you could make a sequence of pages throughout which a single video is playing. I tried to make it happen by saving start and end times and feeding them to the video element, but it flickers because on each page it reloads the media file from scratch. Moreover, you get a couple of first frames of the video shown before it fast-forwards to a specified time. The bigger the video, the more the flicker, on a 1.6gb hour long clip it goes up to about half a second of downtime on page change, which is really annoying and noticeable. I would, personally, add some kind of flag to the page that forbids guideMe to clear/refresh media on page change. It would be nice to have functionality to change everything but don't touch the video completely. :innocent:

p.s. if you could point me to the part in your sources where it could be done, I may be able to write it in myself for ya.
allowing text to change on a page I think will be more flexible.
I think I will look at adding timers to a page that trigger a java script function to run that would allow elèments of the page to change.
the video is run asynchronous on a separate thread I think so getting it tò run on multiple pages may get complex
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

Changing the text and elements works too, but you'll have to add a lot of stuff to make it work.

If we are talking about video tease features
1) make buttons and delay possible to NOT to trigger page change but just trigger a function
2) You already have features to add elements to the page, you'll need another to delete them. deleteAllButtons() and deleteAllDelays() or something like that.
3) maybe an option to skip to a certain time in the video at runtime (not just start time)
4) a way to figure out video total length and current position (current time it is on)

This way you can build a rather complex code that will change buttons and text of the page multiple times while the video lasts. My personal dream is to make a tease that will play random video from some folder with standart instructions being displayed like stroke/edge/hold, but with buttons so that player chooses when he edges, or even plays some sort of a game while watching a video. All in one tease. Code-wise I could do that only if GuideMe could change page elements without stopping/breaking the video up. That's the main reason that stops me from writing a standalone app - because I would like to keep the ammount of different applications at minimum and would rather see one being developed more, especially considering the ammount of work already being put into GuideMe.
If you ask me, there's actually a very little ammount of ideas I could suggest to you. It may seem like I throw them one after another, but in fact that's pretty much it.... File management and more options to play with video,
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

An interesting (bug?) I found.
Spoiler: show
I have a code on each page that basically sets up random image right now.
Here's the function (defined in GlobalJavaScript)

Code: Select all

function getImage()        {            overRide.setImage("*");        }
It's a placeholder for some other code that I am planning to write once you get the getFileList() done.

The interesting thing is that the image is sometimes not loaded until I resize the frames. I don't know what's up with that, maybe it's me who's doing something wrong?

When this bug occurs and I resize the frame I see the same image as I saw last (on a previous page). Every time. Maybe this helps.
update: found the problem, it seems to be that overRide.setImage("*"); selects anything, including folders and video, and when it selects something that's not an image it basically fails to load it as an image (naturally). overRide.setImage("*.jpg"); works fine, but limits a bit more. Not a problem though, just an interesting thingy.
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

I have a scripting question. I have an XML in my tease that looks something like this:
Spoiler: show

Code: Select all

<texts>    <stroke>Stroke for me, baby.</stroke>    <stroke>Stroke it, boy.</stroke>    <stroke>Stroke your cock.</stroke>    <stroke>Stroke it lightly for me, baby.</stroke>        <edge>Edge.</edge>    <edge>Get on the Edge.</edge>    <edge>Edge for me.</edge>    <edge>Edge. Now.</edge></texts>
I can access elements in this XML using

Code: Select all

var textsxml;  textsxml = comonFunctions.jsReadFile("texts.xml");  var textsxmlobj = new XML(textsxml);  var textobj = textsxmlobj.stroke[x]//where x is the number of element I want to get
Now the question is, can I choose the field using string? I mean something like that:

Code: Select all

var textsxml;  textsxml = comonFunctions.jsReadFile("texts.xml");  var textsxmlobj = new XML(textsxml);  var s = "stroke";var textobj = textsxmlobj.<s>[x]//where x is the number of element I want to get and "s" is a name of tag I want to access
Can I? That would have been awesome, but I don't know how. After googling for a bit I found
http://www.w3schools.com/dom/dom_nodes_access.asp
but couldn't get it to work...

update: and again, as soon as I ask a question I find the answer myself within 5 minutes....
If anyone needs, here's the list of all XML object functions.
http://www.ebasetech.com/ufs/doc/Javascript_XML.htm

I used
var x = textsxmlobj.elements("stroke");
var s = x[3];
to get the fourth element of <stroke> tag list (remember that first element has the number 0 there and so on)
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

Another question. There's an <include></include> tag that allows acces to pages that are a part of another XML. Can you include XML's like that via javascript? I would like to get all XML's in the media folder, and then include all of them in the tease. My project is all about small modules that users would be able to add or remove as they see fit, and each such module will be written in a separate XML. Ideally, I would like to rid the users from any second thought, allowing them to simply drop new XML's in the media folder and be done with it. :-|

If this fearute is not available, I'm not really requestiong it. It would just add to the flexibility I have.

p.s. nearly all main features are done, just waiting for getting list of files function to come up in a new version to complete it.
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
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 »

Nezhul wrote:Another question. There's an <include></include> tag that allows acces to pages that are a part of another XML. Can you include XML's like that via javascript? I would like to get all XML's in the media folder, and then include all of them in the tease. My project is all about small modules that users would be able to add or remove as they see fit, and each such module will be written in a separate XML. Ideally, I would like to rid the users from any second thought, allowing them to simply drop new XML's in the media folder and be done with it. :-|

If this fearute is not available, I'm not really requestiong it. It would just add to the flexibility I have.

p.s. nearly all main features are done, just waiting for getting list of files function to come up in a new version to complete it.
Include is currently static, it was designed to let the author organise pages better rather than allow dynamic content.
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

OK. I don't see a problem in having the users edit XML a bit when they add new files to the game.
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

a quick question - when I use scriptVars.get() is it read from file every time (i.e. from HDD), or is it stored in memory during runtime? Thx.
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
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 »

Nezhul wrote:a quick question - when I use scriptVars.get() is it read from file every time (i.e. from HDD), or is it stored in memory during runtime? Thx.
Stored in memory, it is written from memory to disk after each page I think, but only read from disk when you load the tease.
(This is from memory not looking at the code)
But changing the contents of the state file while the tease is running would get over written I think.
obviously changing it before it loads the tease would work.

Edit: Just checked, it loads the state file in the constructor of the memory object so only loads the state file once

It saves it in various places
Mainly after displaying a page or when a javascript function is run.
Post Reply