Page 93 of 121

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Wed May 27, 2020 8:39 pm
by wheresmything
Been trying to put together a script and have gotten to the point that I'm dynamically adding buttons to a page based on the contents of an array. Each row has the parameters for a different model so, for instance, Amy is element 0, Becky is element 1, etc. What I haven't been able to find in the documentation is how to access the array element from the button. What I'm hoping, of course, is that if you then press the button for Becky, I'll be able to grab that value of "1" that I can then use to grab and set all the other related parameters. Just haven't been able to find anything in the documentation that has that. Please let me know what that statement would be. Thanks.

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Tue Jun 02, 2020 6:43 pm
by bobhill
wheresmything wrote: Wed May 27, 2020 8:39 pm Been trying to put together a script and have gotten to the point that I'm dynamically adding buttons to a page based on the contents of an array. Each row has the parameters for a different model so, for instance, Amy is element 0, Becky is element 1, etc. What I haven't been able to find in the documentation is how to access the array element from the button. What I'm hoping, of course, is that if you then press the button for Becky, I'll be able to grab that value of "1" that I can then use to grab and set all the other related parameters. Just haven't been able to find anything in the documentation that has that. Please let me know what that statement would be. Thanks.
This is a bit brute force, but it will work. I didn't test run, so apologies if there's any syntax typos. I tried to skip the intermediate page specific to each model using a JS function call or by setting a button id, but I couldn't get it to work. Maybe better programmers will reply with more elegant solutions.

Code: Select all

 
 <Page id="pgChooseModel"> 			
		<Text>
			<p>Choose a model.</p>
		</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var	vModelArray = scriptVars.get("vModelArray");
					var	vImage = scriptVars.get("vImage");
					overRide.setImage(vImage);

					var i = 0;					
					do {
						var vName = vModelArray[i].Name; 		//Amy
						var vPage = vModelArray[i].Page; 		//pgSetToAmy
						overRide.addButton(vPage, vName, "", "", "", "");
						i++;
					} while (i < vModelArray.length)
				}
			]]>		
		</javascript>
	</Page>
	
//Need one of these pages for each model in array

 	<Page id="pgSetToAmy"> 			
		<javascript>
			<![CDATA[
				function pageLoad() {
					var	vArrayElement = 0;		//set to array element number for that model
					scriptVars.put("vArrayElement", vArrayElement);
					overRide.setDelay("pgSetModelParameters", 0, "", "hidden", "", "", "");
				}
			]]>		
		</javascript>
	</Page>
	
//Then direct to a page to set and save all the parameters
//You can then go to a specific start page for the model, or the next page in your script
	
 	<Page id="pgSetModelParameters"> 			
		<javascript>
			<![CDATA[
				function pageLoad() {
					var	vModelArray = scriptVars.get("vModelArray");
					var	vArrayElement = scriptVars.get("vArrayElement");
					
					var vModelName = vModelArray[vArrayElement].Name;
					var vModelPath = vModelArray[vArrayElement].Path;
					//set other parameters
					
					//save parameters
					scriptVars.put("vModelName", vModelName);
					scriptVars.put("vModelPath", vModelPath);
					//save other parameters
					
					var pgModelStart = vModelArray[vArrayElement].StartPage;

					overRide.setDelay(pgModelStart, 0, "", "hidden", "", "", "");
				}
			]]>		
		</javascript>
	</Page>

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Wed Jun 03, 2020 7:36 pm
by wheresmything
Thanks, I should have time this weekend to give that a try. Appreciate the help.

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Thu Jun 04, 2020 12:04 pm
by philo
wheresmything wrote: Wed Jun 03, 2020 7:36 pm Thanks, I should have time this weekend to give that a try. Appreciate the help.
A refinement of what bobhill suggested, but using a function on the button

Code: Select all

  <Pages>
	<Page id="start"> 			
		<Text>
			<p>Choose a model.</p>
		</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = 0;					
					do {
						var vName = "Model" + i;
						overRide.addButton("ChosenModel", vName, "", "", "setModel(" + i +")", "");
						i++;
					} while (i < 15)
				}
				
				function setModel(i)
				{
					scriptVars.put("vArrayElement", i);
				}
			]]>		
		</javascript>
	</Page>
 	<Page id="ChosenModel"> 			
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = scriptVars.get("vArrayElement");
					overRide.setLeftHtml("<p><b>Model Chosen was Model" + i + "</b></p>");
				}
			]]>		
		</javascript>
	</Page>



Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Thu Jun 04, 2020 7:01 pm
by bobhill
philo wrote: Thu Jun 04, 2020 12:04 pm
wheresmything wrote: Wed Jun 03, 2020 7:36 pm Thanks, I should have time this weekend to give that a try. Appreciate the help.
A refinement of what bobhill suggested, but using a function on the button

Code: Select all

  <Pages>
	<Page id="start"> 			
		<Text>
			<p>Choose a model.</p>
		</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = 0;					
					do {
						var vName = "Model" + i;
						overRide.addButton("ChosenModel", vName, "", "", "setModel(" + i +")", "");
						i++;
					} while (i < 15)
				}
				
				function setModel(i)
				{
					scriptVars.put("vArrayElement", i);
				}
			]]>		
		</javascript>
	</Page>
 	<Page id="ChosenModel"> 			
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = scriptVars.get("vArrayElement");
					overRide.setLeftHtml("<p><b>Model Chosen was Model" + i + "</b></p>");
				}
			]]>		
		</javascript>
	</Page>


