Page 48 of 121
Bugs?
Posted: Fri Mar 25, 2016 4:31 pm
by PlayfulGuy
Hi Philo,
First off let me say that I'm loving the latest version of Guideme. Really like the full screen mode and the new features I've tried have been great. I was reading through the wiki and found a bunch of new guide methods I wasn't aware of either. Great stuff! Thanks for all your hard work. If you ask me you can name your own reward.
That said, in my experimenting I have run into a couple issues. I'm using version 1.6
First, I've tried the new functions guide.setLeftBody() and guide.setLeftHtml() and neither appears to work. The test file below includes setLeftBody() which if I understand correctly should just put the specified text on the left, but for me it comes up blank. If I right-click and "View Source" on the left panel, it's a fully formed html page, with an empty body.
I get similar results with guide.setLeftHtml(). I have some existing pages that use overRide.setLeftHtml() so I know my HTML is good, but when I tried moving it to the left panel by using guide.setLeftHtml() instead of overRide I get the same blank left panel.
**Edit** I just clued in that these functions are duplicated as overRide.setLeftHtml() and overRide.setLeftBody() and these work as expected.
Second, and this may not be a Guideme issue, but I'm looking for ideas.
Also illustrated in the following test file, I've created a simple form to get some user input.
If you enter something in the form field and click the Get Input button it works fine.
However, if you type something and press enter (as is a natural response) it trashes the right html panel.
I don't know why, or what to do about it. I kind of think the browser component is looking for a target or submit button or something, but what would I give it as a target? Is there a way to make pressing enter activate the default button?
Thanks again, and any ideas on this form thing are greatly appreciated.
PG
Code: Select all
<Tease scriptVersion="v0.1">
<Settings>
<ForceStartPage>true</ForceStartPage>
</Settings>
<Title>Bug demo</Title>
<Pages>
<Page id="start">
<Text>
If you click in the form field and press enter the right html gets trashed.
<form>
Enter something: <input type='text' name='UserInput' value='' size='10' />
</form>
Your last input was <span>UserInput</span>
</Text>
<Button target="start" onclick="GetInput()" >Get input</Button>
<javascript>
<![CDATA[
function pageLoad() {
jscriptLog("Setting left panel text");
guide.setLeftBody("Some text for the left panel","");
}
function GetInput() {
var text = guideSettings.getFormField("UserInput");
scriptVars.put("UserInput", text);
}
]]>
</javascript>
</Page>
</Pages>
</Tease>
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Sun Apr 10, 2016 3:19 pm
by PlayfulGuy
@Philo
Bump in case you've missed my previous post.
Wondering if you have any ideas on the guide.setLeftHtml() and guide.setRightHtml() issue. Neither appears to work, and there is no overRide equivalent for setRightHtml() that sets the entire html.
I'm trying to implement something and really need the setRightHtml to work since I need to add stuff to the head section of the rightHtml.
PG
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Mon Apr 11, 2016 1:22 pm
by ClosingTheGoddamPorn
Does anyone have the download link for the Skirmish hentai set thing? I cant' seem to find it anywhere >.<
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Thu Apr 14, 2016 6:36 am
by SexyTom
ClosingTheGoddamPorn wrote:Does anyone have the download link for the Skirmish hentai set thing? I cant' seem to find it anywhere >.<
No. But I still
had it on my harddisk. You need WinRAR5 to extract it.
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Fri Apr 15, 2016 3:12 am
by ClosingTheGoddamPorn
SexyTom wrote:ClosingTheGoddamPorn wrote:Does anyone have the download link for the Skirmish hentai set thing? I cant' seem to find it anywhere >.<
No. But I still
had it on my harddisk. You need WinRAR5 to extract it.
Thank you! Just on the off chance that this contains a virus, i'm gonna pass on the download, but still thank u for bein on the ball to help!
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Fri Apr 15, 2016 10:55 am
by SexyTom
Why you think there could be a virus? It only contains pictures and the XML file.
There is surely NO virus!
And here is the
virus total scan log, if you don't believe me.

Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Sat Apr 16, 2016 11:17 am
by philo
PlayfulGuy wrote:@Philo
Bump in case you've missed my previous post.
Wondering if you have any ideas on the guide.setLeftHtml() and guide.setRightHtml() issue. Neither appears to work, and there is no overRide equivalent for setRightHtml() that sets the entire html.
I'm trying to implement something and really need the setRightHtml to work since I need to add stuff to the head section of the rightHtml.
PG
Sorry have been a bit busy lately.
I was trying to get java script debugging working but not really getting anywhere with it and didn't have working code to look at your issues.
Have given up on debugging for now.
You are correct it is not all coded correctly.
guide.setLeftHtml() should work, but is not designed to work in page load you should use override
It overwrites the lefthtml when the script runs, page load happens before the screen is updated for the page so will get overridden straight away.
guide.setRightHtml() currently just updates the body and CSS, it should overwrite the whole html.
I also need to add an override function for the whole html as you can't do it in page load at the moment.
Will do this when I have time and release 1.7
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Mon Apr 18, 2016 11:28 pm
by PlayfulGuy
philo wrote:
Sorry have been a bit busy lately.
I was trying to get java script debugging working but not really getting anywhere with it and didn't have working code to look at your issues.
Have given up on debugging for now.
You are correct it is not all coded correctly.
guide.setLeftHtml() should work, but is not designed to work in page load you should use override
It overwrites the lefthtml when the script runs, page load happens before the screen is updated for the page so will get overridden straight away.
guide.setRightHtml() currently just updates the body and CSS, it should overwrite the whole html.
I also need to add an override function for the whole html as you can't do it in page load at the moment.
Will do this when I have time and release 1.7
Ahh! I had forgotten or missed that distinction between page load and after page load. Good to know.
What I really need at the moment then is the overRide version of setRightHtml for on pageload, but both will be great. I'm sure I'll use the guide version soon enough.
For the record, what I'm trying to implement is an elaborate tease system where different elements can be styled to taste through external style sheets. What I discovered is that relative paths in the stylesheet don't work properly. I solved this in the left panel by adding a <Base> tag of the form <base href="file://\\MediaDir\\/" > which made it all work great. Unfortunately I need to do that for the right html as well, and the <Base> tag must be in the head section. Maybe this <Base> tage should be built-in to GuideMe?
To complicate matters, I also discovered (the hard way of course) that inline CSS takes precedence over CSS included from an external style sheet. Since Guideme always includes some default style elements, I needed to be able to completely overRide everything or the inline stuff would take precedence, making some things impossible to change through the stylesheet.
And btw, any input on that form issue I mentioned would be really helpful. I'm baffled as to what happens or why.
PG
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Fri Apr 22, 2016 8:40 pm
by BoundSquirrel
Two questions on the new version of Guideme.
1: Is it still possible to save guidesettings that persist even after a tease is reset? I had this working in 1.3 and now it doesn't in 1.5.
For example, if I want to save the value of variable, "xyz" to guidesetting "xyz", what would the script be?
2: Is it possible to have timer-activated buttons in the javascript ed overRide.addbutton function? If so, what is the script to do so?
For example, if I want button xyz to present only if variable abc == 0, and want the button to become active after 30 seconds if it is there, what would the script be?
Also, since it's not said enough, thank you for all of your work on improving the GuideMe engine!
Thank you.
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Sat Apr 23, 2016 9:36 am
by BoundSquirrel
Thanks for the quick reply!
Guide preferences work! That changes everything for my latest project. Thanks.
The button doesn't. Here's an example line for trying to add the button and the resulting error.
- Spoiler: show
- overRide.addButton("TestButton","Continue","","","","","","","True","ButtonA");
JavaScriptError line 11 column 0 Source null error Can't find method org.guideme.guideme.scripting.OverRide.addButton(string,string,string,string,string,string,string,string,string,string). (script#11)
Thanks again.
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Sat Apr 23, 2016 9:11 pm
by PlayfulGuy
BoundSquirrel wrote:Thanks for the quick reply!
Guide preferences work! That changes everything for my latest project. Thanks.
The button doesn't. Here's an example line for trying to add the button and the resulting error.
- Spoiler: show
- overRide.addButton("TestButton","Continue","","","","","","","True","ButtonA");
JavaScriptError line 11 column 0 Source null error Can't find method org.guideme.guideme.scripting.OverRide.addButton(string,string,string,string,string,string,string,string,string,string). (script#11)
Thanks again.
The addButton() call you are using requires that the second last argument be a boolean value like this:
overRide.addButton("TestButton","Continue","","","","","","",true,"ButtonA");
Note that the "T" in true is not capitalized, and do not enclose it in quotes.
PG
Re: GuideMe (TeaseMe v2.0): BETA Thread
Posted: Sat Apr 23, 2016 9:15 pm
by philo
PlayfulGuy wrote:BoundSquirrel wrote:Thanks for the quick reply!
Guide preferences work! That changes everything for my latest project. Thanks.
The button doesn't. Here's an example line for trying to add the button and the resulting error.
- Spoiler: show
- overRide.addButton("TestButton","Continue","","","","","","","True","ButtonA");
JavaScriptError line 11 column 0 Source null error Can't find method org.guideme.guideme.scripting.OverRide.addButton(string,string,string,string,string,string,string,string,string,string). (script#11)
Thanks again.
The addButton() call you are using requires that the second last argument be a boolean value like this:
overRide.addButton("TestButton","Continue","","","","","","",true,"ButtonA");
Note that the "T" in true is not capitalized, and do not enclose it in quotes.
PG
Darn beat me to it looked earlier and was going to reply
Re: Bugs?
Posted: Fri Apr 29, 2016 3:17 pm
by PlayfulGuy
I figured out my other problem I asked about earlier.
PlayfulGuy wrote:
Second, and this may not be a Guideme issue, but I'm looking for ideas.
<snip>
I've created a simple form to get some user input.
If you enter something in the form field and click the Get Input button it works fine.
However, if you type something and press enter (as is a natural response) it trashes the right html panel.
I don't know why, or what to do about it. I kind of think the browser component is looking for a target or submit button or something, but what would I give it as a target? Is there a way to make pressing enter activate the default button?
It turns out that the browser object treats pressing enter in a text field as equivalent to pressing the Submit button, even when there is no submit button on the form. To fix it you have to add javascript to the page to catch the enter key press and ignore it.
PG
Re: Bugs?
Posted: Sat Apr 30, 2016 8:03 am
by philo
PlayfulGuy wrote:I figured out my other problem I asked about earlier.
PlayfulGuy wrote:
Second, and this may not be a Guideme issue, but I'm looking for ideas.
<snip>
I've created a simple form to get some user input.
If you enter something in the form field and click the Get Input button it works fine.
However, if you type something and press enter (as is a natural response) it trashes the right html panel.
I don't know why, or what to do about it. I kind of think the browser component is looking for a target or submit button or something, but what would I give it as a target? Is there a way to make pressing enter activate the default button?
It turns out that the browser object treats pressing enter in a text field as equivalent to pressing the Submit button, even when there is no submit button on the form. To fix it you have to add javascript to the page to catch the enter key press and ignore it.
PG
I will add code to trap it in guideme, might Implement default button processing where it will press the first button or a default one specified on the button
A couple issues
Posted: Tue May 03, 2016 2:44 pm
by PlayfulGuy
Philo,
Here are a couple more items I've run across in Guideme.
In Windows, if you browse the images in a folder it creates a hidden system file called thumbs.db of thumbnails for the images.
Guideme will match this if given a wildcard spec like somefolder/*, even though it's a hidden file. The result is you randomly end up with no image, and are wondering why. I don't recall how java handles listing a folder, but shouldn't hidden files be excluded?
Also, in Guideme 1.4 or 1.5 there was a change in how the state file is handled for a tease. In 1.3 the state file was stored in the media folder with the same name as the tease. Now it gets stored in Guideme/data.
I have a large project in the works and keep a stable version in one folder and my development version in another. Now that the state file has moved to a fixed place the two are sharing a state file instead of each having their own. Can we have the state file stay with the main guide file like it did before. Now I have to create a separate copy of Guideme, and run Guideme from one folder when I want dev, and the other when I want my stable version instead of just loading the appropriate tease. If I forget to run the proper copy of Guideme, then it loads and updates the wrong state file.
It was way simpler and more intuitive before.
Thanks,
PG