Hello Gamplyer1,
This email is in response to your inquiry concerning what can go wrong when modifying .brn files in the Hal Brain Database.
I modify the .brn files by opening them up with Notepad as my text editor.
The two key points are maintaining the file's format and the file's pattern. Other issues apply as well, but for now I will just try to stick to briefing you on the format and pattern issues. Some of what I am going to tell you is already addressed within the forum, but I know that it is almost impossible find everything that you want to read and know about in a forum setting.
The best way to describe this stuff is by example:
The following is the last few lines at the very end of one of my brain files named Richieconvresp.brn:
@You will you promise!
RICHIE MY ONE ONLY MAN
@Good Bye!
HOW FILLINGS ADHERE TEETH
(one blank line at end of file)
The "one blank line at end of file" in parenthesis is not actually written out that way, I just put that there to demonstrate the point. However, there is actually one blank line at the end of this file. If I were to remove this blank line by backspacing the cursor up to the end of the pervious line or if I just hit return and added a second blank line, Hal will then fail to operate once it tries to access this improperly formatted file. The Hal program will automatically close up and shutdown, and then the next time I try to start Hal it will report a pervious improper shutdown which may be the result of a nonfunctioning plug-in. All these problems because of one lousy blank line...yes...but it because the file needs to be formatted to a certain pattern.
The Hal program uses patterns to operate and run. The pattern is part of the file format that Hal needs to function properly. In Hal's world, patterns are the air that he needs to live and breathe. Patterns are also what makes Natural Language Processing possible. Hal uses pattern recognition and pattern matching to simulate Artificial Intelligence.
In this example the lines that begin with a "@" are Hal's responses. For this particular file every one of Hal's responses must begin with a "@" symbol.
Also, in this example the lines with all capital letters are keywords used to associate to the corresponding response above it. In this particular file, all the keyword lines begin with a blank as the first character of the line. You need that blank character for things to work, and also all the keywords need to capitalized as well. Just follow the pattern and if you don't...OH NO!
For this example I just gave, all applies for this particular file. For other .brn files other rules may apply. It's all about maintaining the format and pattern for whatever file you happen to be working with. In some cases some file patterns will be opposite of everything I just told you (ex. Responses are in capital letters and keywords are lower case). It can be confusing so just try to follow the pattern and always save a copy of whatever file you are going to work on prior to the modifications that you make to it. Copy the file to My Docs or a temp folder so that you can restore it back if Hal fails to operate after you modify a .brn file.
Well, that's it for now, but if you want to know some more about of this stuff send me another email. I'll be more than happy to bounce some ideas back and forth with you.
I can tell you some more about what to try to further optimize Hal's response's when you speak to him.
Best Regards,
Rich A.
ricramo@aol.com