dupa

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lostbowyer

Pages: 1 ... 3 4 [5] 6 7
61
Ultra Hal 7.0 / Script takes longer than expected error
« on: September 04, 2003, 03:15:33 pm »
It's happening with a 2d character as well, at times I am experiencing up to a 41 second delay between hitting the enter key and receiving a response from hal. Performance is better with a 2d character, but still the occasional long delay. It usually occurs if a sentence has an "and" statement in it where hal has to consider both options.

62
Ultra Hal 7.0 / Hal 5 Beta has been released!
« on: September 04, 2003, 02:22:06 pm »
It means you broke it!! BAD! BAD USER!! [^]

Seriously, it could just be a bad download or corrupt install, What OS are you using? If at first you don't succeed, try try again [:o)]

63
Ultra Hal 7.0 / Changing "x" on the character tab
« on: September 04, 2003, 02:17:16 pm »
I hope all the seperate topic headings for items noted don't bother you, I'm in support and we always keep issues seperate. I noticed on the character tab in the basic configuration screen, the "x"s change. I noticed that if I open it the first time everything looks as I would expect it, IE: haptek figures have 3D, Lip Sync checked, and Desktopmates have detachable and lip sync checked. If I make no changes, close the configuration screen and re-open it later, now for example, the desktopmates will have an "x" under 3d.

It's no big deal, but I thought I would mention it.

64
Ultra Hal 7.0 / No Lip sync with Sapi 5 speech engine & Haptek
« on: September 04, 2003, 01:18:37 pm »
Why is there no lip sync support between sapi 5 speech engines and haptek figures in hal? I thought Haptek characters supported sapi 5 engines?

65
Ultra Hal 7.0 / Script takes longer than expected error
« on: September 04, 2003, 01:14:57 pm »
I'm running on a Sony picturebook, 600mhz 256mb ram. Using haptak figures in hal, I am getting a popup window while hal is processing a sentence. The popup reads "The Script is taking longer than expected to complete" There are 2 buttons beneath that which read, cancel and continue. If I hit continue, within a few seconds hal responds to my sentence. This is occuring every 4 or 5 minutes on my system.
If you leave open the popup hal will finally respond anyway and the popup goes away. Can the popup be disabled or the timeout extended?

Glenn

Forgot to mention I'm running XP proffesional

66
Programming using the Ultra Hal Brain Editor / What's for lunch
« on: September 03, 2003, 05:32:25 pm »
I needed to make a slight fix to the script. It has been corrected below.
A slight addition to the script, if you ask hal what he had for lunch and it's after noontime, hal will tell you he's eaten but also tell you what he plans to eat for dinner.

'What's for lunch
If InStr(1, UserSentence, " WHAT AM I HAVING FOR LUNCH ", 1) > 0 Then MyMeal = "lunch"
GetResponse = ""
If MyMeal = "lunch" And Hour(Time) > 12 Then
MyMeal = "dinner"
GetResponse = "I've already eaten lunch, but for dinner, "
End If
If InStr(1, UserSentence, " WHAT AM I HAVING FOR DINNER ", 1) > 0 Then MyMeal = "dinner"
If MyMeal = "lunch" Or MyMeal = "dinner" Then
RandomMeal = Int((Rnd * 10))
MyMeal = WeekdayName(Weekday(Date),True) & MyMeal & RandomMeal
Timeday = Hour(Time)
HalUserBrain = HalBrain.QABrain(MyMeal, WorkingDir & "Meals" & ".brn", UserBrainRel)
GetResponse = GetResponse & HalUserBrain & TimeDay & MyMeal & vbCrLf
GetResponse = HalBrain.HalFormat(GetResponse)
End If

Here is an updated Meals.brn it has the "0" choices added. You still have to customize your food preferences but it is a complete.

Download Attachment: Meals.brn
8.78 KB

67
Programming using the Ultra Hal Brain Editor / What's for lunch
« on: September 03, 2003, 05:10:58 pm »
The random number generator will produce a "0" afterall. The Meals.brn file will need one entry added for each day, lunch and dinner with the keywords "MONLUNCH0" "TUELUNCH0" etc....

