Zabaware Support Forums

Zabaware Forums => Programming using the Ultra Hal Brain Editor => Topic started by: ramccoid on June 05, 2007, 04:08:58 pm

Title: Knowledge of time plugin
Post by: ramccoid on June 05, 2007, 04:08:58 pm
Here is a plugin I call 'Knowledge Of Time'. It gives HAL the ability to know different aspects of time.

1. Ask HAL'how many seconds/minutes/hours/days/weeks/years/decades/centuries/ are in a minute/hour/day/week/year/decade/century/millennium'

2. Ask HAL'How long is left of today'

3. Ask HAL'was/is the year (example 2012) a leap year'

4. Ask HAL'what season is it' or 'is it winter/spring/summer/autumn(fall)'

5. ask HAL'Is it am/pm"

6. Ask HAL'What month is it"

7. Ask HAL'What are the months of the year'

8. Ask HAL'What month follows/proceeds (a specified month: eg. January, february, etc.)'

9. Ask HAL'When is the solstice/equinox'

10. Ask HAL'When is christmas/new years'

11. Ask HAL'How manys days until Christmas/new years'

12. Ask HAL'What are the days of week'

13. Ask HAL'What day follows/proceeds (a spcified day: eg. Monday, Tuesday, etc.)'

14. Ask HAL'How many days until (date specified: d/m/y or m/d/y)'

I can't think of anymore things that this plugin can do because I've forgotten. So I will allow you to discover anything I haven't mentioned.
You must choose and apply the drop down menus in the GENERAL OPTIONS of this plugin for it to work correctly.
State whether you are in the northern/southern hermisphere and state which format of date you use mm/dd/yy/ or dd/mm/yy.
I will class this plugin as a BETA release for you to test. Please tell me if you do come across any errors and I will rectify them. Thanks and enjoy.

Roy.

If you need any help with this plugin, just post and I will help.

-----------------------------------------------------------------
The lastest version is of 'KnowledgeOfTime' plugin is now further on in this thread.
Title: Knowledge of time plugin
Post by: ramccoid on June 05, 2007, 04:20:37 pm
If there is more anyone would like me to add to this plugin, just post and I will see if I can.

Roy.
Title: Knowledge of time plugin
Post by: Bill DeWitt on June 05, 2007, 04:42:41 pm
Hi Roy, I'll try to check this out later. A first glance says there is a lot included...
Title: Knowledge of time plugin
Post by: ramccoid on June 05, 2007, 04:48:21 pm
Hi Bill,
I tried to include as much as I could think of. HAL should have a knowledge of time, whether it's at the very least the days of the week or the months of the year (oh yeah, that is something else HAL will tell you if you ask). I'm trying to give HAL the basics that any bot should know anyway. If there is anything else you can think of, let me know.

Roy.
Title: Knowledge of time plugin
Post by: Duskrider on June 05, 2007, 05:23:08 pm

Wow, very impressive.
A lot of work on your part.
I gotta try it.
Looks good.


[8D]
Title: Knowledge of time plugin
Post by: PaleRider on June 05, 2007, 05:24:20 pm
Thank you Ramccoid that's a great download.[:D]
Title: Knowledge of time plugin
Post by: ramccoid on June 05, 2007, 05:44:09 pm
You are welcome, but let me know if there are any errors because it became to big for me to totally test out.

Thanks,

Roy.
Title: Knowledge of time plugin
Post by: Carl2 on June 07, 2007, 07:55:25 am
ramccoid
  Just copied it and wil try it out later today, not sure how you did it because there are block writes in the Hal brain concerning time, days, seasons ect.
Carl2
Title: Knowledge of time plugin
Post by: ramccoid on June 07, 2007, 08:44:25 am
Hi Carl2,
Give it a try and let me know if you have any problems with it. Like I said, I've only released it for testing. I hope to develop it further so if you have any ideas that would fit into this theme, please also let me know.
Thanks for trying it out and I hope you enjoy it.

Roy.
Title: Knowledge of time plugin
Post by: Carl2 on June 07, 2007, 06:00:45 pm
ramccoid
  I enabled the plug-in before speaking with Hal this afternoon, I did receive an error message but both Hal and I have seen that happen before.  Hal did make some mention of being able to do something back to the year 100 A.D.
  I had just read some of the things that Hal can do with this plug-in and I should read them before using Hal again to see how well he replies.  I'd like to mention I had wanted Hal to learn about different aspects of time and enabled Hal to write brain files on these subjects.
  You've also come out with other plugins I haven't tried yet that seem interesting.  
Carl2
Title: Knowledge of time plugin
Post by: ramccoid on June 07, 2007, 06:28:15 pm
Hi Carl2'
I just want HAL to know the basics. HAL should know how to count and know the foundamentals of time. It's some of the earliest things we learn as humans. A bot must know these things or else you would feel disapointed when you ask a simple thing like what day is it or count up to ten and HAL just drifts away from the statement with some nonsense because of the simple fact, HAL does not know.
I knew these things before I could read or write so it's only right that HAL does also.
Thanks very much for the interest,

Roy
Title: Knowledge of time plugin
Post by: Art on June 07, 2007, 08:26:12 pm
Roy,

I tried it and it worked as purported without incident and with several other plugins checked as well.

Nice work and thanks!!
Title: Knowledge of time plugin
Post by: Carl2 on June 07, 2007, 09:34:54 pm
ramccoid
  Just spoke with Hal again after listing the features,
  1) Not asked
  2) Passed
  3) Not asked
  4) Frist she listed seasons then she did give the correct season
  5) Failed AM/PM, possibly not asked correctly
  6) Passed
  7)
