[Tease Program] Tease-AI Java (1.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

saderis
Curious Newbie
Curious Newbie
Posts: 4
Joined: Sat Sep 26, 2015 7:05 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: [Tease Program] Tease-AI Java (1.3)

Post by saderis »

Hi, I'm not sure what happened but when I'm trying to start the program it shows up like this
Attachments
a.jpg
a.jpg (85.07 KiB) Viewed 10247 times
GodDragon
Explorer At Heart
Explorer At Heart
Posts: 795
Joined: Sun Jun 11, 2017 4:30 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: [Tease Program] Tease-AI Java (1.3)

Post by GodDragon »

FrozenWolf wrote: Tue Mar 23, 2021 7:03 pm Created a pull request to help fortify the media playback.
https://github.com/GodDragoner/TeaseAIJava/pull/28

It's a big-ol' change that might take some time to review (sorry GD!). I've tested it a lot under Linux with the Spicy Personality and with my Testing Personality: https://github.com/FrozenWolf4887/Tease ... ersonality.

A rallying call to other developers:
Spoiler: show
The main bug that I cannot resolve (and may be related specifically to Linux) is any call to
playVideo
with a URL reference. For example, the Test Personality calls
playVideo('http://localhost:8000/Videos/testing-video1.mp4')
to play a video served from a local python HTTP server (
python3 -m http.server
). The video always plays fine, but about 50% of attempts, the MediaPlayer object issues no callbacks whatsoever to indicate that it's finished, and its status remains as PLAYING indefinitely. Calling stop() on the MediaPlayer object when it's in this state doesn't do anything either. This can cause TAJ to hang in situations where it's waiting for the video to finish.

Note that this problem is also present in the TAJ 1.3 release from 2020-12-14, although I wish I'd checked that two weeks ago rather than assuming it was something that I'd screwed up!

I've spent a crazy number of hours trying to research and track this down and I wonder if it's something specific to my platform. It occurs with both OpenFX 15.0.1 and OpenFX 16; I haven't tried other versions. :wall: I'm starting to see the test videos in my dreams now.

@leezer3 - is this something that you could try out since you have a good cross-platform setup? Perhaps it won't happen under Debian, or Ubuntu, or Slackware, or OpenSuSE, or anything other than what I've got.
Accepted. Need to look into the issue with the video playback. Can you provide example code?
saderis wrote: Sat Mar 27, 2021 6:03 pm Hi, I'm not sure what happened but when I'm trying to start the program it shows up like this
Uhm, that is really strange. What system are you running? Windows? What localization/language is windows set to? What Java version are you using?
lotar232
Explorer
Explorer
Posts: 76
Joined: Sat Nov 01, 2008 6:34 pm

Re: [Tease Program] Tease-AI Java (1.3)

Post by lotar232 »

FrozenWolf wrote: Wed Mar 24, 2021 9:45 pm
lotar232 wrote: Wed Mar 24, 2021 4:36 pm
FrozenWolf wrote: Sun Mar 07, 2021 9:34 am

I could add something like "GetVideoPlaybackPositionMillis()" to tell you how far into the video you are so you just need to "wait()" until the next desired timestamp. That would at least accommodate for the video startup time and for the general JavaScript latency in performing other operations. There would still be some latency as you say when performing the action when reaching the desired timestamp, but at least it wouldn't lose synchronisation.
(sorry for the late response... work blackhole ;) )

yeah, a function like that could be awesome... it would let me do something like:

startVideo()

