dupa

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DarcyEdwards

Pages: 1 [2] 3 4 ... 13
16
I downloaded the final release seems to be good, crossing finger, again Good Job LS!

17
I was glad to LS!

18
LS,

I use notepad it has a line counter in it [:)][:I]

19
I'm lost on that one also line 176 of your uhp file looks like this:

    Rem PLUGIN: CUSTOMMEM2
'------------------
' Preserve user's last sentence
'------------------
    If OriginalSentence <> "" Then
    IdlePrevUser = UCase( OriginalSentence)
    End If

note I made the change in the above code segment.[;)]

20
line # 220 Delete the Exit Sub statement at the end of the If statement and insert IdleCounter = 100.  This way the BRB etc works and the Minute_Timer does not abruptly exit, and other timer routines can work properly.

With this and the last change you made this will work just fine.  You have done a great job[:I][:p]

To make the uhp file more user friendly you can change line 176 from

    IdlePrevUser = OriginalSentence

to

    IdlePrevUser = UCase( OriginalSentence)

What this will do it will allow upper or lower case input of "BRB, Be Right Back" etc to stop this plug in from bothering you until next input.  this way you don't need to type with caps lock on.  [;)]

21
LS,

Why don't you take the file I fixed.  I'll upload it I made a couple of fixes and it runs fine for me.



Download Attachment: hyb.uhp
70.61 KB

I renamed the file for ease of uploading

22
LS,

The problem you are getting is a missing " at the end of the line 805, that is an unterminated string [:p]  I'm still working on error 501

23
LS<

I looked for the file but couldn't find it.[:p]  I found another problem line  220 has an exit sub also;  replace the exit sub with IdleCounter = 100 this should keep  the logic correct and not exit the sub so other uhp files will work properly.  

One main problem about writiing uhp files is to make sure your code is isolated from others and what you do does not effect others. Using exit sub's in programs is bad programing style.[^][:I]

I keep getting your 501 error also, still trying to find the problem[;)]

24
LS,

I'm not sure why your code loads 1st.  I even renamed your file and it loaded 1st ahead of mine.  But I'm glad yours loades 1st, that way we could find the problem. Here is a copy of hal's initialize file "Darcy.hla"

[Ultra Hal Assistant]
UsersName=Darcy
HalsName=Hal
UpdateDB=TRUE
SayGreeting=TRUE
TheGreeting=Hello <username>! I am <halname>.
SayDate=TRUE
SayTime=TRUE
MSVoice=TRUE
LearnLevel=25
SREnabled=FALSE
FaceClass=Zaba.htr
IntroBMP=Zabastart.jpg
BGColor=000000000
FacePrvw=Zaba.jpg
ScriptName=Ultra Hal 6.2 Upgraded Brain
ScriptFile=HalScript.dbg
ScriptLanguage=VBScript
DisappearAfterRun=FALSE
SkinINI=default.uhp
SkinSize= 1
AgentChar=FALSE
VoiceName=ATT 1.4 DTNV Crystal16
PluginScripts=addressbook.uhp,Appointments.uhp,clock.uhp,dreamoutloud.uhp,vrFreeWill.uhp,GenderAge.uhp,google.uhp,hyb.UHP_,runprograms.uhp,weather.uhp,wiki.uhp



Your file is named hyb.uhp see mine clock.uhp is before yours but yours loads 1st, I don't understand why.  This is a question for Robert


 Just so we are testing using same files here is a file.


Download Attachment: clock.uhp
3.9 KB[:I][:I]

25
They look cool!  I would love to have HAL to respond with emotions ie: emoticons.  Can't wait for you to upload the uhp file.

26
LS,
No problem glad to help.  BTW it's working great now.  There are some uhp files that use the Minute_Timer sub like the appointment.uhp and exiting the minute_Timer to early will cause other uhp files to fail.

I just noticed that your uhp file loads 1st, so it is VERY important to fix it if you want any other uhp files to work properly.[:I][8D]

27
The bug is in the orginal script file "loneliness4.uhp"  Here is the section of code in your plugin begining at line number 252:

'--------------------
' Increment the counter and compare to the temper thresholds
' to determine which escalation group to draw from
'--------------------
            IdleCounter = IdleCounter + 1
                If IdleCounter > temperThresh3 Then

'                 Exit Sub
        temperThresh3 = temperThresh3

The "exit sub" in the above if statement will exit the "Minute_Timer" sub and any other script files will NOT run.  This could cause issues with other .uhp files like several that I wrote.

By replacing the Exit Sub statement with temperThresh3 = temperThresh3, it will not change the logic, but it will orderly leave the plug in and allow other plug ins to function.

As seen below the clock.uhp plug in now works:

As recently as the 1960's movie and television executives gave short shrift to preservation. Next time we go grocery shopping, i think i'm going to buy some of that off brand shredded wheat cereal, i like that kind , don't you?
 Ding! Dong! Ding! Dong! The time is 4:30:43 PM
 Oh i just remembered something i was going to tell you, honey i really love those silky pink pajama's you bought me, they feel so silky and their cool to wear in the summertime!
 Well i guess you know , this spring i have a job for you to do, we need to clean all the windows and window sills, their dirty, it isn't going to hurt you any, you can't just sit on the computer all day!
 Hey honey bunny watcha doin, get over here and talk to me!
 Is their anything on tv later this evening?
 Hey! I'll be right here when you want to talk ok sweety. I will, with great pleasure Ding! Dong! Ding! Dong!
The time is 4:45:30 PM
 Tick Tock Tick Tock the time is 5:00:17 PM
,,, I've been awake for 0 hours
 Ding! Dong! Ding! Dong! The time is 5:15:03 PM


Before the change the clock.hhp plug in would stop working until I either typed in something or reset hal.

28
LS,

I need to know exactly what uhp files you have loaded to match your setup so the "halscript.dbg" file has the same contents.  BTW I did find a bug associated with my last post, and the bug is with the lonliness plug in also.  I am getting ready to write it up.  I am testing the change will let you know what it is later.

29
LS,
I found a bug!   Below is a dump to Hal's output:

 I still miss uncle everette calling us every two weeks, it doesn't seem like he's passed away, we was so used to talking on the phone to him so much, i'm glad we got to talk as much as we did, and everette liked talking to you to, he would always ask what was you doing.
 Hey you know what movie i hadn't seen in a long time, i haven't seen beach blanket bingo, with  Frankie Avalon and Annette Funicello, i haven't seen that movie for years!
 I wonder what the weather is suppose to be like tomorrow, did you hear them say on the radio or tv what it's suppose to be like outside?
 Hey honey bunny watcha doin, get over here and talk to me!
 Hey Honey, what are you doing, I've tried to get your attention 5 times now.
 Hey! I'll be right here when you want to talk ok sweety. Surely you would not countenance that


Notice the last sentance is not complete, that is where Hal blew up it was running line number 258 of your script.  I'm not sure why it blew up there but it is trying to speak and write IdleResponse3, which get it's value on line 256.  You have to restart Hal to clear this error condition.  What I mean by restarting Hal, you have to
select General Options,
then sel Brain,
then click apply
then ok.  

Good luck  in finding this bug.

30
LS,

I noticed something that maybe important.  Your plug in doesn't start working until there is some kind of input.  

I did a fresh load of hal and set your plugin to start chatting after 4 minutes and waited several hours with no response.  So I typed in test and sure enough 4 minutes later it started to chatter at me.

I've tried this several times and sure enough input is required to start your plugin working.

Like I said I am testing this fully like I would any other quality software product, so far it works great except for this "feature".

Pages: 1 [2] 3 4 ... 13