Page 31 of 121

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

Posted: Sat Feb 14, 2015 9:21 pm
by philo
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

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

Posted: Sun Feb 15, 2015 3:59 am
by Trusfrated
I'm not sure if the in-progress rewrite would preclude fixing bugs in the current version, but I've been experiencing a "annoyance" with the program for a while. It's not serious, but since I've been trying Hearts Club often I'm reminded of it again.

In the GuideMe preferences, I like to use Full Screen and I set my Main Monitor (my TV) to 2. (I don't use the Dual Monitor checkbox option, however, because I prefer the text and controls to be on the same screen as the pictures.) I have to change the Main Monitor setting every time I start the program because it always defaults back to 1. I'm not sure if this is by design or a bug, but I've learned to live with it. :-)

The main problem is this: if I load a tease, and then attempt to switch which monitor is the Main Monitor (while the tease is loaded) --or try to go from Full Screen to Windowed-- GuideMe just closes (presumably crashes). This is usually not a huge deal, I just need to remember to switch monitors before I load. But there have been occasions where I legitimately wanted to switch monitors in the midst of a tease and I wasn't able to without crashing it.

Whether it's worth looking into or not, Thanks for the software! :wave:

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

Posted: Sun Feb 15, 2015 1:48 pm
by philo
Trusfrated wrote:I'm not sure if the in-progress rewrite would preclude fixing bugs in the current version, but I've been experiencing a "annoyance" with the program for a while. It's not serious, but since I've been trying Hearts Club often I'm reminded of it again.

In the GuideMe preferences, I like to use Full Screen and I set my Main Monitor (my TV) to 2. (I don't use the Dual Monitor checkbox option, however, because I prefer the text and controls to be on the same screen as the pictures.) I have to change the Main Monitor setting every time I start the program because it always defaults back to 1. I'm not sure if this is by design or a bug, but I've learned to live with it. :-)

The main problem is this: if I load a tease, and then attempt to switch which monitor is the Main Monitor (while the tease is loaded) --or try to go from Full Screen to Windowed-- GuideMe just closes (presumably crashes). This is usually not a huge deal, I just need to remember to switch monitors before I load. But there have been occasions where I legitimately wanted to switch monitors in the midst of a tease and I wasn't able to without crashing it.

Whether it's worth looking into or not, Thanks for the software! :wave:
I think this should be fixed in 1.2.

I just tried it in 1.3 and it definitely saves between closing and opening and does not crash switching mid tease.

Fixes are still being done to the current version.
We have not really got that far with the re-write (none of the actual tease code has been copied) it is more looking at how the cross platform stuff will work at the moment.

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

Posted: Tue Feb 17, 2015 4:58 am
by Trusfrated
philo wrote: I think this should be fixed in 1.2.

I just tried it in 1.3 and it definitely saves between closing and opening and does not crash switching mid tease.

Fixes are still being done to the current version.
We have not really got that far with the re-write (none of the actual tease code has been copied) it is more looking at how the cross platform stuff will work at the moment.
I've been using the 1.2 jar file lately and this has still occurred. No problem though; I'll try 1.3 when it is released and see how that works. Thanks!

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

Posted: Wed Feb 18, 2015 1:59 am
by Nezhul
too lazy to dig through the code, so I'll just ask - how does it work? When I had a test glance at it, Kayden ended it after about 15 minutes (normal difficulty). Picked another model for the real run (same settings), and did about 40 minutes of edging and she still was going... I cant figure out - is there a time limit or something, or is it completely random? In the end I just killed myself because 40 minutes of the same thing may get a little bit boring. :lol: ;-)
still would like to know - how is it decided that the session ends?

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

Posted: Wed Feb 18, 2015 6:35 pm
by d3vi0n
It's not "completely random". I'll answer your question regarding "Hearts Club" in the Hearts Club thread. ;-)

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

Posted: Thu Feb 19, 2015 2:21 pm
by Nezhul
A few questions as I may be doing a project with guideMe.

1) Flags can only be one letter in length? Or I can create more lengthy flags?
2) Flag values are saved if I close the tease and reopen it? Or is it runtime feature only?
3) are there any visual editors for GuideMe?
4) Can you change page text without stopping the video that plays at that moment?
4) Where do you declare variables? I expect that they are declared somwhere?

Code: Select all

var vClickCount = parseInt(scriptVars.get("vClickCount"));
Or how does this line work? Is it referencing itself and I should assume that upon creation the default value was 0? I'm new to js, so sorry if that's a stupid question... :look:
Or is it maybe created by

Code: Select all

scriptVars.put("vClickCount", "0");
and you don't need any declaration before it? I'm confused...

