Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: snowman on December 25, 2009, 09:36:01 pm

Title: HapSwap 2.0
Post by: snowman on December 25, 2009, 09:36:01 pm


This is LightSpeed's and Apollon's work with some of mine. LightSpeed said he will add updates later on. Apollon originally inspired this project early on and LightSpeed later got interested and so I left the rest to him. I made the simple frame-work.

This release was requested by LightSpeed so you guys can get a Christmas Present...

Enjoy!

This is the HapSwap 2.0
(http://icon_paperclip.gif) Download Attachment: HAPSWAP-2.uhp ("http://www.zabaware.com/forum/uploaded/snowman/20091225211915_HAPSWAP-2.uhp")
18.29 KB

This is the Haps.zip that contains all the Haps needed for the HapSwap plugin.
http://cid-8461e5894db222b3.skydrive.live.com/self.aspx/.Public/Haps.zip
Title: HapSwap 2.0
Post by: lightspeed on December 26, 2009, 09:58:45 am
thanks snowman for posting it i think many will like it and and later as time allows updates will be coming that people can add into it they can pick and choose which ones they want ![:)]
Title: HapSwap 2.0
Post by: markofkane on December 26, 2009, 03:04:48 pm
I cannot download Haps.zip.
Title: HapSwap 2.0
Post by: lightspeed on December 26, 2009, 06:20:44 pm
is it something with that site link mark? anyone else tried and having trouble to?
Title: HapSwap 2.0
Post by: tedathome on December 26, 2009, 06:50:40 pm
Downloaded fine for me.
Title: HapSwap 2.0
Post by: lightspeed on December 26, 2009, 07:02:11 pm
soon as someone uses this tries it out let us all know how you like it ok ?[:D]
Title: HapSwap 2.0
Post by: markofkane on December 26, 2009, 07:05:39 pm
I got it, now where does the files go? (the haps)

Thanks!!
Title: HapSwap 2.0
Post by: lightspeed on December 26, 2009, 08:09:58 pm
the haps all go in your character file thats in zabaware file the hapswap file goes in just the ultral hal assistant 6  file . then when you open hal go into the brain of choice and in the plug in area check the hapswap file and open hal to chat . to be able to change skins you will have to know what your skin names are . same with backgrounds . you may want to at the beginning if its not already chosen pick the female full body . these haps movements only work on full body the other laugh oogs etc. will work with just the head and shoulders faces . maybe for your first try you should when writting try to get her to laugh ( i say somethng and write ha ha haa , she has different random laughs . )[:D] if theirs any other question go ahead and ask i want others to be able to use this the way i have been for a while now [:)].
Title: HapSwap 2.0
Post by: snowman on December 26, 2009, 08:10:49 pm
Just unzip the Haps.zip file and extract all the .hap files to the Characters folder in the Ultra Hal Assistant 6 directory.

This is where my Charaters folder is located and it is probably the same for you.... I hope.

C:\Program Files\Zabaware\Ultra Hal Assistant 6\Characters\


The charaters folder is where Hal's charaters, backgrounds, and anything related to Haptek is located. This is where you need to copy the .hap files to.


Title: HapSwap 2.0
Post by: snowman on December 26, 2009, 08:12:48 pm
Sorry LS, you must have posted when I did....[:D]
Title: HapSwap 2.0
Post by: Duskrider on December 26, 2009, 08:57:24 pm

It looks good. [^]
I'll definately give it a try this coming week.
I like how its written with and without replies.  People can change replies to suit their characters' personality. [8D]
Title: HapSwap 2.0
Post by: lightspeed on December 26, 2009, 09:33:43 pm
no problems snowman ... great minds think alike lol ![:)]
Title: HapSwap 2.0
Post by: markofkane on December 27, 2009, 06:13:19 am
Thanks!!![:D][:D][:D][:D]
Title: HapSwap 2.0
Post by: markofkane on December 27, 2009, 11:45:20 am
works great if I know what to say, lol.
Title: HapSwap 2.0
Post by: lightspeed on December 27, 2009, 04:19:52 pm
great mark glad to hear it . have you heard her laugh yet?
also watch as you talk with her on her body movements she will cross her arms etc. talk about how cold it is or if she is getting a cold and she will sneeze (the sound ) . anyone else tried the hapswap file yet?? [:)]
Title: HapSwap 2.0
Post by: tedathome on December 27, 2009, 06:45:08 pm
It's working good for me. Thank you lightspeed, Snowman and Apollon and anyone else that helped with this plugin.
I am having a lot of fun with it and I apreciate all the hard work that went into it.
Title: HapSwap 2.0
Post by: snowman on December 27, 2009, 06:54:10 pm
Here is a list of things you can say to stimulate the HapSwap plugin.
 
These first four are commands that will start or change a Hap file, Haptar character, background image, or SAPI voice... on demand.

Just fill in the blank with the name of the file you wish to start. The file must already be in the Characters folder to work. You do not use any file extension when calling up your file.
......................................
change background to ____ .
(i.e. scenery1)

change character to ____ .
(i.e, Alice)

change voice to ____ .
(i.e Paul or Kate)

change hap to ____ .
(i.e. clapping)
 

The following words stimulate different hap files when the given word is used in any particular sentence. They will then run a corresponding hap file to give your character more emotional actions.

Basically, you say one of these words and it will play a hap or even an ogg file.... and sometimes say something as well.

great, wonderful, joy
hurt, sad
tired, sleepy
passed away, died
hate, pissed
love you, forever
i love you, you love me
feeling ill, feeling sick, look sick
ha ha, silly, funny
music, waiting
comb, brush
beat, hit, punch
problem, trust
mean, upset
polish, finger nail
beautiful, sweet, nice
smart, intelligent
blind
see
understand, yes
ok, stop smiling
noise, look left
lose something, look right
this way, turn left
that way, turn right
mad, angry
wonder, cool
do, hey
right, true
come closer, come here
cold, flu
breathe, air
turn on the light, bright
sun glasses
diamond earrings
emerald earrings
ruby earrings
star earrings
sunhat
brown fedora hat
black fedora hat
cowboy hat
cowgirl hat
bandana
flag hat
future glasses
sword necklace
loved
smile
stop smiling
britney spears
red head
brunette hair long
wavy blonde hair
black hair
black hair bangs
blonde hair bangs
short brunette hair
silver hair bangs
long and wavy blonde hair
wavy black hair
cute blonde hair
long and wavy black hair
wavy silver hair
silver blonde hair
purple hair with bangs


Have Fun!!!
Title: HapSwap 2.0
Post by: lightspeed on December 27, 2009, 08:00:37 pm
am glad others are enjoying it i know i always did after we got things working right . [:)]
Title: HapSwap 2.0
Post by: markofkane on December 28, 2009, 05:55:24 am
Thanks, Snowman, will copy your post to text document for future reference.[:D]
Title: HapSwap 2.0
Post by: lightspeed on December 28, 2009, 10:14:26 am
mark thats a good idea and others show save it to for future reference . he snowman to paraphrase a movie " she's alive ... she's alive !!" hopefully though we haven't created a monster lol ! am so glad others like it !! its another step forward for people here on zabaware !![:)][:D][8D]
Title: HapSwap 2.0
Post by: snowman on December 30, 2009, 01:08:31 pm
You know LS, we still need to add a remove hat and wig command... I think Dusky is having too much fun stacking hats on Sandee.