philo - thanks for that! I tried using a function in the button command, but I was just passing i (without quotes) and was getting an error. It's helpful to see the correct syntax.

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Fri Jun 05, 2020 7:35 pm
by FCK88
Hi there fellow MIlovanians.

Somehow I can't download the flashteases from this site using the milovana importer downloader.. Has there been an update that I've missed or am I doing something wrong?

FCK88

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Sun Jun 07, 2020 8:25 pm
by Trusfrated
FCK88 wrote: Fri Jun 05, 2020 7:35 pm Somehow I can't download the flashteases from this site using the milovana importer downloader.. Has there been an update that I've missed or am I doing something wrong?
If you haven't updated since Philo's new dotnetcore version from April 5, 2020, you need to do that. Link is in his signature or the post from the aforementioned date. It's not as pretty as the old one, but it works. :-)

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Fri Jun 12, 2020 10:28 pm
by jhorny10493
Hey,

I've recently returned to the site and need to relearn a few things.
How do I download my Flash Tease from the Nyx editor so I can zip it and put it on MEGA for download?
My Pressure II tease was apparently removed by MEGA and I need to re-upload it.

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Sat Jun 13, 2020 12:33 am
by xman911
jhorny10493 wrote: Fri Jun 12, 2020 10:28 pm Hey,

I've recently returned to the site and need to relearn a few things.
How do I download my Flash Tease from the Nyx editor so I can zip it and put it on MEGA for download?
My Pressure II tease was apparently removed by MEGA and I need to re-upload it.

Here it is, I have your tease in my archive, so I've uploaded it.

https://letsupload.co/drPJ

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Sat Jun 13, 2020 1:11 am
by jhorny10493
xman911 wrote: Sat Jun 13, 2020 12:33 am
jhorny10493 wrote: Fri Jun 12, 2020 10:28 pm Hey,

I've recently returned to the site and need to relearn a few things.
How do I download my Flash Tease from the Nyx editor so I can zip it and put it on MEGA for download?
My Pressure II tease was apparently removed by MEGA and I need to re-upload it.

Here it is, I have your tease in my archive, so I've uploaded it.

https://letsupload.co/drPJ
Awesome! Thank you so much!

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Sat Jun 13, 2020 7:35 pm
by Serousep
Hello! I have a question. Why doesn't GuideMe play audio files in the image folder? While everything works in the old TeaseMe. Could this be related to my Windows 10 x64 operating system?

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Sun Jun 14, 2020 6:26 am
by Trusfrated
Serousep wrote: Sat Jun 13, 2020 7:35 pm Hello! I have a question. Why doesn't GuideMe play audio files in the image folder? While everything works in the old TeaseMe. Could this be related to my Windows 10 x64 operating system?
It should play audio files as expected, just like TeaseMe did. Perhaps check under File...Application Preferences and make sure Music Volume is set to a decent level, at least 100. I'm not using Windows 10, but I don't think it's been mentioned as a problem.

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Sun Jun 14, 2020 9:46 am
by slavejack
Been meaning to post this for some time. For quite a while now my Guide Me takes a while to switch pages. Any ideas?

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Sun Jun 14, 2020 2:12 pm
by Serousep
Trusfrated wrote: Sun Jun 14, 2020 6:26 am
Serousep wrote: Sat Jun 13, 2020 7:35 pm Hello! I have a question. Why doesn't GuideMe play audio files in the image folder? While everything works in the old TeaseMe. Could this be related to my Windows 10 x64 operating system?
It should play audio files as expected, just like TeaseMe did. Perhaps check under File...Application Preferences and make sure Music Volume is set to a decent level, at least 100. I'm not using Windows 10, but I don't think it's been mentioned as a problem.
Thanks! That was the problem! For some reason, Music Volume was set to level 0.

Re: GuideMe (TeaseMe v2.0) - Current Build 0.3.4

Posted: Sun Jun 14, 2020 4:27 pm
by PlayfulGuy
slavejack wrote: Sun Jun 14, 2020 9:46 am Been meaning to post this for some time. For quite a while now my Guide Me takes a while to switch pages. Any ideas?
It might help if you tell us what version of Guideme you are using, and if this applies to all teases, or only to certain teases, are you using javascript and debugging to develop something, etc. The more info we have the better.

That said, I've noticed that loading images is one of the biggest factors affecting how quickly Guideme switches pages. If your tease is using higher resolution images the images have to be scaled down to fit the screen, and this can take a lot of time, especially in Java code (like Guideme). Scaling the images down to a size that fits the screen can greatly improve Guideme speed.

Also, check the Guideme/data subfolder for temporary files named like tmpnnnnn.jpg, where the nnnn is a random string of numbers. I've often found dozens, or hundreds of these temporary image files left behind, but that may be just because of the development stuff I do (and the errors I create :-).

Hope that helps,

PG