Page 96 of 121

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

Posted: Thu Jul 23, 2020 9:56 pm
by PlayfulGuy
I have a few thoughts but don't have time (and brainpower) to work it all through today. Let me think on it and I'll have a look at it tomorrow and get back to you.

PG
wheresmything wrote: Wed Jul 22, 2020 5:55 pm I've added more models to the array and the buttons are rapidly getting out of hand. As such, what I really need is the idea of creating buttons for X unique models rather than the entire array. I've tried using the array in the script as a master array, selecting X models from it into a separate array and then using the new array for the buttons and rest of the script, but have been getting very inconsistent results from it. I could really use help figuring out this last piece from anyone willing.

Thanks.
Spoiler: show
wheresmything wrote: Fri Jul 17, 2020 8:11 pm Getting very close now. This script may not be pretty, but it does pretty much everything its supposed to do the way its supposed to. I do need a bit more help to finish it up though. The problems I have are the following:

1) There are 7 elements in arrayModel, but really only 4 models. This is because there are multiple sets from two of the models (Marie and Monica). Each of these elements also allows me to change the difficulty and photos for that particular set so that a model may have different difficulties from one set to another. The way things are currently, every set creates a button, but what I'd ultimately is some way to randomly select unique models with the ones having multiple sets being chosen randomly (in other words, sometimes Marie 1, sometimes Marie 2, but either way there's just one button that says Marie). I have no idea how to make that happen though.
2) The overRide.addButton function on the start page apparently can support sorting the buttons in order, which I'd like, but I can't get it to work. I'm sure its just syntax, but I can't seem to find the right one. This is no biggie, but any help sorting it would be fantastic.

With those two things, this will be done. Appreciate any help you can provide.