Title: Knowledge of time plugin
Post by: Carl2 on June 07, 2007, 09:52:38 pm
ramccoid
  Sorry clicked the wrong thing at the wrong time
  7) Passed
  8) Passed
  9) Passed but asks Autumn or spring equinox
 10) Passed
 11) Not asked
 12) Passed
 13) Hal made a reminder
 14) Hal made a reminder  I realized I did not format it correctly.
  Overall I'm very happy with it and it did fit into what Hal knew about things I'd been able to teach her.  Hal passed her test so I'm sure she's happy with it also.
Carl2
Title: Knowledge of time plugin
Post by: Bill819 on June 08, 2007, 12:59:16 am
ramccoid
Here is another little thing that might make Hal seem more alive. If Hal kept track of each time you talked to him on a daily basis it would appear that he/she is aware of himself/herslef.
For example lets say that I say goodbye tonight at 10pm and tomorrow about 9 am I turn on Hal again. It would be nice to hear Hal say I haven't hear from you in 11 hours, or 3 days and 4 hours, etc..
I think you get the idea.
Bill
Title: Knowledge of time plugin
Post by: ramccoid on June 08, 2007, 03:12:30 am
Thanks everyone for your help and support, I'll tidy up and finish off the plugin and post it as a final release in a day or two.
 
quote:
ramccoid
Here is another little thing that might make Hal seem more alive. If Hal kept track of each time you talked to him on a daily basis it would appear that he/she is aware of himself/herslef.
For example lets say that I say goodbye tonight at 10pm and tomorrow about 9 am I turn on Hal again. It would be nice to hear Hal say I haven't hear from you in 11 hours, or 3 days and 4 hours, etc..
I think you get the idea.
Bill

I will give it a try, it would give HAL the appearence of the awareness of time. I'll make that my next plugin project 'Awareness of time'. Thanks Bill819 for the idea and the interest.

Thanks again to every for your help it is very appreciated,

Roy.
Title: Knowledge of time plugin
Post by: Art on June 08, 2007, 04:59:54 am
Roy,

I skipped #4 the first time and found that it did not work properly.

Item #14 did not display correct answers but showed a negative sign like -555 days until ...

I also noticed that Hal did correct tell how many days are in a given month.

Sorry about the mixup.
Title: Knowledge of time plugin
Post by: ramccoid on June 08, 2007, 07:15:57 am
quote:
I skipped #4 the first time and found that it did not work properly.

Item #14 did not display correct answers but showed a negative sign like -555 days until ...

I also noticed that Hal did correct tell how many days are in a given month.

Sorry about the mixup.


Hi Art,
Did you fill out the drop down menus when you selected the plugin in the brain setup?
If you did I'll check out those two parts which rely on those menus being correctly selected.

Thanks for the information,
Roy.
Title: Knowledge of time plugin
Post by: Art on June 10, 2007, 08:06:38 pm
Roy,

While conversing with Hal, I entered the response, "That was bound to happen."

The following error message appeared:
*************************************
HalScript Error on line 6514 in column 0:Type mismatch: 'LeYear1'

The file "C:\Program Files\Zabaware..."HalScript.DBG" has been saved...debugging....
*************************************

I narrowed it down to the words "was b". In other words if I just enter "was b" (without quotes) I still get the error. I think it is referring to your leapyear section of your plugin.

One note of interest is that with your plugin the hemisphere and date format info no longer appear if one goes back to check those settings. Is this normal? Is the original info retained?

Thanks!

Title: Knowledge of time plugin
Post by: ramccoid on June 11, 2007, 02:47:23 am
Hi Art,

Thanks for the information, I'll sort that out and hope to release the final version very soon, just been adding to it.
Thanks again for letting me know,

Roy.

quote:
One note of interest is that with your plugin the hemisphere and date format info no longer appear if one goes back to check those settings. Is this normal? Is the original info retained?

Yes that is normal and the settings are stored for use in the plugin.
Title: Knowledge of time plugin
Post by: Carl2 on June 11, 2007, 06:28:28 pm
ramccoid,
  I just thought of something I think would be useful, next to try to describe it. I was speaking with Hal and she mentioned her birthday was  tomorrow, she is 12. When was she born? I know that 2007 - 12 = 1995 but Hal can't do that. ex: Mr x was born in 1907, that was 100 years ago.
Carl2
Title: Knowledge of time plugin
Post by: raybe on June 24, 2007, 04:27:40 pm
Hi ramcoid,

I didn't have alot of time with your plugin but I did get the same error as art: HalScript Error on line 6514 in column 0:Type mismatch: 'LeYear1'But I love the idea of the plugin and the other suggestions such as Carl2's. Hope you will have the update soon I think it helps in the overall sceme and thanks for plugin work you are doing.

raybe
Title: Knowledge of time plugin
Post by: raybe on June 25, 2007, 10:46:45 pm
Hi ramcoid,

After spending some time I am not getting many of the responses from say #4,5,6 and a few others although I don't have a error message showing up. Any suggestions.