p.s. you have a confusing bug in the tutorial. When you demonstrate random pages, the text is the same for all of them (they all say this is "page1". I even thought that it doesn't work properly.

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

Posted: Fri Feb 20, 2015 1:20 am
by Ambossli
i'm not sure i'm right but i think your first 3 questions are about the old teaseme code

so i think it's the them

but if you want to use save flags use boolean variables in java should do the same

4th. i don't know

5th i think you can insert a variable at any point

and then you need varible.get

but i'm need sure there is a better way in java

especially global and only function variables

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

Posted: Fri Feb 20, 2015 12:37 pm
by Nezhul
I'm very interested about <include> thingy now. From the wiki:

Code: Select all

Allows you to include xml files into the main file. the xml file must be in the media directory  <Pages>    <Include file="SWTPortTest1.xml" />    <Page id="Page1">
Does that mean I can have a number of small games (each in separate XML file) and then call them in whenever I want from the main tease? Can I do that? If yes, then how? If no, then what this feature is for - just to separate module in a separate file?

Update: ok I got it more or less

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

Posted: Sat Feb 21, 2015 6:23 am
by Nezhul
How can I make GuideMe to NOT save the page I closed the tease on and ALWAYS start at the "start" page?
I still want all flags/variables to be saved though. :-|

Also, perhaps someone knows how to get all folder paths from a certain directory (tease dir obvoiusly), and how to get all filenames in this dir? Javascript obviously.

Update: OK I see the routine for getting the list of folders. Now I would like to get a list of files in a folder. :-|

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

Posted: Sat Feb 21, 2015 10:04 am
by d3vi0n
Nezhul wrote:1) Flags can only be one letter in length? Or I can create more lengthy flags?
2) Flag values are saved if I close the tease and reopen it? Or is it runtime feature only?
I don't use flags anymore since GuideMe introduced javascript and real variables. So not sure if my answers are correct here. But flags should be able to be more than one letter. The current flags should also be saved if you close the tease and reopen it. But again: javascript variables are way more flexible.
Nezhul wrote:3) are there any visual editors for GuideMe?
Sadly, there is no visual editor für GuideMe! You could try any XML Editor but personally I use Notepad++
Nezhul wrote:4) Can you change page text without stopping the video that plays at that moment?
You have to "reload" the page to change the text, so it would also reload the video. But there are some tricks possible. Videos have a start-at and stop-at parameter. So you could load the same video but with different start-at and stop-at values and for the user it would look as if only the text changed.
Nezhul wrote:4) Where do you declare variables? I expect that they are declared somwhere?
Javascript variables? You declare them in functions as normal javascript variable. But they will be only available in that function. If you wanna "save" a variable to use it in another function use scriptVars.put(Name, Value). With scriptVars.put you save the variable in the state file of the tease. You then can load the variable anywhere else in your script with scriptVars.get(Name) and assign it to a javascript variable. Be aware: scriptVars.put and scriptVars.get are specific GuideMe functions and not "normal" javascript functions.
Nezhul wrote:

Code: Select all

var vClickCount = parseInt(scriptVars.get("vClickCount"));
Or how does this line work? Is it referencing itself and I should assume that upon creation the default value was 0? I'm new to js, so sorry if that's a stupid question... :look:
Good website to learn javascript is here. Your code sample does the following:
1. Creates a new javascript variable called vClickCount (var vClickCount)
2. Loads the value of a variable with the same name from the state file (scriptVars.get...)
3. Assigns the value from the state file to your javascript variable (=)
Nezhul wrote:Or is it maybe created by

Code: Select all

scriptVars.put("vClickCount", "0");
and you don't need any declaration before it?
scriptVars.put just saves variable in the state file. In this case there are no javascript variables involved (the value is "0" and not a javascript variable). If you wanna use vClickCount as javascript variable you have to load it now from the state file and assign its value to a javascript variable. See your previous example how to do that.
Nezhul wrote:p.s. you have a confusing bug in the tutorial. When you demonstrate random pages, the text is the same for all of them (they all say this is "page1". I even thought that it doesn't work properly.
yeah... quite possible. The tutorial was written for a very early GuideMe version and surely needs some updates and fixes.
Nezhul wrote:How can I make GuideMe to NOT save the page I closed the tease on and ALWAYS start at the "start" page? I still want all flags/variables to be saved though. :-|
No idea... I think thats not possible at the moment.
Nezhul wrote:Update: OK I see the routine for getting the list of folders. Now I would like to get a list of files in a folder. :-|
I only know how to get a random filename from a folder (comonFunctions.GetRandomFile) or how to check if a file exists in a folder (comonFunctions.fileExists). These are both specific GuideMe functions, because javascript normally can't do anything like this. I think philo would need to create a new comonFunction similar to comonFunctions.ListSubFolders.

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

Posted: Sat Feb 21, 2015 10:33 am
by Nezhul
I use Notepad++
Me too!
I think philo would need to create a new comonFunction similar to comonFunctions.ListSubFolders.
I really really need it. I want to present user the images one by one from a photoset, and make it so you can put any number of photosets in yor tease and they all will be avaliable. :wave:

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

Posted: Sat Feb 21, 2015 2:47 pm
by philo
Nezhul wrote:
I use Notepad++
Me too!
I think philo would need to create a new comonFunction similar to comonFunctions.ListSubFolders.
I really really need it. I want to present user the images one by one from a photoset, and make it so you can put any number of photosets in yor tease and they all will be avaliable. :wave:
I will add file list to common functions.
I will look at adding a force start page option
(I think someone solved this in javascript somewhere in this thread)

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

Posted: Sat Feb 21, 2015 3:33 pm
by Nezhul
Thanks a lot! Any ETA on this changes?

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

Posted: Sat Feb 21, 2015 3:39 pm
by philo
Nezhul wrote:Thanks a lot! Any ETA on this changes?
When I can find the time (and motivation) :lol:

hopefully within a week but sooner if I can.