2
« on: April 11, 2004, 12:25:09 pm »
Combining Alice and Hal
First, copy the files from your "DefBrain" folder to the "alice" folder
Then, make a new brain or copy the one you are using.
Inside the brain change this:
'Type=Brain
'Name=Ultra Hal 5 XTF v1.2
'Language=VBScript
'DataFolder=DefBrain
To this:
'Type=Brain
'Name=Alice for hal
'Language=VBScript
'DataFolder=Alice
Then change this:
Set HalBrain = CreateObject("UltraHalAsst.Brain")
Set WN = CreateObject("UltraHalAsst.WordNet")
To this:
Set Alice = CreateObject("HalAlice.PlugIn")
GetResponse = Alice.Respond(UserSentence, UserName, WorkingDir, "data\bot.ini", "loglocaluser.txt")
Set HalBrain = CreateObject("UltraHalAsst.Brain")
Set WN = CreateObject("UltraHalAsst.WordNet")
Set Alice = HalBrain
Set Alice = Nothing
Then Change the name of your alice.uhp to alice1.uhp or just move it to another folder.
Then change the name of your new alice Hal combo brain (wich was Ultra Hal 5 XTF v1.2.uhp, in my case) to alice.uhp.
Thats it, Well you'll have to select the Alice for Hal brain but it should worK.
When Alice doesn't know an answer then Hal will speek, and sometimes when they both know the answer you get both answers, it's kinda cool. I use the XTF brain and Hal still makes funny faces and tells jokes. Alice doesn't tell jokes she just sais "I'm not a jokebot I'm a chatterbot". But Hal overrides and tells a joke at the end of alice's comment about being a chatterbot.
Another funny thing is when Alice doesn't know something she says "ask the open directory" but if hal knows then he will answer too.
Well try it out and let me know what happens.
Menis2com