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

Ambossli
Explorer At Heart
Explorer At Heart
Posts: 254
Joined: Sun Apr 24, 2011 7:23 pm
Gender: Male
Sexual Orientation: Straight
Location: Germany

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

Post by Ambossli »

This worked in PilgrimQuest
Spoiler: show

Code: Select all

<javascript>
		<![CDATA[
		function pageLoad() {
			fUpdateGameHeader();
			fUpdateQuestTagsText();			
			fUpdateExploreBuffs();
			overRide.image = fGetCurrentExplore();
			overRide.setAudio("audio\\_stroke.mp3", "", "", "", "", "", "", "");
			overRide.addButton("PlayerInventory", "", "", "", "", "buttons\\bag.jpg");
			overRide.addButton("ExploreRandom", "", "", "", "", "buttons\\explore.jpg");
		}
		]]>
	  </javascript>
JBK
Explorer At Heart
Explorer At Heart
Posts: 156
Joined: Sun Feb 14, 2021 6:57 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: Using an image on a button

Post by JBK »

PlayfulGuy wrote: Sun Apr 04, 2021 1:30 am Has anyone ever used an image on a button in Guideme?

According to the docs it supports it, but I can't get it to work.

PG
BrycisEstimExperience uses images on buttons.
Example code in XML: <Button target="intro1" image="AAlocations/Enter.jpg"></Button>
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

Re: Using an image on a button

Post by PlayfulGuy »

Ambossli wrote: Sun Apr 04, 2021 8:38 am This worked in PilgrimQuest
overRide.addButton("ExploreRandom", "", "", "", "", "buttons\\explore.jpg");
JBK wrote: Sun Apr 04, 2021 9:18 am
PlayfulGuy wrote: Sun Apr 04, 2021 1:30 am Has anyone ever used an image on a button in Guideme?

According to the docs it supports it, but I can't get it to work.

PG
BrycisEstimExperience uses images on buttons.
Example code in XML: <Button target="intro1" image="AAlocations/Enter.jpg"></Button>
Thanks guys. I don't know what was going on the other day but I could not get it to work. I even tried different versions of guideme, jpg instead of png etc. and nothing worked.

Today it all works fine, and I can't make it not work. Go figure!

PG
wheresmything
Explorer
Explorer
Posts: 62
Joined: Tue Nov 16, 2010 2:02 pm

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

Post by wheresmything »

Hello, hoping I can get an assist on one small tweak to an otherwise working script, specifically, I'm just trying to get a button added that would take me back to whoever was the selected model. The vSelected variable has the correct value, but I can't figure out how to pass that to the setModel function rather than passing i to it. Would appreciate any help figuring that out, thanks. Note that I capitalized the comments in the code for that part just to make them stand out more.

Code: Select all

		  <![CDATA[
		  function pageLoad() {
  			var i = 0;
  			var vSelected = parseInt(scriptVars.get("vSelected"),10);
			var i = vSelected;

  			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;
				var vSort = arrayModel[i].sortOrder.toString();		//sortOrder parameter needs to be a string
				overRide.addButton("Confirm", vName, "", "", "setModel(" + i +")", "", "", vSort, false, "");
			}

  			overRide.setHtml("Who'd you like to see this time?  Last time you visited " + arrayModel[vSelected].Name + " " + i + " " + vSelected);


//ATTEMPTING TO ADD THIS LINE ONLY, BUT CAN'T FIGURE OUT HOW TO GET IT TO PASS THE VALUE OF vSelected TO THE setModel FUNCTION RATHER THAN i

			overRide.addButton("Confirm", "Revisit Last", "", "", "setModel()", "", "");

//EVERYTHING FROM HERE ON WORKS FINE

			overRide.addButton("Confirm", "You Choose", "", "", "setRandomModel()", "", "");
			}

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

				// And randomly select a set to use and save this for other pages to access
				var vSet = Math.floor(Math.random()*arrayModel[i].Sets.length);
				scriptVars.put("vSet", vSet);  
			}
			
			function setRandomModel()
			{
				var i = Math.floor(Math.random()*arrayModel.length);
				
				scriptVars.put("vSelected", i);
				var vSet = Math.floor(Math.random()*arrayModel[i].Sets.length);
				scriptVars.put("vSet", vSet); 
			}
		  ]]>
