Did you put the Mischevious folder in the personalities folder. Also, can you post the contents of your most recent log file in the logs folder.Yanker wrote: ↑Thu Jan 10, 2019 3:04 am Hi all,
I've just downloaded TAJ 1.0.18 & the Mischievous personality onto a Mac running Mojave. TAJ starts up fine, but I can't load the personality. File > Run Script does nothing. Start does nothing and the dropdown menu next to Start is not opening. I've put the TAJ files are in a TAJ folder within Applications. Can someone tell me where I'm going wrong, please?
Thanks,
Yanker
[Tease Program] Tease-AI Java (1.4)
Moderator: 1885
-
- Explorer At Heart
- Posts: 464
- Joined: Sun Jun 11, 2017 12:53 am
- Gender: Male
- Sexual Orientation: Bisexual/Bi-Curious
- I am a: Switch
- Dom/me(s): Courtney
- Sub/Slave(s): Courtney
- Location: Virginia
- Contact:
Re: [Tease Program] Tease-AI Java (1.0.18)
Quote me, or PM me and I'll reply as soon as I can!
Tease AI Java
Mischevious Tease AI Java Personality
Tease AI Java Developer's Guide
TAJUtils Guide
Tease AI Java
Mischevious Tease AI Java Personality
Tease AI Java Developer's Guide
TAJUtils Guide
- Yanker
- Explorer
- Posts: 32
- Joined: Fri Dec 08, 2006 6:54 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: Submissive
- Location: UK
Re: [Tease Program] Tease-AI Java (1.0.18)
Thanks ski123. I had put the Mischevious folder in the personalities folder but just before I started posting logs I thought I'd try restarting my laptop. Hey presto, TAJ recognised the presence of the personality.
Yanker
Yanker
________________________________________________________________
Noun 1. yanker - someone who gives a strong sudden pull
________________________________________________________________
Noun 1. yanker - someone who gives a strong sudden pull
Re: [Tease Program] Tease-AI Java (1.0.18)
I was wondering if I can count the number of files in a folder (pictures, I want to count how many pictures there are in a folder).
I did a search online and I can find some help, but sadly it seems a bit out my "skill range", at least I dont understand a lot of the scripts people have written.
Any help creating a function for Tease-AI java that can return me the number of files in a given directory would be a great help!
Cheers
Genome
EDIT:
Second question.
Is it possible to do a showImage and text on the same line?
I was hoping this would work though I didn't count on it:
It did show the image I wanted but it also showed the image path in the chat.
Is there something I'm missing?
Cheers
Genome
I did a search online and I can find some help, but sadly it seems a bit out my "skill range", at least I dont understand a lot of the scripts people have written.
Any help creating a function for Tease-AI java that can return me the number of files in a given directory would be a great help!
Cheers
Genome
EDIT:
Second question.
Is it possible to do a showImage and text on the same line?
I was hoping this would work though I didn't count on it:
Code: Select all
lockImages();
sendMessage("hello" + showImage(Path));
Is there something I'm missing?
Cheers
Genome
Tribute to 1885 & those involved with Tease-AI.
Thank you for spending time on this awesome project!
Thank you for spending time on this awesome project!
-
- Explorer At Heart
- Posts: 464
- Joined: Sun Jun 11, 2017 12:53 am
- Gender: Male
- Sexual Orientation: Bisexual/Bi-Curious
- I am a: Switch
- Dom/me(s): Courtney
- Sub/Slave(s): Courtney
- Location: Virginia
- Contact:
Re: [Tease Program] Tease-AI Java (1.0.18)
For your second question, just disable the delay on the message and it will work as u want:genome231 wrote: ↑Tue Jan 15, 2019 11:37 am I was wondering if I can count the number of files in a folder (pictures, I want to count how many pictures there are in a folder).
I did a search online and I can find some help, but sadly it seems a bit out my "skill range", at least I dont understand a lot of the scripts people have written.
Any help creating a function for Tease-AI java that can return me the number of files in a given directory would be a great help!
Cheers
Genome
EDIT:
Second question.
Is it possible to do a showImage and text on the same line?
I was hoping this would work though I didn't count on it:
It did show the image I wanted but it also showed the image path in the chat.Code: Select all
lockImages(); sendMessage("hello" + showImage(Path));
Is there something I'm missing?
Cheers
Genome
sendMessage(“test”,0);
showImage(Path);
They will happen at nearly exactly the same time.
For your first question, here is a function from my mediautils that will give u all files in a folder:
- Spoiler: show
- Spoiler: show
Quote me, or PM me and I'll reply as soon as I can!
Tease AI Java
Mischevious Tease AI Java Personality
Tease AI Java Developer's Guide
TAJUtils Guide
Tease AI Java
Mischevious Tease AI Java Personality
Tease AI Java Developer's Guide
TAJUtils Guide
Re: [Tease Program] Tease-AI Java (1.0.18)
Okay so I couldn't accept your solution so I tried a few things and I actually (to own surprise) found a solution:ski23 wrote: ↑Tue Jan 15, 2019 4:15 pm For your second question, just disable the delay on the message and it will work as u want:
sendMessage(“test”,0);
showImage(Path);
They will happen at nearly exactly the same time.
For your first question, here is a function from my mediautils that will give u all files in a folder:However, if you want only pictures, you should use something like this. This is from TAJ java code so u need to convert it to work in js:
- Spoiler: show
- Spoiler: show
Code: Select all
function STVocabulary() {
showImage(Path);
return "";
}
Just looking at that function scares me So here's a lot of questions:
Your function seems to return all the file names is that stored in an array or?
The flag that you set to false, how does that come into play, since it will never change?
Any further explanation to the function would be very welcome! :D
Cheers
Genome
Tribute to 1885 & those involved with Tease-AI.
Thank you for spending time on this awesome project!
Thank you for spending time on this awesome project!
Re: [Tease Program] Tease-AI Java (1.0.18)
A whole new issue
So I dived into dates and I cant for life of me make sense of it. I read this one:
https://github.com/GodDragoner/TeaseAIJ ... ate-Object
So if anyone could explaing to me (preferably using examples and really dumb it down):
How do I set a date?
How can I check if the date has passed?
What's the difference between set and add?
I'm guessing that set will override any current set date for the given variable while add increases it?
EDIT: FOUND A SOLUTION TO MY DATE ISSUES
Cheers
Genome
So I dived into dates and I cant for life of me make sense of it. I read this one:
https://github.com/GodDragoner/TeaseAIJ ... ate-Object
So if anyone could explaing to me (preferably using examples and really dumb it down):
How do I set a date?
How can I check if the date has passed?
What's the difference between set and add?
Code: Select all
addDay(7).setHour(0)
EDIT: FOUND A SOLUTION TO MY DATE ISSUES
Cheers
Genome
Tribute to 1885 & those involved with Tease-AI.
Thank you for spending time on this awesome project!
Thank you for spending time on this awesome project!
-
- Explorer At Heart
- Posts: 464
- Joined: Sun Jun 11, 2017 12:53 am
- Gender: Male
- Sexual Orientation: Bisexual/Bi-Curious
- I am a: Switch
- Dom/me(s): Courtney
- Sub/Slave(s): Courtney
- Location: Virginia
- Contact:
Re: [Tease Program] Tease-AI Java (1.0.18)
So, the flag actually can change. I’m using something called a default variable there. Basically if you called the function and only gave it one argument instead of 2, the flag gets set to false by default. However, if you call the function with 2 arguments, as long as the second argument isn’t null, it will take it’s value instead of the value of the default (false). That flag just determines whether the path is a path within the personality or a path within the TAJ directory. Also, yes, the function does return an array. If you look at the last line, that is where the magic happens:
listFiles is a function on the java File object that will work if the file is a directory. It returns an array of all of the folder’s children. The second function I linked will only return jpg, png, or gif files instead of all files like the first function. It needs to be adapted a bit since it’s in java code. Unfortunately, since I’m on vacation and away from my computer, I can’t make those changes for you right now but I can give you some code when I get back if you’re still having trouble.
Code: Select all
folderFile.listFiles();
Quote me, or PM me and I'll reply as soon as I can!
Tease AI Java
Mischevious Tease AI Java Personality
Tease AI Java Developer's Guide
TAJUtils Guide
Tease AI Java
Mischevious Tease AI Java Personality
Tease AI Java Developer's Guide
TAJUtils Guide
-
- Explorer
- Posts: 30
- Joined: Sat Aug 26, 2017 4:34 pm
Re: [Tease Program] Tease-AI Java (1.0.18)
Just saw you found a solution but maybe still useful.
I also had some problems with the date and figured this out.
SetDate() gives you the current time and date for use in one script, or you can save it later with setDate()
Example:
setDate(String variableName) saves the current time and date directly to variableName:
just a small difference in the example
setDate(String variableName, TeaseDate date) is the same like setVar() in my example.
But i also had some strange side effects. If you use the second version from my example, the setVar() at the end of the example doesn't work anymore. The Variable will only get updated in TAIJ, but the file remains the old value. Also setDate() didn't work for me there and i don't know why. Maybe someone else has an idea?
And i also wrote me a helper function like getMillisPassed() from personalityutils.js, because i also had some issues with the date format.
Example:
Function:
I also had some problems with the date and figured this out.
SetDate() gives you the current time and date for use in one script, or you can save it later with setDate()
Example:
Code: Select all
function test(){
cornerTime = setDate(); //local variable just for use in this script
cornerTime.addMinute(1);
CMessage("go to the corner till you hear the bell.");
while( !cornerTime.hasPassed() ){
// do nothing or something but sleep/wait has to stay otherwise it will get laggy ;)
CMessage(cornerTime + " hasPassed: " + cornerTime.hasPassed());
sleep(1);
}
//playAudio("bell.mp3")
//Question are you back? ...
setVar("lastReturnFromCorner", cornerTime); //saves the date for later use
CMessage("Test end");
return;
}
just a small difference in the example
Code: Select all
function test(){
setDate("lastReturnFromCorner");
cornerTime = getVar("lastReturnFromCorner");
cornerTime.addMinute(1);
...
}
But i also had some strange side effects. If you use the second version from my example, the setVar() at the end of the example doesn't work anymore. The Variable will only get updated in TAIJ, but the file remains the old value. Also setDate() didn't work for me there and i don't know why. Maybe someone else has an idea?
And i also wrote me a helper function like getMillisPassed() from personalityutils.js, because i also had some issues with the date format.
Example:
Code: Select all
function timeTest(){
let tmp = getTimePassed("AV_SessionTime","auto");
CMessage( "Our last session is " + tmp[0] + " " + tmp[1] + " ago." );
// or
if (tmp[1] === "minutes"){
CMessage("We just had a session");
//...
}
//or
if( getTimePassed("AV_SessionTime")<= 60 ) {
CMessage( "Our last session is " + getTimePassed("AV_SessionTime") + " minutes ago." );
}
}
Code: Select all
/**
* simple helper method to calculate the time passed since the given date in seconds/minutes/hours/...
* or beginning of the session in minutes
* format = "auto" return an array with the time passed and if its seconds/minutes/hours/...
**/
function getTimePassed(timeVar = "startDate", format = "minutes") {//stdValue: startDate,minute
DMessage("getTimePassed: Beginning");
if(format == "minutes"){
let startedAt = getVariable(timeVar).getTimeInMillis(); //get time from var and convert to milliSec
startedAt = Math.round( startedAt/1000/60 ); //convert millis to minutes
DMessage("startedAt = " + startedAt);
let n = Math.round( new Date().getTime()/1000/60 ); //get current time in minutes
DMessage("n = " + n);
DMessage("n - startedAt = " + (n - startedAt) );
DMessage("getTimePassed: End_minute");
return n - startedAt;
} else if(format == "hours"){
let startedAt = getVariable(timeVar).getTimeInMillis();
startedAt = Math.round( startedAt/1000/60/60 );
let n = Math.round( new Date().getTime()/1000/60/60 );
DMessage("getTimePassed: End_hours");
return n - startedAt;
}else if(format == "seconds"){
let startedAt = getVariable(timeVar).getTimeInMillis();
startedAt = Math.round( startedAt/1000 );
let n = Math.round( new Date().getTime()/1000 );
DMessage("getTimePassed: End_seconds");
return n - startedAt;
}else if(format == "days"){
let startedAt = getVariable(timeVar).getTimeInMillis();
startedAt = Math.round( startedAt/1000/60/60/24 );
let n = Math.round( new Date().getTime()/1000/60/60/24 );
DMessage("getTimePassed: End_days");
return n - startedAt;
}else if(format == "weeks"){
let startedAt = getVariable(timeVar).getTimeInMillis();
startedAt = Math.round( startedAt/1000/60/60/24/7 );
let n = Math.round( new Date().getTime()/1000/60/60/24/7 );
DMessage("getTimePassed: End_weeks");
return n - startedAt;
}else if(format == "auto"){
let startedAt = getVariable(timeVar).getTimeInMillis();
startedAt = Math.round( startedAt/1000);
let n = Math.round( new Date().getTime()/1000);
if( n - startedAt < 120 ){
DMessage("getTimePassed: End_auto_seconds");
return [n - startedAt,"seconds"];
}else {
n = Math.round(n/60);
startedAt = Math.round( startedAt/60);
if(n - startedAt <120){
DMessage("getTimePassed: End_auto_minutes");
return [n - startedAt,"minutes"];
}else {
n = Math.round(n/60);
startedAt = Math.round( startedAt/60);
if(n - startedAt <120){
DMessage("getTimePassed: End_auto_hours");
return [n - startedAt,"hours"];
}else {
n = Math.round(n/24);
startedAt = Math.round( startedAt/24);
if(n - startedAt <14){
DMessage("getTimePassed: End_auto_days");
return [n - startedAt,"days"];
}else {
n = Math.round(n/7);
startedAt = Math.round( startedAt/7);
DMessage("getTimePassed: End_auto_weeks");
return [n - startedAt,"weeks"];
}
}
}
}
}
DMessage("getTimePassed: End_Error");
return false;
}
-
- Explorer
- Posts: 19
- Joined: Thu Oct 08, 2015 3:45 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: Switch
Re: [Tease Program] Tease-AI Java (1.0.18)
Hey,
just to let you know, Title says 1.0.18 but Download says 1.0.17.
Thanks for this nice piece of Software!
just to let you know, Title says 1.0.18 but Download says 1.0.17.
Thanks for this nice piece of Software!
-
- Explorer At Heart
- Posts: 790
- Joined: Sun Jun 11, 2017 4:30 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: Switch
Re: [Tease Program] Tease-AI Java (1.0.18)
What exactly is your issue? Can you give me an example code piece pls?ilikelatex wrote: ↑Wed Jan 16, 2019 5:08 pm But i also had some strange side effects. If you use the second version from my example, the setVar() at the end of the example doesn't work anymore. The Variable will only get updated in TAIJ, but the file remains the old value. Also setDate() didn't work for me there and i don't know why. Maybe someone else has an idea?
-
- Explorer
- Posts: 30
- Joined: Sat Aug 26, 2017 4:34 pm
Re: [Tease Program] Tease-AI Java (1.0.18)
I just noticed it in the test code.
Version 1:
This works, at the end the time in file will have the 1 minute added.
Version 2:
Doesn't work, the second setVar/Date will not update the file only the var in TAJ. If you restart TAJ it's loaded from the file and the added minute is missing.
It's no big deal at the moment but i don't understand why this happens.
Version 1:
Code: Select all
function test(){
cornerTime = setDate();
cornerTime.addMinute(1);
CMessage("go to the corner till you hear the bell.");
while( !cornerTime.hasPassed() ){
// do nothing or something but sleep/wait has to stay otherwise it will get laggy ;)
CMessage(cornerTime + " hasPassed: " + cornerTime.hasPassed());
sleep(1);
}
CMessage(cornerTime + " hasPassed: " + cornerTime.hasPassed());
//playAudio("bell.mp3")
//Question are you back? ...
setVar("lastReturnFromCorner", cornerTime);
CMessage("Test end");
return;
}
Version 2:
Code: Select all
function test(){
setDate("lastReturnFromCorner");
cornerTime = getVar("lastReturnFromCorner");
cornerTime.addMinute(1);
CMessage("go to the corner till you hear the bell.");
while( !cornerTime.hasPassed() ){
// do nothing or something but sleep/wait has to stay otherwise it will get laggy ;)
CMessage(cornerTime + " hasPassed: " + cornerTime.hasPassed());
sleep(1);
}
CMessage(cornerTime + " hasPassed: " + cornerTime.hasPassed());
//playAudio("bell.mp3")
//Question are you back? ...
setVar("lastReturnFromCorner", cornerTime);
//setDate("lastReturnFromCorner", cornerTime);
CMessage("Test end");
return;
}
It's no big deal at the moment but i don't understand why this happens.
-
- Explorer At Heart
- Posts: 790
- Joined: Sun Jun 11, 2017 4:30 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: Switch
Re: [Tease Program] Tease-AI Java (1.0.18)
Strange. I will take a look at it! Thanks for reportingilikelatex wrote: ↑Sun Jan 20, 2019 1:50 pm I just noticed it in the test code.
Version 1:This works, at the end the time in file will have the 1 minute added.Code: Select all
function test(){ cornerTime = setDate(); cornerTime.addMinute(1); CMessage("go to the corner till you hear the bell."); while( !cornerTime.hasPassed() ){ // do nothing or something but sleep/wait has to stay otherwise it will get laggy ;) CMessage(cornerTime + " hasPassed: " + cornerTime.hasPassed()); sleep(1); } CMessage(cornerTime + " hasPassed: " + cornerTime.hasPassed()); //playAudio("bell.mp3") //Question are you back? ... setVar("lastReturnFromCorner", cornerTime); CMessage("Test end"); return; }
Version 2:Doesn't work, the second setVar/Date will not update the file only the var in TAJ. If you restart TAJ it's loaded from the file and the added minute is missing.Code: Select all
function test(){ setDate("lastReturnFromCorner"); cornerTime = getVar("lastReturnFromCorner"); cornerTime.addMinute(1); CMessage("go to the corner till you hear the bell."); while( !cornerTime.hasPassed() ){ // do nothing or something but sleep/wait has to stay otherwise it will get laggy ;) CMessage(cornerTime + " hasPassed: " + cornerTime.hasPassed()); sleep(1); } CMessage(cornerTime + " hasPassed: " + cornerTime.hasPassed()); //playAudio("bell.mp3") //Question are you back? ... setVar("lastReturnFromCorner", cornerTime); //setDate("lastReturnFromCorner", cornerTime); CMessage("Test end"); return; }
It's no big deal at the moment but i don't understand why this happens.
Re: [Tease Program] Tease-AI Java (1.0.18)
I noticed some odd behavior with TAJ 1.0.18. I did a clean install and installed Mischievous. Then I went into the setting and played around with the media URLs as supplied by the distribution. Then I started Mischievious. Not always was a tease picture shown but the few tagged picture I had always showed perfectly.
I tracked this down to the image files in the system/tumbler folder. Some of them did not display and the error log showed an error when resizing. I then looked closer at the content of these files (all suspiciously around 7KB) and they did contain html. E.g. tumblr_p5uirhPjJX1s0si5no1_1280.jpg was such a file:
I tracked this down to the image files in the system/tumbler folder. Some of them did not display and the error log showed an error when resizing. I then looked closer at the content of these files (all suspiciously around 7KB) and they did contain html. E.g. tumblr_p5uirhPjJX1s0si5no1_1280.jpg was such a file:
- Spoiler: show
-
- Explorer At Heart
- Posts: 464
- Joined: Sun Jun 11, 2017 12:53 am
- Gender: Male
- Sexual Orientation: Bisexual/Bi-Curious
- I am a: Switch
- Dom/me(s): Courtney
- Sub/Slave(s): Courtney
- Location: Virginia
- Contact:
Re: [Tease Program] Tease-AI Java (1.0.18)
Try renaming the tumblr folder, “Downloaded Images”.Zefram wrote: ↑Sun Feb 10, 2019 9:11 pm I noticed some odd behavior with TAJ 1.0.18. I did a clean install and installed Mischievous. Then I went into the setting and played around with the media URLs as supplied by the distribution. Then I started Mischievious. Not always was a tease picture shown but the few tagged picture I had always showed perfectly.
I tracked this down to the image files in the system/tumbler folder. Some of them did not display and the error log showed an error when resizing. I then looked closer at the content of these files (all suspiciously around 7KB) and they did contain html. E.g. tumblr_p5uirhPjJX1s0si5no1_1280.jpg was such a file:Maybe this is related to the recent changes in Tumblr adult policy? In any case it leads to very confusing behavior as some but not all images in system/tumblr are displaying at the moment.
- Spoiler: show
Quote me, or PM me and I'll reply as soon as I can!
Tease AI Java
Mischevious Tease AI Java Personality
Tease AI Java Developer's Guide
TAJUtils Guide
Tease AI Java
Mischevious Tease AI Java Personality
Tease AI Java Developer's Guide
TAJUtils Guide
Re: [Tease Program] Tease-AI Java (1.0.18)
Not sure this really helped. The Tumblr folder was recreated when the software was started and the partially broken image downloads resumed eventually. Disabling the "use for tease" flag in the settings was also not stopping the downloads. Removing the URL files resulted in an error in the log.Try renaming the tumblr folder, “Downloaded Images”.
I finally decided to empty the URL files except for first two lines. I then put all my images into the Tumblr folder and removed the tags.txt file. When now started it seemed to work, at least there was not immediately an unexpected error in the log file. Not ideal (only try to do the same if you believe you need this and have everything backed things up) but for the time being I don't need the URL downloads working for me.
As far as I can tell there seem to be 2 cases of behavior from Tumblr.
Case 1: A redirect to the correct file e.g. with https://78.media.tumblr.com/618bdbbec06 ... o1_500.gif
Case 2: A redirect to a html page containing the file e.g. with https://78.media.tumblr.com/bc38e90db55 ... o1_500.gif
Who is online
Users browsing this forum: No registered users and 38 guests