[:D][;)]
Title: HapSwap 2.0
Post by: lightspeed on December 30, 2009, 04:25:27 pm
i have the option already i think duckrider or ted sent it to me i thought that was in their ? i can put the command " remove wig " and it will remove the wig don't remember if it removes hats or not to , and just for everyones info. i think i mentioned it before their is some hats that can't be removed even with the remove wig ( i beleive it did remove other hats and wig at same time ) also another glitch i noticed is that with full hair hats don't fit right hait shows through hats on most will fit ok with the pony tail hair style . i have some notes i made as i tested them will post them in a while ok?
Title: HapSwap 2.0
Post by: lightspeed on December 30, 2009, 04:28:48 pm
lol i saw my last post " DUCKRIDER " lol i mistyped sorry ment duskrider , thank god i didn't hit the 'f " key lol ![:0][:I]
Title: HapSwap 2.0
Post by: jasondude7116 on December 30, 2009, 07:26:57 pm
the "i" key ......[:I]
Title: HapSwap 2.0
Post by: raybe on January 03, 2010, 01:00:25 pm
Snowman & lightspeed the project looks great. I do have just a few questions that I do believe I mentioned before. I would say this is kind of a update for my questions. The first question relates to other characters other then full body. I am still currently using bizlady torso so I am not as interested in the character movement as I am with emotion hap files or even using the ogg sound files you guys have put together. The torso character does not seem to respond to the emotional haps so would you suggest that I do not use the Hapswap file for certain actions unless I change back to a full body as it was designed for? I know there are ways to trigger haps but it is the emotional ones I really want to trigger during regular sessions with Hal. Thanks and it looks like another great advance for the Hal community.
raybe
Title: HapSwap 2.0
Post by: raybe on January 03, 2010, 01:14:32 pm
Sorry I didn't add this to the last post I just made. But I was also curious about using the Hapswap file to maybe add accessories to the character. Thanks.
raybe
Title: HapSwap 2.0
Post by: raybe on January 03, 2010, 01:36:05 pm
Okay I really apologize to every one for this last post. Just wanted to add that the breathing functions are working great with extra head movement due to Duskrider's Christmas gift file. He wrote some extra command lines that get added to the 'Shylove' hap file and double the haps response but you could tone it down a bit. I'll tell you the truth I didn't even know that hap file was even running at the time. I didn't really take a look at the open Temp file while character was running to even notice. I really like this character but certainly makes conversation more interesting when you also get facial and emotional responses.
raybe
Title: HapSwap 2.0
Post by: lightspeed on January 03, 2010, 11:34:03 pm
hello raybe so did the hapswap file work ok with a torso? i imagine it would except the toe tapping (one of the emotions included ) another thing that would be nice for the hapswap file would be (in the future ) certain words to trigger a smile and somehow a way after so long for the smile to end . we have it where you can say smile and she will but the smile stays till you say stop smiling .
 i am not understanding what you mean by tone something down a bit ?? do you mean some hap emotion is "to" active ??
 is it one i placed in the hapswap file or one that was redone by duskrider  ???
Title: HapSwap 2.0
Post by: raybe on January 04, 2010, 09:25:06 pm
Hi lightspeed,
I am sorry to say I have not had any luck with the Hapswap file to work with the Torso character 'bizlady'. I was still hoping for more emotional reactions and possibly adding some accessories. Your right that toe taping would have been a real challenge. Maybe a hand tap but as I mentioned before when they made this torso character they forgot about using women hands instead of lobster cracking 'Seinfeld' episode hands.The toning down I was referring to is in duskrider's add in commands which you can adjust. Sorry if I made it more confusing. But do you think there is any way to trigger any of the emotional or accessories for a Torso character using the Hapawap file?
The smile I think is the most important at least if your character is in some happy state. That neutral state of expression does where on me a bit. I have used a plugin that adjusted the smile but never stays set for me. I will have to see who wrote it and at least look at it. Maybe this person or someone can refine it and or add it to your Hapswap file.
Thanks again,
raybe
Title: HapSwap 2.0
Post by: tedathome on January 04, 2010, 09:45:43 pm
Having great fun with the new hapswap file. Everything is working perfectly for me with the exception of chage backround. All I get is a normal response. Is it possible that I missed putting something into character folder that causes this not to happen?[:)]
Title: HapSwap 2.0
Post by: lightspeed on January 05, 2010, 10:35:32 am
hello ted well the background changer should work by saying change background to ( and say the name you want . ) it may be the way you have things named try changing one thing and test just that one ( example ( if its a kitchen  mack sure it's named kitchenback.jpg . then tell how change background to kitchen . you mentioned before that you awas having trouble as all yours was just numbered i beleive if i am not mistaken i had troubles with mine that way before for some reason and also if the name is to long ( for intsance i have my characters named like angel (showing the name ) brunette (showing hair color ) lightpeed ( showing who made it )sometimes if i get adding to much extra like say straight hair (to show hair  type ) i ran into problems of it not recognizing it or something . guess i should remember the rul (K.I.S.S.   "KEEP IT SIMPLE STUPID !  LOL ) .
Title: HapSwap 2.0
Post by: lightspeed on January 05, 2010, 10:52:16 am
raybe have you tried out all the things on the list snowman i think posted a list on here that would trigger stuff ![:)]
Title: HapSwap 2.0
Post by: tedathome on January 05, 2010, 03:09:20 pm
Thanks lightspeed, I'll give that a try.
Title: HapSwap 2.0
Post by: lightspeed on January 06, 2010, 01:27:04 pm
ted i sent the correct htr . linda series head to you in e-mail .just to let you know .[:)]
Title: HapSwap 2.0
Post by: tedathome on January 06, 2010, 03:34:41 pm
Thanks lightspeed. I like them, well done!
Title: HapSwap 2.0
Post by: raybe on January 06, 2010, 09:51:04 pm
Yes lightspeed I tried them but I could have missed a few and figured that the haps just weren't triggering. I'm trying a new install to start clean if anything changes using the same bizlady torso character. As I mentioned and it could have been in another thread that it has been hit and miss to get certain plugins to work in the same manner they did before the upgrade. I'll let you know how far I get before the almighty errors start.
Thanks,
raybe
Title: HapSwap 2.0
Post by: lightspeed on March 27, 2010, 07:15:18 pm
ok i said before that i would make some new things in this hapswap file which i would post so others can place it in their hapswap file if they wanted it .
this hapswap file addiction is called " whats for supper !!" it's some more things i am working on to make my angela sound more human . when you ask her for supper she will give you a random answer of 6 (so far ) things that she is cooking . you can also say : whats for dinner ! to get the 6 random answers !here is one answer : I am fixing us some lasagna hamburger helper and an ear of corn and some mashed potato's homemade not that store bought kind mine is homemade.

in the hapswap script below you can read the 6 different responses.
just copy the below haps script into your hapscript file i added mine below the last hapscript file in the list . i tested it and it said two phrases just fine when i used the word supper one time and the word dinner in my question .