I'm out of time today, I'll post an updated Meals.brn tomorrow with the additional 14 menu selections.

Glenn

PS The program does not error out if it generates the "0" it just doesn't return a meal.

68
Programming using the Ultra Hal Brain Editor / What's for lunch
« on: September 03, 2003, 12:34:05 pm »
Here's my first draft, it seems to be working fine. I'm going to try and attach a sample meals brain file. It has 9 choices for each meal (lunch and dinner) for the 7 days of the week. Most choices are currently the same as I cut and pasted to create the total entries required. Just edit the response lines with your favorite foods. There may be one bug, I'm not sure if my random number generator could produce a zero, if it can, then one more line needs to be added to each meal choice to accomodate the zero entry. I have not been able to produce a zero in my tests, but I'll keep checking and post if I do.

'What's for lunch
If InStr(1, UserSentence, " WHAT AM I HAVING FOR LUNCH ", 1) > 0 Then MyMeal = "lunch"
If InStr(1, UserSentence, " WHAT AM I HAVING FOR DINNER ", 1) > 0 Then MyMeal = "dinner"
If MyMeal = "lunch" Or MyMeal = "dinner" Then
RandomMeal = Int((Rnd * 10))
MyMeal = WeekdayName(Weekday(Date),True) & MyMeal & RandomMeal
HalUserBrain = HalBrain.QABrain(MyMeal, WorkingDir & "Meals" & ".brn", UserBrainRel)
GetResponse = HalUserBrain & vbCrLf
GetResponse = HalBrain.HalFormat(GetResponse)
End If

I hope you enjoy the script, if you cut and paste the above, note that the first 2 if statements line wrapped, make sure they are one line each after you paste.

Glenn

Download Attachment: Meals.brn
8.15 KB

69
Programming using the Ultra Hal Brain Editor / What's for lunch
« on: September 03, 2003, 10:22:19 am »
Don
Thanks for the information, my mind was out in left field and never gave it a thought to get it directly through VB Duh!

Glenn

70
Programming using the Ultra Hal Brain Editor / What's for lunch
« on: September 02, 2003, 05:09:54 pm »
Where does hal call the date/time function? Can that variable be entered into memory, or or called and compared?

While editing the pesonal question brain file created in Larry's script, I happened to think that it would be easy to add a subroutine so if a person asks hal for example "what are you having for lunch" the script would create a keyword by appending for example "lunch" with a random number from 1 to 10 and then searching a lunch brainfile for let's say "lunch7" and return whatever lunch number 7 might happen to be.

Now if I take that one step further, if I can pull in the day/date and can compare it, then I could have for example "thursdaylunch7" or "tuesdaylunch3" and one step further, comparing the time can return either "thursdaylunch7" or "thursdaydinner7" depending upon the time of day. All we need is the ability to access the time and date and compare it.

71
Programming using the Ultra Hal Brain Editor / Just answer the question!
« on: September 02, 2003, 10:09:34 am »
quote:
Originally posted by Larry

Lol... I actually had a fix for that, that might be a bit easier than what you did... I changed this line -> If UserBrainRel > 75 Then, then those short ones like you mentioned went through... but like every thing else, I found other bugs... I won't say that I've given up... but I've re-done that section AGAIN... I won't post it because now it has new bugs... lol
No wonder the Hal makers don't post updates...




That line was in the code I was using and it did not help the "short ones" from not matching.  That was the reason I added the forced keyword. Did you change it to a higher or lower value. I didn't think about it at the time but I bet this line is the reason hal has trouble finding "where were you born" if it doesn't come before "what place were you born" the match parameters are too loose at 75.

72
Programming using the Ultra Hal Brain Editor / Just answer the question!
« on: September 01, 2003, 05:43:53 pm »
That bottle of scotch was good Ahhhh.....[:p]

