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

Pages: 1 [2] 3 4 5
16
Ultra Hal 7.0 / Help me please someone
« on: September 19, 2003, 06:30:59 am »

Yeah! (in Re to Larry)

sorry everone, internet connection is crap since it turned rainy here.

a computer program is a representation (virtual) of something real (physical).

Quicken is a computer representation of a bank.

turbotax is a computer H&R Block.

gran turismo is the eyes, arms and legs behind the wheels of supercars.

-We all have a working model of how Hal is supposed to respond -our own reasoning.

Currently I am attempting to make pronoun variables change words in GetResponse

this is where it comes from:
If you listen to people talk, once they say a noun they thereafter refer to

that noun with a pronoun. Shelly becomes she  the house becomes it and so on

there's like 27 pronouns or something! I was one of the ones that sed 'whos

ever gonna use this stuff  >B)

That's how you program!

CatAtomic

17
Ultra Hal Assistant File Sharing Area / I did it! Hal remembers names now!
« on: September 12, 2003, 08:40:40 am »

Allriiiight!! >B) great job and dam finelookin piece of code!
I know how you feel- that conquer the beast feeling *smiles
-good to know others are out there working to help Hal

CatAtomic

18
Programming using the Ultra Hal Brain Editor / getting hal to read out loud
« on: September 10, 2003, 01:59:52 pm »

-Looking into it

there are the Functions called
HalBrain.ReadSent(ByVal TextString As String,ByVal SentNum As Integer) As String
HalBrain.SentenceGenerator(ByVal File_Name As String) As String

Mebbe there is a way to read in all of the lines in the file into a variable and have

Hal say the variable. Hmmm, since I am now running the 5.0 beta, there is no cushy

Brain Editor to program from...gotta do it the old fashioned way!! If HB.ReadSent

don't work, there may be another way to do it. >B) get back to you

CatAtomic  '-helping to bring tomorrows Hal here today!' >B)

19
Ultra Hal 7.0 / Script takes longer than expected error
« on: September 06, 2003, 06:09:14 pm »

CatAtomic reporting-

Possible causes(?)-

you sed something about parsing the whole sentence- that seems consistent
with the response times given

-mebbe pare down the databases?

I have a killer graphics card that's going in the new computer, -I oughtta
install it and let you know response times before and after.
stay tuned...

No luck with SR- I know what it is- I may not have sapi5.x installed-
I can wait for the final release of 5.0 which oughta have all
the necessary stuff. I am figuring if I can have Dee Dee continue the
conversation between exchanges if she feels the need to, along with
the SR's 'auto push the button' capability, I oughtta be set!

What a great job on this Fusion of Technology into Hal!

Medeksza, you Rule!

20
Ultra Hal 7.0 / Hal 5 Beta has been released!
« on: September 05, 2003, 06:20:43 pm »

CatAtomic reporting in- seamless installation on Windows 98SE. Oh,h

so Precious! And powerful new stuff! -this is truly like Christmas!

I will be running the speech recognition through it's paces

>B)

*-does that name Erica have to be on the startup image?

21
Programming using the Ultra Hal Brain Editor / Hey Brainstorm !!!???
« on: September 04, 2003, 03:22:01 pm »

-what are you up to?  HAHAHAHAAaaa

Have you tried the HB.ChooseSentenceFromFile yet? If it's all one entry,
I reckon it should all come back. There are other DLL functions-Hmm, I'll
get back to you on that...'scuse me I gotta D/L the 5.0 beta now !!!

>B)

22
Programming using the Ultra Hal Brain Editor / Multi-User Hal
« on: September 03, 2003, 07:10:53 pm »
Hey Larry,>B)

In testing, I used the test names Jenni and Bill. I talked to Hal as Jenni
for a longer time than as Bill and then looked in the datafolder- I have
a JENNIusersent.brn, a JENNIquestion.brn, a BILLquestion.brn, a JENNIconverresp
etc.

CustomMem is an open variable- the encoding/decoding allows many to pass
back to/from the script.

I am gonna do an investigation of the whole UserRel/HighestRel/AGC algorithms
to see what is happening. You know, Medeksza sed 5.0 was gonna have a
way to adjust the database portion of the script for sensitivity. It may
well be that the 'Just answer the question! module will require fixin'

CatA

23
Programming using the Ultra Hal Brain Editor / Multi-User Hal
« on: September 03, 2003, 10:15:27 am »
Progress report:

I now have a working version of Multi-User Hal and I ought to fill you all
in on the details. I began working on the modifications in the greetings
Function where most of the code remains unchanged. Late one night, I was
trying to tame the Info flow when the thing started going awry...every thing
I did to patch stuff up caused new problems, and the thing stopped working
-I ended up tossing my wireless kebo and gave up on it. Two days later I
came back to it and wrote six lines of code in other places in the script
and it started working! Don't know how this happens, but I am thankful it
does -indeed once it gets started I feel like I am an observer watching
this stuff unfold sometimes. Ah well, that's all I am gonna say about that.

