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

meson1
Explorer
Explorer
Posts: 93
Joined: Sun Sep 26, 2010 3:28 pm
Gender: Male
Sexual Orientation: Straight

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

Post by meson1 »

philo wrote:If you want to upload the xml somewhere and pm me a link I will run it in debug mode and see if I can see what is going on.
It will either be it is remembering the value and the function to change it is not working or as you suspect it is caching the function.
I had a quick look at the code but there was nothing obvious.
Phil

If you check your private messages, I've uploaded the script I was working on with an explanation of how to observe the issue.

But since I sent you that I tried setting all my "exit" functions to null in order to undefine them when I switch page, like this:

Code: Select all

             function phaseNextPage() {                jscriptLog("---- TRACE: phaseNextPage");                if (typeof exitNextPage === 'function')                     { var strNextPage = exitNextPage(); }                else                    { var strNextPage = nextPageNumber(); };                overRide.setDelay(strNextPage,0,"","hidden","","","");                exitGuessCorrect = null;                exitGuessIncorrect = null;                exitPageInitialise = null;                exitActivity = null;                exitPromptForSpeed = null;                exitPromptForGuess = null;                exitPoseQuestion = null;                exitNextPage = null;            } 
It's a clumsy way to do it, but it works. With the above code in place my tease works as it should.

The way my rather linear script works, that code happens to be convenient because I can put it in one place and it'll work for all pages. But for other teases with multiple code branches, delays and buttons taking you to various pages, it would become a nightmare to code round this issue as I have done above.

I think the cause is the Mozilla engine caching Javascript functions. It does look like there might be a way to turn off the caching (see the link I sent you in the PM), but I'm not sure how you do that at the programmatic level in your GuideMe code. The Mozilla JS caching isn't really needed for GuideMe because all the guide script gets loaded fully into memory anyway. So if it can be turned off, I think it's safe to do so.

Cheers

meson1.
User avatar
VanHellsing
Explorer At Heart
Explorer At Heart
Posts: 150
Joined: Mon Apr 12, 2010 10:07 am
Gender: Male
Sexual Orientation: Straight
I am a: Switch

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

Post by VanHellsing »

Don't know why I have no sound in imported teases. I updated Milovana Importer and GuideMe itself just to be sure and even tested the same teases on the site and on TeaseMe and they work fine but GuideMe still doesn't want to play any sounds. Even installation of VLC didn't help. I'm using 64bit version but 32bit version has the same problem.
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 »

VanHellsing wrote:Don't know why I have no sound in imported teases. I updated Milovana Importer and GuideMe itself just to be sure and even tested the same teases on the site and on TeaseMe and they work fine but GuideMe still doesn't want to play any sounds. Even installation of VLC didn't help. I'm using 64bit version but 32bit version has the same problem.
Hopefully the log files should show what the issue is (I assume you have turned the volume up :lol: )
There is a logs directory under the guideme directory.
Delete any log files and then start guideme and go to a page in a tease where there is sound.
Quit guideme and put the logs somewhere like mega and either post a link here or PM it to me.
I will see if the logs show why sound is not working.
meson1
Explorer
Explorer
Posts: 93
Joined: Sun Sep 26, 2010 3:28 pm
Gender: Male
Sexual Orientation: Straight

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

Post by meson1 »

Greetings coders

I've got a problem trying to vertically centre a piece of text in the left html window. If I use this page in a regular browser (and I've tried FF IE and Chrome), it works perfectly. But when I get GuideMe to display it in the leftHTML pane, it just won't vertically centre the text.

Here is the HTML of the page in question:

Code: Select all