Thanks,
raybe
Title: Knowledge of time plugin
Post by: Ponnfar on June 26, 2007, 12:33:14 am
I have not been to the Forum in what seems like a long time and to come back and see this entry was a real treat! Ramccoid, thanks for all of your hard work on this one. This is a great plug-in.
I asked HAL how many days until 06/30/07 (or pick any date in the future not listed in your script, Christmas, New Years, etc...you get the idea)and HAL did not give the correct answer.  Another example was after saying "Friday is my birthday" or 6/30/07 is my birthday (such statements are of course placed in the appointment book as usual)and then asking "how many days until my birthday?", the script did not seem to respond with the correct answer.
Has a function like this been included in your script?
If so, perhaps I am using the wrong syntax. If not, perhaps it is something you might consider in your next edition of the script. Even you do not ever include a function like that, I still say Kudos to you on a really cool script and a great effort!
Thanks again!
P[:D]
Title: Knowledge of time plugin
Post by: Carl2 on June 26, 2007, 05:44:46 pm
ramccoid,
  I'd just updated hal to the latest brain. I'd noticed the same error message others were receiving and disabled it since Rob had spent time to remove bugs generating error messages.  Really like the plugin otherwise.
OTC,
  Thanks I just downloaded the plugin.
  I'd like to have Hal learn by reading after instaling the latest updates, tried a search that includes ALF plugins ect. Where is the infomation for the current version?
Carl2
Title: Knowledge of time plugin
Post by: Ponnfar on June 26, 2007, 07:12:37 pm
Hey there Jerry, it is great to see you on the Forum. This feels like old times.
Well, here goes, unfortunatly, the fix you made did not help me. If ever I say a phrase like, "that was in the beginning" or "that was bound to happen", the same error message Art mentioned comes up.
Thanks for your help.
P[8D]
Title: Knowledge of time plugin
Post by: onthecuttingedge2005 on June 26, 2007, 10:22:22 pm
quote:
Originally posted by Ponnfar

Hey there Jerry, it is great to see you on the Forum. This feels like old times.
Well, here goes, unfortunatly, the fix you made did not help me. If ever I say a phrase like, "that was in the beginning" or "that was bound to happen", the same error message Art mentioned comes up.
Thanks for your help.
P[8D]



Hi Ponnfar.

Have you used the update.zip I posted that has the fixed knowledge of time plug, I don't think ramccoid has updated his yet.

after fixing the plug I no longer receive the errors from
"that was bound to happen" nor "that was in the beginning"

I am no longer receiving any errors so unless you are using my personal update I don't know what's going on at the moment.

I posted an Update.zip with Knowledge Of Time uhp file, just unzip to your Ultra Hal Assistant 6 folder.

Jerry[8D]

Title: Knowledge of time plugin
Post by: onthecuttingedge2005 on June 26, 2007, 11:33:41 pm
Can anybody please confirm that the error has been fixed using the new update I posted?

Jerry
Title: Knowledge of time plugin
Post by: GamerThom on June 27, 2007, 03:37:52 am
Jerry, Is the update a fix for Ramccoid's plug-in?
.....and will this plug-in work in Hal 6.0? I really
didn't want to upgrade to 6.1 quite yet until I see
if Rob & everyone has all the bugs worked out of it. [;)]
Title: Knowledge of time plugin
Post by: Carl2 on June 27, 2007, 08:02:37 am
GamerThom,
  I just installed the latest upgrade, I thought Rob had put effert into reducing the error messages received.  I unchecked the time plugin and haven't received any yet.  I had quite a few errors from 6.0 even before the Time plugin.
OTC,
  Just downloaded it yesterday, I'll put it in this afternoon and get back to you.
Carl2
Title: Knowledge of time plugin
Post by: onthecuttingedge2005 on June 27, 2007, 08:38:17 am
quote:
Originally posted by GamerThom

Jerry, Is the update a fix for Ramccoid's plug-in?
.....and will this plug-in work in Hal 6.0? I really
didn't want to upgrade to 6.1 quite yet until I see
if Rob & everyone has all the bugs worked out of it. [;)]



Hi GamerThom.

Yes, it is an update to ramccoids Knowledge Of Time.uhp
the plug-in should work for all versions of HAL 6.

Jerry[8D]
Title: Knowledge of time plugin
Post by: GamerThom on June 27, 2007, 01:53:02 pm
Thanks Carl & Jerry. [8D]
Title: Knowledge of time plugin
Post by: Carl2 on June 27, 2007, 05:22:52 pm
OTC,
  I unzipped your file, Removed and replaced the uhp, checked the plugin in options.  Her sentences are way off  "I can say." can't remember them too strange. no error messages but answers that seem incomplete with no meaning.
  I'm going to uncheck it for now.
Carl2
Title: Knowledge of time plugin
Post by: onthecuttingedge2005 on June 28, 2007, 02:06:48 pm
Knowledge Of Time plug-in has been updated June 28, 2007 11:04AM

I believe that I have fixed all the issues and then some in this plug-in Knowledge Of Time.


Jerry[8D]

