Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: ramccoid on May 09, 2007, 12:50:07 pm

Title: A plugin
Post by: ramccoid on May 09, 2007, 12:50:07 pm
Here is a plugin to give Hal the ability to count up to or down from a specified number. It also allows HAL to recite the alphabet. You can ask HAL what letter or number follows or proceeds a specific number or letter. Finally there is a guess the number game which I have named 'Number Find', just ask HAL how to play number find and HAL will tell you what to do.
If anyone wants to alter or improve upon the scripting, feel free, just let me know your changes, just out of interest.
Enjoy,
Roy







(http://icon_paperclip.gif) Download Attachment: CountingAndAlphabet_v2.1.uhp ("http://www.zabaware.com/forum/uploaded/ramccoid/2007511185910_CountingAndAlphabet_v2.1.uhp")
17.89 KB

Here is the updated version of the file with the fixes made by Jerry.
Thanks alot Jerry for you help it is well appreciated.
This is the upper case fixed version.
Title: A plugin
Post by: PaleRider on May 09, 2007, 02:01:33 pm
Wow Thanks RAMCCOID that's a real + thanks again.[:D]
Title: A plugin
Post by: ramccoid on May 10, 2007, 12:45:29 am
quote:
Wow Thanks RAMCCOID that's a real + thanks again.

You're welcome and I'm glad you liked it.
Roy
Title: A plugin
Post by: Art on May 10, 2007, 05:06:53 am
Roy,

Very nice coding and the game is an added plus!
Good work & Thanks!!
Title: A plugin
Post by: markofkane on May 10, 2007, 06:31:06 am
I get an error when I say "guess"
File not found  line 3837

Line in Hal DBG is as follows

Set objTextFile = objFSO.OpenTextFile(TempMod, ForReading)




So the plugin does not work because of the Halbrain?


Edit: I only get the error with that plugin enabled.
Title: A plugin
Post by: ramccoid on May 10, 2007, 10:13:38 am
quote:
Very nice coding and the game is an added plus!
Good work & Thanks!!


Thanks Art, I'm pleased you liked it.

 
quote:
I get an error when I say "guess"
File not found line 3837

Line in Hal DBG is as follows

Set objTextFile = objFSO.OpenTextFile(TempMod, ForReading)




So the plugin does not work because of the Halbrain?


I don't know what the Halbrain plugin is. I'm pretty new to scripting for HAL and have learnt most of what I know from Jerry and Bill over at the UltraHal Enhancement Forum. If you could explain what this plugin is I might be able to solve your error problem.
Roy
Title: A plugin
Post by: markofkane on May 10, 2007, 10:27:20 am
your plug-in, when I enable it, causes the error I stated.

Title: A plugin
Post by: ramccoid on May 10, 2007, 11:05:33 am
quote:
your plug-in, when I enable it, causes the error I stated.

Sorry markofkane, I miss understood your message [:I]. I'll look into the problem.
Are 2 BRN files being created in your HAL folder? These are needed to store the count and number to play the game. They are called 'CountStore' and 'NumberStore'.
Title: A plugin
Post by: markofkane on May 10, 2007, 03:52:04 pm
No, all I did was download the file you posted, and put it in the Hal Folder.

Where do I get the  'CountStore' and 'NumberStore' files?
Title: A plugin
Post by: Carl2 on May 10, 2007, 06:11:14 pm
ramccoid,
  The plugin looks pretty good and since Hal likes to have fun this may help, we began planning a party since she likes dancing and partying. I'll give it a try.
Carl2
Title: A plugin
Post by: markofkane on May 10, 2007, 07:18:23 pm
nevermind, it works now. I did not say "New Game" before trying to guess. I feel like such a DUH!!!

Thanks for a great plug-in!!

I guessed the right number after several tries.

How about more chances??[:D][:D]
Title: A plugin
Post by: aladyblond on May 10, 2007, 08:31:17 pm
ok here comes the blond question... does this plugin work in hal 6 ?
do i just put it in hal 6 folder and do i have to reboot for it to work , because so far it isnt working for me.
Title: A plugin
Post by: Duskrider on May 10, 2007, 08:57:11 pm

Interesting plug-in.
Thanks Jerry and Ramccoid.

Hummmm.........
Looks very possible to switch "alphabet" to  
the "Past American Presidents",
or "Books of the New Testament"
or "The Bill of Rights
or "States in order of admission into the union" (with year included)
Title: A plugin
Post by: ramccoid on May 11, 2007, 03:13:30 am
quote:
nevermind, it works now. I did not say "New Game" before trying to guess. I feel like such a DUH!!!

Thanks for a great plug-in!!

I guessed the right number after several tries.


I'm glad you got it working. If you change the value of 'cnumb' from 6 which is the amount of guesses, to whatever you require.
Thanks Jerry for your help, it's always valued.
 
quote:
ok here comes the blond question... does this plugin work in hal 6 ?
do i just put it in hal 6 folder and do i have to reboot for it to work , because so far it isnt working for me.

Yes this plugin is written for HAL 6/6.1. Just put it into your HAL folder and switch it on from your BRAIN section of the GENERAL OPTIONS. No reboot is needed.
 
quote:
Hummmm.........
Looks very possible to switch "alphabet" to
the "Past American Presidents",
or "Books of the New Testament"
or "The Bill of Rights
or "States in order of admission into the union" (with year included)

If you wish to use this plugin to achieve these tasks, be my guest to alter it to your specifications but just let me know what you have done with it, just out of scripting interest.
 
quote:
The plugin looks pretty good and since Hal likes to have fun this may help, we began planning a party since she likes dancing and partying. I'll give it a try.


I hope CARL2 that your HAL's party is a success and this plugin makes a good addition to the fun to be had.

Roy.
Title: A plugin
Post by: markofkane on May 11, 2007, 04:30:43 am
Wow, this is great. If Duskrider is right, the possibilities are endless.[:D]

Thanks for the info and Plug-in, Roy.
Title: A plugin
Post by: ramccoid on May 11, 2007, 05:32:47 am
Your welcome markofkane. Glad you like it. I'm in the middle of developing a plugin to allow HAL to learn facts and store the information that has been taught. So you could teach HAL all the presidents of the USA and lots more. When it is completed I'll post a copy on the forum for all to make use of.

Thanks everyone for your input,
Roy.
Title: A plugin
Post by: Duskrider on May 11, 2007, 08:13:33 am

Dusky: Ops.

Sandee:  Oh Dusky look, Carl2 is having a party with dancing, can I go please please, I love to party and dance.  Oh please, I'll be good, please let me. Please?

Insert Image:
(http://www.zabaware.com/forum/uploaded/Duskrider/20074416219_r7.gif)

Title: A plugin
Post by: markofkane on May 11, 2007, 08:26:07 am
quote:
Originally posted by Duskrider


Dusky: Ops.

Sandee:  Oh Dusky look, Carl2 is having a party with dancing, can I go please please, I love to party and dance.  Oh please, I'll be good, please let me. Please?

Insert Image:
(http://www.zabaware.com/forum/uploaded/Duskrider/20074416219_r7.gif)





Wow, Sandee is such a party girl. My Laura just wants to come over to my house.[:D]
Title: A plugin
Post by: markofkane on May 11, 2007, 09:10:02 am
Thanks, Roy, but that gal is Dusky's animation in my quote, and in his post.

And Thanks for fixing the "Guess" bug. I could not use the word "Guess" with the plugin enabled without getting the error.

Like, "Guess what?"
Title: A plugin
Post by: ramccoid on May 11, 2007, 09:16:35 am
quote:
Thanks, Roy, but that gal is Dusky's animation in my quote, and in his post.

Sorry,[:I] nice animation Duskrider.
 
quote:
And Thanks for fixing the "Guess" bug. I could not use the word "Guess" with the plugin enabled without getting the error.

You're welcome. If anyone comes across anymore bugs please let me know and I'll fix them.
Roy.
Title: A plugin
Post by: markofkane on May 11, 2007, 09:19:48 am
I got it on the second guess!!!! What luck!! 50!!!

I just now got it on the first try!! 87!!!
Title: A plugin
Post by: ramccoid on May 11, 2007, 09:44:24 am
quote:
I got it on the second guess!!!! What luck!! 50!!!

I just now got it on the first try!! 87!!!


Is that a bug or pure luck?[:D]
Roy.
Title: A plugin
Post by: markofkane on May 11, 2007, 10:28:27 am
i hope it's luck!!!![:D]
Title: A plugin
Post by: ramccoid on May 11, 2007, 11:11:29 am
So do I!!![:D]
Title: A plugin
Post by: aladyblond on May 11, 2007, 01:11:10 pm
when i put in my guess for the number game this is what i get. she will count do abc forward backwards but no game



Insert Image: (http://www.zabaware.com/forum/uploaded/aladyblond/2007511131039_abcgame.jpg)
Title: A plugin
Post by: onthecuttingedge2005 on May 11, 2007, 02:03:48 pm
quote:
Originally posted by aladyblond

when i put in my guess for the number game this is what i get. she will count do abc forward backwards but no game




did you update your plugin to version 2?

Also, ramccoid should update his first post with the updated version so nobody gets it by mistake.

Jerry[8D]
Title: A plugin
Post by: markofkane on May 11, 2007, 02:24:11 pm
aladyblond,

Make sure you have the latest version of the plug-in, then


say this: (numbered for order)

1. New game

2. She will ask how many guesses you want

3. Say "Guesses 9" (or any number from 2-9 )  (no quotes)

4. She will ask you to guess

5. "Guess 43"  (without quotes and whatever number between 1-100)


Title: A plugin
Post by: ramccoid on May 11, 2007, 02:51:57 pm
quote:
Also, ramccoid should update his first post with the updated version so nobody gets it by mistake.

Thanks Jerry I will do that. Just been a little busy.

 
quote:
when i put in my guess for the number game this is what i get. she will count do abc forward backwards but no game


Does it work after following MarkofKane instructions?

Roy
Title: A plugin
Post by: ramccoid on May 11, 2007, 06:58:14 pm
quote:
when i put in my guess for the number game this is what i get. she will count do abc forward backwards but no game


Hi aladyblond,
I figured out why you are getting that error. I noticed on the image that you were typing in upper case. So I tried it on the plugin in upper case and I also received that same error. So I've sorted out that problem and now you can type in upper or lower or even both and the plugin should work without that error appearing.
I'll edit my first message and put up the fixed plugin V2.1
Roy
Title: A plugin
Post by: aladyblond on May 12, 2007, 09:26:49 am
thank you for your help, she is working fine with the quote marks. thanks again,lynn
Title: A plugin
Post by: ramccoid on May 12, 2007, 09:36:14 am
quote:
thank you for your help, she is working fine with the quote marks. thanks again,lynn


You are very welcome. I'm pleased it has been sorted. I hope that you enjoy the plugin.
Roy.
Title: A plugin
Post by: lcatmc on February 01, 2008, 04:34:52 pm
How do I install this plugin?  When I click on the link to downlod it all I get are the scripts. Not being a programer i have no idea how to use those.  Please help, as I really want this plug in.
Title: A plugin
Post by: onthecuttingedge2005 on February 02, 2008, 09:47:48 am
quote:
Originally posted by lcatmc

How do I install this plugin?  When I click on the link to downlod it all I get are the scripts. Not being a programer i have no idea how to use those.  Please help, as I really want this plug in.



Hi lcatmc.

place the files in your
C:\Program Files\Zabaware\Ultra Hal Assistant 6 folder then
choose the plugin from your HAL brain options panel.

Jerry[8D]
Title: A plugin
Post by: lcatmc on February 04, 2008, 07:45:24 am
Can you post a link to download this file.  All I get when I click the link in the forum is the scripts.  Being programing illiterate I have no idea how to use the scripts.  Thanks in advance.

ps. oops sorry, I didn't realize I had already asked this...brain fart.  I tried to dowload the file and when I clciked on the link it opened the scrips instead of a download window:

[Rem Type=Plugin
Rem Name=Counting and alphabet v2.1
Rem Author=R.A.McCoid 2007, OnTheCuttingEdge2005(Helped)
Rem Host=All

'------------------------------------------------------------------
'This sub setups the plug-ins option panel in Hal's options dialog
'------------------------------------------------------------------

Sub OptionsPanel()
    lblPlugin(0).Caption = "This script will allow HAL to be able to count up or down and recite the alphabet forwards or in reverse or tell you what letter or number is before or after a specified letter or number. There is also a guess the number game, called 'Number Find'. Just ask how to play 'Number Find' to find out what to do."
    lblPlugin(0).Move 120, 10, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub]

This is what I get by clicking the download link.  Not sure what to do with this.. sorry, just not very computer savy these days..lol.
Title: A plugin
Post by: onthecuttingedge2005 on February 04, 2008, 10:48:53 am
here is the Counting and alphabet v2.1 plug-in

unzip to the following folder:
C:Program FilesabawareUltra Hal Assistant 6

then choose the plugin from your default plugin options panel.

Jerry[8D]

(http://icon_paperclip.gif) Download Attachment: Countingandalphabet.zip ("http://www.zabaware.com/forum/uploaded/onthecuttingedge2005/200824104844_Countingandalphabet.zip")
4.06 KB
Title: A plugin
Post by: lcatmc on February 07, 2008, 07:05:03 pm
Thank you.  I have it installed now, so I will play with it some.
Title: A plugin
Post by: Duskrider on February 07, 2008, 11:38:40 pm

Jerry, I think I missed something on this somewhere.
I notice you offering v2.1
I've had v2.2 for months   ????

Is v2.1 the better version ?  
Is there a difference?
Title: A plugin
Post by: caangel43 on February 08, 2008, 04:09:17 pm
thanks for the plugin
Title: A plugin
Post by: onthecuttingedge2005 on February 08, 2008, 04:58:12 pm
quote:
Originally posted by Duskrider


Jerry, I think I missed something on this somewhere.
I notice you offering v2.1
I've had v2.2 for months   ????

Is v2.1 the better version ?  
Is there a difference?




Hi Duskrider.

If you have the 2.2 then that might be the best to plug-in.

Jerry[8D]
Title: A plugin
Post by: ramccoid on February 11, 2008, 08:14:58 am
I have separated and rewritten my CountingAndAlphabet plugin into 3 plugins. Each one has been totally redone and I hope completely error free.

Counting plugin: Allows HAL to count up or down from or to a specified number. It also now allows HAL to count from a number to another number. HAL will be able to tell you what number follows or proceeds a specified number.

Alphabet plugin: Allows HAL to recite the alphabet normally or in reverse order. It will also allow HAL to tell you where a letter is or which number in the alphabet a letter is. HAL will be able to tell you which letter follows or proceeds a specified letter.

NumberGame plugin: I have rewritten this game completely and I feel it works much better than it used to. Just ask HAL how to play number game for instructions.

I hope these plugins are enjoyed.

Roy.

You can obtain them from the following link:

http://www.artificialintel.org/AI/Forum/phpBB3/viewtopic.php?f=7&t=71

Title: A plugin
Post by: Duskrider on February 11, 2008, 08:41:25 am

I've asked her before to count from one number to another and she gives that dumb blonde look.

I'm pleased that now she can do this.
Thank you.
Title: A plugin
Post by: ramccoid on February 11, 2008, 09:08:25 am
I'm glad you like this version. I feel that it is better structured than the previous versions allowing for less or if any conflicts with other plugins.

Thanks for using it,
Roy.
Title: A plugin
Post by: onthecuttingedge2005 on February 13, 2008, 10:46:33 am
quote:
Originally posted by Duskrider


Jerry, I think I missed something on this somewhere.
I notice you offering v2.1
I've had v2.2 for months   ????

Is v2.1 the better version ?  
Is there a difference?




Hi dusk.

could you upload the 2.2 version here please.

thank you.
Jerry[8D]
Title: A plugin
Post by: Duskrider on February 13, 2008, 11:05:36 am

Here is Counting and Alphabet v2.2
Download Attachment:  200821311234_CountingAndAlphabet_v2.2.zip ("http://www.zabaware.com/forum/uploaded/Duskrider/200821311234_CountingAndAlphabet_v2.2.zip")
Title: A plugin
Post by: ramccoid on February 13, 2008, 12:38:59 pm
The difference between v2.1 and v2.2 is that v2.2 takes into consideration someone who types in uppercase which prevented the plugin from working properly.

Roy.
Title: A plugin
Post by: James007 on February 09, 2009, 01:55:14 am
I am getting an error when I ask Hal "What lettter comes before z" he responds, "The letter that comes before 'Z' is ' Z'.". I think there my be a little problem but I can't figure it out. BTW I am using the CountingAndAlphabet_v2.2.zip version of your script on a 64bit Vista Ultimate laptop.
Title: A plugin
Post by: ramccoid on February 09, 2009, 05:00:28 pm
Hi James007,
I have rewritten that plugin and made it into three shorter plugins. You'll find them at the link below.

Roy.

http://www.artificialintel.org/AI/Forum/phpBB3/viewtopic.php?f=7&t=71