Re: [Tease Program] Tease-AI Java (1.3)
Posted: 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
... for the explorer at heart!
https://milovana.com/forum/
Accepted. Need to look into the issue with the video playback. Can you provide example code?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
Uhm, that is really strange. What system are you running? Windows? What localization/language is windows set to? What Java version are you using?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
oh,I can do this without additional TAJ support... Thanks! this works:FrozenWolf wrote: Wed Mar 24, 2021 9:45 pmIt'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.:lotar232 wrote: Wed Mar 24, 2021 4:36 pm(sorry for the late response... work blackhole ;) )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.
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?
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; }
I'm using windows 10, with english language, java openjdk-14.0.2_windows-x64GodDragon wrote: Sun Mar 28, 2021 3:52 pm
Uhm, that is really strange. What system are you running? Windows? What localization/language is windows set to? What Java version are you using?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
Woohoo!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![]()
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![]()
Images\System\Downloaded Images\*.*
OpenJDK 15 or 16 should work. Give it a try and let us know what happenstytylion 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: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 :)
Double clicking probably does not work since you have the wrong jdk version setup to execute it on double click.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.
What does the log file contain?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
Code: Select all
Launching with command: 'Optional[/usr/lib/jvm/java-15-openjdk/bin/java]'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
The problem with java 15 is that the nashorn engine (to evaluate the javascript files) was removed and thus it won't start.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.
However, it seems to be calling it's own version of javafxCode: Select all
Launching with command: 'Optional[/usr/lib/jvm/java-15-openjdk/bin/java]'
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.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