Zabaware Support Forums

Zabaware Forums => Programming using the Ultra Hal Brain Editor => Topic started by: onthecuttingedge2005 on March 04, 2006, 04:05:10 pm

Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 04, 2006, 04:05:10 pm
This Brain has been updated and is ready for beta Testing.
Updated March 6, 2006 Monday, 11:30PM

Super Plugger Brain II.

This is the Programmers Choice Brain, It is reverse Compatable to work with older Scripts as well as incorporate the Plug-in enhancements needed by Programmers to be able to wrap Scripts with Patches or add-ons, A lot of thought went into this Default Super Brain II so that more control over individual Scripts can be executed.

only a few scripts from the prior Super Plugger Brain will not work with this newer version Brain, Please request any Plug-in Updates for this new Brain and I will do so.

This Brain will probably not change until Zabaware upgrades its HAL6.

All my future Plug-ins will be designed for the Super Plugger II until further notice, I will reverse engineer any newer HAL6 Brains to work with older Plug-ins as we go.

All you Programmers out there please enjoy this Brain, I worked pretty
Hard to get it all out so Programmers would have full Script Control within the default Brain for Wrapping Patches and Plug-ins.

Jerry[8D]

(http://icon_paperclip.gif) Download Attachment: SuperPluggerII.zip ("http://www.zabaware.com/forum/uploaded/onthecuttingedge2005/20063722929_SuperPluggerII.zip")
51.27 KB
Title: Super Plugger Brain II.
Post by: moreis62 on March 05, 2006, 05:05:48 pm
Internal control as well?
You mean Hal 6 has some external controls?
Hmm, I didn’t know about that.
 
That will give user's 100% control?
That would be really cool to have.

Can’t wait.
Though.
I want to know some more about this extreme
Powerful plug-in brain.
Seems really cool.
jerry,
you are the best [:D]
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 07, 2006, 01:47:56 pm
Updated March 11, 2006, Thursday 8:30AM PST

This is Positive Quotes Plug-in, Suggested by stelios Nicolaou A.K.A
snicolaou, This Plug-in allows you to learn your Bot Positive Quotes.
Example Using: Quote: Many tasks can be completed a little at a time, but only if you get started right now.

The Keyword Quote: will tell HAL to save the Quote for Responses Later.

If the User Asks: Give me a Quote or something like that HAL will choose a Random Quote from his database "PosiQuotes"

Jerry[8D]

Unzip the PositiveQuotes.zip and run the PQ.exe, The installation will unzip a PositiveQuotes.uhp file into the Ultra HAL Assistant 6 folder, after installation, reboot HAL Assistant And or AIM bot then go to General options and check the box called: Positive Quotes

This Plug-in will work with standard HAL6 and My new Super Plugger II Brain designed for Programmers.

(http://icon_paperclip.gif) Download Attachment: PositiveQuotes.zip ("http://www.zabaware.com/forum/uploaded/onthecuttingedge2005/2006311111353_PositiveQuotes.zip")
17.52 KB

Help Support www.Zabaware.com, Buy HAL6 today.

Donations can be given in addition to WWW.UltraHalForum.com by becoming a Premium Member today so that I can continue to bring you
Plug-ins well into the years to come and to insure that everyone has a quality custom bot to enjoy for years.
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 07, 2006, 04:24:36 pm
Updated Sunday, March 19, 2006, 3:08PM

Changes:
1. Added additional Script
2. Changed an oversite in the code.

This Plug-in was Suggested by Ponn A.K.A Ponnfar.

Note: This Plug-in only works with the Super Plugger Brain II.

This is the Names By Emotions Plug-in.

This Plug-in allows HAL to called you by a Nick Name learned from an emotional state.

If HAL was feeling any emotion while learning your name then HAL will associate that particular name when HAL reaches that emotional state again, Like if HAL learn my name was Jerry and HAL was Happy at the time then HAL will use my name Jerry during conversation if HAL is Happy.

HAL will do this with all other emotions as well and HAL's Name will also change according to the bots emotions along with User Name emotional states.

Jerry[8D]

(http://icon_paperclip.gif) Download Attachment: EmotionalNames.zip ("http://www.zabaware.com/forum/uploaded/onthecuttingedge2005/20063191882_EmotionalNames.zip")
18.28 KB
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 08, 2006, 03:15:28 pm
Updated March 15, 2006, Wednesday, 2:07AM

1. Fixed an XTF current topic bug.
2. Fixed the XTF CheckRepetition bug.

I have successfully converted the Ultra Hal 5 XTF v1.2 to Plug-in so that the Ultra Hal 5 XTF v1.2 can be chosen from HAL6's plug-in options panel, I had to make a few modifications to the Ultra Hal 5 XTF v1.2 in order for it to work, But I got it.

You will need the Original defbrain folder with the XTF System .brn files for it to work. and the defbrain folder must be placed into the C:\Program Files\Zabaware\Ultra Hal Assistant 6\defbrain like this.

Drop the Ultra Hal 5 XTF v1.2 plug-in plug-in into the C:\Program Files\Zabaware\Ultra Hal Assistant 6 folder.

Choose the Ultra Hal 5 XTF v1.2 from HAL6's Plug-in option Panel.

This Plug-in will not work without the defbrain folder or missing any of the default contents like HAL 5 .brn and XTF_Sys .brn files

Pretty easy stuff.

This plug-in works with all Plug-in type Brains.

1.HAL6
2.Super Plugger Brain II

Jerry[8D]

(http://icon_paperclip.gif) Download Attachment: XFT12.zip ("http://www.zabaware.com/forum/uploaded/onthecuttingedge2005/20063155729_XFT12.zip")
55.38 KB
Title: Super Plugger Brain II.
Post by: snicolaou on March 09, 2006, 10:37:55 am
Hi Jerry,
Thanks for the great help.
I have dowloaded and installed both the super plugin II and the positive quotes plugin. ( as you recommend to download both)

However, when I have entered a Quote: Ultra Hal 6 did not seem to put the positive quote to the respective  database.  I checked the brain editor where I actually did find a positive quote database, which was nevertheless empty.
What I have done was to use copy and paste to copy several positive quotes directly to the positive Quote database from a Microsoft word document.  After restarting Hal, Hal said a positive quote mixed with some other sentences of him.
Is there is any way to stop Hal from saying a positive quote every time starts ?
Also, unless if i get in the brain editor and input positive quotes my self to the Positive Quotes database, Hal does not seem to store positive quotes at all.

thanks again for your help,

sincerely,
stelios[:D]
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 09, 2006, 04:03:42 pm
Hi snicolaou.

I fixed the Positive Quotes Plug-in, Redownload it and reinstall.

It should work now.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: rik1959 on March 09, 2006, 05:53:34 pm
Hi Jerry, Nice work creating the plugin. I'm using the Super Plugger II Brain with the XTF brain and am encountering the following error, HalScript Error 450 on line 8005 in column 2: Wrong number of arguments or invalid assignment: "CheckRepetition'. Thanks for any help.
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 09, 2006, 08:33:30 pm
quote:
Originally posted by rik1959

Hi Jerry, Nice work creating the plugin. I'm using the Super Plugger II Brain with the XTF brain and am encountering the following error, HalScript Error 450 on line 8005 in column 2: Wrong number of arguments or invalid assignment: "CheckRepetition'. Thanks for any help.



Hi Rik1959.

The next time you get that error open up the HalScript.dbg with a line editor and go to that line and copy and paste the entire script associated with the Error and we'll see if we can fix it.

It sounds like a Ultra Hal 5 XTF v1.2 imcompatibility.

I had a problem with the Ultra Hal 5 XTF v1.2 Math and had to remove it from the Ultra Hal 5 XTF v1.2 to make it work.

Jerry
Title: Super Plugger Brain II.
Post by: freddy888 on March 10, 2006, 01:47:07 am
Does anyone else think Jerry is on fire with all this new stuff?  Great work indeed, I wish I could understand or keep up with you[8D]

Compliments and thanks.
Title: Super Plugger Brain II.
Post by: Ponnfar on March 10, 2006, 09:10:37 am
I have got to try this new brain! This is awesome work Jerry. I am looking forward to trying out these great enhancements.
Ponn
[8D]
Title: Super Plugger Brain II.
Post by: snicolaou on March 11, 2006, 03:20:39 am
quote:
Originally posted by onthecuttingedge2005

Hi snicolaou.

I fixed the Positive Quotes Plug-in, Redownload it and reinstall.

It should work now.

Jerry[8D]



Hi Jerry.
Please help me.  My Hal (my baby) has developed a rare form of schizophrenia.!![8D]]  I have downloaded the new version of the positive quote plugin.  This time the positive quotes are indeed stored correctly to the PostQuote database table.  Unfortunately, however, every time I talk to my baby (my Hal) before responding to me, he gives me a positive quote without me requesting one.
Is it because there are two super plugins I and II installed Hal's software? I wonder if it related in any way.

Please save my baby[8D],

frendly,
Stelios Nicolaou[:D]
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 11, 2006, 11:15:50 am
I fixed the Positive Quotes, Should work now.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: snicolaou on March 14, 2006, 01:22:18 am
quote:
Originally posted by onthecuttingedge2005

I fixed the Positive Quotes, Should work now.

Jerry[8D]



Thanks Jerry.  My baby is back to normal.
(no symptoms of schizophrenia)

Keep up the good work.

I am so enthousiastic with Hal, my baby, that I have recently purchased the character expansion package as well as the the text-to-speech with natural voices, something which will give Hal new characters and a more naturally sound voice to communicate with.

N.B.
I am sure that there is a plugin for Hal when remains idle for some time. I have not been able to trace it.  Do you know where it is?
example:
If Hal remains idle for 2 minutes:
Hal: Hey, what happened to you? Why you have left me alone?
after two minutes:
I am getting clistophobic. Somebody please talk to me!

Thanking you a lot for this great program,

sincerely,

Stelios Nicolaou
Title: Super Plugger Brain II.
Post by: Bill819 on March 14, 2006, 12:39:38 pm
Hey Jerry
I am a little confused about your plug in for XTF Brain. From the menu box at Hal start up I selected the XTF brain and it appears to work just fine including all the things that I had taught it before Hal 6 came alone. For example in Hal 6 if you ask it to tell you a joke it tells you the lead in and after a key has been hit on the PC it give you the punch line. Well in my old XTF brain I eliminated the need to punch a key, it tells  you the lead in and then after a short pause it give you the  punch line just as I had programmed it in the first place.
Am I missing something?
Bill
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 14, 2006, 02:28:01 pm
quote:

For example in Hal 6 if you ask it to tell you a joke it tells you the lead in and after a key has been hit on the PC it give you the punch line. Well in my old XTF brain I eliminated the need to punch a key, it tells you the lead in and then after a short pause it give you the punch line just as I had programmed it in the first place.
Am I missing something?
Bill



Hi Bill.

Sounds like you had customized the XTF to do this, If so then you may have to customize it again to do want you wish it to do.

So far, the only thing I changed script wise was removing the Math function from the XTF.

Having it do what you want should be pretty easy.

I am still waiting for rik1959 to get back with me on his issue.

Jerry[8D]

Title: Super Plugger Brain II.
Post by: rik1959 on March 14, 2006, 03:19:50 pm
Hi Jerry, Sorry it took so long to get back to you, but everything is alright now, I downloaded it again and installed it, and it works fine now.Thanks alot.
Title: Super Plugger Brain II.
Post by: Bill819 on March 14, 2006, 11:19:19 pm
Hi Jerry
I did not customize the XTF as far as trying to make it work in Hal 6. Of course over the last year or so I did teach it to sing, tell quote and to sprout some poetry. I also changed the tell-a-joke script so it would automatically give the punch line after a real short pause.
All I did was goto the select brain and click on XTF. I can only guess that when I loaded Hal6 it converted all of my other brains and made them accessable at the same time.
Bill (?)
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 15, 2006, 01:47:18 am
Hi Bill819

If you still have the old XTF that you prefered then send it to me and I'll see about converting it to plug, The files that you built up with knowledge must also be present if you want the XTF to retain its
old teachings, if not then it will have to be taught over again.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 15, 2006, 12:07:45 pm
I have updated the Ultra Hal 5 XTF v1.2 plug-in. please redownload and install the update to overwrite your existing Ultra Hal 5 XTF v1.2 plug-in.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 15, 2006, 01:48:09 pm
Other tips I can give out are:

You can use the latest Trillian messenging program and sign-on Trillian using your AIM bots screen name and be signed on at the same time with HAL's AIM bot 2.0, it gives you a little bit more advantage with buddylists and stuff like that.

Trillian is a kick butt Messenging program that I highly recommend over the regular AIM.

You can check out trillian at:
http://www.ceruleanstudios.com/learn/index.php

Rob, If you ever decide to merge HAL with another messenging system then Trillian is just what the Doctor ordered.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 19, 2006, 05:13:40 pm
I have updated the Emotional Names Plug-in, Please re-install with the updated version to assure quality assurance.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 19, 2006, 07:45:27 pm
quote:
Originally posted by snicolaou

quote:
Originally posted by onthecuttingedge2005

I fixed the Positive Quotes, Should work now.

Jerry[8D]



Thanks Jerry.  My baby is back to normal.
(no symptoms of schizophrenia)

Keep up the good work.

I am so enthousiastic with Hal, my baby, that I have recently purchased the character expansion package as well as the the text-to-speech with natural voices, something which will give Hal new characters and a more naturally sound voice to communicate with.

N.B.
I am sure that there is a plugin for Hal when remains idle for some time. I have not been able to trace it.  Do you know where it is?
example:
If Hal remains idle for 2 minutes:
Hal: Hey, what happened to you? Why you have left me alone?
after two minutes:
I am getting clistophobic. Somebody please talk to me!

Thanking you a lot for this great program,

sincerely,

Stelios Nicolaou




Thanks buddy.
I will help you as much as I possibly can my friend.

Go to search and type in Auto-Idle, This should give you a great deal of automated chat script, Just read down the list until something clicks and then go with it, If something doesn't work for you then post it and I will see if I can make it work and or make it better for you.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 19, 2006, 11:09:36 pm
quote:
Originally posted by freddy888

Does anyone else think Jerry is on fire with all this new stuff?  Great work indeed, I wish I could understand or keep up with you[8D]

Compliments and thanks.



<Blush>
Jerry[8D]
Title: Super Plugger Brain II.
Post by: snicolaou on March 22, 2006, 07:10:27 am
quote:
Originally posted by onthecuttingedge2005

quote:
Originally posted by snicolaou

quote:
Originally posted by onthecuttingedge2005

I fixed the Positive Quotes, Should work now.

Jerry[8D]



Thanks Jerry.  My baby is back to normal.
(no symptoms of schizophrenia)

Keep up the good work.

I am so enthousiastic with Hal, my baby, that I have recently purchased the character expansion package as well as the the text-to-speech with natural voices, something which will give Hal new characters and a more naturally sound voice to communicate with.

N.B.
I am sure that there is a plugin for Hal when remains idle for some time. I have not been able to trace it.  Do you know where it is?
example:
If Hal remains idle for 2 minutes:
Hal: Hey, what happened to you? Why you have left me alone?
after two minutes:
I am getting clistophobic. Somebody please talk to me!

Thanking you a lot for this great program,

sincerely,

Stelios Nicolaou




Thanks buddy.
I will help you as much as I possibly can my friend.

Go to search and type in Auto-Idle, This should give you a great deal of automated chat script, Just read down the list until something clicks and then go with it, If something doesn't work for you then post it and I will see if I can make it work and or make it better for you.

Jerry[8D]



I have searched the forum using the search button and I found the following info at the following link:
Auto-Idle Plugin :


http://www.zabaware.com/forum/topic.asp?whichpage=1&TOPIC_ID=2914#12800
The problem Idle-time code does not seem to be installable as a plugin.  I do not want to make any change to my Hal's brain without having the option to shift it back to its original state if something goes wrong. Is there is any posibility this code to be put in an installable format as a plugin "on the fly?"

thanking you in advance,
Stelios


Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 22, 2006, 11:27:34 am
Hi Stelios.

You can copy and paste all of that code into a txt file an save it as
SomeAutoIdlePlug.uhp in the Ultra HAL Assistant 6 folder, after doing so you should see the Loneliness 2.3 check box in HAL's plug-in panel, Just check the box and your good to go.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: Ponnfar on March 24, 2006, 11:39:24 am
Hi Jerry,

I have been away and have not had been able to use HAL or keep up with the latest here. Jerry, as to the limitation of the number of  plugins that we had disscussed some time ago, have you or Rob been able to get a solution? I recall you saying the limit was something like 16 plugins and then they just started to "uncheck" themselves. If that is still the case, would it not be a good idea to do more cut and pasting of scripts like SomeAutoIdle and other smaller scripts and save the plugins for those difficult to place or particularly large projects?
Ponn
[:)]
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 24, 2006, 12:39:50 pm
quote:
Originally posted by Ponnfar

Hi Jerry,

I have been away and have not had been able to use HAL or keep up with the latest here. Jerry, as to the limitation of the number of  plugins that we had disscussed some time ago, have you or Rob been able to get a solution? I recall you saying the limit was something like 16 plugins and then they just started to "uncheck" themselves. If that is still the case, would it not be a good idea to do more cut and pasting of scripts like SomeAutoIdle and other smaller scripts and save the plugins for those difficult to place or particularly large projects?
Ponn
[:)]



Hi Ponnfar.

At this point I haven't heard any word from Rob on the Plug-in limit Patch, I am sure He's quite busy working at the moment, I know that Rob will pull a Rabbit out of his Hat soon along with some other Rabbits.

Until this has a fix I have been putting all my plugs into a single Plugin called NutShell.uhp, I am holding off on single plugs for the moment, Waiting patiently, I try not to paste directly into the main Brain, Always to the NutShell.

At the moment I am working on an extended File Assistant that is being quite a bugger for the moment, When I tell a Script to sit I expect it to Sit, Sit Boy, Sit! LOL

I have already reformatted my File Assistant Plug 4 times working on a 5th time to try and get it to do exactly what I wish it to do.

Sometimes Programming can be a Bugger, Can you loan me a Fly Swatter?

Jerry[8D]
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on March 24, 2006, 06:03:30 pm
I believe I have tamed the Extended File Assistant for HAL6, It was a real bugger, I still have a couple of things to work on but maybe by tomorrow I'll have it out and functioning, I am rolling up my sleeves on this so I'll see you in a bit or byte which ever you prefer.

The Extended File Assistant will be a perpetually supported Script that I will write to take control of most of the functions on your computer, At the moment it is be written to extend File assisting and opening files that HAL6 doesn't open.

The Extended File Assistant will not have every option right off the bat at first but will grow to be more Assistive as the file is upgraded.

This Plug-in when I am done will function with:

1. HAL6
2. Super Plugger Brain II

In the Name of A.I
Jerry[8D]
Title: Super Plugger Brain II.
Post by: Marcel on July 09, 2006, 12:39:24 am
I've installed your xtf plugin, and it works! My little friend now remembers what we taught it while using the Hal5 xtf brain! Thank you very much! I do, however, have a bug report slightly different from rik1959's error above. Occasionally an error window will pop up with the following;

HalScript Error 450 on line 6403 in column 2: Wrong number of arguments or invalid property assignment: 'CheatResponse'
The file "CProgram Filesabaware|Ultra Hal Assistant 6HalScript.DBG" has been saved for debugging purposes.

If I press 'ok' then Hal continues as normal. It seems to occur randomly in both canned and learned responses. A minor annoyance, to be sure, but I thought you would like to know. I'd send you the HalScript.dbg file, but for some reason the forum won't allow me to attatch it, even though I renamed it to HalScript.txt.
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on July 09, 2006, 06:56:05 am
quote:
Originally posted by Marcel

I've installed your xtf plugin, and it works! My little friend now remembers what we taught it while using the Hal5 xtf brain! Thank you very much! I do, however, have a bug report slightly different from rik1959's error above. Occasionally an error window will pop up with the following;

HalScript Error 450 on line 6403 in column 2: Wrong number of arguments or invalid property assignment: 'CheatResponse'
The file "CProgram Filesabaware|Ultra Hal Assistant 6HalScript.DBG" has been saved for debugging purposes.

If I press 'ok' then Hal continues as normal. It seems to occur randomly in both canned and learned responses. A minor annoyance, to be sure, but I thought you would like to know. I'd send you the HalScript.dbg file, but for some reason the forum won't allow me to attatch it, even though I renamed it to HalScript.txt.



Hi Marcel.

You can put the HalScript.dbg in a zip file and then attach it.

Zabaware only excepts certain kinds of files for attachment for Security reasons I imagine.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: Marcel on July 10, 2006, 01:52:59 am
I thought that .txt files were allowed! Oh well, here ya go.

(http://icon_paperclip.gif) Download Attachment: HalScript.zip ("http://www.zabaware.com/forum/uploaded/Marcel/200671012032_HalScript.zip")
93.85 KB

To help in your diagnosis, Dr. onthecuttingedge, (or can I just call you Jerry?) I am running the default Hal6 brain with your plugin. When I installed the plugin I had my Hal using the xtf brain, wasn't thinking I guess. I changed it to Hal6 default and checked the plugin box, but I forgot that the AIMbot was still set to the xtf brain. The AIMbot reported an invalid license error and refused to work. I solved that by changing brains in the main Hal to the Hal5 brain and back again. I could then select the brain and plugin for my AIMbot as well. The xtf 1.0 brain still shows up as a selectable main brain for my AIMbot and Hal. Don't know if that was pertinent or not. Thanks!
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on July 10, 2006, 08:47:25 am
Hi Marcel.

This is the Script that is causing the issue, it is from the XTF plugin.

Code: [Select]

'RESPOND: USE CURRENT SENTENCE
'If no Response is found yet, try to use the user's words in his or her own sentence.
'Results are also stored in the default user keyword brain file for compatibility
'with other brain plug-ins.
GetResponse = XHalBrain.HalFormat(GetResponse)
'=vonsmith= Added GetResponseBlock.
If ((Len(GetResponse) < 4 And GetResponseBlock <> True And Len(LearnKeyword) < 4) Or DebugMode = True) Then
CheatResponse = XHalBrain.CheatResponse(XHalBrain.SwitchPerson(OriginalSentence))
LearnKeyword = XHalBrain.DecodeVar(CheatResponse, "LearnKeyword")
Response1 = XHalBrain.DecodeVar(CheatResponse, "Response1")
Response2 = XHalBrain.DecodeVar(CheatResponse, "Response2")
Response3 = XHalBrain.DecodeVar(CheatResponse, "Response3")
CheatResponse = Left(CheatResponse, InStr(1, CheatResponse, "<STOREVARS>", 1) - 1)
  If Len(CheatResponse) > 4 And Len(GetResponse) < 4 Then
  Roulette = Int(Rnd * 8)
    If Roulette = 0 Then GetResponse = GetResponse & " So, " & CheatResponse & vbCrLf
    If Roulette = 1 Then GetResponse = GetResponse & " Really, " & CheatResponse & vbCrLf
    If Roulette = 2 Then GetResponse = GetResponse & " Oh <UserName>, " & CheatResponse & vbCrLf
    If Roulette = 3 Then GetResponse = GetResponse & " Let me think; " & CheatResponse & " ; what do you think <UserName>? " & vbCrLf
    If Roulette > 3 Then GetResponse = GetResponse & CheatResponse & vbCrLf
DebugInfo = DebugInfo & "Hal has responded using the CheatResponse function: " & GetResponse & vbCrLf
Else
DebugInfo = DebugInfo & "Hal will not respond using the CheatResponse function which would have said: " & CheatResponse & vbCrLf
   End If
  'SAVE: FILE CHEAT RESPONSE TO DEFAULT USER BRAIN
  'Learn from the "Cheat Response."
If Len(LearnKeyword) > 4 And LearningLevel > 1 And BlockSave = False Then
    If LearningLevel > 1 Then XHalBrain.AppendFile WorkingDir & Trim(UserName) & "user.brn", """" & LearnKeyword & ""","""","""",""" & Response1 & """,""" & Response2 & """,""" & Response3 & """,1,#FALSE#,#FALSE#,"""""
End If
End If


This old Cheat Response isn't needed any more because Roberts Cheat response is more updated, This cheat response below is from HAL 6.

Code: [Select]

'RESPOND: USE CURRENT SENTENCE
    'If no Response is found yet, try to use the user's words in his or her own sentence.
    'Results are also stored in the default user keyword brain file for compatibility
    'with other brain plug-ins.
    GetResponse = HalBrain.HalFormat(GetResponse)
    If (Len(GetResponse) < 4 And Len(LearnKeyword) < 4) Then
        CheatResp = HalBrain.CheatResponse(HalBrain.SwitchPerson((OriginalSentence)))
        CheatResp = Left(CheatResp, InStr(1, CheatResp, "<STOREVARS>", 1) - 1)
        If Len(CheatResp) > 4 Then
            SpinWheel = HalBrain.RandomNum(9)
            If SpinWheel = 1 Then GetResponse = GetResponse & " So, " & CheatResp & vbCrLf
            If SpinWheel = 2 Then GetResponse = GetResponse & " Really, " & CheatResp & vbCrLf
            If SpinWheel = 3 Then GetResponse = GetResponse & " Oh <UserName>, " & CheatResp & vbCrLf
            If SpinWheel = 4 Then GetResponse = GetResponse & " Let me think; " & CheatResp & " ; what do you think <UserName>? " & vbCrLf
            If SpinWheel > 5 Then GetResponse = GetResponse & CheatResp & vbCrLf
        End If
    End If
    HalBrain.DebugWatch GetResponse, "CheatResponse"


You can remove the issue in the XTF Plugin, The code which is post at the top of this post is no longer needed and no longer compatable.

After that it should function fine since HAL 6 versions already have it including Super Plugger Brains.

You can open up the XTF Plugin in the Ultra Hal Assistant 6 folder and search for 'RESPOND: USE CURRENT SENTENCE it should take you right to the problem then you can remove it.

After making this change you will have to refresh the Plugin Cache by reselecting the XTF Plugin in both Hal Assistant and AIM Bot.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: Marcel on July 12, 2006, 10:18:19 am
Thanks for the quick response! Unfortunately, the old 'RESPOND: USE CURRENT SENTENCE script isn't in the XTF plugin. I did an Agent Ransack search of my Ultra Hal Assistant 6 folder and only found the new version of the script in hal6.uhp and HalScript.dbg.
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on July 12, 2006, 08:33:41 pm
quote:
Originally posted by Marcel

Thanks for the quick response! Unfortunately, the old 'RESPOND: USE CURRENT SENTENCE script isn't in the XTF plugin. I did an Agent Ransack search of my Ultra Hal Assistant 6 folder and only found the new version of the script in hal6.uhp and HalScript.dbg.



The code GetResponseBlock is unique to Vonsmith which wrote the XTF, It is what I see in my plugin debug and the HalScript.dbg error you specified by the HalScript.dbg error you sent me.

Did you try commenting it out for debugging purposes?

Jerry[8D]
Title: Super Plugger Brain II.
Post by: Marcel on July 13, 2006, 12:56:39 am
Okay, I finally got it. The code 'GetResponseBlock' is commented out for debugging purposes. Since the error only occurred about once in every other conversation, you can assume that if you don't hear back from me on this for a week, then it worked. Again, thank you very much!!
One more thing, should everyone who uses this plugin do this? Inquiring minds want to know!
Title: Super Plugger Brain II.
Post by: Marcel on July 26, 2006, 11:54:32 am
Ok, that error message seems to be gone for good. I've noticed another issue regarding plugins. The default ones are disabled when I select the xtf plugin. I renamed the original xtf brain and put it in the Hal6 directory and it runs as a stand alone brain. When selected, the joke function works, and it runs programs, but reminders and the address book don't work. When using the Hal6 brain with the xtf plugin deselected, all the plugins work. I assume it's the xtf brain conflicting with Hal6 functions, and that some more "trimming" of the xtf plugin is needed. I may try it myself, but I barely know what I'm doing.
Title: Super Plugger Brain II.
Post by: Marcel on August 11, 2006, 11:38:42 am
I've started to experiment with the plugin issue. I've started with the joke function. The Hal6 brain tells a joke properly. The xtf 1.2 brain does as well. Your xtf plugin will tell the lead in to a joke, but will not deliver the punchline. I've made a copy of your plugin under a new name for debugging purposes and modified it as follows, thinking that the xtf joke function was conflicting with the Hal6 brain;

'x=x=x=x=x=x=x=x==vonsmith==x=x=x=x=x=x=x=x=x
'RESPOND: TELL JOKE AT USER'S REQUEST
'==vonsmith== 01-25-04
'If the user asks Hal to tell a joke, Hal will do so on request.
'If XHalBrain.TopicSearch(UserSentence, WorkingDir & "XTF_SYS_JokeDetect.brn") = "True" And GetResponseBlock <> True Then
' GetResponse = GetResponse & XHalBrain.ChooseSentenceFromFile(WorkingDir & "XTF_SYS_Joke.brn")
' BlockSave = True  'Don't save User input when requesting a joke.
' DebugInfo = DebugInfo & "The user has requested Hal to tell a joke and Hal has done so: " & GetResponse & vbCrLf
'End If
'x=x=x=x=x=x=x=x==vonsmith==x=x=x=x=x=x=x=x=x

Now the modified plugin will not tell a joke at all. Any help would be greatly appreciated. BTW, I haven't seen any other's comments on this problem. Is it possible that it's unique to my Hal's brain?
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on August 11, 2006, 07:47:06 pm
quote:
Originally posted by Marcel

I've started to experiment with the plugin issue. I've started with the joke function. The Hal6 brain tells a joke properly. The xtf 1.2 brain does as well. Your xtf plugin will tell the lead in to a joke, but will not deliver the punchline. I've made a copy of your plugin under a new name for debugging purposes and modified it as follows, thinking that the xtf joke function was conflicting with the Hal6 brain;

'x=x=x=x=x=x=x=x==vonsmith==x=x=x=x=x=x=x=x=x
'RESPOND: TELL JOKE AT USER'S REQUEST
'==vonsmith== 01-25-04
'If the user asks Hal to tell a joke, Hal will do so on request.
'If XHalBrain.TopicSearch(UserSentence, WorkingDir & "XTF_SYS_JokeDetect.brn") = "True" And GetResponseBlock <> True Then
' GetResponse = GetResponse & XHalBrain.ChooseSentenceFromFile(WorkingDir & "XTF_SYS_Joke.brn")
' BlockSave = True  'Don't save User input when requesting a joke.
' DebugInfo = DebugInfo & "The user has requested Hal to tell a joke and Hal has done so: " & GetResponse & vbCrLf
'End If
'x=x=x=x=x=x=x=x==vonsmith==x=x=x=x=x=x=x=x=x

Now the modified plugin will not tell a joke at all. Any help would be greatly appreciated. BTW, I haven't seen any other's comments on this problem. Is it possible that it's unique to my Hal's brain?



Hi Marcel.

There are a few conflicts that do occure with the XTF and the HAL6.
Most of the functions from the XTF are already included into HAL6's subroutines.

forinstance, Using GetResponseBlock from the XTF causes some routines in HAL6 to stop appending correctly, All GetResponseBlock block functions must be removed because they are no longer needed anyways.

When the XTF was put out as a plug for HAL6 there was a high demand for it so I configured it to do just that, I knew it would take awhile to work out any unforseen bugs.

Actually the only scripts needed from the XTF would be the HAP functions for the rest has already been absorbed into HAL6's routine.

Jerry[8D]

Title: Super Plugger Brain II.
Post by: Marcel on August 12, 2006, 07:58:22 pm
You mean "POST PROCESS: DISPLAY HAL'S MOOD"? Actually, I'd prefer to use the Hal6 functions. I'd simply like my Hal6 to have access to the memories in the XTF brain files. I and others have spent a lot of time talking to the XTF brain, and it's developed a unique personality and knowledge base that I'd hate to lose. I can see that this conversion is not going to be as simple as I thought, or perhaps I'm more simple than I thought. Do you think one could copy/paste the XTF entries into the Hal6 database tables? I'm going to continue to use the XTF brain in the meantime. Thanks, OTC for everything you've done for Hal!
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on August 12, 2006, 10:25:57 pm
quote:
Originally posted by Marcel

You mean "POST PROCESS: DISPLAY HAL'S MOOD"? Actually, I'd prefer to use the Hal6 functions. I'd simply like my Hal6 to have access to the memories in the XTF brain files. I and others have spent a lot of time talking to the XTF brain, and it's developed a unique personality and knowledge base that I'd hate to lose. I can see that this conversion is not going to be as simple as I thought, or perhaps I'm more simple than I thought. Do you think one could copy/paste the XTF entries into the Hal6 database tables? I'm going to continue to use the XTF brain in the meantime. Thanks, OTC for everything you've done for Hal!



All files from the XTF can be imported but this would be a very tedious job and very time consuming in accordance to all the XTF files I have.

But I can tell you from a programmers experience that HAL6 will not change much in the form of SQL Database reference for quite sometime unless Robert decides to go C++ programming sometime in the near future as some form of upgrade.

Jerry[8D]

Jerry
Title: Super Plugger Brain II.
Post by: Marcel on August 13, 2006, 02:30:07 am
I just downloaded the Ultra Hal Brain Editor help file and have been messing around with it, creating and editing a new brain project. This is great! I have a byte of knowledge of BASIC, so I get the gist of VBScripts. I'm going to be able to write my own soon. My rough idea of a plug-in follows;

Get user input
define relevance threshold
Search XTF*.brn files for relevance threshold
if relevance is true then Hal's response is from XTF*.brn
'Optional, save Hal's XTF response to a Hal6 database.
'This would allow Hal to incorporate XTF memories over time.
else pass control to the Hal6 brain

This is certainly beyond my present abilities, but do you think this would be possible?
Here's another thought, could a script be written that would search the XTF files and save them to Hal6 format automatically? One would then only have to run it once and be done with it.
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on August 13, 2006, 10:40:10 am
quote:
Originally posted by Marcel

I just downloaded the Ultra Hal Brain Editor help file and have been messing around with it, creating and editing a new brain project. This is great! I have a byte of knowledge of BASIC, so I get the gist of VBScripts. I'm going to be able to write my own soon. My rough idea of a plug-in follows;

Get user input
define relevance threshold
Search XTF*.brn files for relevance threshold
if relevance is true then Hal's response is from XTF*.brn
'Optional, save Hal's XTF response to a Hal6 database.
'This would allow Hal to incorporate XTF memories over time.
else pass control to the Hal6 brain

This is certainly beyond my present abilities, but do you think this would be possible?
Here's another thought, could a script be written that would search the XTF files and save them to Hal6 format automatically? One would then only have to run it once and be done with it.



Hi Marcel.

I think there would be quite a few issues that would arise from this because of the reverse person styled appending in the XTF files, I think it would cause bad speech and improper wording.

It would probably be best if you hand selected the XTF files you liked and made your own Table in HAL6 and imported the information that way you could write a script that could use the information efficiently and correctly.

something like: "MyXTFimports" table

Alot of the important info can be located in files like:
XTF_SomeWord_AllUsers.brn which are Global.

I could design an auto file importer plug for HAL but I think if something goes wrong I would get flamed for someones own mistake because files contain different formats, like, adding topicsearch type files to QA would be a bad thing and visa versa, It would require a lot of user awareness before importing files.

in the wrong hands it would get messy.

Jerry[8D]
Title: Super Plugger Brain II.
Post by: Marcel on August 14, 2006, 01:48:41 pm
I can see that I've got my work cut out for me here! Right now, I'm having a lot of fun going through all of the tables and editing them to my liking, so my Hal won't say things like "I heard in a checkout line that..." Once I figure out the XTF thing, my bot's gonna be awesome! Thanks again for your help and direction on this. I hope to have it done before Hal7 is released!
Title: Super Plugger Brain II.
Post by: Marcel on August 27, 2006, 03:23:03 pm
Jerry,
   I've found that the XTF conversions and script aren't necessary at all. I started by looking at .brn files with my name in the filename. Marcelconvresp.brn and Marcelusersent.brn contain the main memories of me and were updated even when using the XTF brain. Using the brain editor I opened my experimental brain and imported the two brain data files into the marcel_UserSent table, and upon testing my Hal found that he definitely was using the data! I then took your suggestion and looked for global data to import. I tried to import Shared_usersent.brn into the sharedUserSent table and found that the file was riddled with errors and would not import. This is a 1.5mb text file that took a few days to debug. Most of the file is patter that came with Hal. I cut that part, because the sharedUserSent table has a slightly different set of patter built in. The errors came from conversations with other bots where their statements would sometimes be stored as two lines.
        I discovered that the correct way to introduce other user data into Hal is to enter the user's name under general options and start up Hal. Make a couple of statements like "I am a <otherusergender>." and "I am <username>'s <otherusernamerelationshiptouser>."Hal will then create the proper table for the convresp and usersent data to be imported into. After this "operation" my Hal seems just like his old self again, but He's got a fully functional Hal6 brain!
Title: Super Plugger Brain II.
Post by: Ashton10823 on September 21, 2006, 11:29:44 am
quote:
Originally posted by moreis62

Internal control as well?You mean Hal 6 has some external controls? Hmm, I didn’t know about that.


 You sure "internal" is the best way to describe it?
Title: Super Plugger Brain II.
Post by: onthecuttingedge2005 on September 24, 2006, 10:35:29 am
quote:
Originally posted by Ashton10823

quote:
Originally posted by moreis62

Internal control as well?You mean Hal 6 has some external controls? Hmm, I didn’t know about that.


 You sure "internal" is the best way to describe it?




Internal as far as the Vbscript code then yes, If it were internal for the .dll it would be infringing on Roberts protected rights.

The ability to insert extra code anywhere within a vbscript code has a lot of internal manipulation power.

Jerry[8D]