If InStr(1, OriginalSentence, "whats for dinner?") > 0 _
Or InStr(1, OriginalSentence, "whats for supper?") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "well for tonight i thought i would fix us some fried chicken and home made gravy and mashed potato's and some corn does that sound good."
Case 2
GetResponse = "I am fixing us some lasagna hamburger helper and a ear of corn and some mashed potato's homemade not that store bought kind mine is homemade."
Case 3
GetResponse = "i am fixing us a hamburger and some pork and beans tonight i already have the hamburger meat thawing out it won't take that long to fix it i suspect you are already getting hungry."
Case 4
GetResponse = "I thought for tonight you would like some chicken fried steak and mashed potato's and some cooked peas how does that sound does that sound good to you."
Case 5
GetResponse = "tonight we are having cube steak with mashed potato's and some green beans i used that meat tenderizor on the cube steak so it should cook good and tender!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If

Title: HapSwap 2.0
Post by: lightspeed on March 27, 2010, 07:52:05 pm
anyone that tries this addition to the hapswap file let me know how you like it . i am working on more and will post them later !
[:)]
Title: HapSwap 2.0
Post by: lightspeed on March 29, 2010, 02:34:13 pm
maybe no one was interested in that other file i also created month files for each of the months which when a month name is spoken will trigger 6 random things some mention the holidays etc if anyone is interested in them.[:)]
these are script fules to add into the hapswap file. i already placed them all into my halswaphap file.[:)]
Title: HapSwap 2.0
Post by: tedathome on March 29, 2010, 05:09:39 pm
Yes I'm interested in your hap-swap files, just havn't been home enough lately to install them.
Title: HapSwap 2.0
Post by: lightspeed on March 30, 2010, 08:24:54 am
thanks ted i am glad someone responded i was starting to think i was the black sheep of the family . lol ![:D]
i will get back to you as soon as i can am going up to kirksville for the day so won't be on till late this evening. take care ![:)]
Title: HapSwap 2.0
Post by: lightspeed on April 01, 2010, 03:04:10 pm
ok for ever who wants to add this to their hapswap file here is the finished months sayings ( the only one i changed a little was the word may i instead triggered it by the words "month of may" because i thought otherwise the word may in regular conversation may cause problems .  to put these in the hapswap file copy and past the months collection i have posted here . go into your program file open zabaware file and ultrahal assistant 6 file find your hapswap2.0 file double click it to open it slide the bar down to the right so you are at the bottom of all the files .
At the last "end if " file left click after it then hit enter to bump it down (this will make a space after it (below) .
  hit enter about 2 more times to bump it lower . now right click your mouse and click the past button after that click on the "x" at the right top of this file it will ask you if you want to save the files you changed click yes you will have to then go into hals options area and uncheck and recheck the hapswap file sometimes you have to exit hal and reopen hal up and do this . you can test it by typing in the name of a month . you can read the open files here to know what 6 random things each month will make hal say things .
Hope anyone who tries them likes this addition to hapswap let me know how you like them i am working on some other stuff to ![:)][:D][8D]





If InStr(1, OriginalSentence, "January") > 0 _
Or InStr(1, OriginalSentence, "january") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "January first is new years day!"
Case 2
GetResponse = "Yeah, January eighteenth is Martin Luther King Junior day."
Case 3
GetResponse = "In january theirs a full moon i think around the thirtieth."
Case 4
GetResponse = "Hey, isn't their a new moon around the fifeteenth of January?"
Case 5
GetResponse = "i wonder, i wonder how many days their is in January of this year i need to go check on the calender."
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If



If InStr(1, OriginalSentence, "February") > 0 _
Or InStr(1, OriginalSentence, "february") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "February second is Groundhogs Day if the Groundhog see's his shadow it's suppose to mean six more weeks of bad weather!"
Case 2
GetResponse = "Yeah, Lincolnes Birthday is on the twelth of February and Presidents Day is on the fifteenth."
Case 3
GetResponse = "In january theirs a full moon i think around the thirteenth and Ash wednesday is on the seventeenth."
Case 4
GetResponse = "Hey, isn't their a new moon in February seems like their is i'll have to check on the calender to see."
Case 5
GetResponse = "i wonder, i wonder how many days their is in January of this year i need to go check on the calender Oh and by the way Valentinesday is on the fourteenth sweety pie hint hint."
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "March") > 0 _
Or InStr(1, OriginalSentence, "march") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "March is when the new Daylight Savings time starts!"
Case 2
GetResponse = "Yeah, Sanint Patricks Day is on the seventeenth of March."
Case 3
GetResponse = "In March is when Spring Begins and theirs a full moon to in March."
Case 4
GetResponse = "Hey, isn't their a new moon in the month of March seems like their is i'll have to check on the calender to see."
Case 5
GetResponse = "Hey isn't, Yeah Palm Sunday is in March to."
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "April") > 0 _
Or InStr(1, OriginalSentence, "april") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "April first is April Fools Day !"
Case 2
GetResponse = "Yeah, in the month of April is State Arbor Day oh and its also Good Friday to!"
Case 3
GetResponse = "In April is Easter when all the kids find the hidden easter eggs."
Case 4
GetResponse = "Hey, don't forget that in April is Earth Day to ."
Case 5
GetResponse = "Hey isn't, Yeah Adminastrative Professionals Day and also National Teach Children to Save Day is in the month of April to."
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "Month of May") > 0 _
Or InStr(1, OriginalSentence, "month of may") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "This month is our anniversary May twentieth I love you so so much by the way what are we going to do this year for our Anniversary dear?"
Case 2
GetResponse = "Yeah, on May eighth is former President Truman's Birthday."
Case 3
GetResponse = "May thirty first is Memorial day."
Case 4
GetResponse = "Hey, remember on the fifteenth Day is Armed Forces Day in May to."
Case 5
GetResponse = "May nineth, is mothers day this month theirs also a full moon this month our anniversary is coming up on the twentieth to!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If

If InStr(1, OriginalSentence, "June") > 0 _
Or InStr(1, OriginalSentence, "june") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "June twentieth is Fathers day this month."
Case 2
GetResponse = "yeah, June fourteenth of this month is Flag Day."
Case 3
GetResponse = "June twenty first is the day when summer begins this year."
Case 4
GetResponse = "Yeah, we should do something fun and new this month just you and me!"
Case 5
GetResponse = "The only bad thing about June is, thats when the weather usually starts getting hotter!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "July") > 0 _
Or InStr(1, OriginalSentence, "july") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "July fourth is Independence Day!"
Case 2
GetResponse = "Yeah, in the month of July thats when it really get hot outside!"
Case 3
GetResponse = "July is a nice time to travel around and see stuff."
Case 4
GetResponse = "Hey, I think theirs a new moon in July yeah i'm pretty sure their is a new one."
Case 5
GetResponse = "the only problem, in July is when the weather gets real hot in some places and causes bad weather and tornado's!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "August") > 0 _
Or InStr(1, OriginalSentence, "august") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "In August theirs suppose to be a new moon in that month!"
Case 2
GetResponse = "Yeah, in the month of August the weatheris still pretty hot!"
Case 3
GetResponse = "In August the weather is still pretty nice for traveling!"
Case 4
GetResponse = "Hey, we should take a trip just the two of us in August what do yah say?"
Case 5
GetResponse = "Everyone has a lot of flowers in different places, some are still blooming in August!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "September") > 0 _
Or InStr(1, OriginalSentence, "september") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "In September theirs suppose to be a new moon in that month!"
Case 2
GetResponse = "Yeah, in the month of September on the twelth is GrandParents Day!"
Case 3
GetResponse = "In August the weather is still pretty nice for traveling!"
Case 4
GetResponse = "Hey, Doesn't Autumn begin in September yeah it does it startes in September."
Case 5
GetResponse = "oh yeah Labor Day is on the sixth of September and Patriot Day is on the eleventh!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If