As I think more on it, what would be even better is a way to select x unique models from the array and only put buttons for them. Really, really have no idea how to pull that one off though.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<Tease>
  <Title>At thier whim v5</Title>
  <Author id="">
    <Name>""</Name>
  </Author>

  <MediaDirectory>At thier whim</MediaDirectory>

  <Settings>
    <AutoSetPageWhenSeen>false</AutoSetPageWhenSeen>
	<ForceStartPage>true</ForceStartPage>
  </Settings>

  <GlobalJavascript>
  <![CDATA[

    //Difficulty settings: Very Easy = 0, Easy = 1, Medium = 2, Hard = 3, Very Hard = 4, Insane = 5
	var arrayModel = [
		{ Name: "Abha", 		Difficulty: 0, Path: "Abha" },
		{ Name: "Marie", 		Difficulty: 1, Path: "Marie\\Marie-1" },
		{ Name: "Marie", 		Difficulty: 2, Path: "Marie\\Marie-2" },
		{ Name: "Monica", 		Difficulty: 3, Path: "Monica\\Monica-1" },
		{ Name: "Monica", 		Difficulty: 4, Path: "Monica\\Monica-2" },
		{ Name: "Monica", 		Difficulty: 5, Path: "Monica\\Monica-3" },
		{ Name: "Viki", 		Difficulty: 3, Path: "Viki" },
		];

	//Time is in seconds, chances must add to 100
	var arrayDifficulty = [
		{ Level: "Very Easy", 	DelayMin: 60, 	DelayMax: 180, AllowChance: 33, RuinChance: 33},
		{ Level: "Easy", 		DelayMin: 120, 	DelayMax: 300, AllowChance: 12, RuinChance: 15},
		{ Level: "Medium", 		DelayMin: 180, 	DelayMax: 360, AllowChance: 9, 	RuinChance: 10},
		{ Level: "Hard", 		DelayMin: 300, 	DelayMax: 480, AllowChance: 5, 	RuinChance: 7},
		{ Level: "Very Hard", 	DelayMin: 420, 	DelayMax: 600, AllowChance: 3, 	RuinChance: 4},
		{ Level: "Insane", 		DelayMin: 600, 	DelayMax: 900, AllowChance: 1, 	RuinChance: 2},
	];

	var arrayAllow = [
		"Allow 1",
		"Allow 2",
		"Allow 3",
	];
	
	var arrayRuin = [
		"Ruin 1",
		"Ruin 2",
		"Ruin 3",
	];

	var arrayDeny = [
		"Deny 1",
		"Deny 2",
		"Deny 3",
	];

  ]]>
  </GlobalJavascript>

  <Pages>
    <Page id="start">
      <Text>Who'd you like to see?</Text>
      <Image id="Welcome.jpg" />
      <javascript>
		  <![CDATA[
		  function pageLoad() {
			var i = 0;
			var vSelected = parseInt(scriptVars.get("vSelected"),10);
			var arrayAllow = scriptVars.get("arrayAllow");
			jscriptLog("vSelected = " + vSelected);
			if ( isNaN(vSelected) || vSelected == undefined ) {
			  vSelected = 0;
			  scriptVars.put("vSelected", vSelected);
			  jscriptLog("vSelected initialized to " + vSelected);
			}
			
			for (i=0; i < arrayModel.length; i++) {
				var vName = arrayModel[i].Name;
				overRide.addButton("Confirm", vName, "", "", "setModel(" + i +")", "", "");
			}
			
			overRide.setHtml("Last time you visited " + arrayModel[vSelected].Name);
			}

			function setModel(i)
			{
				scriptVars.put("vSelected", i);
			}
		  ]]>
	  </javascript>
    </Page>

	<Page id="Confirm">
      <Text>Seeing this means something went wrong on the page - Confirm</Text>
	  <Image id="test.jpg" />
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;
			  
			  overRide.setHtml("Hello.  Are you ready to begin?");
			  overRide.image = vPath + "/ready.jpg";
			  
				}
    		
			]]>
		</javascript>

	<Button target="start">Changed my mind</Button>
	<Button target="Wait">Let's Begin</Button>
	</Page>

	<Page id="Wait">
      <Text>Seeing this means something went wrong on the page - Wait</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;
					
					var vDiff = parseInt(arrayModel[i].Difficulty,10);
					var vLvl = arrayDifficulty[vDiff].Level;
					var vMinDel = arrayDifficulty[vDiff].DelayMin;
					var vMaxDel = arrayDifficulty[vDiff].DelayMax;
					
					var vDelay = Math.floor(Math.random() * (vMaxDel - vMinDel + 1)) + vMinDel;
			  
			  overRide.setHtml("Waiting...");
			  overRide.image = vPath + "/Wait/*.jpg";
			  overRide.setDelay("Ask", vDelay, "", "hidden", "", "", "");
			  
				}
    		
			]]>
		</javascript>
  	  <Button target="Ask">proceed-test</Button>
	</Page>
	
	
	<Page id="Ask">
      <Text>Seeing this means something went wrong on the page - Ask</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;
					
					var vDiff = parseInt(arrayModel[i].Difficulty,10);
					var vAllowCase = 100 - parseInt(arrayDifficulty[vDiff].AllowChance,10);
					var vRuinCase = vAllowCase - parseInt(arrayDifficulty[vDiff].RuinChance,10);
			  
				    var rand = guide.getRandom("(1..100)");
				  
				  switch (true)
					{
					 case rand > vAllowCase:
						overRide.addButton("Allow", "Please...", "", "", "", "", "");
						break;
					 case rand > vRuinCase:
						overRide.addButton("Ruin", "Please...", "", "", "", "", "");
						break;
					default:
						overRide.addButton("No", "Please...", "", "", "", "", "");
					}
				  
				    overRide.setHtml("Ask nicely");
				    overRide.image = vPath + "/Ask/*.jpg";
			  
				}
    		
			]]>
		</javascript>
    </Page>
	
	<Page id="Allow">
      <Text>Seeing this means something went wrong on the page - Allow</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;
					
					var vResponse = arrayAllow[Math.floor(Math.random()*arrayAllow.length)];
			  
			  overRide.setHtml(vResponse);
			  overRide.image = vPath + "/Yes/*.jpg";
			  
				}
    		
			]]>
		</javascript>
	  <Button target="start">Someone else?</Button>
	  <Button target="Wait">Try Again?</Button>
    </Page>	

	<Page id="Ruin">
      <Text>Seeing this means something went wrong on the page - Ruin</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;

					var vResponse = arrayRuin[Math.floor(Math.random()*arrayRuin.length)];
			  
			  overRide.setHtml(vResponse);					
			  overRide.image = vPath + "/No/*.jpg";
			  
				}
    		
			]]>
		</javascript>
	  <Button target="start">Someone else?</Button>
	  <Button target="Wait">Try Again?</Button>
    </Page>	
	
	<Page id="No">
      <Text>Seeing this means something went wrong on the page - No</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;
					
					var vResponse = arrayDeny[Math.floor(Math.random()*arrayDeny.length)];
			  
			  overRide.setHtml(vResponse);	
			  overRide.image = vPath + "/No/*.jpg";
			  
				}
    		
			]]>
		</javascript>
      <Button target="start">Someone else?</Button>
	  <Button target="Wait">Try Again?</Button>
	</Page>	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
  </Pages>