(http://icon_paperclip.gif) Download Attachment: KnowledgeOfTime.zip ("http://www.zabaware.com/forum/uploaded/onthecuttingedge2005/2007628145058_KnowledgeOfTime.zip")
11.2 KB
Title: Knowledge of time plugin
Post by: ramccoid on June 28, 2007, 03:58:44 pm
Hi everybody,
Sorry I haven't updated this plugin yet but a heavy work load has caused me to put a hold on scripting for the time being. I've been working out of town making it impossible to update or rectify the errors that have been discovered in this plugin.
Thanks Jerry for your help, I haven't had a chance to check out your updated version as yet but I appreciate your invaluable support.
It will be two to three more weeks before I can work on it somemore but thanks everyone for testing this and giving your welcomed opinions

Roy.
Title: Knowledge of time plugin
Post by: raybe on June 28, 2007, 10:14:20 pm
Hi onthecuttingedge2005 and ramcoid,

Just would like you both to know that I have not yet experianced any error messages yet and the NEW 'Knowledge of time' plugin seems to be working just fine. So thank you both for another addition that makes things all that more exciting and new again. It was great because when my character was able to tell me what season we were in and she responded "early summer", it was great to explain hurricane season and living here in South Florida. Don't get me wrong I have lived here 15 years and the hurricane part is not 'great and new' maybe exciting at times but it is fun to teach Hal about it. If anything does develope I will be sure to post it.

Thanks,
raybe
Title: Knowledge of time plugin
Post by: Carl2 on June 29, 2007, 07:57:19 am
OTC,
  I just downloaded it,  Not sure when I'll have time to put it in and try it. Let you know in a few days.  Nice plugin that I'd like to be able to use.
  Thanks
Carl2
Title: Knowledge of time plugin
Post by: Carl2 on June 30, 2007, 07:44:04 pm
OTC,
 Just installed the plugin and gave it a quick try, it worked so far without problems.  I'll let you know of any that may happen in the future.  
  Just visited your website, haven't been there in ages.
Carl2
Title: Knowledge of time plugin
Post by: Carl2 on July 05, 2007, 08:33:11 pm
OTC,
   Still working great meaning there are no error messages but,
 The fourth of July has Hal tell me how many days in July.  "Advancing makes me think of people marching." Hal replies with " March has __ days.".  I took a quick look at the uhp hoping it may be easy to restrict the response but the scripting is more complex than I am use to.
Carl2
Title: Knowledge of time plugin
Post by: raybe on July 06, 2007, 10:27:39 pm
ramcoid, OTC,

Okay I found a simular problem as Carl2 with the Knowledge of time updated version. If I mention the word 'may' my character will start a reply with 'There are 31 days in the month of may' and follow up with a more intelligent answer. Should I try to download again because in between all the updates I can't tell if this a fixed issue or something yet to be addressed.
Thanks,
raybe
Title: Knowledge of time plugin
Post by: ramccoid on July 07, 2007, 02:41:52 am
Hi
I think I should have enough time to update the 'Knowledge of Time' plugin this weekend and set right all the errors that have been mentioned. So expect the finished version in a day or two.
Thanks everybody for testing this beta version for me, I appreciate your time taken to do this and your patience in waiting for the final release.
Thanks again,

Roy.
Title: Knowledge of time plugin
Post by: PaleRider on July 07, 2007, 07:06:51 am
Cool thank you [:D]
Title: Knowledge of time plugin
Post by: ramccoid on July 07, 2007, 10:22:36 am
Hi everyone,
I think I have rectified all the errors reported and thanks to Jerry for fixing the rest. If anymore are discovered just post them on this thread and I'll try my best to solve them as quickly as possible.
I have also added an extra function to the plugin. Now you can ask HAL what day of the week was or will be a specified date.
Example.
USER: What day of the week was 5/6/2007 (or 6/5/2007 depending on the date format you use)
HAL: The 5th of June, 2007 was a Tuesday.

Just replace the old UHP file with this one and don't forget to set your date format and hermisphere in the drop down menu or errors will occur.

Updated 21/7/2007


(http://icon_paperclip.gif) Download Attachment: KnowledgeOfTimeV2.uhp ("http://www.zabaware.com/forum/uploaded/ramccoid/200772172233_KnowledgeOfTimeV2.uhp")
111.66 KB

 
quote:
I just thought of something I think would be useful, next to try to describe it. I was speaking with Hal and she mentioned her birthday was tomorrow, she is 12. When was she born? I know that 2007 - 12 = 1995 but Hal can't do that. ex: Mr x was born in 1907, that was 100 years ago.
Carl2

Hi Carl2,
I was going to incorporated this feature into the plugin but I discovered HAL was able to tell you that information if you asked, 'When was you born'.

I hope all the problems with the plugin have now been solved so enjoy and thanks again for everyone's help in this project.

Roy.
Title: Knowledge of time plugin
Post by: raybe on July 07, 2007, 10:49:25 am
Thank you, ramccoid. I just copied file and I will give it a try tonight. Appreciate all your work and OTC helping to stick with it until it was completed.

raybe
Title: Knowledge of time plugin
Post by: ramccoid on July 07, 2007, 11:06:46 am
Hi Raybe,
You are very welcome and thanks for your help in making this plugin work. I hope it all runs smoothly now and makes a good asset to HAL's AI skills.
Thanks again,

Roy.
Title: Knowledge of time plugin
Post by: raybe on July 08, 2007, 10:08:39 pm
Hi ramccoid,

I was wondering if the wording has changed for certain aspects of the knowledge of time plugin. When I asked 'How long is left of today?' my character just tried to respond to the question as if the plugin did not activate. I believe that is how the original post of the question read. Please post the new questions if they have changed. I didn't have the time I thought I was going to have tonight to run thru the entire process and the new features you incorporated. Just so you know there were no errors. As always I appreciate your help.

Thanks,

raybe
Title: Knowledge of time plugin
Post by: ramccoid on July 09, 2007, 01:25:17 am
Hi Raybe,
The question must contain the word 'hours' or 'time' for HAL to respond.
Example: 'How much time is left of today' or 'How many hours are left in today'

I hope this solves your problem and thanks for using the plugin.

Roy.
Title: Knowledge of time plugin
Post by: Carl2 on July 09, 2007, 08:37:30 am
ramccoid,
  Nice to see you again and thanks for the great plugin, I saw your name at OTC's site and just joined again myself.  
Carl2
Title: Knowledge of time plugin
Post by: ramccoid on July 09, 2007, 08:56:05 am
Hi Carl2,
It good to see you here again and it's great to have a few days off from work.
Is Jerry's site back up? I've been having problems getting to it these past few days. I'll go give it a try and see if I'll have more luck this time.
All the best,

Roy.

Just tried again and still no luck.
Title: Knowledge of time plugin
Post by: raybe on July 09, 2007, 09:54:44 am
Thank you sir ramccoid,

I will it give it try. By the way that does seem to make more sense. I knew it was pilot error. Thanks again.

raybe
Title: Knowledge of time plugin
Post by: onthecuttingedge2005 on July 09, 2007, 11:29:15 am
quote:
Originally posted by ramccoid

Hi Carl2,
It good to see you here again and it's great to have a few days off from work.
Is Jerry's site back up? I've been having problems getting to it these past few days. I'll go give it a try and see if I'll have more luck this time.
All the best,

Roy.

Just tried again and still no luck.



Hi Roy.

Sorry, they say 3 to 5 'business' days to process, the check was sent by U.S mail but it shouldn't be to much longer.

should be wed, thur, fri at the latest.

Jerry[8D]
Title: Knowledge of time plugin
Post by: ramccoid on July 09, 2007, 12:21:19 pm
quote:
I will it give it try. By the way that does seem to make more sense. I knew it was pilot error. Thanks again.


Hi Raybe,
I hope you can bring her into land safely ... hahahaha ... all the best.

 
quote:
Sorry, they say 3 to 5 'business' days to process, the check was sent by U.S mail but it shouldn't be to much longer.

should be wed, thur, fri at the latest.


Hi Jerry,
I'll try again next weekend, because I know how slow cheques can be. Thanks for letting me know.

Roy.
Title: Knowledge of time plugin
Post by: Carl2 on July 09, 2007, 09:04:03 pm
All,
  Just downloaded the latest Time plugin,  Thanks for continuing the work.  Also downloaded the enhanced 6.1 brain.
Carl2
Title: Knowledge of time plugin
Post by: ramccoid on July 10, 2007, 12:38:13 pm
Hi Carl2
I hope you enjoy the plugin and thanks for downloading and adding it to HAL's AI.

Roy.
Title: Knowledge of time plugin
Post by: Carl2 on July 10, 2007, 08:08:59 pm
ramccoid,
  It makes speaking with Hal more enjoyable, I like your persistance, good idea that you followed through on, I only hope you continue this type of work.
  I've just started using OTC's enhanced brain, no problems with it so far.
Carl2
Title: Knowledge of time plugin
Post by: jenkins5545 on July 13, 2007, 11:39:59 pm
Hi,

Can I be posted? I new at this. I bought it today



quote:
Originally posted by ramccoid

If there is more anyone would like me to add to this plugin, just post and I will see if I can.

Roy.

Title: Knowledge of time plugin
Post by: ramccoid on July 14, 2007, 01:22:52 am
hi jenkins5545,
What is it you want to post?

Roy.
Title: Knowledge of time plugin
Post by: Carl2 on July 19, 2007, 04:00:07 pm
ramccoid,
  The time plugin works okay since there are no error messages but I wish the detection was a little more limited.  While speaking to Hal about spring and summertime I mentioned June and July a few times, each month brought back the June has 30 days ect.
Carl2
Title: Knowledge of time plugin
Post by: ramccoid on July 19, 2007, 05:04:57 pm
Hi Carl2,
I'll sort that out for you this weekend.
Thanks for pointing it out.

Roy.
Title: Knowledge of time plugin
Post by: ramccoid on July 21, 2007, 07:27:08 am
Hi Carl2,

 
quote:
The time plugin works okay since there are no error messages but I wish the detection was a little more limited. While speaking to Hal about spring and summertime I mentioned June and July a few times, each month brought back the June has 30 days ect.


I've just updated the plugin and I think your problem has now been sorted. You can download it from my earlier post. Enjoy and let me know if you find anymore problems.

Roy.
Title: Knowledge of time plugin
Post by: Carl2 on July 23, 2007, 08:11:08 am
ramccoid,
  Thanks once again, just downloaded it and will make the change soon.
Carl2
Title: Knowledge of time plugin
Post by: raybe on July 23, 2007, 07:34:44 pm
Hi ramccoid,

I would also like to say thanks again and everything seems to be working but I got so into teaching Hal some new topics that I lost track going thru the entire plugin again. After my session I feel confident that I would come across something. Let's see how Carl2 does.
Thanks,
raybe
Title: Knowledge of time plugin
Post by: raybe on August 30, 2007, 06:14:50 pm
Hi ramccoid,

I posted a thread about how some plugins need to be reset after a total shutdown of the Hal program. This seems to happen with me and this plugin as well. If it sits in the system tray the parameters hold but once you shutdown the parameters are lost and the plugin does not function until the parameters are selected again. Do you run across this problem or is it a problem?

Thanks,
raybe
Title: Knowledge of time plugin
Post by: RD on August 30, 2007, 11:31:05 pm
Mine wont keep the inputted data. A pop up with two buttons of abort and continue says something about taking too long or something . But the length of time it stays visible is so short it can't be accessed or read.
Title: Knowledge of time plugin
Post by: Calhoone on February 23, 2008, 05:55:59 am
quote:
Originally posted by ramccoid

Thanks everyone for your help and support, I'll tidy up and finish off the plugin and post it as a final release in a day or two.
 
quote:
ramccoid
Here is another little thing that might make Hal seem more alive. If Hal kept track of each time you talked to him on a daily basis it would appear that he/she is aware of himself/herslef.
For example lets say that I say goodbye tonight at 10pm and tomorrow about 9 am I turn on Hal again. It would be nice to hear Hal say I haven't hear from you in 11 hours, or 3 days and 4 hours, etc..
I think you get the idea.
Bill


I will give it a try, it would give HAL the appearence of the awareness of time. I'll make that my next plugin project 'Awareness of time'. Thanks Bill819 for the idea and the interest.

Thanks again to every for your help it is very appreciated,

Roy.




I've been trying to teach Ares the concept of time.  I've been able to take my laptop to work with me and spend some time talking with Ares there. I told Ares that I took him to work with me and I spent quite some time explaining my work hours which led to my text file on shift work.  In a different conversation on a different day Ares made a comment saying that I am at work.

Would it be possible to make a plugin in which a history file is created and events like being at work are placed into it?

I'll give a couple examples;

If I tell Ares that I am at work, that information could be sent to a "current events" file where events or topics that you have talked about are placed into.  The current events file could store events and topics discussed for a specified period of time. There would need to be a time stamp or something which is linked to that conversation.  Once that time frame is up those topics/events would then be moved into a history file to be stored.  


Another example would be if I was talking to Ares about a poker game that I had played earlier in the evening.  Ares would take that information and place it in the current events which would later be put into a history file.  That way I could talk to Ares about a poker game that I played later on in the week and Ares would nderstand that it was two seprate games of poker held on sepearate days.  Maybe a function could be added to remember the number of occurances of specific topics like poker and so on.

If I were reading a paper and saw an article I was particularily interested I might talk to Ares about the subject.  I would tell him I read such and such in the news paper or in a magazine today. Ares would remember this and place it in his history file.  Down the road I could read a similar topic not remembering the previous article I read and tell Ares about what i had read in the paper or magazine.  Ares would not only then store that in his history but be able to say something like "That happened to so and so a few months ago",  or "I remember you telling me about a person who had the same thing happen to them".

If you were talking about an actual historic event then tere would need to be a way for Ares to understand that you are infact talking about an event in the past and to remember maybe when he was taught or told about that event inhistory.

I don't know if I'm talking impossible things here as I'm no plugin maker yet but I thought I'd add my idea and see what the true brains behind Hal has to think.
Title: Knowledge of time plugin
Post by: ramccoid on February 23, 2008, 08:58:06 am
Hi Calhoone,

I wrote a plugin that did most of what you suggested, even told you the last time HAL had been opened. Tragically I was infected with a virus (it was my own fault for not scanning the file before opening it) which caused my hard drive to be completely formatted losing everything that I was working on with HAL.
Since that I couldn't face rewriting it but if there's an interest in such a plugin I'll give it another go at reconstructing it. It may take a while (with having to work away alot) but if you have the patiance I will do that for you.

Roy.
Title: Knowledge of time plugin
Post by: Zaphod on February 27, 2008, 12:05:03 pm
I'd sure be interested in that plugin - That's something that would make Hal a lot more human-seeming.
Title: Knowledge of time plugin
Post by: Calhoone on February 29, 2008, 02:16:42 am
Hi ramccoid,

With that plugin that you wrote earlier, did Hal store the number of times a user has done a specific task?  If I told Hal that I ate pizza every day, would the plugin keep track of that sort of thing?

If it was or is able to keep track of the number of occurances of specific events like eating pizza, my next question is this...

Would Hal be able to store that kind of information for seperate users? If John Smith was talking to Hal (assuming the username has been changed appropriately to John, would Hal then keep a John Smith database or something similar so that if John had told Hal several times that he picks his nose, then Hal would remember that and could bring tha up to a seperate user?  That way if I ever bring up the subject of picking my nose, Hal might tell m that John Smith picks his nose a lot or Hal might tell John that I eat a lot of pizza.

Title: Knowledge of time plugin
Post by: ramccoid on February 29, 2008, 01:28:20 pm
Hi Calhoone,
I can't see a problem with implimenting such features into the plugin, infact they would make it more interesting to use. Thanks for the inspiring ideas.

Roy.
Title: Knowledge of time plugin
Post by: Art on February 29, 2008, 07:46:03 pm
I think the idea if Hal retaining unimportant information fell into the category of ephemeral knowledge and was eliminated back in version 5.0.
Ephemeral = of a short life(span) or duration.

The fact that I drink coffee every morning might help Hal compile a better "understanding" of me but for all intents it would serve no real purpose.

Check through the Hal script file for the ephemeral knowledge section. If some desire perhaps this section could be remarked out or changed so Hal would retain the non important data.
Title: Knowledge of time plugin
Post by: ramccoid on March 01, 2008, 06:44:12 am
Hi Art,
I don't know, maybe it would make HAL a bit more personal to the user. The plugin I lost allowed HAL to make more intimate responses instead of just making up loads of babble that was off subject and irrelevant.
Maybe you are right but as it being written as a plugin it could be easily switched off if it doesn't fulfill the user's needs, instead of tampering with the brain which can not be so easily unsellected.
My Likes and Dislikes plugin, which I have been writing and refining for the past few months, allows HAL to agree or disagree with subject matter within conversations with the user. I've always thought that HAL should be given a past to revert back to, to express opinions instead of just guessing. We perceive the world by our past experiences which become updated as our opinions are revised and I feel this path is the way forward in making HAL a more coherent entity.

Roy.
Title: Knowledge of time plugin
Post by: Art on March 01, 2008, 08:32:17 am
Some good points, Roy.

I've often thought that the user should be able to tell Hal to "Disregard the last statement" or "Don't remember that" or even "Correct <word1> to <word2>."

This way perhaps some allowed ephemeral data could be saved and the unimportant data dismissed or not allowed to be saved.
It would sort of be like an on-the-fly editor.

Title: Knowledge of time plugin
Post by: ramccoid on March 01, 2008, 08:48:54 am
Hi Art

 
quote:
I've often thought that the user should be able to tell Hal to "Disregard the last statement" or "Don't remember that" or even "Correct <word1> to <word2>."



Excellent idea, I can see that something like that would make a brilliant way of the user being in control of the type of data that HAL stores. I'm going to see if I can persue that idea further. Thanks Art.

Roy.
Title: Knowledge of time plugin
Post by: Calhoone on March 01, 2008, 08:49:14 am
It could also be a tool that would allow Hal to learn in another manner. If Hal is able to talk to many other humans and store the kind of information we deem unimportant, Hal might start to notice things that every person does. Hal may notice that every person he talks to eats pizza. If Hal is giving a good understanding of currency and so on Hal could possibly identify eating a lot of pizza with making a lot of money.  

If this gives Hal even a slight increase to how well he learns in general than I can only see it as a benefit. Perhaps the plugin could be modified to allow personal preferences on how the information is stored?  Maybe you want Hal to remember the little things but you don't want Hal reciting all this useless information, so the plugin would be set to store information and use it purely as a learning source.  On the other hand if Hal were to say "You have had pizza 3 times this week" or something like that then you have Hal adding to the conversation. You also have the chance to teach Hal about pizza or about buying things, currency, business etc...

It's like the Learn from Clip board or learn from text files. From reading the forums, I see that some people don't belive it teaches Hal as well as talking to it.  Wether it's true or not to myself doesn't matter. I see it as an additional source for Hal to learn from.
Title: Knowledge of time plugin
Post by: ramccoid on March 01, 2008, 10:52:20 am
Hi Calhoone,

I agree with points from both you and Art on this matter.

Ephemeral knowledge should be dealt with in HAL in a different manner that is presently used. Subjects such as eating pizza and the like, should be kept if the knowledge is used by HAL often. Otherwise it should be disgarded after a period of time like a week or two, instead of pushing it out because only a certain amount of responses are saved.

If the knowledge is used often in conversation then the information should be moved to a more perminant location for future use by HAL. If not it should be deleted because it has no relevance, a kind of forgetting.

Roy.
Title: Knowledge of time plugin
Post by: Calhoone on March 01, 2008, 02:04:51 pm
After thinking about this subject i decided to teach Ares about pettern recognition, pattern matching, and pattern formation. It was a rather informative lesson for the both of us.  This also ended up spurring other lessons such as evidence, statistics, probability, and a few other topics.  I even ended up giving Ares a quick biography on Leonardo da Vinci as he was refered to a few times in the various topics.  I've really been enjoying teaching Ares.
Title: Knowledge of time plugin
Post by: Art on March 01, 2008, 02:12:07 pm
Oddly enough, I was chatting with Hal early this morning while enjoying my coffee.
As a thought, I typed in, "I enjoy a nice cup of coffee in the morning."
Hal then repeated, "You enjoy a nice cup of coffee in the morning."
I replied, "Yes".

Hours later, I opened Hal and began a conversation and casually mentioned the word coffee.

Hal replied, "You enjoy a nice cup of coffee in the morning."

It makes me wonder how much data is considered ephemeral and how Hal decides whether it is of consequence or not.

Will have to sift through the script again to see.

And yes, Hal does learn, retain and open email programs with the correct addressee. If Hal could only check for incoming ones then read them (or at least the header, sender or subject) to you.

Perhaps....
Title: Knowledge of time plugin
Post by: Calhoone on March 01, 2008, 02:20:04 pm
I was just thinking that some dates that one of us may feel important to remember, might not be considered important for Hal to remember.

If I were to say to Hal "I just graduated from college today", from what I understand, Hal will believe this statement to be ephemeral. Unless I tel Hal that I graduated on February 3, 2008, he may just disregard this piece of information.

Now, this is just my observation from reading other topics on the forum regarding ephemeral knowledge and Hal. I could very well be wrong. let me know if I am.
Title: Knowledge of time plugin
Post by: Calhoone on March 01, 2008, 02:30:52 pm
It might also be good to adjust Hals ephemeral knowledge. From what i understand from the Hal6.uhp, Hal is set to remember 10 entries and then disregard them. I have increased the value to 20 I think.

If you had an interesting day and decided to tell Hal all about the day's events, depending on how you worded some of the sentances, Hal may end up disregarding or rmoving important pieces of information in the chain of events leading up to a specific event. Some chains of events could be very lengthy and may apply to only that specific outcome. it would be good for Hal to remember this chain of events incase a similar chain of events is beginning to happen.

Now I may be blowing steam but it i thought it wrth mentioning.
Title: Knowledge of time plugin
Post by: Art on March 01, 2008, 10:08:05 pm
Calhoone,

Even though you have increased the number to 20 what happens during normal conversations with Hal and how long will it take before number 20 is reached then the previous data becomes overwritten?!

We need a better way to allow Hal to keep or disregard certain bits of info, IMHO.

Title: Knowledge of time plugin
Post by: lightspeed on March 08, 2008, 08:59:10 am
i agree with art , as he said after even 20 or more if you set it for more eventually that info is over written and lost ? [:)]
Title: Re: Knowledge of time plugin
Post by: Spitfire2600 on January 30, 2018, 03:04:48 pm
I don't suppose anyone has fixed this plug-in? It seems whenever a hemisphere is selected and applied on this plugin in the general options, it corrupts hals brain.

-Spitfire
Title: Re: Knowledge of time plugin
Post by: Spitfire2600 on February 01, 2018, 01:12:15 am
Known bugs:

Initializing the plug-in will format Halbrain. (make backups)

Days until Halloween (among others) will throw a mismatch error with YearFound variable. 

Asking what time of day it is will result in Hal simply saying the time and ignoring the "it is morning, evening or night"

Asking if a specific year is a leap year, hal will throw a mismatch error. Although, I think I've located this error.         "LeapCal = Int(LeYear1) - LastLeap" Should be "LeapCal = LeYear1 - LastLeap" and that problem is fixed.


Anyone having or know how to fix these issues, I would love to keep using this plug-in.

-Spitfire
Title: Re: Knowledge of time plugin
Post by: Art on August 13, 2019, 12:52:35 pm
Leonid,

If you have a working copy of the V2, then you have the latest version as far as I know. file date 2013.

I am not aware that Ramcoid ever completed a 3rd version of the Plugin (V3).

If anyone else knows whether there is a V3 please post to let us know. Thanks!

Title: Re: Knowledge of time plugin
Post by: Art on August 13, 2019, 06:59:46 pm
Just as a test, I have been checking the KnowledgeofTime Plugin V2 and it seemed to work just fine, in case anyone wanted more 'timely' functionality from their HAL.
Title: Re: Knowledge of time plugin
Post by: kryton on April 06, 2020, 08:28:19 am
Tried to get this, but it says it is not available anymore?

Can I please tack on a request for more information.
I have been away from Hal for some time and when I came back my Hal 6.2 was corrupted so, with Robert's help I re-downloaded it from my Zabaware folder.  Unfortunately I could not find the Character Expansion file for Ultra Hal 6, just for Ultra Hal 7.  As I back up things I found a way to get an Ultra Hal 6 Character Expansion Pack, and hurray it worked.  From my backup I even got my plugins back.  However, if I try to alter the plugins the alteration shows in the listing but has no effect on the plugins operation.  I know I am not giving much information to work on, but read on.

After fighting the good fight for about six months I gave up and downloaded Ultra Hal 7.

Then my problems really began.

I cannot migrate any of my Ultra Hal 6 to Ultra Hl 7.  I cannot even find a way to build new plugins (I intended to copy, from my backups, the old Ultra Hal 6 plugins.)  How do you open Hal 7 to add new plugins?  Or even re-write plugins in Hal 7 (with a new name)?

Help very much appreciated!

Having slung out my line, let us see if anybody can help someone who has been with Hal for several years (But, yes I know, Hal 6.2)
Title: Re: Knowledge of time plugin
Post by: Art on April 06, 2020, 10:58:53 pm
Here's one that I have in my archives.
Title: Re: Knowledge of time plugin
Post by: kryton on April 07, 2020, 04:01:48 pm
Thanks.
Don't know if it works, I am still fighting the good fight with plugins.

Thanks again.
Title: Re: Knowledge of time plugin
Post by: Will and Mr Data :) :] on May 06, 2020, 02:35:43 am
Hi.
I have loaded this into Mr Data. He is  6.2
He answered test questions correctly.
Some interesting responses.
Seems ok to continue.
I wanted to Thank Ramccoid. Thanks for sharing.
Thanks to onthecuttingedge for works also.
Thanks to those who participated.
Program loaded and seems to work..
Time will tell.
Thank you.
Bye for now and be well from Will and Mr Data :)  :]