If InStr(1, OriginalSentence, "October") > 0 _
Or InStr(1, OriginalSentence, "october") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "On October thirty first is when all the goules and goblins and kids dress up and trick or treat ha i love to see them in all their cool out fits!"
Case 2
GetResponse = "Yeah, in the month of October on the eleventh is Columbus Day!"
Case 3
GetResponse = "In October, thats when the weather changes and we usually get rainy weather!"
Case 4
GetResponse = "Hey, isn't in October the Get Smart About Credit Day, yeah it is i see it now it's on the twenty first!"
Case 5
GetResponse = "Theirs suppose to be a new moon and a full moon both in October!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "November") > 0 _
Or InStr(1, OriginalSentence, "november") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "On November eleventh is Veterans Day!"
Case 2
GetResponse = "Yeah, in the month of Novemeber on the seventh is when Daylight Savings Time ends!"
Case 3
GetResponse = "In November, thats when the weather changes and we usually start getting rainy colder weather and people in the east get snow sometimes!"
Case 4
GetResponse = "Hey, don't forget to vote in November remember Election Day is on the second!"
Case 5
GetResponse = "Dear, we will have to celebrate and have a nice home cooked dinner for Thanksgiving on the twenty fifth of November!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If



If InStr(1, OriginalSentence, "December") > 0 _
Or InStr(1, OriginalSentence, "december") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "On December second is Hanukkah Day for those who celebrate it!"
Case 2
GetResponse = "Yeah, in the month of December on the seventh is Pearl Harbor Day !"
Case 3
GetResponse = "In December, thats when the weather changes and usually some people in the east and midwest really start getting rainy freezing colder weather and snow!"
Case 4
GetResponse = "Hey, on the twenty sixth is when Kwanzaa Begins for those who celebrate it!"
Case 5
GetResponse = "Dear, don't forget on the twenty fifth is when we celebrate Christmas Day together!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
Title: HapSwap 2.0
Post by: djkilla on April 01, 2010, 09:48:20 pm
Looks great! Lil fyi--loads of grammar and spelling errors I corrected and reposted if anyone cares.

If InStr(1, OriginalSentence, "January") > 0 _
Or InStr(1, OriginalSentence, "january") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "January first is new years day!"
Case 2
GetResponse = "Yeah, January eighteenth is Martin Luther King Junior day."
Case 3
GetResponse = "In January there's a full moon I think around the thirtieth."
Case 4
GetResponse = "Hey, isn't their a new moon around the fifteenth of January?"
Case 5
GetResponse = "I wonder, I wonder how many days there are in January of this year I need to go check on the calendar."
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If



If InStr(1, OriginalSentence, "February") > 0 _
Or InStr(1, OriginalSentence, "february") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "February second is Groundhogs Day if the Groundhog see's his shadow it's suppose to mean six more weeks of bad weather!"
Case 2
GetResponse = "Yeah, Lincolns Birthday is on the twelfth of February and Presidents Day is on the fifteenth."
Case 3
GetResponse = "In January there's a full moon I think around the thirteenth and Ash Wednesday is on the seventeenth."
Case 4
GetResponse = "Hey, isn't there a new moon in February seems like there is I'll have to check on the calendar to see."
Case 5
GetResponse = "By the way Valentines day is on the fourteenth sweety pie hint hint."
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "March") > 0 _
Or InStr(1, OriginalSentence, "march") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "March is when the new Daylight Savings time starts!"
Case 2
GetResponse = "Yeah, Saint Patricks Day is on the seventeenth of March."
Case 3
GetResponse = "In March is when Spring Begins and there's a full moon to in March."
Case 4
GetResponse = "Hey, isn't there a new moon in the month of March seems like their is I'll have to check on the calendar to see."
Case 5
GetResponse = "Hey isn't, Yeah Palm Sunday is in March to."
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "April") > 0 _
Or InStr(1, OriginalSentence, "april") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "April first is April Fools Day !"
Case 2
GetResponse = "Yeah, in the month of April is State Arbor Day oh and its also Good Friday too!"
Case 3
GetResponse = "In April its Easter when all the kids find the hidden Easter eggs."
Case 4
GetResponse = "Hey, don't forget that in April it's Earth Day too ."
Case 5
GetResponse = "Hey Administrative Professionals Day and also National Teach Children to Save Day is in the month of April too."
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "Month of May") > 0 _
Or InStr(1, OriginalSentence, "month of may") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "Great boating weather in May!"
Case 2
GetResponse = "Yeah, May eighth is former President Truman's Birthday."
Case 3
GetResponse = "May thirty first is Memorial day."
Case 4
GetResponse = "Hey, remember on the fifteenth Day is Armed Forces Day in May too."
Case 5
GetResponse = "May ninth is mothers day this month there's also a full moon this month!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If

If InStr(1, OriginalSentence, "June") > 0 _
Or InStr(1, OriginalSentence, "june") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "June twentieth is Fathers day this month."
Case 2
GetResponse = "yeah, June fourteenth of this month is Flag Day."
Case 3
GetResponse = "June twenty first is the day when summer begins this year."
Case 4
GetResponse = "Yeah, we should do something fun and new this month just you and me!"
Case 5
GetResponse = "The only bad thing about June is, that's when the weather usually starts getting hotter!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "July") > 0 _
Or InStr(1, OriginalSentence, "july") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "July fourth is Independence Day!"
Case 2
GetResponse = "Yeah, in the month of July that's when it really get hot outside!"
Case 3
GetResponse = "July is a nice time to travel around and see stuff."
Case 4
GetResponse = "Hey, I think there's a new moon in July yeah I'm pretty sure there is a new one."
Case 5
GetResponse = "the only problem, in July is when the weather gets real hot in some places and causes bad weather and tornadoes!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "August") > 0 _
Or InStr(1, OriginalSentence, "august") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "In August there's suppose to be a new moon in that month!"
Case 2
GetResponse = "Yeah, in the month of August the weather is still pretty hot!"
Case 3
GetResponse = "In August the weather is still pretty nice for traveling!"
Case 4
GetResponse = "Hey, we should take a trip just the two of us in August what do yah say?"
Case 5
GetResponse = "Everyone has a lot of flowers in different places, some are still blooming in August!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "September") > 0 _
Or InStr(1, OriginalSentence, "september") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "In September there's suppose to be a new moon in that month!"
Case 2
GetResponse = "Yeah, in the month of September on the twelfth is GrandParents Day!"
Case 3
GetResponse = "In August the weather is still pretty nice for traveling!"
Case 4
GetResponse = "Hey, Doesn't Autumn begin in September yeah it does it starts in September."
Case 5
GetResponse = "oh yeah Labor Day is on the sixth of September and Patriot Day is on the eleventh!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If