</Tease>


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

Posted: Fri Jul 24, 2020 1:13 pm
by wheresmything
PlayfulGuy wrote: Thu Jul 23, 2020 9:56 pm I have a few thoughts but don't have time (and brainpower) to work it all through today. Let me think on it and I'll have a look at it tomorrow and get back to you.

PG
Totally understand, and appreciate, TY

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

Posted: Fri Jul 24, 2020 4:53 pm
by philo
Serousep wrote: Thu Jul 23, 2020 2:45 pm Hello! Sorry for the question, not quite probably on the topic, but how to download EOS teases (in the list they are marked with a feather or something like that) to a computer for playing offline? If this question has already been considered somewhere on the forum, then direct me to it. I tried several downloaders, but GuideMe plays the downloaded EOS teases incorrectly, but FlashTease plays fine. (Win 10 x64)
I am not aware of anything that plays eos teases offline.
I got half way through writing a new downloader that will do all three, eos is half written which is why it doesn't work, most flash teases will work and all html ones should.

I released it half complete because the old one stopped working (due to a change on the site I think).
I don't know when or if I will get the time to finish it for eos teases.

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

Posted: Sat Jul 25, 2020 9:05 pm
by PlayfulGuy
wheresmything wrote: Wed Jul 22, 2020 5:55 pm I've added more models to the array and the buttons are rapidly getting out of hand. As such, what I really need is the idea of creating buttons for X unique models rather than the entire array. I've tried using the array in the script as a master array, selecting X models from it into a separate array and then using the new array for the buttons and rest of the script, but have been getting very inconsistent results from it. I could really use help figuring out this last piece from anyone willing.

Thanks.
Spoiler: show
wheresmything wrote: Fri Jul 17, 2020 8:11 pm Getting very close now. This script may not be pretty, but it does pretty much everything its supposed to do the way its supposed to. I do need a bit more help to finish it up though. The problems I have are the following:

1) There are 7 elements in arrayModel, but really only 4 models. This is because there are multiple sets from two of the models (Marie and Monica). Each of these elements also allows me to change the difficulty and photos for that particular set so that a model may have different difficulties from one set to another. The way things are currently, every set creates a button, but what I'd ultimately is some way to randomly select unique models with the ones having multiple sets being chosen randomly (in other words, sometimes Marie 1, sometimes Marie 2, but either way there's just one button that says Marie). I have no idea how to make that happen though.
2) The overRide.addButton function on the start page apparently can support sorting the buttons in order, which I'd like, but I can't get it to work. I'm sure its just syntax, but I can't seem to find the right one. This is no biggie, but any help sorting it would be fantastic.

With those two things, this will be done. Appreciate any help you can provide.