User avatar
bobhill
Explorer At Heart
Explorer At Heart
Posts: 164
Joined: Tue Mar 15, 2016 8:49 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

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

Post by bobhill »

wheresmything wrote: Wed Apr 14, 2021 10:06 pm The vSelected variable has the correct value, but I can't figure out how to pass that to the setModel function rather than passing i to it.

Code: Select all

		  
	overRide.addButton("Confirm", vName, "", "", "setModel(" + i +")", "", "", vSort, false, "");

//ATTEMPTING TO ADD THIS LINE ONLY, BUT CAN'T FIGURE OUT HOW TO GET IT TO PASS THE VALUE OF vSelected TO THE setModel FUNCTION RATHER THAN i

	overRide.addButton("Confirm", "Revisit Last", "", "", "setModel([NO PARAMETER HERE?])", "", "");


	function setModel(i)  <-- FUNCTION EXPECTING PARAMETER
		{
			scriptVars.put("vSelected", i);  <--- "i" is saved here

			// And randomly select a set to use and save this for other pages to access
			var vSet = Math.floor(Math.random()*arrayModel[i].Sets.length);
			scriptVars.put("vSet", vSet);  
		}
I didn't test anything, but on a quick look at the code, setModel expects a parameter "i", which is then saved to vSelected. But in the addButton line that's not working, you aren't passing any parameter to setModel?

In the setRandomModel fn that's working, 'i' isn't passed, but is calculated inside the fn.
wheresmything
Explorer
Explorer
Posts: 62
Joined: Tue Nov 16, 2010 2:02 pm

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

Post by wheresmything »

Sorry, I cut and paste it while I was experimenting. The original version did pass i, but it didn't work properly as for some reason i = 80 and stayed that way no matter what else was going on. Did some more work and figured it out, though probably not done well, it works. i ended up as 80 every time because that's the length of arrayModel. So what I did was to assign the value for vSelected to i following the run through the array. Now when I pass I, it sends the appropriate index value.

Code: Select all

		  <![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;
				var vSort = arrayModel[i].sortOrder.toString();		//sortOrder parameter needs to be a string
				overRide.addButton("Confirm", vName, "", "", "setModel(" + i +")", "", "", vSort, false, "");
			}
			
			var i = parseInt(scriptVars.get("vSelected"),10);

  			overRide.setHtml("Who'd you like to see this time?  Last time you visited " + arrayModel[vSelected].Name + "  i=" + i + " vS=" + vSelected);
			overRide.addButton("Confirm", "Revist Last", "", "", "setModel(" + i +")", "", "", "", false, "");
			overRide.addButton("Confirm", "You Choose", "", "", "setRandomModel()", "", "");
			}

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

				// And randomly select a set to use and save this for other pages to access
				var vSet = Math.floor(Math.random()*arrayModel[i].Sets.length);
				scriptVars.put("vSet", vSet);  
			}
			
			function setRandomModel()
			{
				var i = Math.floor(Math.random()*arrayModel.length);
				
				scriptVars.put("vSelected", i);
				var vSet = Math.floor(Math.random()*arrayModel[i].Sets.length);
				scriptVars.put("vSet", vSet); 
			}
		  ]]>
EroticDevelopment
Explorer
Explorer
Posts: 36
Joined: Thu Oct 15, 2020 3:32 am
Gender: Male
Sexual Orientation: Straight
Location: USA

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

Post by EroticDevelopment »

Hey everyone, just wanted to drop in quick and say I'm still around. Life has been pretty hectic the last few months for me, so I have not been as active here recently. I have stopped by to read posts a few times but wasn't logged in.

Even though my day-job isn't directly in healthcare, I've picked up a ton of development work related to COVID testing, vaccines, and the like so that's been keeping me pretty busy on my usually quiet weekends. Things are starting to calm down and I expect to have time to get caught up on everything this week.

I have fixed a couple of bugs mentioned on previous posts, and I'll be posting a more thorough reply soon to address many of the questions, and bug reports.
lawman5297
Explorer At Heart
Explorer At Heart
Posts: 156
Joined: Tue May 30, 2017 1:18 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

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

Post by lawman5297 »

