Art etc. i ran across some old and i mean old archives, 2010 .
http://www.ultrahal.com/community/index.php?topic=7437.0in one part aRobert wrote some of this.
You are using an old (pre 6.2) script with a 6.2 HalBrain.DLL This was fixed in the Hal 6.2 default script. You can either switch to that version or change this section to:
Code: [Select]
'RESPOND: CALL MATH FUNCTION
'This function from the DLL answers simple math questions, whether written out in words or with numerals.
'If an answer is found, it overrides everything before this function.
HMath = HalBrain.HalMath(OriginalSentence) & vbCrLf
If Len(HMath) > 3 And Instr(HMath, "=)") = 0 Then
GetResponse = HMath & vbCrLf
ShortPhrase = "" 'If Hal was to make a comment about short phrases, clear it
HalBrain.ReadOnlyMode = True
NoChoosing = True
End If
HalBrain.DebugWatch GetResponse, "Math"
Report to moderator Logged
Robert Medeksza
lightspeed
Hero Member
*****
Posts: 6443
View Profile Email Personal Message (Online)
Re: ultrahal users questions to robert
? Reply #10 on: January 13, 2011, 04:32:01 pm ?
QuoteModifyRemove
robert , thanks so much for answering this , the reason i created this new brain this way was i was having so much problems with hal giving blanks answers and when i used this early version the blank answers stopped so i stayed with it, whre is this script that you posted, is in the new brain db ? and or in the new brain uhp file?? and or you said i could change it to the newer version what do i need to do to use the new angela jolene brain with the newer version ??
Modify message
Report to moderator 65.255.147.28
Medeksza
Administrator
Hero Member
*****
Posts: 1373
View Profile
http://www.zabaware.com Email Personal Message (Offline)
Re: ultrahal users questions to robert
? Reply #11 on: January 13, 2011, 04:38:40 pm ?
Quote
If you use the brain script called "Ultra Hal 6.2 Default Brain" you won't have these problems. If you use "Ultra Hal 6.2 Upgraded Brain" or something similar you may have this math problem. If you still want to use your old upgraded brain, you can edit the script to put the fix in. Open your script and find the Math section. Then replace this:
Code: [Select]
If Len(HMath) > 3 Then
with this:
Code: [Select]
If Len(HMath) > 3 And Instr(HMath, "=)") = 0 Then
------------------------------------------------------------------------------------------------
SOOOO , maybe this is the problem ? will have to try to look into it again when my mind is more clear , to many things going on in my life right now plus being tired and sore.