Re: GuideMe (TeaseMe v2.0) - Current Build 0.4.3
Posted: Sun Apr 04, 2021 8:38 am
This worked in PilgrimQuest
- Spoiler: show
... for the explorer at heart!
https://milovana.com/forum/
BrycisEstimExperience uses images on buttons.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
Ambossli wrote: Sun Apr 04, 2021 8:38 am This worked in PilgrimQuest
overRide.addButton("ExploreRandom", "", "", "", "", "buttons\\explore.jpg");
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.JBK wrote: Sun Apr 04, 2021 9:18 amBrycisEstimExperience uses images on buttons.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
Example code in XML: <Button target="intro1" image="AAlocations/Enter.jpg"></Button>
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);
}
]]>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?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); }
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);
}
]]>Glad to see you are still alive and glad to have you back!!!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!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.
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.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)
PlayfulGuy, what features are missing that would allow these to play in GuideMe? I'm open to suggestions.PlayfulGuy wrote: Fri Feb 26, 2021 10:15 pmHi bob!bobhill wrote: Fri Feb 12, 2021 9:56 pmHi PG!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![]()
Will your downloader work on this one? https://milovana.com/webteases/showtease.php?id=46891![]()
Thank you! BH
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
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.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.
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?PlayfulGuy wrote: Thu Mar 25, 2021 11:46 pmI got a chance to try this and unfortunately it doesn't work for me either.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
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
Thanks so much for your work on this!!!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.
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.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)
PlayfulGuy, what features are missing that would allow these to play in GuideMe? I'm open to suggestions.PlayfulGuy wrote: Fri Feb 26, 2021 10:15 pmHi bob!bobhill wrote: Fri Feb 12, 2021 9:56 pm
Hi PG!![]()
Will your downloader work on this one? https://milovana.com/webteases/showtease.php?id=46891![]()
Thank you! BH
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
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.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.
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?PlayfulGuy wrote: Thu Mar 25, 2021 11:46 pmI got a chance to try this and unfortunately it doesn't work for me either.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
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
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).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)
First of all, welcome back! It's exciting to see development on GuideMe starting up again.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, what features are missing that would allow these to play in GuideMe? I'm open to suggestions.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