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

philo
Explorer At Heart
Explorer At Heart
Posts: 831
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

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

Post by philo »

the_big_teaser wrote:This is a great resource. Is it possible to provide a button on a tease page that would pause the video for a set amount of time?
At the moment you can probably do it via javascript and reloading the page.
but it would be a bit complicated.

it is a good idea though so I will look at adding it in to be able to pause and restart video
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

Can you change page contents (text, for example) 10 seconds after the page is loaded WITHOUT re-loading it?
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
desertfox
Explorer At Heart
Explorer At Heart
Posts: 365
Joined: Mon Dec 03, 2012 7:26 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

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

Post by desertfox »

I wanted to do something like this, and googling found the setInterval() function, but it didn't appear to work in the container guideme is using. Not sure how to do it otherwise... I know you can set a function to call when delay is up, but not sure if that reloads the page.
philo
Explorer At Heart
Explorer At Heart
Posts: 831
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

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

Post by philo »

Nezhul wrote:Can you change page contents (text, for example) 10 seconds after the page is loaded WITHOUT re-loading it?
there is a whole load of new functionality in the next version, including this.
it is currently being tested.
but in the current version no.
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

Looking forward to it then. =)

Hope you can run a script that will do so multiple times during the course of, say, video.
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

I noticed one oddity with how comonFunctions.ListFiles("FolderPath"); works.
It kind of sorts the filenames wrong. For example, if you have files "brunette99.jpg" and "brunette100.jpg", then for some reason it puts the latter to the front, as if the filename was smaller, even though it isn't. [spoiler = "the rest of original question"]So when I get the filenames for all the images in the folder with the aim to display them in sequence, I sometimes get the unwanted result of pictures from the end of the set being shown first.

Any ideas how to fix this? If file names were uniform, I would run a simple sorting script, but I can't. I still would like to get the files in the order Windows sorts them.


Basically, if you have files named "lalalaX.jpg" where X ranges from 1 to 100, you will get the files in sequence of:
lalala1
lalala10
lalala100
lalala11
lalala12
lalala13
.....
lalala19
lalala2
lalala20

which is not really great =\[/spoiler]


OK, I found a solution. Here's how to implement a smart string comparison in javascript (the function). After that you can run any kind of sorting you want.

Code: Select all

function fSmartStringCmp(x,y)
		{
			
			if ((x == null) && (y == null))
			{
				return 0;
			}
			if (x == null)
			{
				return -1;
			}
			if (y == null)
			{
				return 1;
			}
			
			
			var lx, ly;
			
			lx = x.length;
			ly = y.length;
			
			for (var mx = 0, my = 0; ((mx < lx) && (my < ly)); mx++, my++)
			{
				
				if ((!isNaN(parseInt(x[mx]))) && (!isNaN(parseInt(y[my]))))
				{
					
					//both characters are numbers
					var vx = 0, vy = 0;

					for (; (mx < lx) && (!isNaN(parseInt(x[mx]))); mx++)
					{
						vx = vx * 10 + parseInt(x[mx]);
					}

					for (; (my < ly) && (!isNaN(parseInt(y[my]))); my++)
					{
					   vy = vy * 10 + parseInt(y[my]);
					}

					if (vx != vy)
					{
					   return vx > vy ? 1 : -1;
					}
					
				}
				
				
				if ((mx < lx) && (my < ly) && (x[mx] != y[my]))
				{
					return x[mx] > y[my] ? 1 : -1;
				}
			}
			
			if ((lx - ly)>0)
			{
				return 1;
			}
			else if 
			{
				return -1;
			}
		
		}
This will return "-1" if X is a smaller name than Y, "0" if they are equal, and "1" if Y is bigger.

And to give credits:
http://stackoverflow.com/questions/1601 ... ll#1601834
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
philo
Explorer At Heart
Explorer At Heart
Posts: 831
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

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

Post by philo »

Nezhul wrote:I noticed one oddity with how comonFunctions.ListFiles("FolderPath"); works.
It kind of sorts the filenames wrong. For example, if you have files "brunette99.jpg" and "brunette100.jpg", then for some reason it puts the latter to the front, as if the filename was smaller, even though it isn't. [spoiler = "the rest of original question"]So when I get the filenames for all the images in the folder with the aim to display them in sequence, I sometimes get the unwanted result of pictures from the end of the set being shown first.

Any ideas how to fix this? If file names were uniform, I would run a simple sorting script, but I can't. I still would like to get the files in the order Windows sorts them.


Basically, if you have files named "lalalaX.jpg" where X ranges from 1 to 100, you will get the files in sequence of:
lalala1
lalala10
lalala100
lalala11
lalala12
lalala13
.....
lalala19
lalala2
lalala20

which is not really great =\[/spoiler]


OK, I found a solution. Here's how to implement a smart string comparison in javascript (the function). After that you can run any kind of sorting you want.

Code: Select all