Ok Larry, I took your last fixed version, expanded just slightly the acceptable parameters (for my own needs) and added a forced keyword in order for phrases like "when is your birthday" to be recognized and matched. I used the forced keyword "PERSONAL" it is appended to the end of every UserSentence before it goes to keyword parsing and saving. So far all the questions that I had that were not being recongnized are now working.

I did note one observaton, if you have for example the phrase "where were you born" and What place were you born" the keywords respectively are "BORN PERSONAL" and "PLACE BORN PERSONAL" if the latter question is located higher up in the .brn file that the first question, the first will never be identified and the correct response given. The phrase with the keywords "BORN PERSONAL" MUST be located in the brain file before the "PLACE BORN PERSONAL"

FINAL NOTE AND WARNING: If you choose to use the patch below, you must either manually edit every keyword and append "PERSONAL" to the end of every keyword line, or you will have to redo all your questions and responses.

enjoy
Glenn

'Will you please just answer the question?
AboutMy = False
OpenQuest = False
If InStr(1, UserSentence, " ABOUT MY ", 1) > 0 Then AboutMy = True
If InStr(1, UserSentence, " ARE MY ", 1) > 0 Then AboutMy = True
If InStr(1, UserSentence, " BE MY ", 1) > 0 Then AboutMy = True
If InStr(1, UserSentence, " IN MY ", 1) > 0 Then AboutMy = True
If InStr(1, UserSentence, " IS MY ", 1) > 0 Then AboutMy = True
If InStr(1, UserSentence, " ON MY ", 1) > 0 Then AboutMy = True
If InStr(1, UserSentence, " AM I ", 1) > 0 Then AboutMy = True
If InStr(1, UserSentence, " WAS I ", 1) > 0 Then AboutMy = True
If InStr(1, UserSentence, " WERE I ", 1) > 0 Then AboutMy = True
If InStr(1, UserSentence, " DO I ", 1) > 0 Then AboutMy = True
If InStr(1, UserSentence, " AM I IN ", 1) > 0 Then OpenQuest = True
If InStr(1, UserSentence, " AM I A ", 1) > 0 Then OpenQuest = True
If AboutMy = True Then
If InStr(1, UserSentence, " DO ", 1) > 0 Then OpenQuest = True
If InStr(1, UserSentence, " WHAT ", 1) > 0 Then OpenQuest = True
If InStr(1, UserSentence, " WHERE ", 1) > 0 Then OpenQuest = True
If InStr(1, UserSentence, " WHICH ", 1) > 0 Then OpenQuest = True
If InStr(1, UserSentence, " WHY ", 1) > 0 Then OpenQuest = True
If InStr(1, UserSentence, " WHO ", 1) > 0 Then OpenQuest = True
If InStr(1, UserSentence, " WHEN ", 1) > 0 Then OpenQuest = True
If InStr(1, UserSentence, " HOW ", 1) > 0 Then OpenQuest = True
If InStr(1, UserSentence, " WHAT DO I CALL IT WHEN ", 1) > 0 Then OpenQuest = False
If InStr(1, UserSentence, " FAVORITE ", 1) > 0 Then OpenQuest = True
If InStr(1, UserSentence, " THINK ", 1) > 0 Then OpenQuest = False
If InStr(1, UserSentence, " WEATHER ", 1) > 0 Then OpenQuest = False
If InStr(1, UserSentence, " SPORTS ", 1) > 0 Then OpenQuest = False
If OpenQuest = True And AboutMy = True Then
UserSentencep = UserSentence & " PERSONAL"
HalUserBrain = HalBrain.QABrain(UserSentencep, WorkingDir & "PersonalQuestions" & ".brn", UserBrainRel)
Pass = False
If HalBrain.CheckRepetition(HalUserBrain, UserSentence) = True Or HalBrain.CheckRepetition(HalUserBrain, PrevSent) = True Or HalBrain.CheckRepetition(HalUserBrain, PrevUserSent) = True Then Pass = True
If Pass = False Then
If UserBrainRel > 0 Then
DebugInfo = DebugInfo & "Will you please just answer the question?: " & vbCrLf
DebugInfo = DebugInfo & UserBrainRel & vbCrLf
End If
If UserBrainRel > 75 Then
'found an answer
GetResponse = GetResponse & HalUserBrain & vbCrLf
GetResponse = HalBrain.HalFormat(GetResponse)
BlockSave = True
DebugInfo = DebugInfo & "Will you please just answer the question?: " & vbCrLf
DebugInfo = DebugInfo & GetResponse & vbCrLf
DebugInfo = DebugInfo & UserBrainRel & vbCrLf
Else
'save the question since it can't find an answer we'll just fix it manually later
AnswerSent = "@" & OriginalSentence
UserSentences = UserSentence & " PERSONAL"
QuestionSent = " " & Trim(HalBrain.ExtractKeywords(UserSentences)) & " "
If HalBrain.CountInstances(" ", QuestionSent) > 1 And BlockSave = False Then
HalBrain.AppendFile WorkingDir & "PersonalQuestions" & ".brn", AnswerSent & vbCrLf & QuestionSent
End If
UserBrainRel = 0
DebugInfo = DebugInfo & "Will you please just answer the question?: " & vbCrLf
DebugInfo = DebugInfo & "Saving new question: " & vbCrLf
DebugInfo = DebugInfo & AnswerSent & vbCrLf
DebugInfo = DebugInfo & QuestionSent & vbCrLf
DebugInfo = DebugInfo & GetResponse & vbCrLf
BlockSave = True
End If
End If
End If
End If