<!DOCTYPE html><html><head>    <style>        body, html { border:none; padding:0px; margin:0px; background-color:black; color: white; font-family: "Trebuchet MS"; font-size: 16px; overflow-y: auto; }        .center-div { position: fixed; height: 60%; width: 60%; top: 20%; left: 20%; border: 2px solid gray; }        .numtext { position: relative; top: 50%; transform: translateY(-50%); text-align: center; font-size: 256px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }        .neutral { color: white; }        .win { color: green; }        .lose { color: red; }    </style>    <script>        function get(name){            if(name=(new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)')).exec(location.search))                { return decodeURIComponent(name[1]); }            else                { return ""; }        }        function leftOnLoad() {            setTimeout(leftAnimateRandom,1000);        }        function leftAnimateRandom() {            var intFinalNumber = parseInt(get("number"));            var intThreshold = parseInt(get("score"));            var intMin = 1;            var intMax = 100;            var intDuration = 5; //seconds            var intFPS = 25;                        var obj = document.getElementById("number");            var intInterval = Math.abs(Math.floor(1000 / intFPS));            var intIterations = intDuration * intFPS;            var intRandom = 0;            var timer;                        function leftDisplayNumber(intNumber) {                obj.innerHTML = intNumber.toFixed();                if (intNumber > intThreshold) { obj.className = "lose"; }                else { obj.className = "win"; };            }             function leftRunRandomAnimation () {                intIterations = intIterations - 1;                intRandom = Math.floor(Math.random() * ((intMax + 1) - intMin)) + intMin;                leftDisplayNumber(intRandom);                if (intIterations <= 0) {                    leftDisplayNumber(intFinalNumber);                    clearInterval(timer);                };            }                        var timer = setInterval(leftRunRandomAnimation, intInterval);        }    </script></head><body onload="leftOnLoad();">    <div class="center-div">        <div class="numtext">            <div id="number" class="neutral">?</div>        </div>    </div></body></html>
From within Guideme, I've called it by both putting it in a string and assigning it to overRide.leftHTML. And I've tried it by putting in it's own html file and calling it using guardianx's wrapper routine:

Code: Select all

function setLeftHTML(html) {    var htmlPage = "<html><body style='margin:0px;padding:0px;background-color:black;color:white;overflow:hidden'>";    htmlPage    += "<iframe style='border:0px;padding:0px;margin:0px;overflow:none' frameBorder='0' width='100%' height='100%' src='"+html+"'/>";    htmlPage    += "</body></html>";    overRide.leftHtml = htmlPage;}
If you want to try it out and experiment with it, the URL to use from your browser is:
file:///<myfilepath>/GuideMe/Guides/MyTease/choose.html?number=70&score=50
or from inside GuideMe:

Code: Select all

setLeftHTML(mediaDir + "MyTease\\choose.html?number=70&score=50";);
I've tried every which way to vertically centre that text inside GuideMe, but I'm not quite getting why it won't. Can any of you make it work?
User avatar
ospray
Explorer At Heart
Explorer At Heart
Posts: 176
Joined: Sat Feb 01, 2014 3:19 am
Gender: Male
Sexual Orientation: Straight
I am a: Switch

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

Post by ospray »

Really wanting some help, Heart's Club link will not download. I really want to give it a try any, can anyone help me?
User avatar
VanHellsing
Explorer At Heart
Explorer At Heart
Posts: 150
Joined: Mon Apr 12, 2010 10:07 am
Gender: Male
Sexual Orientation: Straight
I am a: Switch

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

Post by VanHellsing »

philo wrote:Hopefully the log files should show what the issue is (I assume you have turned the volume up :lol: )
There is a logs directory under the guideme directory.
Delete any log files and then start guideme and go to a page in a tease where there is sound.
Quit guideme and put the logs somewhere like mega and either post a link here or PM it to me.
I will see if the logs show why sound is not working.
Checking logs was a good idea, apparently GuideMe doesn't accept folders without names (like the old alt+0160 on numeric pad). I moved it out of the folder and all sounds suddenly started working.

I had this error in logs:
Spoiler: show
2014-11-17 01:51:30,469 ERROR GuideSettings - java.io.FileNotFoundException: H:\X\ \Y\GuideMe\Guides\startup.state (The system cannot find the file specified)
javax.xml.transform.TransformerException: java.io.FileNotFoundException: H:\X\ \Y\GuideMe\Guides\startup.state (The system cannot find the file specified)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
at org.guideme.guideme.settings.GuideSettings.saveSettings(GuideSettings.java:527)
at org.guideme.guideme.settings.GuideSettings.<init>(GuideSettings.java:188)
at org.guideme.guideme.model.Guide.<init>(Guide.java:37)
at org.guideme.guideme.model.Guide.getGuide(Guide.java:56)
at org.guideme.guideme.ui.MainShell.<init>(MainShell.java:92)
at org.guideme.guideme.App.main(App.java:76)
Caused by: java.io.FileNotFoundException: H:\X\ \Y\GuideMe\Guides\startup.state (The system cannot find the file specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
... 8 more
It's a shame, I'll have to take GuideMe out of the "fap folder" every time I want to use it with sounds. :-D
User avatar
candriver
Explorer
Explorer
Posts: 96
Joined: Sat Jun 22, 2013 8:18 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

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

Post by candriver »

It looks like there’s something wrong with metronome flags in GuideMe.

Something like

Code: Select all

<Metronome if-set="m60" bpm="60" /><Metronome if-set="m90" bpm="90" /><Metronome if-set="m120" bpm="120" />
works perfectly in TeaseMe, but in GuideMe it just beats at 120.

In "tease.state":

Code: Select all

…<Flags>m60</Flags>…
Looks like <Metronome /> ignores “if-set”?
FlashTease to TeaseMe conversions.
figroll
Explorer At Heart
Explorer At Heart
Posts: 142
Joined: Mon Jun 23, 2014 7:03 am

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

Post by figroll »

I have some noobbish questions as I amn writing my first tease.

I am using GuideMe. Does this mean my tease will only be available offline and I will need to upload it as a zip file?

If I want to uploaded it to Milovana as a flash tease, do I have to make it TeaseMe compatable? Or can I upload a GuideMe tease somehow? If so how?

I did try reading FAQs but I was not sure of the relationship between Nyx, the website teases, GuideMe and TeaseMe.

Thanks in advance.
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 »

figroll wrote:I have some noobbish questions as I amn writing my first tease.

I am using GuideMe. Does this mean my tease will only be available offline and I will need to upload it as a zip file?

If I want to uploaded it to Milovana as a flash tease, do I have to make it TeaseMe compatable? Or can I upload a GuideMe tease somehow? If so how?

I did try reading FAQs but I was not sure of the relationship between Nyx, the website teases, GuideMe and TeaseMe.

Thanks in advance.
There are 2 types of teases on the website.
Flash (Nyx) and the simpler non flash
Nyx is the editor for the flash teases.

TeaseMe was originally written as an offline download / view application for flash teases.
It was further developed to add things that flash teases can't do.
GuideMe is a further development of TeaseMe that adds more sophisticated scripting and is designed to run on Mac and Linux as well as windows.

I have written a windows offline editor for both flash (Nyx) and TeaseMe teases.
http://www.milovana.com/forum/viewtopic.php?f=2&t=10941
This saves the tease in TeaseMe format and has a Nyx generator tab that will generate the Nyx code to paste into the Nyx editor to create a flash tease on the site.

So you can create a tease in the Nyx editor and then down load the published tease using TeaseMe.
Or you can create the TeaseMe tease in the editor and generate the Nyx code to create the flash tease.
It will depend on which editor works best for you.

So if you write a flash tease, it will work in TeaseMe and GuideMe.
Depending on what functionality you use
A GuideMe tease may not work as a TeaseMe or Flash Tease
A TeaseMe tease may not work as a Flash Tease.
figroll
Explorer At Heart
Explorer At Heart
Posts: 142
Joined: Mon Jun 23, 2014 7:03 am

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

Post by figroll »

Excellent. Many thanks.
guardianx
Explorer
Explorer
Posts: 32
Joined: Sun Mar 30, 2014 7:24 pm

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

Post by guardianx »

meson1 wrote:Greetings coders

I've got a problem trying to vertically centre a piece of text in the left html window. If I use this page in a regular browser (and I've tried FF IE and Chrome), it works perfectly. But when I get GuideMe to display it in the leftHTML pane, it just won't vertically centre the text.

....

I've tried every which way to vertically centre that text inside GuideMe, but I'm not quite getting why it won't. Can any of you make it work?
Hi, I don't know if you still need help with the problem or not. But the reason why it works outside but not inside GuideMe is because the engine that is being used is in guideMe is IE7 (iirc). This means that certain CCS styles/techniques simply won't work. In your case, it is the transform property that isn't supported.

Vertically centering div in CSS is a tricky matter, how I've addressed using tables to achieve this, then wrapping the divs within them. Either case, I've updated and tested your HTML code accordingly, it works both inside GuideMe and outside (in IE)

Code: Select all

<!DOCTYPE html>    <html>    <head>        <style>            body, html { border:0px; height:100%; padding:0px; margin:0px; background-color:black; color: white; font-family: "Trebuchet MS"; font-size: 16px; overflow-y: auto; }            table.center {border-collapse:collapse; border:0px solid red;width:100%;height:100%;}            table.center td {text-align:center;height:100%;}            .center-div {height: 60%; width: 60%;border: 2px solid gray; }            #number {border:0px solid red; font-size: 256px;text-align: center; font-family: Arial, Helvetica, sans-serif; font-weight: bold;};            .neutral { color: white; }            .win { color: green; }            .lose { color: red; }        </style>        <script>            function get(name){                if(name=(new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)')).exec(location.search))                    { return decodeURIComponent(name[1]); }                else                    { return ""; }            }            function leftOnLoad() {                setTimeout(leftAnimateRandom,1000);            }            function leftAnimateRandom() {                var intFinalNumber = parseInt(get("number"));                var intThreshold = parseInt(get("score"));                var intMin = 1;                var intMax = 100;                var intDuration = 5; //seconds                var intFPS = 25;                               var obj = document.getElementById("number");                var intInterval = Math.abs(Math.floor(1000 / intFPS));                var intIterations = intDuration * intFPS;                var intRandom = 0;                var timer;                               function leftDisplayNumber(intNumber) {                    obj.innerHTML = intNumber.toFixed();                    if (intNumber > intThreshold) { obj.className = "lose"; }                    else { obj.className = "win"; };                }                     function leftRunRandomAnimation () {                    intIterations = intIterations - 1;                    intRandom = Math.floor(Math.random() * ((intMax + 1) - intMin)) + intMin;                    leftDisplayNumber(intRandom);                    if (intIterations <= 0) {                        leftDisplayNumber(intFinalNumber);                        clearInterval(timer);                    };                }                               var timer = setInterval(leftRunRandomAnimation, intInterval);            }        </script>    </head>    <body onload="leftOnLoad();">        <table cellspacing=0 cellpadding=0 class="center">            <tr><td>                <div class="center-div">                    <table cellspacing=0 cellpadding=0 class="center">                        <tr><td><div id="number" class="neutral">?</div></td></tr>                    </table>                </div>            </td></tr>        </table>    </body>    </html> 
ps: nice to know my wrapper code is being (re-)used :)
lew311
Curious Newbie
Curious Newbie
Posts: 3
Joined: Fri Aug 15, 2014 2:23 am

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

Post by lew311 »

holodoc wrote:I am working on getting GuideMe working nicely on Mac OS X, just submitted some changes to the project on GitHub for review.

A "first" Mac OS X app "GuideMe" 0.1.1.0 has been uploaded here: https://mega.co.nz/#!s90lHb7T!3ceUckxeQ ... E8MvAWlPlc

The app is a real Mac app with menu bar and the Quit menu working. Sound/metronome works.

What does NOT work on Mac yet:
- User settings dialog (resource location/loading issue)
- Video Playback (due to a native Mac rendering issue with Java, Apple broke this)

Have fun and let me know how it goes!
Hi Holodoc,

I tried to download from the link but the site requested an encryption key.
meson1
Explorer
Explorer
Posts: 93
Joined: Sun Sep 26, 2010 3:28 pm
Gender: Male
Sexual Orientation: Straight

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

Post by meson1 »

guardianx wrote:Hi, I don't know if you still need help with the problem or not. But the reason why it works outside but not inside GuideMe is because the engine that is being used is in guideMe is IE7 (iirc). This means that certain CCS styles/techniques simply won't work. In your case, it is the transform property that isn't supported.

Vertically centering div in CSS is a tricky matter, how I've addressed using tables to achieve this, then wrapping the divs within them. Either case, I've updated and tested your HTML code accordingly, it works both inside GuideMe and outside (in IE)

ps: nice to know my wrapper code is being (re-)used :)
Hi,

