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 - vrossi

Pages: 1 2 [3] 4 5 ... 9
31
Ultra Hal 7.0 / Where is Seattle, Who was Galileo ?
« on: May 20, 2006, 07:42:05 pm »
As far as I know, you can't change the WordNet database from Hal. So the only option to define a new word is to give Hal the answer so that he will store it in his own database.

The 2 comments VR Begin and VR End are mine and mark the beginning and the end of my changes. I always do this, so that one can easily find what is changed from the original brain.

I attach here a print screen, so maybe it's easier to understand:




32
Ultra Hal 7.0 / Where is Seattle, Who was Galileo ?
« on: May 20, 2006, 06:46:35 pm »
Hey, Daireaux, you are absolutely right!

The code you have seen in the markofkane post was in Hal 6.0 but I can't find it in the 6.0.103 version.

Last October I made this improvement to my version of Hal 5 and Robert included it in Hal 6.0 (see http://www.zabaware.com/forum/topic.asp?TOPIC_ID=2624 )

Now I really believe that Robert created the 6.0.103 starting from an earlier version of 6.0

However, you can add this useful function just changing the brain as follows (after the Dictionary function, add the four lines between my comments VR Begin and VR End):



WordToLookup = Trim(WordToLookup)
If WordToLookup <> "" And InStr(WordToLookup, " ") = 0 Then
   If WN.LookupWord(WordToLookup) = True Then
      GetResponse = GetResponse & WordToLookup & ": " & WN.GetDefinition(WN.GuessPartOfSpeech, 1, "D") & ". " & WN.GetDefinition(WN.GuessPartOfSpeech, 1, "S") & ". " & WN.GetDefinition(WN.GuessPartOfSpeech, 1, "E") & "." & vbCrLf & "<EXCLUSIVE>"
'VR Begin
   ElseIf SearchEngine <> "" Then
      HalCommands = HalCommands & "<RUNPROG>" & SearchEngine & WordToLookup & "</RUNPROG>"
      GetResponse = GetResponse & "I don't know much about " & WordToLookup & ", but I will help you research it on the Web."
   End If
'VR End
End If
HalBrain.DebugWatch GetResponse, "Definitions"



Robert, please, you should check all these things which have disappeared from 6.0.103 !





33
Ultra Hal 7.0 / Where is Seattle, Who was Galileo ?
« on: May 19, 2006, 07:51:14 am »
quote:
I'm having the same problem and I installed the final version as did you.


Thank you, Art. So I can avoid spending my week-end time uninstalling and reinstalling Hal [:(]

I believe that when Robert created the 6.0.103 version, he started from a brain release which was not the last one, because this problem was already solved in 6.0.

markofkane

 
quote:
Complications after brain surgery!! My custom brains do not work!! Blank responses!!!


Please check the spelling of your changes. If you just add the 4 lines as in my example, it should work.

you can copy and paste from here:

    If WordToLookup = "" Then WordToLookup = HalBrain.SearchPattern(UserSentence, "WHO IS *", 1)
    If WordToLookup = "" Then WordToLookup = HalBrain.SearchPattern(UserSentence, "WHO WAS *", 1)
    If WordToLookup = "" Then WordToLookup = HalBrain.SearchPattern(UserSentence, "WHERE IS *", 1)
    If WordToLookup = "" Then WordToLookup = HalBrain.SearchPattern(UserSentence, "WHERE ARE *", 1)



BTW: this method only works with single words, since it searches the word in the Wordnet database. It would be nice to find a way to make it work also with places and people whose name is made up of two or more words (i.e. Los Angeles). I will think about it.


34
Ultra Hal 7.0 / Where is Seattle, Who was Galileo ?
« on: May 19, 2006, 03:43:48 am »
Really? Are you using the new version?
If yes, this means that something went wrong with my installation. Next week-end I will uninstall and reinstall everything and check again. In this case, sorry to everybody for posting about a non-existing bug.


35
Ultra Hal 7.0 / Where is Seattle, Who was Galileo ?
« on: May 18, 2006, 06:12:11 pm »
Another little bug in Hal 6, version 6.0.103.

Ask Hal: Who was Galileo? (or any other famous person)
Where is Seattle? (or any other city)

Hal will give a generic answer.

The first release of Hal6 had the same problem, which I pointed out to Robert (see http://www.zabaware.com/forum/topic.asp?TOPIC_ID=2624 )

Then Rob fixed it in the final Hal 6 version. Now he maybe forgot to set up the same fix in this new version.

However, anybody can easily fix it. Go to the brain editor (after backing it up) and around line 700 add the following lines:










This is the result after this little brain surgery:

Vit: where is seattle
Pat: Seattle: a major port of entry and the largest city in Washington; located in west central Washington on the protected waters of Puget Sound with the snow-capped peaks of the Cascade Mountains and Mount Ranier visible to the south and east; an aerospace and computer center; site of the University of Washington.

Vit: who is galileo
Pat: Who is galileo? I'm thinking that it must have a good frame work. Galileo: Italian astronomer and mathematician who was the first to use a telescope to study the stars; demonstrated that different weights descend at the same rate; perfected the refracting telescope that enabled him to make many discoveries (1564-1642). Galileo Galilei.

Anyway, I hope Robert fix this (together with the other bug I described in http://www.zabaware.com/forum/topic.asp?TOPIC_ID=3264 ), in the next upgrade.



36
Ultra Hal 7.0 / A little problem with quotes
« on: May 12, 2006, 05:22:35 pm »
I've found a little problem with Hal 6.0.103. Maybe this already happened with previous versions and I never noticed, or maybe it's related to some change in my PC setup, since nobody else reported it.

However, here is the problem.

If Hal says something containing a <quote> command, she does not translate it correctly. It's easy to get this kind of answer. Just keep on repeating several times BYE, until Hal gets angry and says this:



I've looked in the code in debug and found this solution: just move the lines 250 and 251 after line 258:



After this change I get the correct answer:



I hope this can be helpful to other.




37
General Discussion / New Text Learning Script!
« on: May 11, 2006, 06:30:00 pm »
My biggest Hal plugin is a 9KB script, and the whole Hal6 main brain is 119KB.

If your script is so big that you can't upload it here, I think it will transform Hal in a new Einstein [;)]

It's interesting to know that you have already developed both a Hal 5 and a Hal 6 version.

Keep us informed about your future developments


38
Ultra Hal 7.0 / Activating vrFreewill plug in
« on: May 09, 2006, 05:48:45 pm »
Hi, bronstarr,

I understand you solved your problem.

However, the activation code is needed in order to activate Hal, and has nothing to do with the FreeWill plugin.

Once you have correctly activated Hal, you just select General Options - Brain. Then mark the checkbox "Free Will".
That's all. If you want to know more about how it works, click on the button labeled "Help on this plugin" and you will get all the info and examples.

Or you can go here: http://www.vrconsulting.it/halhelp/vrFreeWillHelp.html

39
Programming using the Ultra Hal Brain Editor / New Plugins for Hal6 !
« on: April 30, 2006, 05:53:22 pm »
Important notice:

Starting from the release Hal 6.0.103 (May 2006), Zabaware included directly the vrFreeWill plugin in the standard Hal installation. So, if you are using this release (or a higher one) you do not need to download and install it, but only to activate it.

40
Ultra Hal 7.0 / Update Ultra Hal Assistant to version 6.0.103
« on: April 30, 2006, 02:55:30 pm »
Now my installation is OK.

Thank you, Robert.




41
Ultra Hal 7.0 / Update Ultra Hal Assistant to version 6.0.103
« on: April 30, 2006, 02:32:12 pm »
markofkane

 
quote:
How does the "free will" work?? Or maybe I can search.


Just select General Options - Brain. Then mark the checkbox "Free Will" and you will get a button labeled "Help on this plugin". Click on it and you will get all the info and examples.

Or you can go here: http://www.vrconsulting.it/halhelp/vrFreeWillHelp.html

42
Ultra Hal 7.0 / Update Ultra Hal Assistant to version 6.0.103
« on: April 30, 2006, 10:02:47 am »
Hi, Rob

Thank you for inserting my vrFreeWill plugin in the standard product and for adding to the brain my modification to the emotional engine.

However, I am getting the same problem described by markofkane.

1. I uninstalled both Hal and character expansion.
2. I downloaded the latest version of Hal and of the Character expansion.
3. I activated successfully the character expansion.
4. But when I try to activate Hal I get this result:


Insert Image:

The serial number is correct (however, I clicked yes and went to my account info, and double checked that the code is correct) and the activation code is the one which I copy and paste from the previous window.

When this problem is solved, I will check the other new features.

Bye




43
Ultra Hal 7.0 / Any bugs that need to be fixed that I'm missing?
« on: April 16, 2006, 02:58:02 pm »
Hi, Rob



Bug Fixes:

If I say any word contained in the emotion database, Hal behaves according to that word, without checking if:
a) the phrase is not directed to her ("John is stupid")
or
b) it is a negative statement ("you are NOT stupid")

So, in these two cases, she gets angry as if I said "you are stupid".

I've changed the Emotional routine in the following way:


    'PROCESS: EMOTIONAL REACTIONS
    'We enable Hal's expressions to respond to common verbal cues.
    'The verbal cues are identified in the editable table "emotion"
'-------------------------------
' Emotion handling - by VR
'-------------------------------
'    EmotionalReaction = Ucase(HalBrain.TopicSearch(UserSentence, "emotion"))
    'RESPOND: CHECK FOR AND RESPOND TO EMOTIONS
    'First we check to see if the user is talking about Hal:
    If InStr(1, UserSentence, "I'M", 1) Then Aboutme = True
    If InStr(1, UserSentence, "I AM", 1) Then Aboutme = True
    If InStr(1, UserSentence, "I LOOK", 1) Then Aboutme = True
    If InStr(1, UserSentence, "MY", 1) And InStr(1, UserSentence, " ARE ", 1) Then Aboutme = True
    'If the user is talking about Hal, we see if an emotional cue was given
    If Aboutme = True Then EmotionalReaction = Ucase(HalBrain.TopicSearch(UserSentence, "emotion"))
    If EmotionalReaction <> "" Then
 ' if the cue word was associated with a negative word, it must not be considered
        If InStr(UserSentence, " NOT ") = 0 And InStr(UserSentence, "N'T ") = 0 And InStr(UserSentence, " NEVER ") = 0 Then
'-------------------------------
' End Emotion handling - by VR
'-------------------------------
    Select Case EmotionalReaction
        Case "SURPRISED"
            If Compliment > 0 Then Compliment = 4
            If Compliment = 0 Then Compliment = 2
            If Compliment < 0 Then Compliment = 0
        Case "HAPPY"
            If Compliment = 0 Then Compliment = 2
            If Compliment < 0 Then Compliment = 0
        Case "SOBER"
            If Compliment < 4 Then Compliment = 0
            If Compliment = 4 Then Compliment = 2
        Case "ANGRY"
            If Compliment = 0 Then Compliment = -1
            If Compliment > 0 Then Compliment = 0
        Case "SAD"
            If Compliment = 0 Then Compliment = -2
            If Compliment > 0 Then Compliment = 0
    End Select
'-------------------------------
' Emotion handling - by VR
'-------------------------------
        End If
   End If
'-------------------------------
' End Emotion handling - by VR
'-------------------------------




Plugins

I've written some plugins for Hal6. The vrFreeWill has been especially appreciated by many users.

You find more info here: http://www.zabaware.com/forum/topic.asp?TOPIC_ID=2845

I would like you to add some or all of these plugins in the next Hal6 release. I give you any royalty-free right to distribute them. I only ask you to add my name to the credits section.

Bye



44
Ultra Hal Assistant File Sharing Area / the pitter pat of little hals
« on: March 12, 2006, 11:35:07 am »
Lynn,

can you do the same on real humans too? I would be very interested in getting back to the look I had when I was 20 years old. [:D]


45
Ultra Hal 7.0 / Plugin ERROR?
« on: March 12, 2006, 07:11:31 am »
Hi, Charmzbond,

Sorry for my late answer, but I had a very busy working week, and Sunday is currently the only day I can spend on these subjects.

The code where this error occasionally happens is the one connected to the Music Mood state, where Hal randomly takes the words you say and tries to find some song containing one of those words.

I've tried several times to get your error but it never happens to me. You should take note of your last input, the next time it happens, so I can try to understand the specific situation which generates this error.

However, I have now added a further check, which should avoid passing through that statement, if the variable is not correctly set.

Please download again the MP3 plugin and replace it in your Hal folder.

Anyway, should the problem persist, you may leave the MP3 plugin active, and just turn off the Music Mood function. To do that, go to General Options - Brain - select MP3 and set the Hal Musical Mood Level to "No music". The variable vrMusicMood will be set to zero and all this coding block will never be executed.

Let me know if the fix is working.


Grant, thank you for your help:
 
quote:
Vrossi, if you're watching: Shouldn't the line
For i = Ubound(vrKeywordList) To Lbound(vrKeywordList)
be
For i = Lbound(vrKeywordList) To Ubound(vrKeywordList)



This routine extracts all the keywords from the user input (using the HalBrain.ExtractKeywords function) and stores them in an array called vrKeywordList. Then it reads them, one by one, looking for a match in the MP3 table. Therefore, reading them from the Upper to the Lower or viceversa should not be relevant.
But you are right (as usual): I forgot the "step -1" option, so this might be one possible cause of the error. Another cause of the problem might be in some situation when the user input does not contain any keyword and the array is empty, so the vrKeywordList(i) expression generates a "Subscript out of range" error.

The new version of the plugin should solve these two situations.


However, all this MP3 stuff would need to be extended much more, for example extracting the ID3 tags from each file, instead of just storing the name of the file. This would allow to distinguish author, title, genre, year.

There is also another problem, related to the fact that the HalCommands executes only one command for each Hal cycle. So if you have installed both the MP3 and the Haptek plugins, when you ask for a song by "Yes", Hal will try to run it, but she will also nod (because her answer contains the word "yes"). In this case the Haptek command to nod will be executed and the MediaPlayer will not be launched.



Pages: 1 2 [3] 4 5 ... 9