function fSmartStringCmp(x,y)
		{
			
			if ((x == null) && (y == null))
			{
				return 0;
			}
			if (x == null)
			{
				return -1;
			}
			if (y == null)
			{
				return 1;
			}
			
			
			var lx, ly;
			
			lx = x.length;
			ly = y.length;
			
			for (var mx = 0, my = 0; ((mx < lx) && (my < ly)); mx++, my++)
			{
				
				if ((!isNaN(parseInt(x[mx]))) && (!isNaN(parseInt(y[my]))))
				{
					
					//both characters are numbers
					var vx = 0, vy = 0;

					for (; (mx < lx) && (!isNaN(parseInt(x[mx]))); mx++)
					{
						vx = vx * 10 + parseInt(x[mx]);
					}

					for (; (my < ly) && (!isNaN(parseInt(y[my]))); my++)
					{
					   vy = vy * 10 + parseInt(y[my]);
					}

					if (vx != vy)
					{
					   return vx > vy ? 1 : -1;
					}
					
				}
				
				
				if ((mx < lx) && (my < ly) && (x[mx] != y[my]))
				{
					return x[mx] > y[my] ? 1 : -1;
				}
			}
			
			if ((lx - ly)>0)
			{
				return 1;
			}
			else if 
			{
				return -1;
			}
		
		}
This will return "-1" if X is a smaller name than Y, "0" if they are equal, and "1" if Y is bigger.

And to give credits:
http://stackoverflow.com/questions/1601 ... ll#1601834
It is sorting them alphabetically so 1 will always come before 2 no mater what is after it.
If you do
lalala001
lalala010
lalala011
lalala012
lalala013
lalala100
It would work
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

well, as I said, I worked around it using smart sorting similar to what Windows is using. Expecting users to rename their photosets is not something I considered really.

p.s. any chance to test the new version of GuideMe?
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
Sisyphuster
Explorer At Heart
Explorer At Heart
Posts: 204
Joined: Sat Mar 10, 2012 9:55 am

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

Post by Sisyphuster »

I'd also like to offer myself as a tester for the new version, especially if you want someone to test it on a mac running OSX
slavejack
Explorer At Heart
Explorer At Heart
Posts: 263
Joined: Sat Oct 13, 2007 1:03 pm

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

Post by slavejack »

Ok, I'm sure this has likely been covered before but I'm wanting to upgrade to version 1.3 from version 1.2 to try Nezhul's tease. It seems to me that in the past when upgrading all one needed to do was to replace the .jar file. I tried that again this time. Guide Me seemed to start up but it appeared there was a photo missing. Should I just replace all files with those that are included in the version 1.3 download? If/when I do will all the teases I had that worked fine with version 1.2 still work properly with version 1.3?

Thanks!
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

Yes, they will work. Just don't replace your Guides folder, and all your state files will be preserved too. There's nothing critically different to stop anything working. Or if there is, then this is a bug and you should report it to philo.
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
slavejack
Explorer At Heart
Explorer At Heart
Posts: 263
Joined: Sat Oct 13, 2007 1:03 pm

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

Post by slavejack »

Thanks!

I guess every since I have had Guide Me I have always placed the teases into the "Guide Me" folder. Is it necessary to move them into the "guides" folder? They have always seemed to work fine where they are now. If the Guides folder is the intended directory for the teases and I move them into it what should I move along with them?
User avatar
Nezhul
Experimentor
Experimentor
Posts: 2373
Joined: Fri Apr 30, 2010 6:22 am
Sexual Orientation: Straight

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

Post by Nezhul »

No I don't think so. Your XML can be anywhere and the only real requirement is that corresponding tease folder would be in the same folder as XML.

It's just logical to me to put guides in the Gudes folder, because, well, it's a place meant for them.
Check out my new site, and read SexTV story there!
Also I have the DARK section that features feature Erotic Horror.
I also launched a SubscribeStar recently! Please come check it out!
Updated whenever I feel like it. :wave: :love:
Image
magie686
Explorer
Explorer
Posts: 18
Joined: Sat Aug 15, 2015 1:48 am

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

Post by magie686 »

If anyone is interested, I have made a Linux build:

https://drive.google.com/file/d/0B110lT ... sp=sharing

A couple of things to be aware of:

1) Run it as "java -jar GuideMe.jar"
2) This requires java8
3) The front page may look a little weird (missing image icon). This is probably because of the way I packaged it that it could not find the built in image. This should not effect actual teases.
4) There was a bug in loading saved states (I suspect the problem is in the underlying javascript engine). I have worked around this (by disabling javascript optimizations), but you may not be able to copy state file from the windows version.
philo
Explorer At Heart
Explorer At Heart
Posts: 831
Joined: Sun Jan 08, 2012 3:10 pm
Gender: Male
Sexual Orientation: Straight
Location: UK

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

Post by philo »

magie686 wrote: 3) The front page may look a little weird (missing image icon). This is probably because of the way I packaged it that it could not find the built in image. This should not effect actual teases.
.
Thanks, any testing like this is welcome.
I did a Linux build early on but have not tested it since I have been concentrating on getting the functionality working.

there may be a hard coded \ in the path to the image, I try to remember to make paths os independent but forget sometimes.
Post Reply