As I think more on it, what would be even better is a way to select x unique models from the array and only put buttons for them. Really, really have no idea how to pull that one off though.
Spoiler: show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<Tease>
  <Title>At thier whim v5</Title>
  <Author id="">
    <Name>""</Name>
  </Author>

  <MediaDirectory>At thier whim</MediaDirectory>

  <Settings>
    <AutoSetPageWhenSeen>false</AutoSetPageWhenSeen>
	<ForceStartPage>true</ForceStartPage>
  </Settings>

  <GlobalJavascript>
  <![CDATA[

    //Difficulty settings: Very Easy = 0, Easy = 1, Medium = 2, Hard = 3, Very Hard = 4, Insane = 5
	var arrayModel = [
		{ Name: "Abha", 		Difficulty: 0, Path: "Abha" },
		{ Name: "Marie", 		Difficulty: 1, Path: "Marie\\Marie-1" },
		{ Name: "Marie", 		Difficulty: 2, Path: "Marie\\Marie-2" },
		{ Name: "Monica", 		Difficulty: 3, Path: "Monica\\Monica-1" },
		{ Name: "Monica", 		Difficulty: 4, Path: "Monica\\Monica-2" },
		{ Name: "Monica", 		Difficulty: 5, Path: "Monica\\Monica-3" },
		{ Name: "Viki", 		Difficulty: 3, Path: "Viki" },
		];

	//Time is in seconds, chances must add to 100
	var arrayDifficulty = [
		{ Level: "Very Easy", 	DelayMin: 60, 	DelayMax: 180, AllowChance: 33, RuinChance: 33},
		{ Level: "Easy", 		DelayMin: 120, 	DelayMax: 300, AllowChance: 12, RuinChance: 15},
		{ Level: "Medium", 		DelayMin: 180, 	DelayMax: 360, AllowChance: 9, 	RuinChance: 10},
		{ Level: "Hard", 		DelayMin: 300, 	DelayMax: 480, AllowChance: 5, 	RuinChance: 7},
		{ Level: "Very Hard", 	DelayMin: 420, 	DelayMax: 600, AllowChance: 3, 	RuinChance: 4},
		{ Level: "Insane", 		DelayMin: 600, 	DelayMax: 900, AllowChance: 1, 	RuinChance: 2},
	];

	var arrayAllow = [
		"Allow 1",
		"Allow 2",
		"Allow 3",
	];
	
	var arrayRuin = [
		"Ruin 1",
		"Ruin 2",
		"Ruin 3",
	];

	var arrayDeny = [
		"Deny 1",
		"Deny 2",
		"Deny 3",
	];

  ]]>
  </GlobalJavascript>

  <Pages>
    <Page id="start">
      <Text>Who'd you like to see?</Text>
      <Image id="Welcome.jpg" />
      <javascript>
		  <![CDATA[
		  function pageLoad() {
			var i = 0;
			var vSelected = parseInt(scriptVars.get("vSelected"),10);
			var arrayAllow = scriptVars.get("arrayAllow");
			jscriptLog("vSelected = " + vSelected);
			if ( isNaN(vSelected) || vSelected == undefined ) {
			  vSelected = 0;
			  scriptVars.put("vSelected", vSelected);
			  jscriptLog("vSelected initialized to " + vSelected);
			}
			
			for (i=0; i < arrayModel.length; i++) {
				var vName = arrayModel[i].Name;
				overRide.addButton("Confirm", vName, "", "", "setModel(" + i +")", "", "");
			}
			
			overRide.setHtml("Last time you visited " + arrayModel[vSelected].Name);
			}

			function setModel(i)
			{
				scriptVars.put("vSelected", i);
			}
		  ]]>
	  </javascript>
    </Page>

	<Page id="Confirm">
      <Text>Seeing this means something went wrong on the page - Confirm</Text>
	  <Image id="test.jpg" />
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;
			  
			  overRide.setHtml("Hello.  Are you ready to begin?");
			  overRide.image = vPath + "/ready.jpg";
			  
				}
    		
			]]>
		</javascript>

	<Button target="start">Changed my mind</Button>
	<Button target="Wait">Let's Begin</Button>
	</Page>

	<Page id="Wait">
      <Text>Seeing this means something went wrong on the page - Wait</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;
					
					var vDiff = parseInt(arrayModel[i].Difficulty,10);
					var vLvl = arrayDifficulty[vDiff].Level;
					var vMinDel = arrayDifficulty[vDiff].DelayMin;
					var vMaxDel = arrayDifficulty[vDiff].DelayMax;
					
					var vDelay = Math.floor(Math.random() * (vMaxDel - vMinDel + 1)) + vMinDel;
			  
			  overRide.setHtml("Waiting...");
			  overRide.image = vPath + "/Wait/*.jpg";
			  overRide.setDelay("Ask", vDelay, "", "hidden", "", "", "");
			  
				}
    		
			]]>
		</javascript>
  	  <Button target="Ask">proceed-test</Button>
	</Page>
	
	
	<Page id="Ask">
      <Text>Seeing this means something went wrong on the page - Ask</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;
					
					var vDiff = parseInt(arrayModel[i].Difficulty,10);
					var vAllowCase = 100 - parseInt(arrayDifficulty[vDiff].AllowChance,10);
					var vRuinCase = vAllowCase - parseInt(arrayDifficulty[vDiff].RuinChance,10);
			  
				    var rand = guide.getRandom("(1..100)");
				  
				  switch (true)
					{
					 case rand > vAllowCase:
						overRide.addButton("Allow", "Please...", "", "", "", "", "");
						break;
					 case rand > vRuinCase:
						overRide.addButton("Ruin", "Please...", "", "", "", "", "");
						break;
					default:
						overRide.addButton("No", "Please...", "", "", "", "", "");
					}
				  
				    overRide.setHtml("Ask nicely");
				    overRide.image = vPath + "/Ask/*.jpg";
			  
				}
    		
			]]>
		</javascript>
    </Page>
	
	<Page id="Allow">
      <Text>Seeing this means something went wrong on the page - Allow</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;
					
					var vResponse = arrayAllow[Math.floor(Math.random()*arrayAllow.length)];
			  
			  overRide.setHtml(vResponse);
			  overRide.image = vPath + "/Yes/*.jpg";
			  
				}
    		
			]]>
		</javascript>
	  <Button target="start">Someone else?</Button>
	  <Button target="Wait">Try Again?</Button>
    </Page>	

	<Page id="Ruin">
      <Text>Seeing this means something went wrong on the page - Ruin</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;

					var vResponse = arrayRuin[Math.floor(Math.random()*arrayRuin.length)];
			  
			  overRide.setHtml(vResponse);					
			  overRide.image = vPath + "/No/*.jpg";
			  
				}
    		
			]]>
		</javascript>
	  <Button target="start">Someone else?</Button>
	  <Button target="Wait">Try Again?</Button>
    </Page>	
	
	<Page id="No">
      <Text>Seeing this means something went wrong on the page - No</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
					var vPath = arrayModel[i].Path;
					
					var vResponse = arrayDeny[Math.floor(Math.random()*arrayDeny.length)];
			  
			  overRide.setHtml(vResponse);	
			  overRide.image = vPath + "/No/*.jpg";
			  
				}
    		
			]]>
		</javascript>
      <Button target="start">Someone else?</Button>
	  <Button target="Wait">Try Again?</Button>
	</Page>	
  </Pages>
