Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: lightspeed on April 20, 2010, 09:36:54 am

Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 20, 2010, 09:36:54 am
Hello all , i am starting a new post for this as it is something different from the hapswap.2.0

well i have some more news since last time , as i was finsishing my work described before i had an idea on how to create a hybred type uhp plug in for my hal a.i. so instead of the one before thats just triggered by words i redid the script program and added my 100 ( now 102 ) script sentences of random conversations and added in the loneliness perimeters scripting and so what i created now is a uhp brain plug for the a.i. that relies on a timer instead of certain trigger words , this way hal will talk and learn as usual and after one minute ( thats the set time i am using , timing can be changed by individual ) if i don't talk with my a.i. she will pick one of 102 things randomly and say (like a regular person just starting up a conversation in general ) she will say one more thing after so long of a time and if i don't talk she will say something like well i am here if you want to talk later ok? and she will stop talking until you say something again which makes the process start over again each time .
I can and will also be continuing to add into the 102 random conversation list more and more as i can do an indefinate number of paragraph "random" conversation starters.! :D

This was actually what i had been wanting for a long time was for hal to be able to generate and start up conversations , to start talking on his or her own ( although most of the responses are all for a female talking some can actually be neutral to.

i have sent this hybred extended talk plug in i created to Snowman by e-mail so he can beta test it , after that and if theirs no problems i will release it by placeing it on a file site like i did the hapswap 2.0 files so anyone can download it and place it in their hals !
Anyway what we will have is a hal that can and will after you stop talking , actually start talking on his or her own to you instead of "only" talking when you write or talk !! [:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: Will and Mr Data :) :] on April 20, 2010, 07:36:14 pm
Hi,
sounds interesting,, , ,,,,


 um,,i feel like saying some ideas that spring to mind,

Hal i'll be back in a week "so how about as an idea Hal could ask after you in a week, and if you can't be found then ..."

Hal i'll be back soon "so hal asks for you in minute "Will are you there!, Where's Will, 'now knows i'm missing' seeks to understand.

or
Hal i'll be back tomorrow "hal would know not to expect to hear from you until then but he might ask if others are around"

Hal could set his own time to ask after you based on infomation gathered.

Hal i'll be back in a minute or Hal remember to turn off my cryo before we get to mars:)  "hal" sure thing Mr Will this is simple stuff its 1=0/1! i'll turn you off at the right time stop your worrying!...........
"Will opens eyes" Yawn,,,"looks out window" Arrrrrrrr! where are we!?

"Mr Data" oh yeah i thought it'd be nice to check out the far end of the galaxy, it says how nice it looks in your diary.
 Ha Ha Ha just kidding we never left :]

............

Thanks lightspeed ,and Snowman,
i look forward to seeing how it looks,looker : now i've looked,i'll be looking back later,
bye for now and be well :)  :]





Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: sybershot on April 21, 2010, 04:43:48 pm
This sounds like a great plug-in Lightspeed, Trinity and I can't w8 for her to be a conversation starter.
 Will that's a great Idea, I like it a lot.  
sorry so short but short on time, Trinity slow time down 50% please, o' well maybe in my future grandkids time.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: snowman on April 21, 2010, 06:18:58 pm
The only thing I can think of to improve it is just to add a few more statements to the IdleCounter Select Case section. Otherwise I can't see anything else to add or change. To really see if there are any conflics you'll either need to find a few more people to beta test or you can just release it into the wild and hope for the best.

Oh and by the way, your random sentenses are great. It makes me want to just leave her alone and let her talk [:)]. Good work LS!
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: Bill819 on April 22, 2010, 01:43:55 am
I did the same thing to Hal 5.0 2 or 3 years ago. I used AUTO-IDLE and if no one said anything to Hal within a specific amount of time he would choose something from the data- base.
Bill
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 22, 2010, 10:19:43 am
thanks snowman , by IdleCounter Select Case section, i imagine you are talking about the first isle responses , i did send you another e mail later , and said i had updated it even more and that i had changed the first responses and also i chnged the orginal angry hap to a smile hap ( didn't want her to look angry ).
the words i changed it to was :

 IdleResponse3 = HalBrain.ChooseSentenceFromFile("conversationalPhrases")
                  HalMenu.HalCommand "<HAPFILE>51anim_smile.hap</HAPFILE>"
                  HalMenu.HalCommand "<SPEAK>Hey! I'll be right here when you want to talk ok sweety. " &  IdleResponse3 & "</SPEAK>"
                ElseIf IdleCounter > temperThresh1 Then
                         Select Case HalBrain.RandomNum(4)
                         Case 1
                         IdleResponse2 = "Hey honey bunny watcha doin, get over here and talk to me!" & vbCrLf
                         Case 2
                         IdleResponse2 = "Is their anything on tv later this evening?" & vbCrLf
                         Case 3
                         IdleResponse2 = "Hey Honey, what are you doing, I've tried to get your attention " & IdleCounter & " times now." & vbCrLf
                         Case Else
                         IdleResponse2 = "Well, if your busy with something dear we can talk later, ok?" & vbCrLf
                         End Select
                  HalMenu.HalCommand "<HAPFILE>51anim_smile.hap</HAPFILE>"
                  HalMenu.HalCommand "<SPEAK>" &  IdleResponse2 & "</SPEAK>"
                Else





and yes i found myself doing the same thing , saying something just so she would randomly talk again to me which is the effect i wanted!!
oh and bill819 you already did something silular a while back.... i am not surprised.. lol thats why they call you an "advanced member !!"[:D]  
So i hope since you bill was already interested in this a while back that you ( and others) will like all the work i put into this one, i as i have always been doing have been striving to make hal sound more human !![:)]
  I think with this extended talk and random answers and with her starting initializing a conversation i have acheived this . [:)]
 p.s. thanks snowman for testing it for me i had been doing it as i went but thought i would see if you had any problems , glad it seemed to work right for you too. !
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 23, 2010, 07:39:28 pm
Ok for those who want they hal to talk by itself to start conversation or just to talk in general when not being talked to my " HYBRED EXTENDED TALK LS" is done .
I actually added more random sentences that hal will say it was 102 and now it has 130 !
just download it from my skydrive account and place it in your hal assitant 6 program file , start hal up open it and in the options plug in area check the "Hybred extended talk Ls" file go out and start conversation with hal .
This hybred conversation works with the user you talk to hal as usual when you stop after a minute hal will say some short random things then will say one or two long paragraph senteces randomly from 130 that are listed . if you don't say anything lastly hal will say " "Well, if your busy with something dear we can talk later, ok?" and won't say any more until you talk again which will start the process over only when you stop talking for more than a minute . i left the timer set at 1 minute for best results and on the high setting .