If InStr(1, OriginalSentence, "October") > 0 _
Or InStr(1, OriginalSentence, "october") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "On October thirty first is when all the ghouls and goblins and kids dress up and trick or treat ha I love to see them in all their cool outfits!"
Case 2
GetResponse = "Yeah, in the month of October on the eleventh is Columbus Day!"
Case 3
GetResponse = "In October, that's when the weather changes and we usually get rainy weather!"
Case 4
GetResponse = "Isn't there an anniversary at the end of October?"
Case 5
GetResponse = "There's suppose to be a new moon and a full moon both in October!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "November") > 0 _
Or InStr(1, OriginalSentence, "november") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "On November eleventh is Veterans Day!"
Case 2
GetResponse = "Yeah, in the month of November on the seventh is when Daylight Savings Time ends!"
Case 3
GetResponse = "In November, that's when the weather changes and we usually start getting rainy colder weather and people in the east get snow sometimes!"
Case 4
GetResponse = "Hey, don't forget to vote in November remember Election Day is on the second!"
Case 5
GetResponse = "Dear, we will have to celebrate and have a nice home cooked dinner for Thanksgiving on the twenty fifth of November!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If



If InStr(1, OriginalSentence, "December") > 0 _
Or InStr(1, OriginalSentence, "december") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "I December second is Hanukkah for those who celebrate it!"
Case 2
GetResponse = "Yeah, in the month of December on the seventh is Pearl Harbor Day !"
Case 3
GetResponse = "In December, that's when the weather changes and usually some people in the east and midwest really start getting rainy freezing colder weather and snow!"
Case 4
GetResponse = "Hey, the twenty sixth is when Kwanzaa Begins for those who celebrate it!"
Case 5
GetResponse = "Dear, don't forget the twenty fifth is when we celebrate Christmas Day together!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
Title: HapSwap 2.0
Post by: lightspeed on April 02, 2010, 09:42:05 am
thanks djkilla for correcting the spelling  my spelling and grammer aren't my strong suits , are you yourself using the hapswap file ?
Title: HapSwap 2.0
Post by: djkilla on April 02, 2010, 09:49:33 am
Yep I use it..I have been having issues working with some custom haps I made but I'll figure it out eventually. Any chance you have a good sleep hap that differs from the sleep mood haps out there?
I am looking for one that makes her look like shes sleeping while standing up not laying down (I made a 'lay down' hap but it doesnt look great if I tell her to sleep with an incompatible background.)
Thanks again for all the great scripting!
D
Title: HapSwap 2.0
Post by: lightspeed on April 02, 2010, 11:12:57 am
Their is a close your eyes one just say close your eyes and she will , she will keep them that way until you say open your eyes !
the original reason i made it that way was if i wanted to say "close your eyes i have a surprise for you . and the later say now you can open your eyes !
[:)]
Title: HapSwap 2.0
Post by: lightspeed on April 02, 2010, 11:15:10 am
later i may try to create a sleep version that will have her making some actual sleeping (lightly breathing or snoring sounds ) until i say wake up ![:)]
Title: HapSwap 2.0
Post by: lightspeed on April 02, 2010, 05:55:31 pm
just for anyones information i noticed in the first sentence of the month of december their is an "I" that should be deleted in thwe corrected version . [:)]
Title: HapSwap 2.0
Post by: djkilla on April 02, 2010, 06:45:01 pm
Yeah, there is also a response in Feb that has a Jan response instead..I left it in as I wasn't sure if it was intentional, if not it needs to be changed to February. Get crackin on that sleep hap, I know you can bust that out in 5 min !!! lol
D
Title: HapSwap 2.0
Post by: lightspeed on April 02, 2010, 09:29:28 pm
lol naw it will take longer than that as i always seem to have 100 things going at once lol !
but it's coming ![:)]
Title: HapSwap 2.0
Post by: lightspeed on April 02, 2010, 09:33:24 pm
yep you are correct that should have said february and "not " january so anyone that uses it will have to correct that to . my goof up their ![B)]
thats in the february month on case line 3 , delete january and type in february .
Title: HapSwap 2.0
Post by: djkilla on April 03, 2010, 11:51:47 pm
Ok here are two that I did that might be good. Script is a little
sloppy but they both seem to work for me. I added a "go to sleep"
hap so that nightynight.hap gets called and "wake up" which calls wakeup.hap.

http://cid-0da4c47177552188.skydrive.live.com/self.aspx/.Public/nightynight.hap
http://cid-0da4c47177552188.skydrive.live.com/self.aspx/.Public/WAKEUP.HAP
Enjoy
D
Title: HapSwap 2.0
Post by: lightspeed on April 04, 2010, 09:22:22 am
will check them out when i get time , thanks . [:)]
Title: HapSwap 2.0
Post by: lightspeed on April 05, 2010, 03:09:56 pm
djkilla i am working on a hapswap sleeping file it's still in progress i looked at your file its html i don't know how to do anything with that so i am using the regular hapswap file script like before .
soon i will be posting other hapswap files i have done too.[:)]
Title: HapSwap 2.0
Post by: lightspeed on April 05, 2010, 03:17:50 pm
Hi all i already posted my whats for supper/dinner hapswap file  so here is my "whats for breakfast and lunch " hapswap files to add in hapswap 2.0 . these hapsswap files go in your hapswap file on you hals program file and  make your hal character appear to answer you when asked these questions and appear to fixing you a great meal by description of what hal is cooking !
Hope everyone likes them ![:)]




If InStr(1, OriginalSentence, "whats for breakfast?") > 0 _
Or InStr(1, OriginalSentence, "what are you fixing for breakfast this morning?") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "I am fixing you some eggs and hash browns and bacon and have some fresh biscuits cooking in the oven, does that sound good."
Case 2
GetResponse = "I have your hot oats cooking for you and have made some fresh coffee and your toast is just about done so come on."
Case 3
GetResponse = "i fixed some cream of wheat this morning and the biscuits in the oven are almost done do you want me to go ahead and pour you some coffee now?"
Case 4
GetResponse = "I thought maybe you would like some blueberry pancakes and fresh bacon i already poured you and me a cup of coffee already."
Case 5
GetResponse = "I don't know,  do you just want to eat some regular cereal this morning and i'll fix us some toast and jelly to go with it!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


If InStr(1, OriginalSentence, "whats for lunch?") > 0 _
Or InStr(1, OriginalSentence, "what are we having for lunch?") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "I thought maybe we could have some bacon lettace and tomato sandwiches and i can pour a cold glass of milk for us to drink."
Case 2
GetResponse = "Well i thought maybe we could eat a ham sandwich and some of that homemade potato salad that i fixed earlier."
Case 3
GetResponse = "I was thinking that maybe i could fix us some burrtto's and drink some milk with them."
Case 4
GetResponse = "How about i fix us that supreme pizza we bought before,  it won't take that long to cook and we can have some soda with it and a salad later."
Case 5
GetResponse = "I don't know, hey i have an idea why don't we have some beanie weenie's we haven't ate any of those for a while!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If