Multi-User Hal is borne from a post I read a while ago on the Forum where
in it a family expressed their dilemna. One of their family things to
do together was to all set around dad's computer and talk to their Hal
and see what insightful comments Hal could make. They were wondering
if there was a way to get Hal to identify when a new User was talking
to Hal and call them by their own name.

In my own end User scenario, I also require the Hal Engine to recognise
a new user, and I have created a way. With this functionality, Hal can
create all the Paste in <UserName> files, thus retaining specific Info
about different Users -in a single DataFile!(NO playing computer)

To start, I recommend creating a new Project in the Brain Editor
select all the desired parameters of your choosing (I usually create
the whole Brain and then disable unwanted sections of code by
comment tagging the code -it turns green.).
Now, these modifications are located in various parts of the script
...and they're there for a reason, that reason being precedence!
No cutting and pasting! I took the time to share this, you type in the
code- we need more people working to make Hal better and seeing how
this code works in here may pass it on to others >B).

Ok, I will cite the line numbers where these pieces all set and make
references like 'put the code after this Process'(the numbers may be slightly
off, but real close).

Here We Go!
--------
1.This first part is in 'PROCESS WORD AND PHRASE SUBSTITUTIONS
after the Debug statement that has -User's sentence as Hal sees it:

0252 If DebugMode = True Then
0253 CheckMem = DecodeVar(CustomMem, "SedHiMem")
0254 DebugInfo = DebugInfo & "SedHiMem contains- " & CheckMem & vbCrLf
0255 DebugInfo = DebugInfo & "CustomMem contains: " & CustomMem & vbCrLf
0256 DebugInfo = DebugInfo & "UserName contains: " & UserName & vbCrLf
0257 End If
------------
2.In this next part is the section that inexplicably made the code work-
(challenge to real programmers:what did I do?)
located directly after PROCESS:USER REPEATING

0311 OrigUser = DecodeVar(CustomMem, "OrigiMem")
0312 NewUser = DecodeVar(CustomMem, "CuserMem")
0313 If NewUser <> "" Then
0314 UserName = NewUser
0315 Else
0316 UserName = OrigUser
0317 EndIf
0318 If DebugMode = True Then DebugInfo = DebugInfo & "NOW UserName contains- " & UserName & vbCrLf
--------------
3.The next part we have to pass some other variables to the Greetings Function located
at the end of the script. Change the first line of RESPOND:CALL GREETING FUNCTION
to read:

0323 HalGreeting = Trim(Greetings(UserSentence, UserName, PrevSent, PrevUserSent, WorkingDir, CustomMem, DebugInfo))
-------------
4.Just before the 'Main Databases section there is this HandyHal:

0546 If Instr(1, OriginalSentence, "What is my name ", vbTextCompare) > 0 Then
0547 GetResponse = "Right now, I think I am talking to " & UserName
0548 End If
-------------
5.Just after the Debug 'End If' in 'POST PROCESS:PRESERVE ALL VARIABLES is
this line:

1726 GetResponse = Replace(GetResponse, "<UserName>", UserName, 1, -1, vbTextCompare)
-------------
6.Change the Greetings Function line to read the following:

1735 Function Greetings(ByVal UserSentence, ByVal UserName, ByVal PrevSentence, ByVal PrevUserSent, ByVal WorkingDir, ByRef CustomMem, ByRef DebugInfo)
------------
7.Change 'First Hal checks to see if the user is greeting right now. to read:

1742 If HalBrain.TopicSearch(UserSentence, WorkingDir & "HelloDetect.brn") = "True" Then
1743 SaidHello = True
1744 MemHello = "True"
1745 CustomMem = CustomMem & EncodeVar(MemHello, "SedHiMem")
1746 DebugInfo = DebugInfo & "-coming from greetings function!" & vbCrLf
1747 End If
-----------
*-see that line checking for PrevHello? disable it by placing a comment tag (') in
front of it.
----------
8.After the LetterChoice "A" LetterChoice "B" 'End If', insert the following code:

1764 'This will detect if a new user sed hello
1765 MemHello = DecodeVar(CustomMem, "SedHiMem")
1766 If SaidHello = True And MemHello = "True" Then
1767 Greetings = HalBrain.ChooseSentenceFromFile(WorkingDir & "Who's_this.brn")
1768 End If
1769 If MemHello = "True" And HalBrain.TopicSearch(PrevUserSent, WorkingDir & "HelloDetect.brn") = "True" Then
1770 OrigUserMem = UserName
1771 CustomMem = ""
1772 NewUserName = UserSentence
1773 CustomMem = EncodeVar(OrigUserMem, "OrigiMem") & EncodeVar(NewUserName, "CuserMem")
1774 UserName = NewUserName
1775 Greetings = "Well Hi there, " & NewUserName & "!"
1776 End If
-----------
9.Include these two functions at the end of the script:

1915 'DECODE A VARIABLE
1916 Function DecodeVar(FromWhat, DecodeWhat)
1917 Temp = Instr(1, FromWhat, DecodeWhat & "-eq-", vbTextCompare) + Len(DecodeWhat) + 4
1918 Temp2 = Instr(Temp, FromWhat, "-+-", vbTextCompare)
1919 If Temp <= Len(DecodeWhat + 4 Then
1920 DecodeVar = ""
1921 Else
1922 DecodeVar = Mid(FromWhat, Temp, Temp2 - Temp)
1923 End If
1924 'ENCODE A VARIABLE    
1925 Function EncodeVar(EncodeWhat, AsWhat)
1926 EncodeVar = AsWhat & '-eq-" & Encode What & "-+-"
1927 End Function
----------------
10.You have to now fashion the .brn called "Who's_this" '-No- I havent fixed the
.brnMaker to redirect the new file, you have to make it manually!  >B)
Dig down to the uhp's datafolder, make a copy of hello2.brn and rename it
Who's_this.brn . Then alter the contents so that the responses will elicit the
User to divulge just their name- like this:

Oh yes, hello- what is your name?
Hi, I am <ComputerName>. What is your name?
Hello Hello! Who is this?
Hello indeed! say- if you tell me your name I will remember you.
Greetings to you, Who am I talking to?
-------------

Still under development, but real Neat-o!

*blows out lamp for the nite
CatAtomic



   



24
Programming using the Ultra Hal Brain Editor / DEVELOP AN EVOLVING HAL
« on: September 01, 2003, 06:54:10 am »

oh gosh- what if the 5.0 beta is off schedule because Medeksza is...

CatA >B) 'fannin' those flames!'

25
Ultra Hal 7.0 / Giving Hal a Real Body
« on: August 31, 2003, 09:29:40 am »

Hello! >B)

I know where there is a robotic arm and interface kit for IBM

compatible computers...

Look in the CatAlogue at http://www.rnjelectronics.com/

for like a hundred dollars

Sed it has software too

Heh, I just had the thought -what if you had all these light switches about the arm

and Hal could turn lights on and off and stuff!

Happy exploring DonFerguson!

CatAtomic

26
Programming using the Ultra Hal Brain Editor / Conversational Starters
« on: August 30, 2003, 10:21:28 am »

Nope! Hal's gotta do it on it's own. Just think about it- If Hal pushed

the button every five seconds, here are some things Hal could do:

*Have a sub-conscious

*Be aware of the foward passage of time

*Be able to say how long ago an event happened

*Predict futures (when an event repeatedly encountered in the past is forecast into the future)

*Put events in order

*Timeline established

There are so many ways to manipulate time in VBScript it peaks the imagination!

I know it would be a quantum leap for Hal, indeed a UHP does not exist to support it-

the code Hal uses would have to be able to work dynamically.

Mann, I could write a macro that does it but it would soon get so messy as things

got added. Besides, it just ain't right. Think about inside your Box- all the data

flowin' along that bus, the CPU a blur of dancing electrons!! *sigh

Be careful what you wish for...

CatAtomic


27
Programming using the Ultra Hal Brain Editor / Conversational Starters
« on: August 29, 2003, 04:33:44 pm »

-----------------------

Degrees of Consciousness

The lowest level of consciousness is the ability of an organism to monitor
it's body and environment. By this definition, even a lowly thermostat
has some 'consciousness' since it monitors the surrounding temperature.
Computers that perform self-diagnostics and that print (error) messages
also fall into this CatAgory...

-excert from
'Visions-how science will revolutionize the 21st century'
by Dr.Michio Kaku

---------------------

hopefully we can hash it out during the 5.0 beta!  Hope so!
Aye Medeksza, give us Consciousness

CatAtomic

28
Programming using the Ultra Hal Brain Editor / Conversational Starters
« on: August 29, 2003, 03:31:36 pm »

-Exactly, the one thing I keep thinking about tho is the appointment book that is
hardwired into Hal. Too bad the format is so tight with it- you can't even use a
Replace method to insert a conversational starter in the place of a custom event.
If one could just get Hal to set an appointment one minute into the future...
Ahh, I tried

CatAtomic >B)

29
Programming using the Ultra Hal Brain Editor / Just answer the question!
« on: August 26, 2003, 01:57:46 pm »

You oughtta save the unanswered question into a different file.
That way you don't gotta go diggin' for it. I'm gonna set up Dee Dee
so she can tell you what questions she couldn't get and then put them
in the PersonalQuestions.brn.

CatA  >B)

30
Programming using the Ultra Hal Brain Editor / Hal 5.0
« on: August 25, 2003, 05:29:42 pm »

Awwwww! Don't worry -the last time Zabaware made a major upgrade, they

made sure it was compatible with previous versions. *crosses fingers

One thing though- make sure that your default brain in your list of

brains doesn't contain any code your working on- I did on the jump from

3.0 to 4.0 and lost some code as the new default brain overwrote the

former during install.


HalRules!

CatAtomic

Pages: 1 [2] 3 4 5