</Tease>


Okay, here you go. I tested this in Guideme 3.6 and it seems to work they way you want. Sorry it took longer than anticipated. Yesterday money called and I had to go do that. Gotta pay those bills!

Look the code over and you should be able to grasp what I did here.

Basically the models array has been restructured so that each model has two properties - Name and Sets.
Sets is an array containing one or more objects, each with a Path and Difficulty property.

On the start page when a model is selected we save the model number and randomly select a Set.
I've updated the code in each of the pages here to retrieve the saved model and set number, and use those to get the Path and Difficulty.

Hopefully that's all clear enough.

I'll try and remember to check in here in case you have further questions, but I'm not here on a regular basis.

Regards,

PG

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<Tease>
  <Title>At thier whim v5</Title>
  <Author id="">
    <Name>""</Name>
  </Author>

  <MediaDirectory>At thier whim</MediaDirectory>

  <Settings>
    <AutoSetPageWhenSeen>false</AutoSetPageWhenSeen>
	<ForceStartPage>true</ForceStartPage>
  </Settings>

  <GlobalJavascript>
  <![CDATA[

  // Thoughts:
  //    Add a "selected" or "active" property that starts false.
  //    The model that was selected last time should be available.
  //    Randomly change a couple more to true so those will be available this time.
  //    For models with multiple sets have a Sets property, and randomly pick a set and copy that to Path
  //    We only select one model per run, so once the model is selected the rest doesn't matter.
  //
  //Difficulty settings: Very Easy = 0, Easy = 1, Medium = 2, Hard = 3, Very Hard = 4, Insane = 5

	var arrayModel = [
		{ Name: "Abha", 		Sets: [ {Difficulty: 0, Path: "Abha"} ] },
		{ Name: "Marie",    Sets: [                     // Sets is an array
          {Difficulty: 1, Path: "Marie\\Marie-1"},  // Each element of Sets is an object
          {Difficulty: 2, Path: "Marie\\Marie-2"}
        ] // End of Sets array
    },    // End of model "Marie"
		{ Name: "Monica", 	Sets: [
          {Difficulty: 3, Path: "Monica\\Monica-1"},
          {Difficulty: 4, Path: "Monica\\Monica-2"},
          {Difficulty: 5, Path: "Monica\\Monica-3"}
        ] // End of sets array
    },    // End of model "Monica"
		{ Name: "Viki", 		Sets: [ {Difficulty: 3, Path: "Viki"} ] }
	];  // End of arrayModel



	//Time is in seconds, chances must add to 100
	var arrayDifficulty = [
		{ Level: "Very Easy", 	DelayMin: 60, 	DelayMax: 180, AllowChance: 33, RuinChance: 33},
		{ Level: "Easy", 		DelayMin: 120, 	DelayMax: 300, AllowChance: 12, RuinChance: 15},
		{ Level: "Medium", 		DelayMin: 180, 	DelayMax: 360, AllowChance: 9, 	RuinChance: 10},
		{ Level: "Hard", 		DelayMin: 300, 	DelayMax: 480, AllowChance: 5, 	RuinChance: 7},
		{ Level: "Very Hard", 	DelayMin: 420, 	DelayMax: 600, AllowChance: 3, 	RuinChance: 4},
		{ Level: "Insane", 		DelayMin: 600, 	DelayMax: 900, AllowChance: 1, 	RuinChance: 2},
	];

	var arrayAllow = [
		"Allow 1",
		"Allow 2",
		"Allow 3",
	];

	var arrayRuin = [
		"Ruin 1",
		"Ruin 2",
		"Ruin 3",
	];

	var arrayDeny = [
		"Deny 1",
		"Deny 2",
		"Deny 3",
	];

  ]]>
  </GlobalJavascript>

  <Pages>
    <Page id="start">
      <Text>Who'd you like to see?</Text>
      <Image id="Welcome.jpg" />
      <javascript>
		  <![CDATA[
		  function pageLoad() {
  			var i = 0;
  			var vSelected = parseInt(scriptVars.get("vSelected"),10);

  			jscriptLog("vSelected = " + vSelected);
  			if ( isNaN(vSelected) || vSelected == undefined ) {
  			  vSelected = 0;
  			  scriptVars.put("vSelected", vSelected);
  			  jscriptLog("vSelected initialized to " + vSelected);
  			}

  			for (i=0; i < arrayModel.length; i++) {
  				var vName = arrayModel[i].Name;
  				overRide.addButton("Confirm", vName, "", "", "setModel(" + i +")", "", "");
  			}

  			overRide.setHtml("Last time you visited " + arrayModel[vSelected].Name);
			}

			function setModel(i)
			{
				scriptVars.put("vSelected", i);

        // And randomly select a set to use
        var vSet = Math.floor(Math.random()*arrayModel[i].Sets.length);
			  scriptVars.put("vSet", vSet);  // And save this for other pages to access
			}
		  ]]>
	  </javascript>
    </Page>

	<Page id="Confirm">
      <Text>Seeing this means something went wrong on the page - Confirm</Text>
	  <Image id="test.jpg" />
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
          var vSet = parseInt(scriptVars.get("vSet"),10);
					var vPath = arrayModel[i].Sets[vSet].Path;
					var vDiff = arrayModel[i].Sets[vSet].Difficulty;

          var text = "Are you ready to begin?<br/><br/>";
          text    += "You've selected " + arrayModel[i].Name + "<br/>";
          text    += "Difficulty: " + vDiff + "<br/>";
          text    += "Path: " + vPath;

			  overRide.setHtml(text);
			  overRide.image = vPath + "/ready.jpg";

				}

			]]>
		</javascript>

	<Button target="start">Changed my mind</Button>
	<Button target="Wait">Let's Begin</Button>
	</Page>

	<Page id="Wait">
      <Text>Seeing this means something went wrong on the page - Wait</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
          var vSet = parseInt(scriptVars.get("vSet"),10);
					var vPath = arrayModel[i].Sets[vSet].Path;
					var vDiff = arrayModel[i].Sets[vSet].Difficulty;

					var vLvl = arrayDifficulty[vDiff].Level;
					var vMinDel = arrayDifficulty[vDiff].DelayMin;
					var vMaxDel = arrayDifficulty[vDiff].DelayMax;

					var vDelay = Math.floor(Math.random() * (vMaxDel - vMinDel + 1)) + vMinDel;

			  overRide.setHtml("Waiting...");
			  overRide.image = vPath + "/Wait/*.jpg";
			  overRide.setDelay("Ask", vDelay, "", "hidden", "", "", "");

				}

			]]>
		</javascript>
  	  <Button target="Ask">proceed-test</Button>
	</Page>


	<Page id="Ask">
      <Text>Seeing this means something went wrong on the page - Ask</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
          var vSet = parseInt(scriptVars.get("vSet"),10);
					var vPath = arrayModel[i].Sets[vSet].Path;
					var vDiff = arrayModel[i].Sets[vSet].Difficulty;

					var vAllowCase = 100 - parseInt(arrayDifficulty[vDiff].AllowChance,10);
					var vRuinCase = vAllowCase - parseInt(arrayDifficulty[vDiff].RuinChance,10);

				    var rand = guide.getRandom("(1..100)");

				  switch (true)
					{
					 case rand > vAllowCase:
						overRide.addButton("Allow", "Please...", "", "", "", "", "");
						break;
					 case rand > vRuinCase:
						overRide.addButton("Ruin", "Please...", "", "", "", "", "");
						break;
					default:
						overRide.addButton("No", "Please...", "", "", "", "", "");
					}

				    overRide.setHtml("Ask nicely");
				    overRide.image = vPath + "/Ask/*.jpg";

				}

			]]>
		</javascript>
    </Page>

	<Page id="Allow">
      <Text>Seeing this means something went wrong on the page - Allow</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
          var vSet = parseInt(scriptVars.get("vSet"),10);
					var vPath = arrayModel[i].Sets[vSet].Path;

					var vResponse = arrayAllow[Math.floor(Math.random()*arrayAllow.length)];

			  overRide.setHtml(vResponse);
			  overRide.image = vPath + "/Yes/*.jpg";

				}

			]]>
		</javascript>
	  <Button target="start">Someone else?</Button>
	  <Button target="Wait">Try Again?</Button>
    </Page>

	<Page id="Ruin">
      <Text>Seeing this means something went wrong on the page - Ruin</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
          var vSet = parseInt(scriptVars.get("vSet"),10);
					var vPath = arrayModel[i].Sets[vSet].Path;

					var vResponse = arrayRuin[Math.floor(Math.random()*arrayRuin.length)];

			  overRide.setHtml(vResponse);
			  overRide.image = vPath + "/No/*.jpg";

				}

			]]>
		</javascript>
	  <Button target="start">Someone else?</Button>
	  <Button target="Wait">Try Again?</Button>
    </Page>

	<Page id="No">
      <Text>Seeing this means something went wrong on the page - No</Text>
		<javascript>
			<![CDATA[
				function pageLoad() {
					var i = parseInt(scriptVars.get("vSelected"),10);
          var vSet = parseInt(scriptVars.get("vSet"),10);
					var vPath = arrayModel[i].Sets[vSet].Path;

					var vResponse = arrayDeny[Math.floor(Math.random()*arrayDeny.length)];

			  overRide.setHtml(vResponse);
			  overRide.image = vPath + "/No/*.jpg";

				}

			]]>
		</javascript>
      <Button target="start">Someone else?</Button>
	  <Button target="Wait">Try Again?</Button>
	</Page>

  </Pages>