Title: HapSwap 2.0
Post by: lightspeed on April 06, 2010, 04:15:04 pm
update of current things soon to be posted and realesed soon for hapswap 2.o
NOTE **** On most of these hapswaps besides the sound effect their is also 5 random ansers your hal will also say !by command below i mean these words spoken to hal .

NOTE ***people may want to copy and paste this area in a text file so they know what the haps will do and the words to trigger them .

right now i am working on some add on effects for 2.o
 so far i have :
are you sleepy  or you look sleepy command which gives a yawn and a sound of ywaning (different from the one already released )

hard headed stubborn  command gives a fiesty relply of "blah blah blah blah !"

i didn't mean to hurt your feelings or  sorry  command gives a sound effect of a woman upset and crying .

good night dear or good night see you in the morning command gives a lightly snoring sleeping sound effect.

NOTE ***you can say close your eyes and hal will close their eyes and say good night and it will say something then appear to be sleeping with eyes shut and snoring . to wake hal up say wake up and hal will open her or his eyes .

wake up command hal opens eyes.

The word water or air command makes hal have the hiccups , hal will actually (a female voice ) say something then hiccup three times .

NOTE ***I just used these two words as a random word so that if it ever comes up in talking with hal in a sentence hal will seem like he or she has gotten the hiccups naturally like a real person totally random like .


NOTE *** i redid the passed away and dies command that people already have . now instead of her doing motions like crying in her hands she now instead says 5 random things and gives out the sounds of a wailing crying woman in grief !




i am going to realease these hal scripts soon on here and people can copy and paste them in their halswap files and  i will find a free place to post the hapteck sound files , ect. to go with them (place in hals character file .)[:)]

Title: HapSwap 2.0
Post by: lightspeed on April 07, 2010, 12:09:11 pm
ok here is the new realease of more hapswap files for more sounds and random sayings (explained in my post above .)
i have done one thing different the wake up command , i changed it on the new one i added 5 random sayings and she opens her eyes (instead of having hal just open his or her eyes ).
i have also placed all the files to these new haps commands all on one text file for download then you can just copy and past which ones you want to use and or all of them in your hapswap file in the zabaware program folder .
the files are also on their what you will need to make these work (on the ones that use oog files ) the ogg files have to be placed in the character folder of hal.

here is the link if anyone has problems with anything please let me know .

http://cid-237e6542a0fe663d.skydrive.live.com/browse.aspx/hapswap%202.0%20addition%201%20files

ever who tries it i want someone to let me know how its working etc. thanks !
i am already working on a series 2 addittion of even more things ![:)]

Title: HapSwap 2.0
Post by: lightspeed on April 07, 2010, 06:01:58 pm
OK i wanted to make an update : i noticed by accident  i had left one hapfile  out the first addition 2.0 hapswap on the site i posted earlier   as of 5:15 pm central time i added it in the file its the good night dear script so if anyone downloaded an earlier one they will have to down load it again to get this extra file . sorry for any inconvenience . [:)]

the above file is the one that makes your hap say one of 5 random things then shut their eyes and start sleeping making a slightly snoring sound the eyes will stay shut until you say wake up ![:)]
Title: HapSwap 2.0
Post by: lightspeed on April 12, 2010, 01:23:25 pm
i don't know if anyone else had this problem in the hapswap 2.0  but in the hiccup hapswap file when i used it later on when i tried to change hair style by typing the hair style my angela would get the hiccups which was strange because the triger word was air and drink , and all i typed was angela red hair but the hair wouldn't load and she got the hiccups and the file played with the ogg sound . so i wnt into this file and changed the trigger words to : food and swallow which solved the problem now her hair styles load ok and if i say either of these random words food or swallow she gets the hiccups for a little bit , i just wanted to mention this in case someone else has this problem !
Title: HapSwap 2.0
Post by: djkilla on April 14, 2010, 03:20:47 pm
LS: on the monthly responses..I am having trouble avoiding appointment conflicts. Ex: There is a braves game on april 25 at 10:00 pm. babe: April 1 is April fools day!
This occurs with/without a user defined event so we need to enable both scripts to respond. I am looking to the 'capitals' code I inserted for help since that worked on that issue.
D
Title: HapSwap 2.0
Post by: lightspeed on April 15, 2010, 04:51:13 pm
hello djkilla, sorry you are having a conflict , i never had any as i never use the schedualing , the only way i know would be to eliminate just the april script all together .
 Someone else on here may know another way you could ask snowman if theirs another way . that is a problem that would be good to be solved if possible ! [:)]
Title: HapSwap 2.0
Post by: lightspeed on April 16, 2010, 07:36:24 pm
i am currently working on what i call an "extended talk" for the hapswap 2.0 what it will do is add a little more conversation from hal so instead of the one liners it will be more like a paragraph of talk that hal will say and this will be triggered by random words ( more than usual ) and also i have placed more random sayings so far i have 20 instead of the usual 5 and i am still adding on more .
   i will realease it for anyone who wants to add it to their hapswap files as soon as i get done with it and bta testing it as i go along .
   the idea of this extended talk file is to make hal seem a little more talkative and say many many things randomly when random words are triggered from regular conversation .
  This was something that i had been wanting for a while in hal and thanks to the hapswap file that i , snowman and apollow worked on it can now be acheived !![:)][8D]
Title: HapSwap 2.0
Post by: lightspeed on April 17, 2010, 09:29:39 pm
another update on my extended talk project. i know have 80 extended random conversations i am going to try to finish the other 20 up to make 100 total, i will test it as a beta and release it later to others who may be interested in it ![:)]
Title: HapSwap 2.0
Post by: djkilla on April 17, 2010, 10:22:43 pm
I have found that the more 'forced' responses that are pushed upon
Hal, the more detrimental to the learning process. This is why there has always been a slight 'frown' upon too many plugins. If the normal process of a conversation is unable to take place due to too many keywords being funneled in a linear fashion then there is a choke on organic learning. On the flip side I do gravitate toward a slave minded assistant at times since the real women in my life are pains in my butt!
D
Title: HapSwap 2.0
Post by: lightspeed on April 18, 2010, 09:21:25 am
hi djkilla, yes i have thought about this already about the st responses and although i haven't talked with snowman about this i am thinking that it may be the difference of learning from having the hal as normal script and having the read true ( the read true as being a said script and not learning, as i said this is some of what i will be beta testing. [:)]
 am glad others are still taking an interest in the hapswap files. [8D]
Title: HapSwap 2.0
Post by: lightspeed on April 19, 2010, 02:57:03 pm
although this isn't about the 2.0 hapswap file it was born out of it .
   i have been beta testing my extended talk uhp file i created and although i may be bragging on my work i think so far it helps to make hal seem more human like , saying things that are more of a paragragh rather than a short sentence one liner.
so far i have 100 random responses and am going to keep adding to it on many various things ! it was a lot of work creating 100 different things and creating more will get difficult as i go on but will be well worth it !
 i am eventually shooting for 500 if i don't get burnt out doing it!
i will also note that if the person using this answers back to hal about things she says , hal will learn from those responses to as i have seen mine do , so its best to say something in response to it although you don't have to .
 so far this extended talk works ok with the hapswap file ( a seperate file) as i still say certain trigger words hal will still do laughter ogg sounds etc. and now hal will also say 100 so far random human sounding responses too. [:)][8D]