EroticDevelopment wrote: Sun Apr 18, 2021 7:00 pm Hey everyone, just wanted to drop in quick and say I'm still around. Life has been pretty hectic the last few months for me, so I have not been as active here recently. I have stopped by to read posts a few times but wasn't logged in.

Even though my day-job isn't directly in healthcare, I've picked up a ton of development work related to COVID testing, vaccines, and the like so that's been keeping me pretty busy on my usually quiet weekends. Things are starting to calm down and I expect to have time to get caught up on everything this week.

I have fixed a couple of bugs mentioned on previous posts, and I'll be posting a more thorough reply soon to address many of the questions, and bug reports.
Glad to see you are still alive and glad to have you back!!!
User avatar
bobhill
Explorer At Heart
Explorer At Heart
Posts: 164
Joined: Tue Mar 15, 2016 8:49 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

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

Post by bobhill »

EroticDevelopment wrote: Sun Apr 18, 2021 7:00 pm Hey everyone, just wanted to drop in quick and say I'm still around. Life has been pretty hectic the last few months for me, so I have not been as active here recently. I have stopped by to read posts a few times but wasn't logged in.

Even though my day-job isn't directly in healthcare, I've picked up a ton of development work related to COVID testing, vaccines, and the like so that's been keeping me pretty busy on my usually quiet weekends. Things are starting to calm down and I expect to have time to get caught up on everything this week.

I have fixed a couple of bugs mentioned on previous posts, and I'll be posting a more thorough reply soon to address many of the questions, and bug reports.
Yes - welcome back, looking forward to updates! :wave: :-D
EroticDevelopment
Explorer
Explorer
Posts: 36
Joined: Thu Oct 15, 2020 3:32 am
Gender: Male
Sexual Orientation: Straight
Location: USA

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

Post by EroticDevelopment »

Ok, so here's a start on replying to questions I've missed recently. It looks like recent versions do have a bug where audio is cut short by a fraction of a second. This is obviously more noticeable with short files, but seems to happen to all of them. I'm still trying to figure out what is causing this since "normal" VLC plays the file fine but indicates the file is finished a bit early when used from GuideMe.

d3vi0n wrote: Fri Jan 29, 2021 10:01 pm EDIT: Found a bug with 0.4.3 and 0.4.2 while trying to update my tutorial script. After playing a video the video audio keeps starting in the background every 2nd button press (even when restarting the tease or loading another tease). You have to completely close GuideMe and start it again to get rid of it. In 0.4.1 it works as intended (so I labeled the tutorial for now as tutorial for 0.4.1)
Looks like this was from the Audio updates. I found some weird behavior in VLC where if the player was stopped, the audio output devices were lost. So, I opted to pause the player instead. This should also allow faster startup for audio on future pages as well, but one of the pause checks was incorrect and allowed it to un-pause when navigating. This has been fixed for the next release.

PlayfulGuy wrote: Fri Feb 26, 2021 10:15 pm
bobhill wrote: Fri Feb 12, 2021 9:56 pm
PlayfulGuy wrote: Mon Feb 08, 2021 6:00 pm I am currently working on a new downloader that includes support for EOS teases and I used that.

I didn't try philo's downloader.

PG
Hi PG! :wave:

Will your downloader work on this one? https://milovana.com/webteases/showtease.php?id=46891 :whistle:

Thank you! BH
Hi bob!

Sorry, I haven't been around for a while. I just tried that one and the answer is "not yet". It uses a couple EOS features that have no direct equivalent in Guideme and I haven't implemented a workaround yet.

I was hoping eroticdevelopment would be able to implement one of those features in GuideMe but he hasn't been around lately either. I'm building a fair sized list of enhancement requests to help with EOS tease conversion. I just don't have the time (or inclination really) to learn the in's and out's of Java and the GuideMe code to be able to contribute to that yet.

It's all coming along though.

PG
PlayfulGuy, what features are missing that would allow these to play in GuideMe? I'm open to suggestions.

lawman5297 wrote: Sun Feb 28, 2021 3:49 pm @eroticdevelopment
I was just curious if you have given any thought to or looked into the possibility of adding that "Pause" function to the debug mode.
Yes, I think this is a great idea, it's just rather complex to implement. GuideMe uses timers referencing absolute time on a clock for some functions, and this complicates things. It is on my list to work on as I think the functionality would be valuable while testing.