Thanks for replying. I already managed to find some code that works. I'm sorry I didn't come back here and update you all, I could've saved you the trouble.

Vertical alignment has rapidly become one of my pet hates in CSS/HTML. The language that should be used to achieve it should be simple, obvious, intuitive and easily readable. Instead to align anything vertically without hardcoding anything in pixels, you have to use silly obscure code and trickery to make it do what you want. And there are no signs it's ever going to be fixed in the standards. Silly if you ask me. Anyway, /rant.

Also, IE7?!!!! When I ran into the vertical alignment problem I added some JS code to check what browser it was inside GuideMe. It told me it was IE11. But IE11 should have known about CSS "transform" when "transform" is obviously not recognised. If it is IE7, I guess it's been used because it was only expected to perform relatively simple rendering. Phil probably didn't plan for people like you and me to try to push any limits the way we are doing. :-)

I wonder how feasible it would be to incorporate a later version engine? Get some HTML5 and CSS3 going on. :-D I'm guessing it's a) not trivial and b) there are probably license issues.
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 »

meson1 wrote:Also, IE7?!!!! When I ran into the vertical alignment problem I added some JS code to check what browser it was inside GuideMe. It told me it was IE11. But IE11 should have known about CSS "transform" when "transform" is obviously not recognised. If it is IE7, I guess it's been used because it was only expected to perform relatively simple rendering. Phil probably didn't plan for people like you and me to try to push any limits the way we are doing. :-)