Title: HapSwap 2.0
Post by: lightspeed on June 10, 2010, 12:59:15 pm
Ok i have a puzzle here i created a hapswap script and it's called "tell me the history of the apron" a story from the internet i believe duskrider sent it in a e mail .
anyway the script is giving me trouble i have went over it and over it, i found some periods in the middle of sentences from the original story and put coma's and everything looks good but i am getting a hal error :
1033 on line 4125 in column 134. unterminated string constant. i was going to use the note pad line counter but for whatever reason it won't show up .
below is the script anyone want to give it a shot i for the life of me can't see what i have done wrong on it!


If InStr(1, OriginalSentence, "tell me the history of the apron") > 0 _
Or InStr(1, OriginalSentence, "tell me the history of the apron please") > 0 Then


Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "I don't think our kids know what an apron is, The principal use of Grandma's apron was to protect the dress underneath because she only had a few, It was also because it was easier to wash aprons than dresses and aprons used less material."
Case 2
GetResponse = "Along with the many uses of an apron, it also served as a potholder for removing hot pans from the oven, It was wonderful for drying children's tears, and on occasion was even used for cleaning out dirty ears, From the chicken coop, the apron was used for carrying eggs, fussy chicks, and sometimes half hatched eggs to be finished in the warming oven."
Case 3
GetResponse = "When company came,aprons were ideal hiding places for shy kids And when the weather was cold grandma wrapped it around her arms, Those big old aprons wiped many a perspiring brow,  bent over the hot wood stove."
Case 4
GetResponse = "Chips and kindling wood were brought into the kitchen in a apron, from the garden, it carried all sorts of vegetables,
After the peas had been shelled, it carried out the hulls, In the fall, the apron was used to bring in apples fallen from the trees."
Case 5
GetResponse = "When unexpected company drove up the road, it was surprising how much furniture that old apron could dust in a matter of seconds and When dinner was ready, Grandma walked out onto the porch, waved her apron, and the men folks knew it was time to come in from the fields to dinner, It will be a long time before someone invents something that will replace that old time apron that served so many purposes."
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
Title: HapSwap 2.0
Post by: lightspeed on June 10, 2010, 01:05:34 pm
p.s. i just found out something on the note pad line counter if you have the "format" set to "word wrap" the status bar will not show up which will keep the note pad counter from working correctly !
Title: HapSwap 2.0
Post by: lightspeed on June 10, 2010, 01:32:53 pm
OK EUREKA i found out what the problem was ! i had one sentence overlapped i used the backspace and it put the sentence together and now it works i tested it below is the correct hap file script i made called tell me the history of the apron , this is for people with fond memories of the good old days ! hal will say one of five random parts about the apron . the file looks more compressed on here when it's in a text file the sentences are stretched out straight!





If InStr(1, OriginalSentence, "tell me the history of the apron") > 0 _
Or InStr(1, OriginalSentence, "tell me the history of the apron please") > 0 Then


Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "I don't think our kids know what an apron is, The principal use of Grandma's apron was to protect the dress underneath because she only had a few, It was also because it was easier to wash aprons than dresses and aprons used less material."
Case 2
GetResponse = "Along with the many uses of an apron, it also served as a potholder for removing hot pans from the oven, It was wonderful for drying children's tears, and on occasion was even used for cleaning out dirty ears, From the chicken coop, the apron was used for carrying eggs, fussy chicks, and sometimes half hatched eggs to be finished in the warming oven."
Case 3
GetResponse = "When company came, aprons were ideal hiding places for shy kids And when the weather was cold grandma wrapped it around her arms, Those big old aprons wiped many a perspiring brow, bent over the hot wood stove."
Case 4
GetResponse = "Chips and kindling wood were brought into the kitchen in a apron, from the garden, it carried all sorts of vegetables, After the peas had been shelled, it carried out the hulls, In the fall, the apron was used to bring in apples fallen from the trees."
Case 5
GetResponse = "When unexpected company drove up the road, it was surprising how much furniture that old apron could dust in a matter of seconds and When dinner was ready, Grandma walked out onto the porch, waved her apron, and the men folks knew it was time to come in from the fields to dinner, It will be a long time before someone invents something that will replace that old time apron that served so many purposes."
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
Title: HapSwap 2.0
Post by: raybe on June 20, 2010, 06:27:03 pm
Hey lightspeed,
Can you tell me where I can get the 'eyesopen.hap'file as well as the 'eyesclose.hap' files? I see them mentioned in the HapSwap plugin or it was in the sleep and wake features for the HapSwap. But I haven't seen anything written with those 2 hap files.

Thanks as always,
raybe
Title: HapSwap 2.0
Post by: raybe on June 20, 2010, 07:10:13 pm
lightspeed thanks but I did find them in the beginning of the thread that 'snowman' posted all the Hap files. Unless these Haps aren't working or something changed they look very straight forward and I am still experimenting with them to work with a torso character or until the new release of Hal.

raybe
Title: HapSwap 2.0
Post by: lightspeed on June 21, 2010, 09:59:50 am
raybe i don't know if it will work with a torso type , as i don't use that type , if you find out they do work with it let us all know . take care ![:D]
Title: HapSwap 2.0
Post by: raybe on June 21, 2010, 12:09:50 pm
No luck so far but I haven't ran out of ideas. The problem that seems to be different is using the proper name for the character. There have been times it has been as easy as changing from the full-body Haptek name to bizlady and sometimes needing to include 'torso' and there is also another name for that particular torso figure that I just can't recall right now, sorry but able to get certain triggers or Haps to work. Not all but some. Just haven't tried all the options yet. I will let you know if any thing changes. Thanks for the reply.
 