PlayfulGuy wrote: Thu Mar 25, 2021 11:46 pm
Grazer1982 wrote: Wed Mar 24, 2021 9:40 am Hi.
Which Java version is needed for GuideMe?
ATM im running Ubuntu and Openjava14, but it doesnt work
I got a chance to try this and unfortunately it doesn't work for me either.
Java crashes with some error that's mostly unintelligible for me.

Hopefully eroticdevelopment comes back some day and can continue development on this. Or maybe some linux guru can provide some assistance.

PG
GuideMe was written for Java 8, but Java 11 seems to work ok. I haven't tested Java 14 yet, but I'm surprised it doesn't work. Usually Java is pretty good about backwards compatibility. I'll add this to my list of things to test and will fix if possible. To clarify, is this only happening on Linux?
lawman5297
Explorer At Heart
Explorer At Heart
Posts: 156
Joined: Tue May 30, 2017 1:18 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

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

Post by lawman5297 »

EroticDevelopment wrote: Sat May 15, 2021 2:40 am Ok, so here's a start on replying to questions I've missed recently. It looks like recent versions do have a bug where audio is cut short by a fraction of a second. This is obviously more noticeable with short files, but seems to happen to all of them. I'm still trying to figure out what is causing this since "normal" VLC plays the file fine but indicates the file is finished a bit early when used from GuideMe.

d3vi0n wrote: Fri Jan 29, 2021 10:01 pm EDIT: Found a bug with 0.4.3 and 0.4.2 while trying to update my tutorial script. After playing a video the video audio keeps starting in the background every 2nd button press (even when restarting the tease or loading another tease). You have to completely close GuideMe and start it again to get rid of it. In 0.4.1 it works as intended (so I labeled the tutorial for now as tutorial for 0.4.1)
Looks like this was from the Audio updates. I found some weird behavior in VLC where if the player was stopped, the audio output devices were lost. So, I opted to pause the player instead. This should also allow faster startup for audio on future pages as well, but one of the pause checks was incorrect and allowed it to un-pause when navigating. This has been fixed for the next release.

PlayfulGuy wrote: Fri Feb 26, 2021 10:15 pm
bobhill wrote: Fri Feb 12, 2021 9:56 pm

Hi PG! :wave:

Will your downloader work on this one? https://milovana.com/webteases/showtease.php?id=46891 :whistle:

Thank you! BH
Hi bob!

Sorry, I haven't been around for a while. I just tried that one and the answer is "not yet". It uses a couple EOS features that have no direct equivalent in Guideme and I haven't implemented a workaround yet.

I was hoping eroticdevelopment would be able to implement one of those features in GuideMe but he hasn't been around lately either. I'm building a fair sized list of enhancement requests to help with EOS tease conversion. I just don't have the time (or inclination really) to learn the in's and out's of Java and the GuideMe code to be able to contribute to that yet.

It's all coming along though.

PG
PlayfulGuy, what features are missing that would allow these to play in GuideMe? I'm open to suggestions.

lawman5297 wrote: Sun Feb 28, 2021 3:49 pm @eroticdevelopment
I was just curious if you have given any thought to or looked into the possibility of adding that "Pause" function to the debug mode.
Yes, I think this is a great idea, it's just rather complex to implement. GuideMe uses timers referencing absolute time on a clock for some functions, and this complicates things. It is on my list to work on as I think the functionality would be valuable while testing.

PlayfulGuy wrote: Thu Mar 25, 2021 11:46 pm
Grazer1982 wrote: Wed Mar 24, 2021 9:40 am Hi.
Which Java version is needed for GuideMe?
ATM im running Ubuntu and Openjava14, but it doesnt work
I got a chance to try this and unfortunately it doesn't work for me either.
Java crashes with some error that's mostly unintelligible for me.

Hopefully eroticdevelopment comes back some day and can continue development on this. Or maybe some linux guru can provide some assistance.

