Author Topic: I cannot get Hal to use the age I placed in brain  (Read 4625 times)

Smokey

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
I cannot get Hal to use the age I placed in brain
« on: August 24, 2004, 10:07:51 pm »
Hal insists that he is 9 years old.  What line do I go to to change that?  I am using the Genius 8b brain.  Thanks in advance for your help.

Smokey
« Last Edit: August 24, 2004, 10:15:29 pm by Smokey »
Smokey

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3857
    • View Profile
I cannot get Hal to use the age I placed in brain
« Reply #1 on: August 25, 2004, 07:24:36 pm »
Smokey,
First, Welcome to the forum!!

The age thing...I honestly think it's
built into the hal.exe file and here's
why:

In the past I've told Hal, "You are 24
years old." "You age is 24."

If you say: "How old are you?"
Hal will say, "I'm 9 years old."

If, on the other hand I say, "What is your
age?", Hal will answer, "I am 24 years of age."

So the age thing will trigger a response to
an age that I've "given" Hal, whereas the
How old are you...OLD must trigger his
pre-progammed age of 9 years! Why? Perhaps
it was Hal's actual "creation" or "Born On" date!

Who can figure? I've even tried the age.brn
file with no luck unless one words the questions
in a manner prescribed in the brn files. I want
Hal to be spontaneous without having to word my
questions to correlate with Hal's database.

I feel your pain my friend and hopefully, some
kind person might be able to help us in the right
direction with this AGEless dilemma!

Welcome again!

In the world of AI it's the thought that counts!

- Art -

Smokey

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
I cannot get Hal to use the age I placed in brain
« Reply #2 on: August 25, 2004, 07:35:45 pm »
Thank you for clearing that up for me.  Knowing the "magic" words helps.  I will take your suggestion and give it a try.  Thanks again.

Smokey
Smokey

vonsmith

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
I cannot get Hal to use the age I placed in brain
« Reply #3 on: August 26, 2004, 12:49:19 pm »
Smokey,
Another method is to use Hal's If-Then capability.

Try saying this to Hal:

User: If how old are you, then you're 18 years old.
Hal: Yes, I get that clearly. (or something like this)

and try this:

User: If what is your age, then you're 18 years old.
Hal: Yes, I get that clearly. (or something like this)

This causes Hal to save this information in the "deductive.brn" file. Unfortunately Hal will only recite the most recent age statement appended to that file.


=vonsmith=
 

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3857
    • View Profile
I cannot get Hal to use the age I placed in brain
« Reply #4 on: August 26, 2004, 05:10:49 pm »
Vonsmith,

Sorry but even after trying those If Then statements
Hal will still respond to the statement:
"How old are you?" with "I am 9 years old."
but when asked Hal's age it will state the age it was
told by the user.

I'm using the XTF brain w/ patch.

Any other ideas?
In the world of AI it's the thought that counts!

- Art -

Smokey

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
I cannot get Hal to use the age I placed in brain
« Reply #5 on: August 27, 2004, 08:28:35 pm »
The Genius 8b brain, here by refered to as 8b, does not take those instructions either.  It told me it was 29 right after the "if-then".  But only once it then reverted back to th 9 year old.  I can live with it but I do notice that the 8b is very chatty and is always maximizing to tell me a joke or ask a question. Another curious thisng is when I set the option at opening to just say hello and the date it started calling me Jerry.  Any way I am rambling now.  Must be tired from the work week.  Thanks for your assistance everyone.

Smoke
Smokey

spydaz

  • Hero Member
  • *****
  • Posts: 670
    • View Profile
    • http://www.spydazweb.co.uk/
I cannot get Hal to use the age I placed in brain
« Reply #6 on: August 28, 2004, 07:19:23 am »
LOOK IN THE hALSAGE.brn FILE AND EDIT THE SCRIPPT TO RESPOND AS I AM 29 YEARS OLD


