Skip to content

Added GodDragon 1.0.16 release #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 383 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
383 commits
Select commit Hold shift + click to select a range
c300a58
Fixed video player not waiting for video to finish
invalid-email-address Mar 19, 2019
8baa0c2
Fixed an issue where only one Response was triggered even though it r…
invalid-email-address Mar 29, 2019
b445820
Fixed an issue where only one Response was triggered even though it r…
invalid-email-address Mar 29, 2019
7ab5c06
All bugs fixed. Please release gui update
skier233 Mar 30, 2019
215bd01
All bugs fixed. Please release gui update
skier233 Mar 30, 2019
853c544
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Mar 30, 2019
55a2db5
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Mar 30, 2019
e86cb78
Ready for release
skier233 Mar 30, 2019
210546d
Ready for release
skier233 Mar 30, 2019
92d470d
Quite a lot of fixes
invalid-email-address Mar 30, 2019
cc45b3a
Quite a lot of fixes
invalid-email-address Mar 30, 2019
d62d5bd
Small fixes
invalid-email-address Mar 30, 2019
4a8b9d4
Small fixes
invalid-email-address Mar 30, 2019
0f6b6a7
Working on adding progress info for url ripping
skier233 Mar 31, 2019
5f8fdc0
Working on adding progress info for url ripping
skier233 Mar 31, 2019
437d0d2
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Mar 31, 2019
b239589
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Mar 31, 2019
7a252df
commit again
skier233 Mar 31, 2019
4d26fee
commit again
skier233 Mar 31, 2019
88f8f19
Small fixes
invalid-email-address Mar 31, 2019
c379ec7
Small fixes
invalid-email-address Mar 31, 2019
1c63f7f
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Mar 31, 2019
d1a0824
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Mar 31, 2019
5b38117
.
skier233 Mar 31, 2019
89dbb0e
.
skier233 Mar 31, 2019
4d895eb
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Mar 31, 2019
2b68062
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Mar 31, 2019
5ca73d5
Progress text
invalid-email-address Mar 31, 2019
b7c69ef
Progress text
invalid-email-address Mar 31, 2019
6ec0367
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Mar 31, 2019
82a3c3d
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Mar 31, 2019
bbb4064
Small fixes
invalid-email-address Mar 31, 2019
23e6419
Small fixes
invalid-email-address Mar 31, 2019
97fd125
1.1 release
invalid-email-address Apr 1, 2019
7d99f3a
1.1 release
invalid-email-address Apr 1, 2019
d06d930
1.1 release (theme fix and debug removed)
invalid-email-address Apr 1, 2019
e549fa2
1.1 release (theme fix and debug removed)
invalid-email-address Apr 1, 2019
9dd5d8a
Fixed twilight colors
skier233 Apr 1, 2019
30fe280
Fixed twilight colors
skier233 Apr 1, 2019
28f7e92
fixed colors
skier233 Apr 1, 2019
7487fd9
fixed colors
skier233 Apr 1, 2019
5d0223e
.
skier233 Apr 1, 2019
abef4db
.
skier233 Apr 1, 2019
19f1a1e
1.1 release (theme fix and debug removed)
invalid-email-address Apr 1, 2019
7947328
1.1 release (theme fix and debug removed)
invalid-email-address Apr 1, 2019
ae36785
Added text to speech
skier233 Apr 18, 2019
3c7fe3f
Added text to speech
skier233 Apr 18, 2019
d46b7a4
Text To Speech fully added
skier233 Apr 18, 2019
fafcb61
Text To Speech fully added
skier233 Apr 18, 2019
73942a0
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Apr 19, 2019
84871bf
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Apr 19, 2019
822e955
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Apr 19, 2019
99b5236
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Apr 19, 2019
1687ba1
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Apr 19, 2019
71f628f
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Apr 19, 2019
fb0f41f
Formatting changes
invalid-email-address Apr 19, 2019
6c7cdad
Formatting changes
invalid-email-address Apr 19, 2019
ebcd1d5
Added missing files
skier233 Apr 19, 2019
11e4256
Added missing files
skier233 Apr 19, 2019
f43c892
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Apr 19, 2019
ac20dbd
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Apr 19, 2019
d5ea372
Formatting changes
invalid-email-address Apr 19, 2019
f65122e
Formatting changes
invalid-email-address Apr 19, 2019
f966eab
Got most of chatUtils implemented
skier233 Apr 20, 2019
3f028f6
Got most of chatUtils implemented
skier233 Apr 20, 2019
e63573e
Fix for IntelliJ and TTS
invalid-email-address Apr 20, 2019
0e7adf3
Fix for IntelliJ and TTS
invalid-email-address Apr 20, 2019
d59a978
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Apr 20, 2019
a0eeb51
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Apr 20, 2019
b7a2b8a
Format changes
invalid-email-address Apr 20, 2019
d4a6865
Format changes
invalid-email-address Apr 20, 2019
8d9c3c8
Small change
invalid-email-address Apr 20, 2019
8f3726c
Small change
invalid-email-address Apr 20, 2019
69fd054
bit more working on chat stuff. also, optimized imports
skier233 Apr 20, 2019
bb2b046
bit more working on chat stuff. also, optimized imports
skier233 Apr 20, 2019
48f7070
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
skier233 Apr 20, 2019
29feb1e
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
skier233 Apr 20, 2019
d0b2e75
Logger now always outputs console
invalid-email-address Apr 20, 2019
282b517
Logger now always outputs console
invalid-email-address Apr 20, 2019
53945ea
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Apr 20, 2019
e45c039
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Apr 20, 2019
40b7a10
Added class loader again
invalid-email-address Apr 21, 2019
3d3751b
Added class loader again
invalid-email-address Apr 21, 2019
e160103
Reverted imports in fxml files
invalid-email-address Apr 21, 2019
e7f4070
Reverted imports in fxml files
invalid-email-address Apr 21, 2019
ff22999
Is Images Locked function
invalid-email-address Apr 21, 2019
c5ec308
Is Images Locked function
invalid-email-address Apr 21, 2019
a49a17c
Chat changes finished
skier233 Apr 22, 2019
5651c0d
Chat changes finished
skier233 Apr 22, 2019
bdd4479
Chat changes finished
skier233 Apr 22, 2019
f68073c
Chat changes finished
skier233 Apr 22, 2019
ff2f44d
Merge remote-tracking branch 'origin/master'
skier233 Apr 22, 2019
170f06a
Merge remote-tracking branch 'origin/master'
skier233 Apr 22, 2019
f627d49
Reformat of whole code
invalid-email-address Apr 22, 2019
fcdc635
Reformat of whole code
invalid-email-address Apr 22, 2019
7bd6153
Few fixes. Especially to new chat changes
invalid-email-address Apr 23, 2019
058ae3e
Few fixes. Especially to new chat changes
invalid-email-address Apr 23, 2019
05a85f4
Added a progress bar to loading picture sets
invalid-email-address Apr 30, 2019
b351cab
Added a progress bar to loading picture sets
invalid-email-address Apr 30, 2019
0d36ced
Fixed lazy sub at startup
invalid-email-address Apr 30, 2019
702a458
Fixed lazy sub at startup
invalid-email-address Apr 30, 2019
4ad8d7f
1.2
invalid-email-address Jul 5, 2019
610e402
1.2
invalid-email-address Jul 5, 2019
a8969ee
Proof of concept for integrating EstimAPI
Jul 7, 2019
557205d
Proof of concept for integrating EstimAPI
Jul 7, 2019
b07cae7
Added Rudimentary Estim settings
Jul 19, 2019
a90530a
Added Rudimentary Estim settings
Jul 19, 2019
e046791
Finished Estim settings
Jul 29, 2019
f683107
Finished Estim settings
Jul 29, 2019
161e785
Correct creator of EstimSettings
Aug 5, 2019
978f740
Correct creator of EstimSettings
Aug 5, 2019
f765b73
Fixed small bug
invalid-email-address Aug 9, 2019
7be60ce
Fixed small bug
invalid-email-address Aug 9, 2019
ffc2146
initial implementation of statistics system complete
skier233 Aug 29, 2019
bec93ba
initial implementation of statistics system complete
skier233 Aug 29, 2019
23012f7
rest of changes for initial statistics implemntation
skier233 Aug 29, 2019
38fd639
rest of changes for initial statistics implemntation
skier233 Aug 29, 2019
d713b69
More progress on statistics system
skier233 Sep 7, 2019
e8b3d34
More progress on statistics system
skier233 Sep 7, 2019
cc8e961
Testing
invalid-email-address Sep 14, 2019
8a98298
Testing
invalid-email-address Sep 14, 2019
1dcb001
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Sep 14, 2019
e2a8829
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Sep 14, 2019
ea0e045
Testing
invalid-email-address Sep 14, 2019
065fb3e
Testing
invalid-email-address Sep 14, 2019
984368b
Removed LFS
invalid-email-address Sep 14, 2019
f855aad
Removed LFS
invalid-email-address Sep 14, 2019
8c20b41
Code cleanup
Oct 20, 2019
3776bab
Code cleanup
Oct 20, 2019
7391bd5
Move savePower and restorePower from EstimMetronome to EstimState
Oct 21, 2019
b14d2da
Move savePower and restorePower from EstimMetronome to EstimState
Oct 21, 2019
b326525
pushed jar and changes for the statistics system
skier233 Oct 22, 2019
003dab9
pushed jar and changes for the statistics system
skier233 Oct 22, 2019
555c012
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Oct 22, 2019
08dc178
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Oct 22, 2019
e79a68f
git ignores
skier233 Oct 22, 2019
aa57c98
git ignores
skier233 Oct 22, 2019
d7d7f6a
Fix EstimSettings BPM Min and BPM Max using ChannelA Min and Max values
Oct 23, 2019
445eb47
Fix EstimSettings BPM Min and BPM Max using ChannelA Min and Max values
Oct 23, 2019
bb9df55
Rename EstimSettings BPM Min and BPM Max to estimMetronomeBpm[min,max]
Oct 23, 2019
10d18c0
Rename EstimSettings BPM Min and BPM Max to estimMetronomeBpm[min,max]
Oct 23, 2019
d649713
Fixed responses not waiting for each other
invalid-email-address Oct 23, 2019
9cfafac
Fixed responses not waiting for each other
invalid-email-address Oct 23, 2019
2ea38ae
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Oct 23, 2019
9a8e291
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Oct 23, 2019
47a3dac
Fixed TAJ not identifying the lib folder of java fx correctly
invalid-email-address Oct 24, 2019
503e573
Fixed TAJ not identifying the lib folder of java fx correctly
invalid-email-address Oct 24, 2019
4104c05
Merged master
Oct 26, 2019
d74c6b8
Merged master
Oct 26, 2019
cb1858c
Remove unused imports
Oct 28, 2019
cd3d871
Remove unused imports
Oct 28, 2019
2806156
Merge pull request #19 from xman2B/master
GodDragoner Oct 28, 2019
8a10704
Merge pull request #19 from xman2B/master
GodDragoner Oct 28, 2019
4a8b87d
Estim Integration
invalid-email-address Nov 1, 2019
add69ad
Estim Integration
invalid-email-address Nov 1, 2019
e02c6cf
fixed statistics system bug where multiple layers deep of modules werent
skier233 Nov 6, 2019
a74d681
fixed statistics system bug where multiple layers deep of modules werent
skier233 Nov 6, 2019
4a43b70
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Nov 6, 2019
2ecf340
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Nov 6, 2019
a614cb9
fixing gitignores
skier233 Nov 6, 2019
a71bed3
fixing gitignores
skier233 Nov 6, 2019
7454687
.
skier233 Nov 6, 2019
da7239c
.
skier233 Nov 6, 2019
5931db7
added estimAPI jar
skier233 Nov 6, 2019
83f73f1
added estimAPI jar
skier233 Nov 6, 2019
abe5e9e
Small fixes
invalid-email-address Nov 7, 2019
a42435e
Small fixes
invalid-email-address Nov 7, 2019
161715d
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Nov 7, 2019
32febe6
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Nov 7, 2019
b41ecd9
Small "fix"
invalid-email-address Nov 19, 2019
7443cbf
Small "fix"
invalid-email-address Nov 19, 2019
116b6cf
Added GNU License
skier233 Nov 22, 2019
6407f1d
Added GNU License
skier233 Nov 22, 2019
dfae5d8
Delete License.txt
skier233 Nov 22, 2019
da9562b
Delete License.txt
skier233 Nov 22, 2019
d796d0f
Created License
skier233 Nov 22, 2019
46927d7
Created License
skier233 Nov 22, 2019
c9492c6
Small "fix"
invalid-email-address Jan 9, 2020
4cee2dd
Small "fix"
invalid-email-address Jan 9, 2020
e7fffce
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Jan 9, 2020
6e347cc
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Jan 9, 2020
a7d44cf
Working on statistics system
skier233 Jan 20, 2020
ba4c511
Working on statistics system
skier233 Jan 20, 2020
fb71e8d
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Jan 20, 2020
fb237d9
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 Jan 20, 2020
9128915
Add design file
invalid-email-address Mar 1, 2020
5497a3b
Add design file
invalid-email-address Mar 1, 2020
1d8d3ad
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Mar 1, 2020
406e528
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Mar 1, 2020
ea6cee4
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
invalid-email-address Mar 3, 2020
6f503fe
Fix JavaFX Download
invalid-email-address Mar 3, 2020
bcecc5f
1.2.1
invalid-email-address Mar 3, 2020
3180307
1.2.2
invalid-email-address Mar 3, 2020
ec20dfe
Fixed custom and normal config values not saving properly
GodDragoner May 1, 2020
d036b75
added configuration option to disable auto capitalization
skier233 May 14, 2020
1f757b3
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava.git
skier233 May 14, 2020
d402048
got messages fixed into a working state
skier233 May 14, 2020
9ee0693
undid the rest of the chat changes that messed up the chat
skier233 May 14, 2020
2f27f68
made getcurrentimageurl work with local images (returns path)
skier233 May 14, 2020
9c9898b
bug fixes
skier233 May 16, 2020
d1908c4
improved behavior for when to create the general settings menu
skier233 May 16, 2020
5c18f07
Setting tooltips used to go away after a while. Now they don't!
skier233 May 17, 2020
13f0930
added functionality for /b endings to <b> to work
skier233 May 17, 2020
619b71d
Changes
GodDragoner May 18, 2020
2bcd648
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
GodDragoner May 18, 2020
3c4fdc7
TTS Work
GodDragoner Jun 4, 2020
fe58c22
Added support for local teasing files only for categories
GodDragoner Oct 7, 2020
95c3c49
Changes before graalvm
GodDragoner Nov 10, 2020
56c3f94
1.13 Release
GodDragoner Dec 14, 2020
80cd022
Refetching URL images added
GodDragoner Dec 19, 2020
2f4fe39
Fix GIF playback on Linux
FrozenWolf4887 Jan 16, 2021
cdf19e5
Fix double ending of sessions
FrozenWolf4887 Jan 16, 2021
5a39e97
Fix audio continuing after session ended
FrozenWolf4887 Jan 16, 2021
9b452db
Fix double call to showPicture()
FrozenWolf4887 Jan 16, 2021
7ce316d
Fix fetching of images from tumblr
FrozenWolf4887 Jan 16, 2021
81e327d
Minor changes
GodDragoner Jan 16, 2021
4440f2a
Merge pull request #23 from FrozenWolf4887/master
GodDragoner Jan 16, 2021
5d095a4
Merge branch 'master' of https://github.com/GodDragoner/TeaseAIJava
GodDragoner Jan 16, 2021
e8dbfed
Changed show image to utilize numbers as cooldown after fix from Froz…
GodDragoner Jan 16, 2021
ccc8bbf
Refactor ShowImageFunction to reduce complexity
FrozenWolf4887 Jan 16, 2021
778be9b
Fix log error when calling sendMessage with 3 args
FrozenWolf4887 Jan 21, 2021
69bef7f
Add support for <img> tag in chat messages
FrozenWolf4887 Jan 20, 2021
5763cbc
Use explicit return types in ShowImageFunction call handlers
FrozenWolf4887 Jan 22, 2021
a639091
Protect against possibility of no tease media
FrozenWolf4887 Jan 23, 2021
dc1d1f3
Harden API reflection calls to handle null parameters
FrozenWolf4887 Jan 26, 2021
c3ab972
Extend showImage() API call to support floating point duration
FrozenWolf4887 Jan 26, 2021
f014ff9
Refactor SendMessageFunction function to use CustomFunctionExtended
FrozenWolf4887 Jan 26, 2021
98d8eee
Extend reflection API support to include implicit type conversions
FrozenWolf4887 Jan 26, 2021
70ac028
Refactor GetVarFunction function to use CustomFunctionExtended
FrozenWolf4887 Jan 26, 2021
bfc1749
Simplify ShowImageFunction using implicit type conversions
FrozenWolf4887 Jan 27, 2021
e4ae974
Simplify SendMessageFunction using implicit type conversions
FrozenWolf4887 Jan 27, 2021
e8bacc8
Remove unnecessarily complex preOnCall from API reflection handling
FrozenWolf4887 Jan 27, 2021
f180cb7
Refactor SetVarFunction function to use CustomFunctionExtended
FrozenWolf4887 Jan 27, 2021
ce6f4b7
Accept null argument as default value for GetVar
FrozenWolf4887 Feb 6, 2021
11b8415
Minor changes
GodDragoner Feb 26, 2021
f235015
Merge pull request #24 from FrozenWolf4887/master
GodDragoner Feb 26, 2021
ecfec3f
Merge branch 'master' into support-img-tag
GodDragoner Feb 26, 2021
1593542
Merge pull request #25 from FrozenWolf4887/support-img-tag
GodDragoner Feb 26, 2021
1726949
Merge pull request #26 from FrozenWolf4887/safety-check-in-media-coll…
GodDragoner Feb 26, 2021
57cf173
Fix PictureSelector preferring clothed images
FrozenWolf4887 Mar 11, 2021
5c1e172
Prefer tagged images to random in extended session
FrozenWolf4887 Mar 11, 2021
912937d
Merge pull request #27 from FrozenWolf4887/master
GodDragoner Mar 21, 2021
100e875
Add support for showImage(null)
FrozenWolf4887 Mar 7, 2021
d9f0141
Dispose of MIDI sequencer metronome after use
FrozenWolf4887 Jan 29, 2021
bd600b9
Fortify against media stability issues
FrozenWolf4887 Jan 28, 2021
3ac5fdb
Merge pull request #28 from FrozenWolf4887/fortify-media-playback
GodDragoner Mar 28, 2021
ca1f4fc
Removed quotes for launch path which produced issues on linux
GodDragoner Mar 28, 2021
3ced251
1.4 release
GodDragoner Apr 23, 2021
30da80d
Fixes and additions
GodDragoner Aug 12, 2021
6ef4e4d
Latest changes
GodDragoner Sep 20, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file added .gitattributes
Empty file.
32 changes: 20 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
*.properties
.idea
*.iml
out
target
.settings
.project
.classpath
.git
Personalities/*
Images/*
Logs/*
*.properties
.idea
*.iml
out
target
.settings
.project
.classpath
.git
Personalities/*
Images/*
Logs/*
Dependencies/*
JavaFX/*
out/*
/bin/
/lib/
/log/
/Themes/
/javafx-sdk-11/
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Manifest-Version: 1.0
Main-Class: me.goddragon.teaseai.TeaseAI

Main-Class: me.goddragon.teaseai.utils.classloader.JarRsrcLoader
Rsrc-Class-Path: ./ commons-collections-3.2.1.jar commons-configuration-
1.7.jar commons-lang-2.6.jar commons-logging-1.1.1.jar httpclient-4.3.6
.jar httpcore-4.3.3.jar httpmime-4.3.3.jar json-20140107.jar jsoup-1.8.
1.jar marytts-builder-5.2-jar-with-dependencies.jar marytts-lang-en-5.2
.jar voice-dfki-prudence-hsmm-5.2.jar guava-22.0.jar
Rsrc-Main-Class: me.goddragon.teaseai.Main
Class-Path: .
1 change: 1 addition & 0 deletions Resources/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.zip filter=lfs diff=lfs merge=lfs -text
1 change: 1 addition & 0 deletions Resources/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/._openjfx_osx-x64_bin-sdk.zip6348989218209887243.tmp
Binary file added Resources/commons-collections-3.2.1.jar
Binary file not shown.
Binary file added Resources/commons-configuration-1.7.jar
Binary file not shown.
Binary file added Resources/commons-lang-2.6.jar
Binary file not shown.
Binary file added Resources/commons-logging-1.1.1.jar
Binary file not shown.
Binary file added Resources/estimAPI.jar
Binary file not shown.
Binary file added Resources/gson-2.6.2.jar
Binary file not shown.
Binary file added Resources/guava-22.0.jar
Binary file not shown.
Binary file added Resources/httpclient-4.3.6.jar
Binary file not shown.
Binary file added Resources/httpcore-4.3.3.jar
Binary file not shown.
Binary file added Resources/httpmime-4.3.3.jar
Binary file not shown.
Binary file added Resources/json-20140107.jar
Binary file not shown.
Binary file added Resources/jsoup-1.8.1.jar
Binary file not shown.
Binary file not shown.
Binary file added Resources/marytts-lang-en-5.2.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions Resources/openjfx_linux-x64_bin-sdk.zip
Git LFS file not shown
3 changes: 3 additions & 0 deletions Resources/openjfx_osx-x64_bin-sdk.zip
Git LFS file not shown
3 changes: 3 additions & 0 deletions Resources/openjfx_windows-x64_bin-sdk.zip
Git LFS file not shown
Binary file added Resources/uber-EstimAPI-0.0.1-SNAPSHOT.jar
Binary file not shown.
Binary file added Resources/voice-dfki-prudence-hsmm-5.2.jar
Binary file not shown.
9 changes: 9 additions & 0 deletions src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Manifest-Version: 1.0
Main-Class: me.goddragon.teaseai.utils.classloader.JarRsrcLoader
Rsrc-Class-Path: ./ commons-collections-3.2.1.jar commons-configuration-
1.7.jar commons-lang-2.6.jar commons-logging-1.1.1.jar httpclient-4.3.6
.jar httpcore-4.3.3.jar httpmime-4.3.3.jar json-20140107.jar jsoup-1.8.
1.jar marytts-builder-5.2-jar-with-dependencies.jar marytts-lang-en-5.2
.jar voice-dfki-prudence-hsmm-5.2.jar guava-22.0.jar gson-2.6.2.jar uber-EstimAPI-0.0.1-SNAPSHOT.jar
Rsrc-Main-Class: me.goddragon.teaseai.Main
Class-Path: .
Binary file added src/TAJSYSLOGO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
255 changes: 255 additions & 0 deletions src/me/goddragon/teaseai/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
package me.goddragon.teaseai;

import me.goddragon.teaseai.utils.FileUtils;
import me.goddragon.teaseai.utils.TeaseLogger;
import me.goddragon.teaseai.utils.ZipUtils;
import me.goddragon.teaseai.utils.update.UpdateHandler;

import javax.swing.*;
import java.io.*;
import java.lang.management.ManagementFactory;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.file.Paths;
import java.util.List;
import java.util.Optional;
import java.util.logging.Level;

public class Main {

public static double JAVA_VERSION = getJavaVersion();
public static String OPERATING_SYSTEM = System.getProperty("os.name").toLowerCase();

public static void main(String[] args) {
TeaseLogger.getLogger().log(Level.INFO, "Launching with command: '" + getCommandOfCurrentProcess() + "'");

TeaseLogger.getLogger().log(Level.INFO, "Checking libraries for updates...");
UpdateHandler.getHandler().checkLibraries();
TeaseLogger.getLogger().log(Level.INFO, "Libraries checked and up-to-date.");

List<String> input = ManagementFactory.getRuntimeMXBean().getInputArguments();

boolean containsJavaFx = false;

for (String s : input) {
if (s.toLowerCase().contains("javafx")) {
containsJavaFx = true;
break;
}
}

if (!containsJavaFx && JAVA_VERSION > 10) {
try {
//Re-launch the app itself with VM option passed
File currentDir = Paths.get(System.getProperty("user.dir")).toFile();

if (getJavaFXLibFolder() == null) {

TeaseLogger.getLogger().log(Level.SEVERE, "No JavaFX installation found. Asking for download...");

String fileName = "openJFX";

if (!new File(fileName + ".zip").exists()) {
int dialogButton = JOptionPane.YES_NO_OPTION;
int dialogResult = JOptionPane.showConfirmDialog(null, "No OpenJFX installation found. Would you like to download?", "OpenJFX", dialogButton);

if (dialogResult != JOptionPane.YES_OPTION) {
JOptionPane.showMessageDialog(null, "Can't run on Java 11 or higher without OpenJFX. Exiting...");
System.exit(0);
return;
}

if (!System.getProperty("os.arch").contains("64")) {
JOptionPane.showMessageDialog(null, "x86 systems are currently not supported by the auto updater." +
" Please fetch your own version of OpenFX from https://gluonhq.com/products/javafx/");
System.exit(0);
return;
}

String downloadPath;
if (isWindows()) {
TeaseLogger.getLogger().log(Level.SEVERE, "Your running Windows. Fetching OpenJFX SDK...");
downloadPath = "https://download2.gluonhq.com/openjfx/11.0.2/openjfx-11.0.2_windows-x64_bin-sdk.zip";
} else if (isMac()) {
TeaseLogger.getLogger().log(Level.SEVERE, "Your running MacOS. Fetching OpenJFX SDK...");
downloadPath = "https://download2.gluonhq.com/openjfx/11.0.2/openjfx-11.0.2_osx-x64_bin-sdk.zip";
} else if (isUnix()) {
TeaseLogger.getLogger().log(Level.SEVERE, "Your running Linux/Unix. Fetching OpenJFX SDK...");
downloadPath = "https://download2.gluonhq.com/openjfx/11.0.2/openjfx-11.0.2_linux-x64_bin-sdk.zip";
} else {
JOptionPane.showMessageDialog(null, "Your OS is not supported by JavaFX yet! Exiting.");
System.exit(0);
return;
}


URL url = new URL(downloadPath);
HttpURLConnection httpConnection = (HttpURLConnection) (url.openConnection());
long completeFileSize = httpConnection.getContentLength();

ProgressMonitor progressMonitor = new ProgressMonitor(null, "Downloading OpenJFX...", "", 0, (int) completeFileSize);

BufferedInputStream in = new BufferedInputStream(httpConnection.getInputStream());
FileOutputStream fos = new FileOutputStream(fileName + ".zip");
BufferedOutputStream bout = new BufferedOutputStream(fos, 1024);

byte[] data = new byte[1024];
long downloadedFileSize = 0;
int x;
//int oldProgress = 0;

while ((x = in.read(data, 0, 1024)) >= 0) {
downloadedFileSize += x;

//Calculate progress
//final int currentProgress = (int) ((((double) downloadedFileSize) / ((double) completeFileSize)) * 100d);

progressMonitor.setProgress((int) downloadedFileSize);

/*if (currentProgress > oldProgress) {
TeaseLogger.getLogger().log(Level.INFO, "Download Progress at " + currentProgress + "%");
oldProgress = currentProgress;
}*/