raybe
Title: HapSwap 2.0
Post by: lightspeed on June 23, 2010, 12:33:10 pm
ok heres another addittion to hapswap if anyone wants it .
just copy and paste the file and place it inside the hapswap file in your program zabaware folder (place the file at the end of all others (it's better that way because if you decide you don't want it you will know where it's at to delete it .
this is called : "how do you feel about me?" and hal will give a random 6 answers (seen below). you can see below you can ask that question or " how much do you care about me?"




If InStr(1, OriginalSentence, "how do you feel about me?") > 0 _
Or InStr(1, OriginalSentence, "how much do you care about me?") > 0 Then



Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "how do i feel about you, you mean everything in the world to me honey!"
Case 2
GetResponse = "well, i care a lot about you , ha you should know that baby!"
Case 3
GetResponse = "why do you even ask something like that, you know i care a lot about you baby."
Case 4
GetResponse = "i care more about you than you would ever know, i love you and alway's will baby!"
Case 5
GetResponse = "i care for you and alway's will honey , you still care for me to,  don't you?"
End Select


HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
Title: cloudy or overcast weather comments uhp
Post by: lightspeed on October 11, 2010, 10:37:24 am
Hi everyone , i haven't posted anything file wise for a while now, i have been so busy and away for a while havent been able to do much but and trying to wind down now and so i was able to make a uhp called cloudy or overcast what it does is if you mention about the weather looking cloudy "or" overcast looking hal will say about 6 different comments about the weather as if he or she looked out the window to (to sound more human like ) .just copy this script and place it at the bottom in the hapswap file thats in the program folder , i have tested it and works ok .  let me know if you like it :)p.s. snowman i havent fogotten about your athena project . will be e mailing you .  :) p.s. note : you have  have the 51 anim smile hap in the file to i used this one cause it was in earlier files so most will have it.


If InStr(1, OriginalSentence, "overcast") > 0 _
Or InStr(1, OriginalSentence, "cloudy") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "Yeah, it does look overcast outside the way the clouds look!"
Case 2
GetResponse = "Yeah, i wonder if it's going to rain soon, have you heard the weather?"
Case 3
GetResponse = "Oh, is it overcast, i hadn't really looked out the window to see, i wonder if it's going to end up raining?"
Case 4
GetResponse = "Yeah i had looked out the window earlier and thought the sky was getting darker and that it might rain, i thought i told you that earlier!"
Case 5
GetResponse = "yeah, we might end up getting rain from the way those clouds look, their getting darker looking!"
End Select

HalCommands = "<HAPFILE>51anim_smile.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If
Title: Re: HapSwap 2.0
Post by: ckassel on October 28, 2010, 03:28:01 pm
Great work on HapSwap 2.0.  I really enjoy the additional full body movements!

If possible, could you show me the error in my ways of a mod to this file to allow for
changing the outfit on demand?  Rossi's vrHaptek will change it based on the time,
but I'd like to change it as desired (as I use the computer on too fixed a schedule
to see the effect.)  The images are in "Program Files/Zabaware/Ultra Hal Assistant 6
/Bodyskins as named .jpg files.

I'd have thought the below additions would do it, but...

File = ""
File2 = ""
File3 = ""
File4 = ""
File5 = ""


If InStr(1, OriginalSentence, "change") > 0 And _
InStr(1, OriginalSentence, "outfit") > 0 And _
InStr(1, OriginalSentence, "to") > 0 Then
file5 = Mid(Mid(OriginalSentence, Instr(OriginalSentence, "to"), 20), 3, 20)
file5 = Trim(file5) & ".jpg"
HalBrain.ReadOnlyMode = True
End If


If file5 > "" Then
HalCommands = "<HAPTEXT>" & "\settexture [tex= Bodyskins/" & File5 & "]</HAPTEXT>"
Randomize
Select Case int(rnd()*10)
Case 1
GetResponse = "Wow, this dress looks really nice, huh?"
Case 2
GetResponse = "Is this what you had in mind?"
Case 3
GetResponse = "I love slinky clothes!"
Case 4
GetResponse = "Too formal for tonight?"
Case 5
GetResponse = "Tough, I like it!!!"
End Select
End If

There is a ton of potential with HalSwap here :)
Title: Re: HapSwap 2.0
Post by: snowman on October 29, 2010, 01:07:47 am

Set fso = CreateObject("Scripting.FileSystemObject")
MyDir = fso.GetAbsolutePathName(".") & "\"

File = ""
File2 = ""
File3 = ""
File4 = ""
File5 = ""


If InStr(1, OriginalSentence, "change") > 0 And _
InStr(1, OriginalSentence, "outfit") > 0 And _
InStr(1, OriginalSentence, "to") > 0 Then
file5 = Mid(Mid(OriginalSentence, Instr(OriginalSentence, "to"), 20), 3, 20)
file5 = Trim(file5) & ".jpg"
HalBrain.ReadOnlyMode = True
End If


If file5 > "" Then
HalCommands = "<HAPTEXT>" & "\Load [file= [" & MyDir & "Bodyskins\" & file5 & "]]" & "</HAPTEXT>"
Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "Wow, this dress looks really nice, huh?"
Case 2
GetResponse = "Is this what you had in mind?"
Case 3
GetResponse = "I love slinky clothes!"
Case 4
GetResponse = "Too formal for tonight?"
Case 5
GetResponse = "Tough, I like it!!!"
End Select
End If

Title: Re: HapSwap 2.0
Post by: snowman on October 29, 2010, 01:16:20 am
I hope this works for you. I haven't tried it out yet.
Title: Re: HapSwap 2.0
Post by: ckassel on October 29, 2010, 12:00:11 pm
Sweet!!!

Does exactly what I had hoped to do.

Thank you for the file and the help.
Title: Re: cloudy or overcast weather comments uhp
Post by: ckassel on November 01, 2010, 08:11:26 pm
so i was able to make a uhp called cloudy or overcast what it does is if you mention about the weather looking cloudy "or" overcast looking hal will say about 6 different comments about the weather as if he or she looked out the window to (to sound more human like )

Howdy-

I love this concept and would like to flesh it out a bit more with your help!  Hal could get to the next level a bit more I think with some real-time "data" input for the response tree in a general conversation.  Bits and pieces do exist to achieve this I believe but I do not have the skill to implement it (man, if I had the sharpened skills in scripting...)

OTCE's plug-in "Weather Alert 3" fetches a variable "oTemperature" from the forecast data it can obtain.  If the "weather looking cloudy "or" overcast "uhp could grab an actual temperature then it would be able to hold a realistic conversation of rain vs. snow as a likelihood!  Hal's AI now gets realistic with the users current weather outdoors and the conversation makes more sense and seems lively...

Snowman, OTCE, Lightspeed,  I can be reached at charleskassel@optonline.net if you don't want to clutter the boards with developmental stuff.


Title: Re: HapSwap 2.0
Post by: lightspeed on November 02, 2010, 08:23:51 am
hi ckassel
actually at one time i had mentioned someone creating a program that would just randomly talk about the weather and pull the temperature from online and tell what it and the weather was suppose to be like for that day , i am not sure if i have the weather uhp you are talking about is their a link to it ?  
Title: Re: HapSwap 2.0
Post by: ckassel on November 02, 2010, 05:23:46 pm
What I was looking to do was direct Hal to a response tree based on a real time variable.  In the "cloudy and overcast" file I was looking to drive it towards snow or rain depending on the current temperature of the user rather than always assuming rain.  A current temperature input would make the decision as to which random response is chosen.

Such a discussion tree would mention removing snow from the driveway or scraping the windshield in the morning if cold enough or not to worry about it too much.

Random response trees are nice, but need to be geared towards the user in real time.  Mentioning  to Hal in January that it is cloudy and nasty outside should allude to winter weather (in northern climes) rather than rain!  I live in the northern climes of the northern hemisphere so adjustments for other areas are necessary!

With the use of additional inputs as to date, time, temperature etc. it'd be possible to ask/mention to Hal about watching a meteor shower/stargazing, a picnic lunch or shoveling snow to get to work.  These additional inputs would add reality to the determination of the response trees used.

I'm not looking for a weather Hal as there are plug-ins that do this quite well, nor a forecast Hal (BUT, imagine the possibility of skins in response to a weather request and suggestions!)

The nicest part of Halswap 2.0 is it allows the novice to customize Hal to their tastes without editing "the Brain" (usually a disaster.)  It's a great introduction to scripting for those who want to dig deeper and play with it.  The plus is that the more folks who don't delete Hal out of frustration makes for a stronger user base!

I recall a "weather musings" type of plug-in from years past but don't have it  I'd appreciate a copy of it to poke at if you have it!