73
Ultra Hal 7.0 / Ultra Hal Assistant 5.0 beta
« on: August 27, 2003, 09:51:26 am »
quote:
Originally posted by UltrComp

quote:
Originally posted by lostbowyer

Damn internet explorer cache, This forum didn't appear in my browser until a few minutes ago. mumble sputter.........

Why is everybody uninstalling 4.5? I would assume the beta will either load into a different folder or you can direct it to a different folder during the install.



Whey are we uninstalling 4.5? What are we going to do with it. The 5.0 version was said to have a bigger and better brain file. If you get something with then what you have why do you need the old less good program? See my point.



Well someone said it in an earlier post, they wiped out all their brain files, with all the accumulated knowledge it contained. Previous upgrades were backwards compatible to retain the aquired knowledge, I can't see throwing everything hal has learned.

74
Ultra Hal 7.0 / Microsoft Mary
« on: August 26, 2003, 09:41:41 pm »
Jon that is a whole different story. Windows XP uses sapi 5.0 for it's speech. Adding sapi 4.0 only allows legacy applications the ability to use sapi 4 speech engines. XP operating system will not use a sapi 4 voice for it's speech. Microsoft Mary is sapi 4.0 not 5.0 If my understanding is correct, Mary will never work the way you want. My guess is that the application that you are using is accessing the native speech engine of the OS not directly accessing the speech engines like cyberbuddy does. For sapi 5.0 have you listened to the voices from cepstral? They do not work with cyberbuddy and cannot be used with MS agents but they are the most realistic voices I've ever heard. I have the desktopmates annita for hal, I've gone through the effort of converting her head to a haptek character so I can use ceptral's Linda voice. Annita is a MS Agent so she only supports sapi 4.0 Hal supports sapi 4 or 5 but not when using an MS Agent.

75
Ultra Hal 7.0 / Microsoft Mary
« on: August 26, 2003, 05:14:03 pm »
Jon
You don't give any details, have you installed the sapi 4.0 support for XP? Microsoft did not include sapi 4.0 in XP only sapi 5.0 Did you download the mary speech engine? did it install without error? Normally cyberbuddy will check and install the missing speech components during install. It would have prompted you to continue, do you have the latest version of cyberbuddy?

If you are not offended by cartoon nudity www.desktopmates.com has an excellent help section with links to all the components you need to make sapi 4.0 work on XP. When I installed sapi 4 on XP, it did not initially function, when I installed cyberbuddy, it checked my system and found I missed one component, installed it, and everything has been fine since.

Pages: 1 ... 3 4 [5] 6 7