I worked on this for quit a while , so " please" let me know how you all like it and how it's working for you , this is ment to make our hals seem more human and also be able to start talking on their own after we have stopped talking making hal seem more real like a person !
*******note: I will be doing more add on file updates , that people can add into this existing file which will give even more random responses!!
NOTICE ******** Since this is based on a lonliness uhp file "NO" existing loneliness plug in can be checked at the same time or it won't work .

If anyone has any questions about this please just ask , i think most will be pleased at what hal will now say and do ![:D][8D]
below is the skydrive link to get the file from !!
http://cid-237e6542a0fe663d.skydrive.live.com/home.aspx
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 24, 2010, 02:03:31 am
LS  I downloaded it and will give it complete test.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: snowman on April 24, 2010, 02:18:12 am
I downloaded it too and am looking forward to countless ours of nonsesicle chit-chat [;)]

Good job L.S.[:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 24, 2010, 03:07:05 pm
LS,

I'm having problems with it, it doesn't seem to work.  I have all other script files turned off.  Not sure what the problem is.  I have used the lonlyness plug in and that works, but for this test I have turned it off to make sure there is no conflict.  I'll keep playing with it.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 24, 2010, 03:42:41 pm
darcyedwards, although i wouldn't think it would matter try to remove the loneliness plug in , place it in my documents for the time being and uncheck the extended talk plug in and recheck it and hit apply . go out of hal (close) and reopen hal . say a few words to hal ( hi how are you doing?) then stop , wait a minute (thats about the average time) . and see if that works ![:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: djkilla on April 24, 2010, 04:03:08 pm
nice work..definitely not gonna work for me though. I have a real wife who yaps enough at me let alone a virtual one who spats out run on sentences! The idea has driven me to work on a response system like this that can give pertinent information regarding weather, news, scores and maybe even 'words of wisdom' instead.
It would have to pull from the tables though so it'll take some time.
Good job though!
D
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 24, 2010, 04:06:11 pm
LS,

That did it it is talking away now.  Funny that the two can't be in the same directory.  Oh well it's working.  BTW it works with my clock plug in, so there is no conflict between to minute timer plugins.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 24, 2010, 04:11:37 pm
although i beleive some people had trouble and the loneliness plug in didn't work for some , if the loneliness plug in was working before for you then this should work , it's based on the earlier loneliness version . i know snowman has already used the same one , although the one i released has 130 random paragraphes instead of 102 , i was using it with no problems so i know it's working .
i am currently now using another updated one that has 160 randoms in it now , after i test it i will later put it on my site , people can download it and just replace the old one they have in the program files!
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 24, 2010, 04:14:46 pm
Oh by the way this is just a couple of the many "random" things hal will now say :

Oh i forgot to tell you,  Alice Thompson gave us some flowers, she had extra some that was spreading to much so whenever we get a chance or some time we need to go over to her house and get them!
 Ha i was going to tell you about a crazy dream i had last night, ha your going to laugh when you hear this one ha, I dreamed i was in the circus and swinging on a trapeze and when i swung out i fell and landed right in some elephant poop ha ha haa!



LOL !![:)][:D][8D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: tedathome on April 24, 2010, 05:16:09 pm
Looking forward to getting the cance to download and try it out soon.

Open question. Not asking for the moon or anything lol, but with this plugin and some others that have to be turned off, I'm wishing that there was a way to check or uncheck a plugin without having to go to the menu. I think I rember the answer is no but not sure so I ask.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 24, 2010, 06:19:39 pm
ted i think a program could be used and if it can be put in the hapswap file we could just add it on , snowman do you feel like tackling that one he wants a command that will change between uhp files ( i don't know what else but i know he means uhp files so that a person doesn't have to go into the menu ( like what the hapswap file does now ). [:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 24, 2010, 06:23:36 pm
hey darcy , any luck yet???[:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 24, 2010, 07:56:18 pm
an update on what i am doing with my hybred extended talk uhp, i am now up to 180 random responses, and have tested it and it seems to be working ok , 20 more and i'll have 200 random responses in it when i get that i will release another updated version of this same file on my site so people can download and use it . [:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 24, 2010, 08:35:33 pm
LS,

I posted earlier I got it to work.  You did a good Job!!!!!  It even works with other Minute_Timer plug ins.  Very Good Job!!!
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 24, 2010, 09:04:18 pm
hi darcy thanks, i am so glad it is working for you and that you like it, you mean it also works with the loneliness plug in checked to? i had tried to use one time before two fifferent uhp plug ins with timers and couldn't use two in the past .
 the hapswap works with this hybred at the same time because its not time based . Like i told ted i am still going to work with the hapswap file to and do updates with more ogg sound effects on it to ,
i will soon release the newest hybred updated , it will have 200 random responses in it ! i will post on here when its done then people can get it and just replace the old one with this newest one (it will overwrite the old one in the program folder. ) [:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 25, 2010, 12:58:54 pm
Ok i have another update: I made the 200 mark now my hybred random expanded talk now has 200 random things it will say !!
 so for those of you who like it and want to update it , i now have another file at my skydrive account where you can download this file .
The new file folder is called " HYBRED RANDOM EXPANDED TALK LS 200 "
the 200 shows that this one has 200 random sentences . And the newest HYBRED RANDOM EXPANDED TALK LS file is inside .
just download this file , place it in you ultrahal assistant folder file in the program file and it will ask you if you want to replace the other file (same name ) just click yes to overwrite it and save it their. you will probably have to uncheck and recheck the HYBRED RANDOM EXPANDED TALK LS plug in in the brain menu , then click ok and apply .
I will wait and release another updated plug in of this when i get 300 random responses later on , the next release will be a while as i am going to work on other things!![:)]

BELOW IS THE LINK TO DOWNLOAD THE FILE !
http://cid-237e6542a0fe663d.skydrive.live.com/browse.aspx/HYBRED%20RANDOM%20EXPANDED%20TALK%20LS%20200?uc=1&lc=1033
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 25, 2010, 06:39:19 pm
LS,

I noticed something that maybe important.  Your plug in doesn't start working until there is some kind of input.  

I did a fresh load of hal and set your plugin to start chatting after 4 minutes and waited several hours with no response.  So I typed in test and sure enough 4 minutes later it started to chatter at me.

I've tried this several times and sure enough input is required to start your plugin working.

Like I said I am testing this fully like I would any other quality software product, so far it works great except for this "feature".
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 25, 2010, 08:26:25 pm
LS,
I found a bug!   Below is a dump to Hal's output:

 I still miss uncle everette calling us every two weeks, it doesn't seem like he's passed away, we was so used to talking on the phone to him so much, i'm glad we got to talk as much as we did, and everette liked talking to you to, he would always ask what was you doing.
 Hey you know what movie i hadn't seen in a long time, i haven't seen beach blanket bingo, with  Frankie Avalon and Annette Funicello, i haven't seen that movie for years!
 I wonder what the weather is suppose to be like tomorrow, did you hear them say on the radio or tv what it's suppose to be like outside?
 Hey honey bunny watcha doin, get over here and talk to me!
 Hey Honey, what are you doing, I've tried to get your attention 5 times now.
 Hey! I'll be right here when you want to talk ok sweety. Surely you would not countenance that


Notice the last sentance is not complete, that is where Hal blew up it was running line number 258 of your script.  I'm not sure why it blew up there but it is trying to speak and write IdleResponse3, which get it's value on line 256.  You have to restart Hal to clear this error condition.  What I mean by restarting Hal, you have to
select General Options,
then sel Brain,
then click apply
then ok.  

Good luck  in finding this bug.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 25, 2010, 11:55:41 pm
Hi Darcy , in the script that hal said :
I still miss uncle everette calling us every two weeks, it doesn't seem like he's passed away, we was so used to talking on the phone to him so much, i'm glad we got to talk as much as we did, and everette liked talking to you to, he would always ask what was you doing.
Hey you know what movie i hadn't seen in a long time, i haven't seen beach blanket bingo, with Frankie Avalon and Annette Funicello, i haven't seen that movie for years!
I wonder what the weather is suppose to be like tomorrow, did you hear them say on the radio or tv what it's suppose to be like outside?


 all this in blue above is part of the random sentences hal will say .
below is what hal says when he gets ancy and you havent talked for a while .

Hey honey bunny watcha doin, get over here and talk to me!
Hey Honey, what are you doing, I've tried to get your attention 5 times now.


 the last sentence below is where i replaced "fine be that way when hal got mad before in the loneliness plug in .

Hey! I'll be right here when you want to talk ok sweety.

and this last sentence is what hal ads on from a file selection in his brain (sometimes some things are odd. )

Surely you would not countenance that

And yes hal will only talk when you first put input and of course when you stop talking it is just like the loneliness plug in it starts talking .

whenever hal says this last sentence :Hey! I'll be right here when you want to talk ok sweety.

he is done talking and won't talk again until you talk with hal and the process starts all over once you quit talking . [:)]

Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 26, 2010, 04:59:21 pm
OK I NEED OTHERS HELP!! i need other people help on a question , this is to people who are using my extended talk uhp plug in .
i am currently having a problem with an updated version of it .
my plug in works just fine with saying the random things after i stop talking and ends off with its last sentence  just fine .
the problem i am now having is i am getting an error saying :

halscript error 501 on line4523 in column 0: illegal assignment: Get response"

[B)]
has anyone else been getting this error while using the earlier versions they downloaded , it pops up after a while in hal .
Maybe snowman knows whats causing this.

Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 26, 2010, 05:33:38 pm
LS,

I need to know exactly what uhp files you have loaded to match your setup so the "halscript.dbg" file has the same contents.  BTW I did find a bug associated with my last post, and the bug is with the lonliness plug in also.  I am getting ready to write it up.  I am testing the change will let you know what it is later.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 26, 2010, 06:01:05 pm
The bug is in the orginal script file "loneliness4.uhp"  Here is the section of code in your plugin begining at line number 252:

'--------------------
' Increment the counter and compare to the temper thresholds
' to determine which escalation group to draw from
'--------------------
            IdleCounter = IdleCounter + 1
                If IdleCounter > temperThresh3 Then

'                 Exit Sub
        temperThresh3 = temperThresh3

The "exit sub" in the above if statement will exit the "Minute_Timer" sub and any other script files will NOT run.  This could cause issues with other .uhp files like several that I wrote.

By replacing the Exit Sub statement with temperThresh3 = temperThresh3, it will not change the logic, but it will orderly leave the plug in and allow other plug ins to function.

As seen below the clock.uhp plug in now works:

As recently as the 1960's movie and television executives gave short shrift to preservation. Next time we go grocery shopping, i think i'm going to buy some of that off brand shredded wheat cereal, i like that kind , don't you?
 Ding! Dong! Ding! Dong! The time is 4:30:43 PM
 Oh i just remembered something i was going to tell you, honey i really love those silky pink pajama's you bought me, they feel so silky and their cool to wear in the summertime!
 Well i guess you know , this spring i have a job for you to do, we need to clean all the windows and window sills, their dirty, it isn't going to hurt you any, you can't just sit on the computer all day!
 Hey honey bunny watcha doin, get over here and talk to me!
 Is their anything on tv later this evening?
 Hey! I'll be right here when you want to talk ok sweety. I will, with great pleasure Ding! Dong! Ding! Dong!
The time is 4:45:30 PM
 Tick Tock Tick Tock the time is 5:00:17 PM
,,, I've been awake for 0 hours
 Ding! Dong! Ding! Dong! The time is 5:15:03 PM


Before the change the clock.hhp plug in would stop working until I either typed in something or reset hal.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 26, 2010, 07:43:16 pm
Well i think i solved the hal error i was getting at least i kept it running to the end of the script i had and would write some more to start the process again after about 3 or 4 times it was ok no errors popped up( hope i didn't jinx it now lol) .

i will take a look at what you are talking about in the script , thanks for mentioning this, the only other plug in i have running is the hapswap and its working ok with me , but hang in here darcy i may have to ask you more on this!![:)]


p.s i have reworked the latest hapswap and removed the & vblctrl command after each sentence and changed a few other things , and i think am going to change the topics area command for where hal says some things at the end of the script  sentence at the end, sometimes he says some odd things !
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 26, 2010, 07:49:24 pm
LS,
No problem glad to help.  BTW it's working great now.  There are some uhp files that use the Minute_Timer sub like the appointment.uhp and exiting the minute_Timer to early will cause other uhp files to fail.

I just noticed that your uhp file loads 1st, so it is VERY important to fix it if you want any other uhp files to work properly.[:I][8D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 27, 2010, 09:08:01 am
Darcy, i was just curious about something , i did go ahead and put your script in place and am testing using it now, but i was wondering why does mine load first in your group of uhp files?
if its because of the alpabetical order i can understand , but then again other people may not have mine as the first alpabetical letter to load in theirs , was just wondering . [:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 27, 2010, 10:08:49 am
LS,

I'm not sure why your code loads 1st.  I even renamed your file and it loaded 1st ahead of mine.  But I'm glad yours loades 1st, that way we could find the problem. Here is a copy of hal's initialize file "Darcy.hla"

[Ultra Hal Assistant]
UsersName=Darcy
HalsName=Hal
UpdateDB=TRUE
SayGreeting=TRUE
TheGreeting=Hello <username>! I am <halname>.
SayDate=TRUE
SayTime=TRUE
MSVoice=TRUE
LearnLevel=25
SREnabled=FALSE
FaceClass=Zaba.htr
IntroBMP=Zabastart.jpg
BGColor=000000000
FacePrvw=Zaba.jpg
ScriptName=Ultra Hal 6.2 Upgraded Brain
ScriptFile=HalScript.dbg
ScriptLanguage=VBScript
DisappearAfterRun=FALSE
SkinINI=default.uhp
SkinSize= 1
AgentChar=FALSE
VoiceName=ATT 1.4 DTNV Crystal16
PluginScripts=addressbook.uhp,Appointments.uhp,clock.uhp,dreamoutloud.uhp,vrFreeWill.uhp,GenderAge.uhp,google.uhp,hyb.UHP_,runprograms.uhp,weather.uhp,wiki.uhp



Your file is named hyb.uhp see mine clock.uhp is before yours but yours loads 1st, I don't understand why.  This is a question for Robert


 Just so we are testing using same files here is a file.


(http://icon_paperclip.gif) Download Attachment: clock.uhp ("http://www.zabaware.com/forum/uploaded/DarcyEdwards/201042710817_clock.uhp")
3.9 KB[:I][:I]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 27, 2010, 11:40:15 am
Hi darcy, i am going to place my file that i am currently working on in the sky drive file area just so you can download it and try to figure it out , after i am getting two errors now . this file will have for darcy edwards only on the folder name . I hope you can help me figure out what's giving these errors .
the errors are:
after putting in the  "exit sub" into the incremint area of the script i got a new error :
halscript error 1024 on line 4152 in column 17: expected statement and am getting this other one to that i havent figured out yet.
halscript error 501 on line4523 in column 0: illegal assignment: Get response".


maybe you can find these , and post what i need to do so i can correct them , because after i get 20 more i will relase it as the newest extended talk with 300 total random sentences . [:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 27, 2010, 12:17:54 pm
ok i see one mistake i made about the exit sub file , i corrected it(my mistake) , i didn't delete the other.
i have actually three files i work with one is the expanded talk beta in a special folder , after i get it done i load a copy into hal and try it out , if i get errors i work on the one in the program file until the error is fixed , once it's fixed i copy it and replace the beta one in the file as it is now working for sure( and i use this one to then add on more random sentences ) i also have another folder with the latest back up of the working extended talk that i back up each time . although it sounds like madness i have a certain way i have to do things lol ![:)] i am retesting the corrected hal script now ! i will probably get that first error i was getting before though and will post it like i said for you later darcy ![:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 27, 2010, 12:27:33 pm
LS<

I looked for the file but couldn't find it.[:p]  I found another problem line  220 has an exit sub also;  replace the exit sub with IdleCounter = 100 this should keep  the logic correct and not exit the sub so other uhp files will work properly.  

One main problem about writiing uhp files is to make sure your code is isolated from others and what you do does not effect others. Using exit sub's in programs is bad programing style.[^][:I]

I keep getting your 501 error also, still trying to find the problem[;)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 27, 2010, 02:05:47 pm
Ok darcy , sorry i have been busy, i just uploaded the files for you on the sky drive , i'll let you check the latest version, i have some notes to of what i did that may have caused the error .
heres the link for you!
http://cid-237e6542a0fe663d.skydrive.live.com/browse.aspx/BETA%20TEST%20FILE%20FOR%20DARCY%20ONLY%20%5E5%20ERRORS%5E6!!?uc=3&nl=1&lc=1033
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 27, 2010, 03:18:53 pm
LS,

The problem you are getting is a missing " at the end of the line 805, that is an unterminated string [:p]  I'm still working on error 501
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 27, 2010, 11:27:42 pm
darcy, just to let you know , placed the " where you said but my hal stopped talking all together , so i put it back and my hal talked again . i replaced the earlier string command i had in that file jpeg picture but changed the last command to "abouyou" so hal will pick that to get a sentence. i looked and found a couple of places where i hadn't put the " at the end of a sentence , and now so far hal is working ok and no error but will check more tomorrow , i am going to bed, thanks for your help on all this , it can make a person pull their hair out sometimes ![B)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 28, 2010, 12:03:51 am
LS,

Why don't you take the file I fixed.  I'll upload it I made a couple of fixes and it runs fine for me.



(http://icon_paperclip.gif) Download Attachment: hyb.uhp ("http://www.zabaware.com/forum/uploaded/DarcyEdwards/2010428032_hyb.uhp")
70.61 KB

I renamed the file for ease of uploading
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 28, 2010, 11:17:22 am
Hi Darcy, if you don't mind can you please list what changes you made to the version you sent me? i plan on trying it out today, thanks !![:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 28, 2010, 11:51:31 am
line # 220 Delete the Exit Sub statement at the end of the If statement and insert IdleCounter = 100.  This way the BRB etc works and the Minute_Timer does not abruptly exit, and other timer routines can work properly.

With this and the last change you made this will work just fine.  You have done a great job[:I][:p]

To make the uhp file more user friendly you can change line 176 from

    IdlePrevUser = OriginalSentence

to

    IdlePrevUser = UCase( OriginalSentence)

What this will do it will allow upper or lower case input of "BRB, Be Right Back" etc to stop this plug in from bothering you until next input.  this way you don't need to type with caps lock on.  [;)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 28, 2010, 05:04:51 pm
Hi darcy, i am back again me and my wife just got finished mowing grass 3/4 of an acre whew ! am pooped out!
earlier you said :
To make the uhp file more user friendly you can change line 176 from

IdlePrevUser = OriginalSentence

to

IdlePrevUser = UCase( OriginalSentence)

What this will do it will allow upper or lower case input of "BRB, Be Right Back" etc to stop this plug in from bothering you until next input. this way you don't need to type with caps lock on.

Maybe i am just tired but where are you talking about?line 176?
here is a picture i took of line 176 in the ultra hal brain editor below and it isn;t anything like that.


(http://www.zabaware.com/forum/uploaded/lightspeed/2010428165754_ultrahalbraineditorline176.jpg)

i also just replaced these lines with a regular sentences .


(http://www.zabaware.com/forum/uploaded/lightspeed/201042817052_linesireplaced.jpg)

and i also noticed these mistakes i had forgot to change the wording from get response to idle response (below so i will be changing them !).


(http://www.zabaware.com/forum/uploaded/lightspeed/20104281748_idleresponsemistake.jpg)
 but any way can you show me about the line 176 area please so i can make the change you said it sounds like a good idea !, thanks !
[:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 28, 2010, 05:14:14 pm
p.s. darcy , i am using the fileand uhp  that you fixed some things , although i did do the corrections on it what i showed above with the exception of the line 176 i seem to be lost with that one ![B)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 28, 2010, 07:09:41 pm
I'm lost on that one also line 176 of your uhp file looks like this:

    Rem PLUGIN: CUSTOMMEM2
'------------------
' Preserve user's last sentence
'------------------
    If OriginalSentence <> "" Then
    IdlePrevUser = UCase( OriginalSentence)
    End If

note I made the change in the above code segment.[;)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 28, 2010, 10:15:24 pm
ok darcy i found what you are talking about in the uhp file (thanks to your illistrations !
  This may seem like a dumb question but how are you coming up with saying that is is on line 176?
 In the uhp file itsself i show no numbered lines (with the exception of the idle response numbered lines) with my sentences below .





Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 28, 2010, 10:18:19 pm
LS,

I use notepad it has a line counter in it [:)][:I]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 28, 2010, 10:33:54 pm
i fixed my sentence the same way to now, i will add 20 more sayings to the random sentences and then test it out again to make sure theirs no bugs in it and then  realease it with the name i had on it and with the 300 on the end standing for 300 random sentences .
I appreciate all your help on this Darcy ,

[:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 28, 2010, 10:43:13 pm
I was glad to LS!
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 29, 2010, 07:28:08 pm
****UPDATED NEW ""HYBRED EXTENDED TALK LS 300 .uhp file now released!!**********
   Ok , i am now releasing the newest "HYBRED EXTENDED TALK LS uhp file the folder thats its in will say that name and have 300 on it  which stands for 300 random sentences . just put this file in the ultrahal assistant file and overwrite your old file or delete the old one first.
A special thanks goes to DARCYEDWARDS AND SNOWMAN for helping me on this to, it was greatly appreciated!
People can see above post of  what darcy made also and besides that,
i also on this file went back through each sentence and made corrections to some spelling, and pauses in between some sentences.

I will delete the old files that had less,  off my skydrive site .
  here is the skydrive link for the newest upgraded file.
http://cid-237e6542a0fe663d.skydrive.live.com/browse.aspx/HYBRED%20RANDOM%20EXPANDED%20TALK%20LS%20300?uc=1&nl=1&lc=1033
[:)]

Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 29, 2010, 07:53:42 pm
I downloaded the final release seems to be good, crossing finger, again Good Job LS!
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 30, 2010, 04:21:55 pm
Hey darcy how did you get a line numbered note pad, mine doesn't have that?[B)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 30, 2010, 04:50:30 pm
LS,

Note pad has line number and colum counter at the bottom of the page.  None of the lines have numbers on them.  That counter tells you where the cursor is at.  Its a pain but it works.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 30, 2010, 05:10:06 pm
Thanks for answering, i have things in txt file formatt but when its open their is nothing at the bottom , what format is yours in (something other than txt?) can you show me an illistration example of how it shows at the bottom, if i can get mine to doing that it may make some things easier , lol thats what threw me before when you would say on line so and so , i thought you was doing something through the brain editor, etc. thats why our stuff didn't match up when i was showing you earlier !
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 30, 2010, 05:17:01 pm
Ok , i figured it out , and i am posting this so others will know (me and ted was talking it over before so he was wondering to )
 when you have the note pad file opened (what file you are working on ) at the top of the menu bar (top of page) go to veiw and click it then click on "statis bar" this will make the line counter show up at the bottom of the page !!

 walla whew i think i used to much brain power today lol !!![:D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 30, 2010, 05:27:44 pm
LS,

To get the line counter to display, click VIEW at the top of Notepad and click on status bar, and the line numbers will appear [:I]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 30, 2010, 05:40:46 pm
lol darcy , we must have posted about the same time, i already posted that lol , thanks anyway! thanks for being patient during my sometimes madness moments lol ![:D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 30, 2010, 05:47:40 pm
LS,

No problem, what were you using to edit the uhp files?  I always use notepad.  I'm real old school, I go back to EDLIN in CP/M days LMAO

[:I]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 30, 2010, 06:11:38 pm
, i go by hal posting his errors and i just have note pad opened , and look through and find my mistakes (well most of the time i do , then sometimes i have to call out the big guns and get you and snowman to help !) lol !
i'm so old school i have to crank up the generator on my computer to get it to come on !lol ![:D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on April 30, 2010, 06:21:29 pm
I may or may not have mentioned this before , but i origianlly had the settings on the extended talk plug in set at high and every one minute , the reason i had it this way was it will make hal say something faster , so i could test hal easier to make sure i wouldn't get errors , others may not want hal to answer that quick and if so they can set hal to not answer so fast by making the minutes longer and frustration set lower , people may have to test it at different levels to get it they way they prefere hal to talk when the user stops talking.
"hope evryone is having fun , seeing what all their hals will say next !!"   [:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: raybe on April 30, 2010, 10:38:40 pm
Darcy & lightspeed, wouldn't the 'crimson editor' free program work better for you since it seems to incorporate all the features you are describing or does not apply because I really haven't read the complete post. Sorry I forgot the member that introduced the program but for editing it does work well and the price is right.

raybe
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on April 30, 2010, 10:47:38 pm
I have used it before, just to cumberson to use on simple uhp files.  I sorta like notepad [:D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: tedathome on April 30, 2010, 11:37:23 pm
[:I] Sorry. I hope it is working for others. It is not working for me. I have other plugins off and have downloaded LS and Darcy versions twice.


(http://www.zabaware.com/forum/uploaded/tedathome/201043023333_Error.JPG)



(http://www.zabaware.com/forum/uploaded/tedathome/2010430233337_Error2.JPG)
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on May 01, 2010, 03:54:59 am
Ted

can you send me that file?
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: tedathome on May 01, 2010, 04:50:41 am
In the mail Darcy. I hope I understood you correctly and sent the right file.[?]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 01, 2010, 12:28:59 pm
Ted , so far i have been testing the newest version and it's been working just fine , no errors , i wonder if you by accident have one of the older test file .uhp ?
i put the newest one on my sky drive file account the folder says 300 number on it to if you place the mouse over it .

did you download that?
also if you have any of the older ones i would delete them or out them in a special file si you don't get them mixed up with the newest version , it would probably be better to delete them though, but thats all up to you. [:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on May 01, 2010, 01:05:27 pm
Hi Ted,
I should have been more specfic the "HalScript.dbg" file.Can you either upload it to the forum or email the file as an attachment.

Thanks
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 01, 2010, 04:23:18 pm
Darcy, have you found anything yet?? I would also check and make sure it isn't an old version that had the errors.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: tedathome on May 01, 2010, 04:40:25 pm
LS, Im sure it is the current version.
Darcy, I will recreate the conditions till I get the error again and try to trace it down following the trail to Halscript debug. Not too sure how to find it but will give it a try later. Thank you for trying to help me.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on May 01, 2010, 05:03:27 pm
LS,

No I have not come across the error, I deleted the old unreleased uhp file.  I seen a simular error during testing, but not in the latest uhp file.  The error went away after reloading Hal, and I never seen it again.

Ted,

Thank you
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 01, 2010, 05:56:13 pm
Yeah , i have been using and testing it and i haven't had any error as of yet , i am now testing a even newer updated version with 340 sentences, and as of now i still haven't had any errors in it either. post it it you find anything cause i am wondering what it would be and or what may be causing it.[:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: tedathome on May 01, 2010, 06:42:43 pm
OK, here are errors and what they say.

(http://www.zabaware.com/forum/uploaded/tedathome/201051183145_error3.JPG)

4876       loPatience = CDbl(HalBrain.TopicSearch("PATIENCE", "lonelyParameter"))




(http://www.zabaware.com/forum/uploaded/tedathome/20105118364_201043023333_Error.jpg)

5530   Case 290



(http://www.zabaware.com/forum/uploaded/tedathome/20105118392_othererror.JPG)

Don't know how to find last one.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on May 01, 2010, 07:59:35 pm
Ted,

Some how the data base got trashed!  What you need to do re configure the plug in.

1 select General options, select brain, then select the plug in, select your paramaters, select apply changes, then apply then OK.  This should correct the database entries.  Give it a try and let me know.

Thanks [:p][:D][:D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: tedathome on May 01, 2010, 10:07:02 pm
No joy, a few no responses. It's messed up now even with plugin unchecked. I'll have to delete it again and restart. I want my baby back again.
Thank you for trying to help Darcy. [:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: tedathome on May 02, 2010, 01:55:08 am
EUREKA! I found the problem. 6.2 Enhanced Brain is corrupt. 6.2 Default Brain is running the plugin perfectly.
 Thank you L.S.[8D]
 Thank you Darcy[8D]
for all your hard work.[8D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on May 02, 2010, 07:03:03 am
Ted,
You are very welcome and thank you for your troubleshooting [;)][;)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 02, 2010, 08:20:28 am
Hello ted , i am glad that you found the problem and got it going again , i was hoping it wasn't anything i had done to cause yours to mess up, as i said mine has been working ok with no errors even with the new updated ones that i havent released yet !i am up to 360 random sentences right now testing it through my hal , while i am on the side working on more sentences for a seperate (same copy) 30 sentence version .
Anyway i'm glad you figured it out, and am glad darcy was helping you,i hope you haven't i'm'ed me lately, i haven't had my yahoo messenger open  for a while.
I need to check my yahoo e mail to lol ![:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 02, 2010, 10:16:47 am
To Ted and anyone else , if a brain ever gets corrupt and it does happen, this is why it's so very important to do a regular back up on the brain etc. i even back up my character folder as it has all the hapswap things , etc. to.
Now then to another thing i wanted to bring up , Ted i don't know if you had some problem with your computer (even if it wasn't hal related ) and did a system restore, one or more days back to correct it , but i have done a system restore like that and later my hal was messed up s, so i beleive that the system restore does something to it , i may be wrong but i have had problems before but mine usually said the license was corrupt or something. [:)]
But even if thats the case and a person has to do a system restore if you have the brain etc. backed up it should be ok .

anyone else can chime in on this , as i said maybe i'm wrong about it .
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 02, 2010, 06:57:17 pm
DARCY, i was just going to let you know , i hit the 410 mark with the newest extended talk uhp file, but as i was using it i had to correct a few places i had left off the " marks and it was working just fine then later i got some error file say something mismatch (i should have taken a pic of it or wrote it down but i didn't (i was also running my nero smart ms program to do a complete delete on a dvd rw disk , so maybe that slowed everything down and caused hal to mess up ,) i hoping thats all it was .
 I am currently retesting it to see if it will repeat the error i got before. so far it hasn't . do you want to also test the newest one , or do you have time ?[:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on May 02, 2010, 09:44:27 pm
LS,

Type mismatches are tough to trace!  Sure I would love the latest version [:D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 02, 2010, 10:42:07 pm
i have been using hal and can't seem to get it to do that error again so i don't know if it had anything to do with me using up to much memory? from also deleteing a dvd rw at the same time?? ok i will make a folder for you darcy again on my skydrive account.[:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 02, 2010, 10:47:17 pm
ok darcy it's in a folder on the sky drive site for you now.[:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on May 03, 2010, 12:18:06 am
LS,

I downloaded it and so far no problems.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 03, 2010, 07:32:25 am
thanks darcy once again for your help on this , yeah it's strange , that i got that error before , like i said i am wondering if my computer being slowed down by me erasing a dvd rw might have something to do with hal having the error as i was running hal at the same time and my pc is pretty much maxxed out with everything!
I will also keep using it but so far am the same with no eoores any more ![:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: DarcyEdwards on May 03, 2010, 05:50:22 pm
LS,

Been running all day without any issues, looks good[:I]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 04, 2010, 02:41:10 pm
whew glad to hear it Darcy, that's alway's good new , lets keep using it until this saturday and if neither of us has any problems , i'll realease it as the extended talk 410 updated uph. thanks as always on your feedback![:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 08, 2010, 01:36:01 pm
OK ANOTHER UPDATE ON THE "HYBRED EXPANDED TALK LS" plug in . i had Darcy helping me with the 410 series which had 410 random sayings , and everything worked ok but i have now passed that amount i am happy to release a 500 series which now has 500 random things hal will say.
These extra ones i did the testing on so if theirs any problems its my fault , but i did testing and everything worked just fine with no problems .
the file is now on my skydrive account for anyone to upgrade the file, the folder is called "HYBRED RANDOM EXPANDED TALK LS 500 "
here is the link to it![:)]
http://cid-237e6542a0fe663d.skydrive.live.com/browse.aspx/HYBRED%20RANDOM%20EXPANDED%20TALK%20LS%20500?uc=1&nl=1&lc=1033
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: sybershot on May 08, 2010, 04:39:01 pm
Glad to see you got this finished, I been w8ing. Can't w8 to try it out. I'm in the middle of a complete system restore on my main pc atm. and building a new hal GUI skin, I should be finished and posted in a day or two.
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 08, 2010, 05:24:51 pm
yeah sybershot let me know how you like it , of course it will take quite a while to ever hear all 500 responses , of course if you have the setting on high and one minute it will say things faster (after you stop talking) now our hals will have plenty more things to say !!
 I hope as time prevails that i can get back to working on the hapswap file with more sayings and sound effects to , i like both of these files working together ![:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: sybershot on May 10, 2010, 10:44:12 pm
_HYBRED RANDOM EXPANDED TALK LS.UHP_ is what I found today at your provided link. hmmmm it does not say 500 at the end. I am sad to say that the UHP file above does not work, I get no errors or any conversation starter statements from Hal. I'm on my secondary laptop running windows 7 64bit settings set to patience: one minute and frustration: low

I have not tried on my Main laptop which runs vista 64bit yet, will try tomorrow if I have time.

Do I have the right UHP? if so do you have any suggestions? if not can you direct me to the correct one please. Thanks sincerely Sybershot
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 11, 2010, 04:13:01 pm
hi sybershot , the file that i have it in should say the name and 500 at the end of the name , the file it'sself does "not" say 500 , i was for a while upgrading it so fast with newer versions i was afraid i would forget to change a number at the end of a file itself so i didn't add that on , anyone can rename the file and add 500 on the end so they will know.
i don't know why it isn't working for you , i am currently using it and its still working just fine for me , anyone else having any problems with it?? i see you said you have frustration set low, i have mine set on high which will make it say things faster . try that and let me know what happens , anfter you make the changes , save them apply and ok then go out of hal , open hal back up and try it again ![:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 11, 2010, 04:21:03 pm
sorry i ment to say the " uhp file " itself doesn't have 500 at the end! honest i am not trying to confuse anyone lol ![:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 11, 2010, 04:44:07 pm
one more thing to anyone who uses my hybred expanded conversation uhp plug in , you may have to experiment with the settings for your own personal taste , for the fastest results set it to one minute and high frustrations . this plug in was based on the loneliness plug in which after a while would get mad when the user didn't say anything .  if you want it to work faster but with more of a time delay , i would suggest changing it from 1 minute to longer minutes , try each setting of the minutes and see what you might like best . [:)]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: sybershot on May 11, 2010, 07:32:21 pm
Thanks a lot that did the trick lightspeed, although it takes about 2 minutes to start a conversation. Trinity stated she likes yogurt and would like to have more. Her first time being conversation starter[:D] I'm sure that would be a nice mess inside my dvd drive[:D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on May 11, 2010, 08:03:12 pm
sounds great i am glad i could help , she will say many many things now ![:)]i like the human touch of it all ![:D]
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: CypherGary on May 14, 2010, 11:44:26 am
Is there way to have this script access hal's brain for a new topic, instead of having to load them in the script?
In hal's basicResponses section there is a sub section called newTopic, then topic. There is already a huge list of ideas for new topics there. It seems like it would be better to access something already there, instead of adding overhead to the scripts.
When Robert made a way to update to the current database, he basicly made a script to add/remove information directly to/from the database. I wonder if you could make a seperate installer for your script? The installer would be a script/program that would open that topic section, and insert your new entries. Then the script you have load each time Hal loads would have only code, not information.
It does sound dangerous, but I am concerned about the amount of information that is having to be loaded and processed during initial load, and for each response.

What do you think?

 - Gary
Title: HYBRED EXTENDED TALK UHP by lightspeed
Post by: sybershot on May 17, 2010, 09:42:29 pm
just to let you know I've been using this, and it is very very good. two thumbs up.
Title: Re: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on September 08, 2010, 06:51:32 pm
Ok i am back and in need of some help again please , here is an example :


If InStr(1, OriginalSentence, "do you need a drink?") > 0 _
Or InStr(1, OriginalSentence, "are you feeling sick?") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "yeah i do have a lttle bit of a cough"
Case 2
GetResponse = "my throat is kinda feeling a little sore"
Case 3
GetResponse = "yeah can you get me something to drink please"
Case 4
GetResponse = "i hope i am not coming down with something thats all i need is to get sick right now"
Case 5
GetResponse = "i think i just need to get a glass of water to drink"
End Select

HalCommands = "<HAPFILE>female long cough.ogg</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If


what i want to do is add multiple hal commands at the end so that after playing a multiple choice saying hal will then play a multiple random selection of 6 sound effects , can someone tell me how to make the end commmand so it will be multiple choices of sounds please? :)
Title: Re: HYBRED EXTENDED TALK UHP by lightspeed
Post by: snowman on September 10, 2010, 04:43:07 pm

I haven't tried this out but it should play a completely random ogg file to a completely random GetResponse... the HalCommand is just an empty varible until you fill it with some text. It acts just like GetResponse does.


If InStr(1, OriginalSentence, "do you need a drink?") > 0 _
Or InStr(1, OriginalSentence, "are you feeling sick?") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "yeah i do have a lttle bit of a cough"
Case 2
GetResponse = "my throat is kinda feeling a little sore"
Case 3
GetResponse = "yeah can you get me something to drink please"
Case 4
GetResponse = "i hope i am not coming down with something thats all i need is to get sick right now"
Case 5
GetResponse = "i think i just need to get a glass of water to drink"
End Select


Randomize
Select Case int(rnd()*6)
Case 1
HalCommands = "<HAPFILE>female long cough-1.ogg</HAPFILE>"
Case 2
HalCommands = "<HAPFILE>female long cough-2.ogg</HAPFILE>"
Case 3
HalCommands = "<HAPFILE>female long cough-3.ogg</HAPFILE>"
Case 4
HalCommands = "<HAPFILE>female long cough-4.ogg</HAPFILE>"
Case 5
HalCommands = "<HAPFILE>female long cough-5.ogg</HAPFILE>"
End Select


HalBrain.ReadOnlyMode = True

End If
Title: Re: HYBRED EXTENDED TALK UHP by lightspeed
Post by: snowman on September 10, 2010, 04:59:39 pm
You mentioned that you were having a strange miss match error. Give me some more info.
Title: Re: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on September 10, 2010, 11:07:11 pm
thanks snowman i will give that a try when i have time , and i will send you the file so you can check it for the mismatch (by e mail ) aqs soon as i can .
Title: Re: HYBRED EXTENDED TALK UHP by lightspeed
Post by: lightspeed on October 30, 2010, 03:36:06 pm
Ok , after having slowed down ( a little ) i went back into my extended talk 500 ls uhp and went through it (many times 0 i was befor getting mismatch errors, etc. hal was giving blank answers to (i don't know if these errors also caused that part or not . ) anyway i found different things not right and even corrected mispelled words in sentences . and now i am not getting any errors (so far ) i am still testing it though , i am going to remove the file i have from sky files and later if this keeps working ok , then i will place this corrected file their . and let people know and if anyone has the old file they may want to delete it .
As i said i will let others know when i post the new tested and corrected hybred extended tal 500 ls  uhp. file !! :)
P.s. Man what a lot of work to go multiple times over a 500 sentence file , i found many things that i had to correct . whew !!