I wonder how feasible it would be to incorporate a later version engine? Get some HTML5 and CSS3 going on. :-D I'm guessing it's a) not trivial and b) there are probably license issues.
Guideme uses the native browser engine for the OS (SWT Browser control) so is different on windows / mac / linux.

So if you don't have IE7 installed it is not using it, if it is reporting IE11 it will be using the IE11 engine to display the html. Not sure how the control interacts with the browser engine, Microsoft have always preferred non standard ways of doing things, so it could be a windows only issue.
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

New Guideme Teases

Post by PlayfulGuy »

Hey gang,

I've just posted a couple threads with new teases for guideme. See the threads here:
Random Metronome stroking and edging.
Big Cock Browsing for Guideme

If you download both you'll see I've used a slightly different approach for the folder structure. All of my teases will be in a single subfolder of the Guides folder named PG (for PlayfulGuy). In that subfolder will be a folder for each of my teases, and for resources that are shared between teases like my GlobalJavaScript, sound files, mistresses, etc.

After a bunch of time playing with Guideme I think I'm getting the hang of it. I have a list of feature requests and suggestions that I'll post soon, and am working on an all day tease as well. The Random Metronome tease will likely become part of that project.

@philo, d3vion and taneka - Guideme rocks! Thanks for all of your hard work on the program.
@philo - I've looked on malechastitycontrol.com but couldn't think of any good tasks for you.

Regards,

PG
Post Reply