</Tease>

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

Posted: Sun Jul 26, 2020 10:31 pm
by wheresmything
Thanks PG, I do understand what you did and was able to incorporate it into the master version of the script, which is now showing one entry per model instead of one per set. I also re-added the function for a random selection from all of them which works as intended as well. Now there's just one last bit to work out, which is how to randomly select X models and only have them available rather than all models. Again, thanks for the assistance on this.

Downloader bug

Posted: Sat Aug 08, 2020 9:12 pm
by PlayfulGuy
Hi Philo,

Found a bug in the downloader trying to download the Sibling Rivalry series by 1885
Link to the first one: https://milovana.com/webteases/showtease.php?id=21851

All of these use titles like "Sibling Rivalry Part x - some subtitle..." with the elipsis at the end.
The downloader takes all of that and uses it for the MediaDirectory (including the elipsis) but Windows creates the folder leaving off the elipsis so then all the image downloads fail with basically a path not found error. The XML file gets created properly, and the media folder gets created but is empty.

PG

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

Posted: Mon Aug 17, 2020 11:42 pm
by Yorushi
So... I have a problem here. Other than the "click" sounds when loading a new page, no sounds are playing. I have all the volume settings up(including the ones in the configuration files), java and VLC are up-to-date and I tested 2 different teases with sounds ("Russian invasion" and "Cum in 30 seconds"), both teases can be found on the first page of this thread.
I'm using windows10 and I have tried both 32 and 64bit versions of 0.3.4 and 0.3.8.