PG
GuideMe was written for Java 8, but Java 11 seems to work ok. I haven't tested Java 14 yet, but I'm surprised it doesn't work. Usually Java is pretty good about backwards compatibility. I'll add this to my list of things to test and will fix if possible. To clarify, is this only happening on Linux?
Thanks so much for your work on this!!!
EroticDevelopment
Explorer
Explorer
Posts: 36
Joined: Thu Oct 15, 2020 3:32 am
Gender: Male
Sexual Orientation: Straight
Location: USA

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

Post by EroticDevelopment »

d3vi0n wrote: Fri Jan 29, 2021 10:01 pm EDIT: Found a bug with 0.4.3 and 0.4.2 while trying to update my tutorial script. After playing a video the video audio keeps starting in the background every 2nd button press (even when restarting the tease or loading another tease). You have to completely close GuideMe and start it again to get rid of it. In 0.4.1 it works as intended (so I labeled the tutorial for now as tutorial for 0.4.1)
Version 0.4.4 has been released (linked in my signature as usual) to resolve this issue. Additionally, the Linux start script has been updated to work better with Wayland (Thanks gnutp).
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

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

Post by PlayfulGuy »

EroticDevelopment wrote: Sat May 15, 2021 2:40 am Ok, so here's a start on replying to questions I've missed recently. It looks like recent versions do have a bug where audio is cut short by a fraction of a second. This is obviously more noticeable with short files, but seems to happen to all of them. I'm still trying to figure out what is causing this since "normal" VLC plays the file fine but indicates the file is finished a bit early when used from GuideMe.
PlayfulGuy wrote: Fri Feb 26, 2021 10:15 pm
Sorry, I haven't been around for a while. I just tried that one and the answer is "not yet". It uses a couple EOS features that have no direct equivalent in Guideme and I haven't implemented a workaround yet.

I was hoping eroticdevelopment would be able to implement one of those features in GuideMe but he hasn't been around lately either. I'm building a fair sized list of enhancement requests to help with EOS tease conversion. I just don't have the time (or inclination really) to learn the in's and out's of Java and the GuideMe code to be able to contribute to that yet.

It's all coming along though.

PG
PlayfulGuy, what features are missing that would allow these to play in GuideMe? I'm open to suggestions.
First of all, welcome back! It's exciting to see development on GuideMe starting up again.

As for features, I have implemented workarounds for all of these in Javascript, but the main ones are:
  • Issues with global buttons - see my previous post here.
  • EOS allows wildcard page targets like target="page*" or target="*-phase2-*" while GuideMe requires target="page(min..max)".
  • Bugs in the handling of javascript on buttons etc. For example, if you have a javascript function call like addResponse("True, you got me there",19) the comma in the quoted string ends up terminating the first argument, and the closing parenthesis inside the quoted string terminates the function call, so the arguments the function receives are not what was intended. It seems Guideme is ignoring the quoted string. Also, quoted strings sometimes arrive with the quotes still there and then you have to strip them off.
  • If you use eval to evaluate a statement that references a function defined in the page it fails with a function name not defined error, but if you put the function in GlobalJavascript it works. Can functions defined in the page javascript be made available to "eval"?
Again, I've implemented workarounds for all these either in javascript or in the downloader, which I hope to get released in the next week or so, so none of these are urgent or anything but would simplify things going forward.

I have a long list of other issues and suggestions, but haven't taken the time to get them organized and sent to you. I will put something together and send you a PM in the near future.

And just as a by the way, the fact that I was able to create workarounds for all of these issues in GuideMe is a testament to just how flexible GuideMe really is. You can use its own abilities to work around its bugs, which I think is way too cool! Gotta give Philo credit for developing such a versatile tool.

PG
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 downloader with EOS support

Post by PlayfulGuy »

Greetings all!

After months of development I am happy to announce the release of my new tease downloader with EOS support.

I have created a separate thread for the downloader.
Please post questions and issues there, so this thread can stay focussed on GuideMe itself.

Downloader thread

Have fun!

PG
JerryLee06
Explorer
Explorer
Posts: 22
Joined: Sat Oct 28, 2017 4:31 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

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

Post by JerryLee06 »

Hi,

Is there any other way to make a slideshow in GuideMe than with the "addTimer" method?

I would like to have a new image displayed on the same page every 500 milliseconds.
This isn`t possible with the "addTimer" method.

Hope someone could help me.

Greets Jerry
Post Reply