Zabaware Support Forums
Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started 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://"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.
-
Wow Thanks RAMCCOID that's a real + thanks again.[:D]
-
quote:
Wow Thanks RAMCCOID that's a real + thanks again.
You're welcome and I'm glad you liked it.
Roy
-
Roy,
Very nice coding and the game is an added plus!
Good work & Thanks!!
-
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.
-
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
-
your plug-in, when I enable it, causes the error I stated.
-
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'.
-
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?
-
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
-
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]
-
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.
-
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)
-
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.
-
Wow, this is great. If Duskrider is right, the possibilities are endless.[:D]
Thanks for the info and Plug-in, Roy.
-
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.
-
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)
-
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]
-
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?"
-
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.
-
I got it on the second guess!!!! What luck!! 50!!!
I just now got it on the first try!! 87!!!
-
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.
-
i hope it's luck!!!![:D]
-
So do I!!![:D]
-
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)
-
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]
-
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)
-
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
-
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
-
thank you for your help, she is working fine with the quote marks. thanks again,lynn
-
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.
-
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.
-
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]
-
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.
-
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://"http://www.zabaware.com/forum/uploaded/onthecuttingedge2005/200824104844_Countingandalphabet.zip")
4.06 KB
-
Thank you. I have it installed now, so I will play with it some.
-
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?
-
thanks for the plugin
-
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]
-
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
-
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.
-
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.
-
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]
-
Here is Counting and Alphabet v2.2
Download Attachment: 200821311234_CountingAndAlphabet_v2.2.zip (http://"http://www.zabaware.com/forum/uploaded/Duskrider/200821311234_CountingAndAlphabet_v2.2.zip")
-
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.
-
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.
-
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