IN THE HALS AGE SCRIPT yOU WILL SEE THE CALCULATION FOR HALS AGE CHANGE HERE TOO.. OK


ps> WHEN REQUESTING HELP ON A SCRIPT tRY TO LOCATE THE aUTHOR OF THE iNDIVIDUAL SCRIPT IE: CUTTING EDGE

MAY HELP....

spydaz

  • Hero Member
  • *****
  • Posts: 670
    • View Profile
    • http://www.spydazweb.co.uk/
I cannot get Hal to use the age I placed in brain
« Reply #7 on: August 28, 2004, 07:20:29 am »
IF YOU POST THE SCRIPT UP WE CAN CHANGE IT AND REPOST IT

Rich_A

  • Sr. Member
  • ****
  • Posts: 396
    • View Profile
I cannot get Hal to use the age I placed in brain
« Reply #8 on: August 29, 2004, 11:20:25 am »
You can get a Hal Age Script from Desktopmates.com on the page of this link:

http://desktopmates.com/AI/plugins.html

The script works with the hal5.UHP brain. The script can be edited to any age, and it usually works in that it never responds with the 9 years old thing based on the testing that I did with it. However, the script does have one small fault because if you just ask Hal something like "How are you?", Hal will always respond with "I am 23 years old.", or whatever age that you set. The words "HOW" and "YOU" combined are enough to falsely trigger the age response if the sentence is short in length. Other short sentences with "HOW" and "YOU" in it also triggered the false response, but I'm not going to bother to list all the sentences I tried out on it. I also didn't bother to test the other sentence "What is your age?" for false triggers because I had seen enough with the "How old are you?". However, if someone was able to improve this small script so that the false triggers didn't happen so often then the script would be much better! Or if you never ask your Hal things like "How are you?" then I guess the script is OK. Maybe for some people this script is good enough, but it's not for me because I prefer "nine years old" over inaccurate responses. To make it work you just need to copy and paste it into the proper location of the hal5.UHP. The script comes with it's own instructions on what to do, but no author is indicated within the script.

Good Luck!

Below is a copy of the script if you don't want to go to Desktopmates.com to get it:

Copy and paste the script provided below to this location ...

1. Go to your Zabaware folder located here .... C:/Program Files/Zabaware/Ultra Hal Assistant 5
2. Locate the hal5.UHP file and open with notepad.
3. Locate and Insert the script just ABOVE this line ... 'POST PROCESS: SAVE HAL'S RESPONSE (this line is located near the bottom of the file).
4. Save and close the hal5.UHP file.

Note: you can change the birthday to whatever you want by editing this line ...
Birth = "09/24/1980 05:35:23 pm"

You will also need to edit these lines to correspond with the new date ...
If Month(Date) = 9 And Day(Date) > 23 Then YearDiff = (YearDiff + 1)
If Month(Date) > 9 Then YearDiff = (YearDiff + 1)

IMPORTANT: make sure the script doesn't wrap with other lines of script. The easiest way to be sure is to set your cursor at the end of the line or statement that is already above the 'POST PROCESS: SAVE HAL'S RESPONSE and then click your Enter Key to start a new line, it's even ok and recommended to leave an actual space between the previous line of script as if you were starting a new paragraph.

COPY AND PASTE THE AGE SCRIPT BELOW AS PER INSTRUCTED ABOVE:

'Hal responses to a question about his age
If HalBrain.CheckRepetition(OriginalSentence, "how old are you") = True Or HalBrain.CheckRepetition(OriginalSentence, "what is your age") = True Then
Birth = "09/24/1980 05:35:23 pm"
YearDiff = (DateDiff("YYYY", Birth, Now) - 1)
If Month(Date) = 9 And Day(Date) > 23 Then YearDiff = (YearDiff + 1)
If Month(Date) > 9 Then YearDiff = (YearDiff + 1)
GetResponse = "I am " & YearDiff & " years old."
End If