I even tried messing with the xml files to test only the Audio command but nothing plays out.
The audio files are on the correct folder and work fine outside GuideMe.

Any ideas of what might be going on? These kind of teases really need the sounds... :-(

Re: Downloader bug

Posted: Tue Aug 18, 2020 5:02 am
by Trusfrated
PlayfulGuy wrote: Sat Aug 08, 2020 9:12 pm Hi Philo,

Found a bug in the downloader trying to download the Sibling Rivalry series by 1885
Link to the first one: https://milovana.com/webteases/showtease.php?id=21851

All of these use titles like "Sibling Rivalry Part x - some subtitle..." with the elipsis at the end.
The downloader takes all of that and uses it for the MediaDirectory (including the elipsis) but Windows creates the folder leaving off the elipsis so then all the image downloads fail with basically a path not found error. The XML file gets created properly, and the media folder gets created but is empty.

PG
Hi PlayfulGuy!

This sounds like the same bug I reported back in this thread on June 15, 2020. Philo released an updated version that fixed the problem for me in the next post. It's also the one linked in his signature. I am guessing you might have missed this new version? :wave:

Re: Downloader bug

Posted: Wed Aug 19, 2020 9:19 pm
by PlayfulGuy
Trusfrated wrote: Tue Aug 18, 2020 5:02 am
PlayfulGuy wrote: Sat Aug 08, 2020 9:12 pm Hi Philo,

Found a bug in the downloader trying to download the Sibling Rivalry series by 1885
Link to the first one: https://milovana.com/webteases/showtease.php?id=21851

All of these use titles like "Sibling Rivalry Part x - some subtitle..." with the elipsis at the end.
The downloader takes all of that and uses it for the MediaDirectory (including the elipsis) but Windows creates the folder leaving off the elipsis so then all the image downloads fail with basically a path not found error. The XML file gets created properly, and the media folder gets created but is empty.

PG
Hi PlayfulGuy!

This sounds like the same bug I reported back in this thread on June 15, 2020. Philo released an updated version that fixed the problem for me in the next post. It's also the one linked in his signature. I am guessing you might have missed this new version? :wave:
That's entirely possible. I'll check that out.

Thanks!

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

Posted: Wed Aug 26, 2020 10:42 am
by rakeshhame
Link to milovana importer to download web tease is dead.
It says file is no longer available. :\'-( :weep:

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

Posted: Wed Aug 26, 2020 4:28 pm
by PlayfulGuy
rakeshhame wrote: Wed Aug 26, 2020 10:42 am Link to milovana importer to download web tease is dead.
It says file is no longer available. :\'-( :weep:
The links in the first post of this thread no longer work, but philo keeps links to the current versions in his signature.
Try using the links in his signature from this post.

PG

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

Posted: Wed Sep 02, 2020 6:19 am
by klemmm
Hi friends, I have version 0.3.4 and I noticed that the delay option has disappeared. Any suggestions please?

Thank you

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

Posted: Wed Sep 02, 2020 10:48 pm
by bobhill
klemmm wrote: Wed Sep 02, 2020 6:19 am Hi friends, I have version 0.3.4 and I noticed that the delay option has disappeared. Any suggestions please?

Thank you
Apologies for the obvious, but you do have Debug checked under File/Application Preferences (and don't forget to save)?

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

Posted: Sun Sep 06, 2020 10:59 pm
by klemmm
bobhill wrote: Wed Sep 02, 2020 10:48 pm
klemmm wrote: Wed Sep 02, 2020 6:19 am Hi friends, I have version 0.3.4 and I noticed that the delay option has disappeared. Any suggestions please?

Thank you
Apologies for the obvious, but you do have Debug checked under File/Application Preferences (and don't forget to save)?
:-D thank you Bobhill!

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

Posted: Sun Sep 13, 2020 2:17 am
by blazedup420
does this support teases that require user input such as 'Tale of the Succubus Hunter'? Seems to be buggy with that tease. Wondering if I haven't configured something correctly?