bout.write(data, 0, x);
}

bout.close();
in.close();
}

TeaseLogger.getLogger().log(Level.INFO, "Finished downloading OpenJFX. Unzipping...");

//Unzip the downloaded file
ZipUtils.unzipFile(new File(fileName + ".zip"), currentDir);
//Delete the downloaded zip file
//newUpdateZipFile.delete();
}

} catch (IOException ioe) {
ioe.printStackTrace();
}

TeaseLogger.getLogger().log(Level.INFO, "Restarting TAJ with JAVA-FX startup parameters...");
restart();
} else {
TeaseLogger.getLogger().log(Level.INFO, "Initialization done.");
TeaseAI.main(args);
}
}


private static File getJavaFXLibFolder() {
File currentDir = Paths.get(System.getProperty("user.dir")).toFile();

for (File file : currentDir.listFiles()) {
if (file.isDirectory()) {
for (File dirFile : file.listFiles()) {
//Check if we have found the right lib folder containing the files we expect it to contain
if (dirFile.isDirectory() && dirFile.getName().equals("lib") && FileUtils.folderContains(dirFile, "javafx.base.jar")) {
//libFolder = dirFile;
return dirFile;
}
}
}
}

return null;
}

public static void restart() {
try {
File javaFXFolder = getJavaFXLibFolder();

String launchParameter = getCurrentJavaPath();

if(launchParameter == null) {
launchParameter = "java";
} else {
if(isWindows()) {

}
else if(!launchParameter.startsWith("/")) {
launchParameter = Paths.get(System.getProperty("user.dir")).toAbsolutePath() + File.separator + launchParameter;
}

//launchParameter = "\"" + launchParameter + "\"";
}

TeaseLogger.getLogger().log(Level.INFO, "Restarting with installation " + launchParameter);

if (javaFXFolder == null) {
Process process = Runtime.getRuntime().exec(new String[]{launchParameter, "-jar", "TeaseAI.jar"});
} else {
String modulePath = "--module-path=" + getJavaFXLibFolder().getPath();
String modules = "--add-modules=javafx.controls,javafx.fxml,javafx.base,javafx.media,javafx.graphics,javafx.swing,javafx.web";

System.out.println("Starting with parameters: " + modulePath + " " + modules);

Process process = Runtime.getRuntime().exec(new String[]{launchParameter, modulePath, modules, "-jar", "TeaseAI.jar"});
}


/*BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
String line;
while ((line = input.readLine()) != null) {
System.out.println(line);
}

input.close();*/
} catch (IOException e) {
e.printStackTrace();
}

System.exit(0);
}

private static Optional<String> getCommandOfCurrentProcess() {
ProcessHandle processHandle = ProcessHandle.current();
return processHandle.info().command();
}

public static String getCurrentJavaPath() {
String launch = getCommandOfCurrentProcess().get();

if (launch != null) {
return launch;
}

return null;
}

public static boolean isWindows() {
return (OPERATING_SYSTEM.indexOf("win") >= 0);
}

public static boolean isMac() {
return (OPERATING_SYSTEM.indexOf("mac") >= 0);
}

public static boolean isUnix() {
return (OPERATING_SYSTEM.indexOf("nix") >= 0 || OPERATING_SYSTEM.indexOf("nux") >= 0 || OPERATING_SYSTEM.indexOf("aix") > 0);
}

public static boolean isSolaris() {
return (OPERATING_SYSTEM.indexOf("sunos") >= 0);
}

public static String getOS() {
if (isWindows()) {
return "win";
} else if (isMac()) {
return "osx";
} else if (isUnix()) {
return "uni";
} else if (isSolaris()) {
return "sol";
} else {
return "err";
}
}

public static double getJavaVersion() {
return Double.parseDouble(System.getProperty("java.specification.version"));
}
}
Loading