while ( GetVideoPlaybackPositionMillis() < firstEventTime)
{sleepmili's(100);}
do_first_event;
while ( GetVideoPlaybackPositionMillis() < secondEventTime)
{sleepmili's(100);}
do_second_event;
...


would you be able to put it in anytime soon?
It's not too difficult to do, probably just one day with testing, although I'd want to do it on top of pull-28 because that changes quite a few things in that area, so we might have to wait for a bit until GodDragon's had a chance to review it. In the interim period, you could create your own stub version of getVideoPlaybackPositionMillis() that provides the amount of time since the video *might* have started, i.e.:

startVideo()
videoStartTimeMillis = getCurrentTimeMillis();

while ( getVideoPlaybackPositionMillis() < firstEventTime)
{sleepmili's(100);}
do_first_event;
while ( getVideoPlaybackPositionMillis() < secondEventTime)
{sleepmili's(100);}
do_second_event;
...

function getVideoPlaybackPositionMillis() {
    return getCurrentTimeMillis() - videoStartTimeMillis;
}
oh,I can do this without additional TAJ support... Thanks! this works:


function wake_delay(milidelay){
currenttime=VIDEO_WATCH.getTime();
while ( currenttime< milidelay+videoStartTimeMillis)
{sleep(100,"MILLISECONDS");
currenttime=VIDEO_WATCH.getTime();
}
}


....

const VIDEO_WATCH = new StopWatch();


VIDEO_WATCH.reset();
VIDEO_WATCH.start();
playVideo("Videos/Spicy/Punishments/Extreme/Suffer to Get Out.mp4", false);
videoStartTimeMillis = VIDEO_WATCH.getTime();

wake_delay(57*1000);
//cage and shocker
//58
pishock(1,30,1,0);

wake_delay((1*60+11)*1000);
//1:11
pishock(1,30,1,0);

.......
saderis
Curious Newbie
Curious Newbie
Posts: 4
Joined: Sat Sep 26, 2015 7:05 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: [Tease Program] Tease-AI Java (1.3)

Post by saderis »

GodDragon wrote: Sun Mar 28, 2021 3:52 pm
saderis wrote: Sat Mar 27, 2021 6:03 pm Hi, I'm not sure what happened but when I'm trying to start the program it shows up like this
Uhm, that is really strange. What system are you running? Windows? What localization/language is windows set to? What Java version are you using?
I'm using windows 10, with english language, java openjdk-14.0.2_windows-x64
GodDragon
Explorer At Heart
Explorer At Heart
Posts: 795
Joined: Sun Jun 11, 2017 4:30 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: [Tease Program] Tease-AI Java (1.4)

Post by GodDragon »

1.4 is now officially released. It includes a lot of fixes and adjustments mainly made my FrozenWolf. Thank you for your help investigating all these nasty bugs and hunting them down :-D
It seems to be fairly stable so I feel good with releasing this build to everyone. It should deal with a lot of problems that people were encountering :yes:
tytylion
Explorer
Explorer
Posts: 17
Joined: Wed Sep 12, 2012 2:41 am

Re: [Tease Program] Tease-AI Java (1.4)

Post by tytylion »

The link for downloading java 14 is broken. https://jdk.java.net/archive
Is there somewhere else we can get it or do we need an account now?

I assume 16 won't work :)
User avatar
FrozenWolf
Explorer At Heart
Explorer At Heart
Posts: 434
Joined: Tue Oct 30, 2018 7:50 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch
Dom/me(s): None
Sub/Slave(s): None
Location: UK

Re: [Tease Program] Tease-AI Java (1.4)

Post by FrozenWolf »

GodDragon wrote: Fri Apr 23, 2021 11:26 pm 1.4 is now officially released. It includes a lot of fixes and adjustments mainly made my FrozenWolf. Thank you for your help investigating all these nasty bugs and hunting them down :-D
It seems to be fairly stable so I feel good with releasing this build to everyone. It should deal with a lot of problems that people were encountering :yes:
Woohoo!

:exclamation: Note: To those upgrading from a previous version, please remove all of the files from the following directory:
    Images\System\Downloaded Images\*.*


This will clear out the cached downloaded images that were not downloading properly before and are invalid (showing as a black image).
User avatar
FrozenWolf
Explorer At Heart
Explorer At Heart
Posts: 434
Joined: Tue Oct 30, 2018 7:50 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch
Dom/me(s): None
Sub/Slave(s): None
Location: UK

Re: [Tease Program] Tease-AI Java (1.4)

Post by FrozenWolf »

tytylion wrote: Mon Apr 26, 2021 4:33 pm The link for downloading java 14 is broken. https://jdk.java.net/archive
Is there somewhere else we can get it or do we need an account now?

I assume 16 won't work :)
OpenJDK 15 or 16 should work. Give it a try and let us know what happens :-)
GodDragon
Explorer At Heart
Explorer At Heart
Posts: 795
Joined: Sun Jun 11, 2017 4:30 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: [Tease Program] Tease-AI Java (1.4)

Post by GodDragon »

tytylion wrote: Mon Apr 26, 2021 4:33 pm The link for downloading java 14 is broken. https://jdk.java.net/archive
Is there somewhere else we can get it or do we need an account now?

I assume 16 won't work :)
You can get java 14 here:
https://jdk.java.net/archive/
So the link is working for me. scroll down for 14 release
tytylion
Explorer
Explorer
Posts: 17
Joined: Wed Sep 12, 2012 2:41 am

Re: [Tease Program] Tease-AI Java (1.4)

Post by tytylion »

Yeah I tried later and the link suddenly worked lol

So I can get it running using 14 but I have to run through the command line. (java -jar TeaseAI.jar)
Double clicking the jar just opens and closes a command line window.

Have not tried openjdk 16, will stick with 14 for now since it is working.
GodDragon
Explorer At Heart
Explorer At Heart
Posts: 795
Joined: Sun Jun 11, 2017 4:30 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: [Tease Program] Tease-AI Java (1.4)

Post by GodDragon »

tytylion wrote: Tue Apr 27, 2021 4:45 pm Yeah I tried later and the link suddenly worked lol

So I can get it running using 14 but I have to run through the command line. (java -jar TeaseAI.jar)
Double clicking the jar just opens and closes a command line window.

Have not tried openjdk 16, will stick with 14 for now since it is working.
Double clicking probably does not work since you have the wrong jdk version setup to execute it on double click.
lockedkeyless
Explorer
Explorer
Posts: 26
Joined: Wed Apr 03, 2019 5:06 pm

Re: [Tease Program] Tease-AI Java (1.4)

Post by lockedkeyless »

I have been trying to run tease ai/java since it was first available. I simply cannot figure out why it closes as soon as I open it. Are my security things blocking it?
I have tried deleting everything following step by step.
Please help
GodDragon
Explorer At Heart
Explorer At Heart
Posts: 795
Joined: Sun Jun 11, 2017 4:30 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: [Tease Program] Tease-AI Java (1.4)

Post by GodDragon »

lockedkeyless wrote: Thu Apr 29, 2021 12:23 am I have been trying to run tease ai/java since it was first available. I simply cannot figure out why it closes as soon as I open it. Are my security things blocking it?
I have tried deleting everything following step by step.
Please help
What does the log file contain?
What OS are you using? Windows?
Have you tried launching it from the command line?
theredreaper
Explorer
Explorer
Posts: 43
Joined: Wed Jul 27, 2011 11:53 pm
Gender: Male
Sexual Orientation: Open to new ideas!
I am a: Submissive
Dom/me(s): I am currently owned.
Location: You wouldn't believe me if I told you.

Re: [Tease Program] Tease-AI Java (1.4)

Post by theredreaper »

Incidentally I have the same issue. The app would never launch at all before this most recent version. Now it will launch, but only if I launch it from the command line. All I get is a popup that says "Checking personalities" and progress bar, which completes. And then nothing. The log file shows a power-on-self-test, it starts a bunch of modules, and then it shuts all the modules down and exits. I don't see anything in the log that looks like an error message.

I'm on arch linux and currently have openjdk-15 with openjavafx installed, and the app calls java15 explicitly when launched from the command line.

Code: Select all

Launching with command: 'Optional[/usr/lib/jvm/java-15-openjdk/bin/java]'
However, it seems to be calling it's own version of javafx

Code: Select all

Starting with parameters: --module-path=/home/michael/Downloads/teaseai/javafx-sdk-11.0.2/lib --add-modules=javafx.controls,javafx.fxml,javafx.base,javafx.media,javafx.graphics,javafx.swing,javafx.web
Running in a Windows 10 VM, I get no response from double clicking the jar file and launching it from the command line causes the system to crash and forces a restart.
GodDragon
Explorer At Heart
Explorer At Heart
Posts: 795
Joined: Sun Jun 11, 2017 4:30 pm
Gender: Male
Sexual Orientation: Straight
I am a: Switch

Re: [Tease Program] Tease-AI Java (1.4)

Post by GodDragon »

theredreaper wrote: Thu Apr 29, 2021 1:24 pm Incidentally I have the same issue. The app would never launch at all before this most recent version. Now it will launch, but only if I launch it from the command line. All I get is a popup that says "Checking personalities" and progress bar, which completes. And then nothing. The log file shows a power-on-self-test, it starts a bunch of modules, and then it shuts all the modules down and exits. I don't see anything in the log that looks like an error message.

I'm on arch linux and currently have openjdk-15 with openjavafx installed, and the app calls java15 explicitly when launched from the command line.

Code: Select all

Launching with command: 'Optional[/usr/lib/jvm/java-15-openjdk/bin/java]'
However, it seems to be calling it's own version of javafx

Code: Select all

Starting with parameters: --module-path=/home/michael/Downloads/teaseai/javafx-sdk-11.0.2/lib --add-modules=javafx.controls,javafx.fxml,javafx.base,javafx.media,javafx.graphics,javafx.swing,javafx.web
Running in a Windows 10 VM, I get no response from double clicking the jar file and launching it from the command line causes the system to crash and forces a restart.
The problem with java 15 is that the nashorn engine (to evaluate the javascript files) was removed and thus it won't start.
In the future we have to stick to pre 15 versions or use graalvm which includes a javascript interpreter and many more languages.
Post Reply