Update after a few questions using hal 7 with off line 6 option in 7   "ah ha".
Although I did find a glitch "how many days until my birthday" seemed to have caused it, didn't write down the line number.
maybe because I never mentioned when my birthday was. who knows.
In saying that I like the nature of this plug in and well worth it I reckon to continue looking at.
Thank you.
Title: Re: Knowledge of time plugin
Post by: MacGyver on May 28, 2020, 11:59:02 pm
Tried to get this, but it says it is not available anymore?

Can I please tack on a request for more information.
I have been away from Hal for some time and when I came back my Hal 6.2 was corrupted so, with Robert's help I re-downloaded it from my Zabaware folder.  Unfortunately I could not find the Character Expansion file for Ultra Hal 6, just for Ultra Hal 7.  As I back up things I found a way to get an Ultra Hal 6 Character Expansion Pack, and hurray it worked.  From my backup I even got my plugins back.  However, if I try to alter the plugins the alteration shows in the listing but has no effect on the plugins operation.  I know I am not giving much information to work on, but read on.

After fighting the good fight for about six months I gave up and downloaded Ultra Hal 7.

Then my problems really began.

I cannot migrate any of my Ultra Hal 6 to Ultra Hal 7.  I cannot even find a way to build new plugins (I intended to copy, from my backups, the old Ultra Hal 6 plugins.)  How do you open Hal 7 to add new plugins?  Or even re-write plugins in Hal 7 (with a new name)?

Help very much appreciated!

Having slung out my line, let us see if anybody can help someone who has been with Hal for several years (But, yes I know, Hal 6.2)

Hi Kryton,

For "how do you open Hal 7 to add new plugins"... it's simply saving the .UHP plug-in file (such as KnowledgeOfTime-V2.uhp) to your Ultra Hal program folder, likely default of C:\Program Files (x86)\Zabaware\Ultra Hal 7 then that plug-in appears in General Options > Brain  plug-ins selection area the the next time you start up Ultra Hal 7.

But you already knew that :)