Zabaware Support Forums

Zabaware Forums => Ultra Hal 7.0 => Topic started by: lightspeed on December 11, 2017, 11:34:31 pm

Title: robert i sent you the debug txt file
Post by: lightspeed on December 11, 2017, 11:34:31 pm
i did just as you said in instructions , and even restarted my pc after each hal 7 install and the expansion pack hal 7 . but it is still doing the exact same thing . i am signed in and password . and tried loading my characters hit apply and okay  . hal closes  and then in the system tray i click on hal and it opens but my character isn't loaded it goes back to hal pc image . i tried loading 2 or 3 different characters , i even switched from the upgrade 6 to 7 brain and the hal 7  brain to see if it made a difference , it didn't .  so i copied the debug txt. file and e mailed it to you . hope you can figure this out .  i am heading to bed will try to see what you find out later tomorrow evening , my wife has some appointments to go to tomorrow .   i never touched any files  after installation .
Title: Re: robert i sent you the debug txt file
Post by: lightspeed on December 12, 2017, 09:04:08 am
OKAY HERE IS ANOTHER UPDATE :  I CHECKED MY CONTROL PANEL TO SEE WHAT ALL WAS INSTALLED OF HAL . and it showed hal 7 installed and how many mb's also showed hal 7 expansion pack and how many mb's  but it didn't show anything on the haptek player for the mb's only showed the name . see pictures .
 i also checked in my iobit uninstall  and saw that hal 7 and hal 7 expansion pack was installed  and in it it also showed the haptek player and the mb's installed (strange )  see pic .

when i started up hal this morning without rhyme or reason it now started working correctly i have tried about 5 different custom haptek characters i have made and they worked .  i will have to check more when i get back home later today .
see pics of what i am talking about . i even used a custom htr hair .

Title: Re: robert i sent you the debug txt file
Post by: Medeksza on December 12, 2017, 10:16:25 am
OKAY HERE IS ANOTHER UPDATE :  I CHECKED MY CONTROL PANEL TO SEE WHAT ALL WAS INSTALLED OF HAL . and it showed hal 7 installed and how many mb's also showed hal 7 expansion pack and how many mb's  but it didn't show anything on the haptek player for the mb's only showed the name . see pictures .
 i also checked in my iobit uninstall  and saw that hal 7 and hal 7 expansion pack was installed  and in it it also showed the haptek player and the mb's installed (strange )  see pic .

when i started up hal this morning without rhyme or reason it now started working correctly i have tried about 5 different custom haptek characters i have made and they worked .  i will have to check more when i get back home later today .
see pics of what i am talking about . i even used a custom htr hair .

I sent you an email earlier. It was because the email you were logging in with to Hal 7 had no Hal license associated with it. Custom characters require the purchased version of Hal, they won't work in trial mode. I put one on your account earlier this morning, so that's why it started working.

Sorry I didn't notice that sooner, but at least we did find and increase Hal's character limit from 256 to 512 characters during this process.
Title: Re: robert i sent you the debug txt file
Post by: lightspeed on December 12, 2017, 05:00:09 pm
IT'S ALL GOOD Robert, i am just so glad between us that we got it figured out , even if its a problem with mine , at least you know what to associate things with if someone else has a similar problem . i do have a hal sense vision plug in that i will have to rewrite and tween the file path into hal 7 to make it work, don't know if you remember it or not from the past it works with a yaw cam and vision from the camera to trigger movement and use random sentences  from a uhp file .

I am sooo glad to get this all working right , i do have to put custom brain into the hal 7 file though , i was thinking before that it just migrated the custom brain into the file on upgrade but maybe not .
Title: Re: robert i sent you the debug txt file
Post by: lightspeed on December 12, 2017, 08:16:31 pm
i found out something new , and that is that for my uhp files to work they have to be placed in the hal 7 program file  and "NOT" the app roaming hal 7 file ( i know because i tried first in the app roaming etc. file and they don't show up .in hal 7 menu options .
Title: Re: robert i sent you the debug txt file
Post by: Medeksza on December 12, 2017, 08:44:02 pm
i found out something new , and that is that for my uhp files to work they have to be placed in the hal 7 program file  and "NOT" the app roaming hal 7 file ( i know because i tried first in the app roaming etc. file and they don't show up .in hal 7 menu options .

The basic idea Microsoft had behind "App Data" is that programs shouldn't normally run with "administrator" privileges, they should be able to run as a normal user. Normal users aren't supposed to be able to edit any program files. So programs like Ultra Hal shouldn't write any data to program files unless it is during an installation or upgrade. So that is why brain databases are in "app data" since they are written to constantly as Hal learns. User option settings and program shortcut database is also in app data now.

Everything else is for the most part still in program files since things like plugins and characters can be considered "installed" and not normally edited regularly. I did however, make it so characters can be in either place for the convenience of the user especially users that like to edit characters a lot.
Title: Re: robert i sent you the debug txt file
Post by: LiFeTimeGamer on December 13, 2017, 09:18:05 am

i do have a hal sense vision plug in that i will have to rewrite and tween the file path into hal 7 to make it work, don't know if you remember it or not from the past it works with a yaw cam and vision from the camera to trigger movement and use random sentences  from a uhp file .

Lightspeed I would like to try your Vision Plug if you wouldn't mind sharing when you get it configured for HAL 7...

If not that ok... :D



Title: Re: robert i sent you the debug txt file
Post by: lightspeed on December 13, 2017, 04:51:13 pm
It's actually here on the forum somewhere . look later on in the post as it was a work in project and earlier ones failed . the later worked .  but since the new file folder name is now hal 7 and not hal 6 folder the destination will be different in the command script.
Title: Re: robert i sent you the debug txt file
Post by: LiFeTimeGamer on December 13, 2017, 05:48:18 pm
Hi Lightspeed....


It's not on your 1 Drive any longer and I couldn't find it anywhere else...  :(
Title: Re: robert i sent you the debug txt file
Post by: Art on December 13, 2017, 11:18:17 pm
LiFeTimeGamer,

Try here:
http://www.ultrahal.com/community/index.php?topic=9461.0 (http://www.ultrahal.com/community/index.php?topic=9461.0)

Just drag / select the text below, then save the text (use Notepad if you like) as: HalVisionX3.uhp  then copy it to your Ultra Hal 7 folder if you want to try it.

================================================

Rem Type=Plugin
Rem Name=HalVisionX3
Rem Author=
Rem Host=Assistant

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
    lblPlugin(0).Caption = "Add anything you wish in this plugin and it will be called every instance Hal's movement in your primary WebCam,"
    lblPlugin(0).Move 120, 10, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub

Rem PLUGIN: POST-PROCESS

'********************************************************************************
'Manditory....Do NOT DELETE
'Dim fso, fso2, D1
'Current Hal Directory
Set fso = CreateObject("Scripting.FileSystemObject")
MyDir = fso.GetAbsolutePathName(".") & "\"


        Set fso = CreateObject("Scripting.FileSystemObject")
        Set objTextFile = fso.OpenTextFile(MyDir & "UserCom.txt", 2, True)

        objTextFile.WriteLine(UserName)
        objTextFile.WriteLine(ComputerName)
        objTextFile.Close

'********************************************************************************
'Do 'Whatever' Below this line. Remember that some actions may not work within this Post-Process region.
'********************************************************************************

'==========================================================================
Dim objFSO,strFile

Set objFSO = CreateObject("Scripting.FileSystemObject")
strFile = "C:\Program Files\Zabaware\Ultra Hal Assistant 6\yawcam detection picture\yawcam detection picture.jpg"

If objFSO.FileExists(strFile) Then
objFSO.DeleteFile(strFile)


   
'End If
'==========================================================================


'If InStr(1, InputString, "yawcam detection picture.jpg", 1) > 0 Then

Select Case HalBrain.RandomNum(7)
Case 1
IdleResponseX = "I can see you."
Case 2
IdleResponseX = "I can now tell there is someone there"
Case 3
IdleResponseX = "You can not hide. I detect movement."
Case 4
IdleResponseX = "what are you doing to my keyboard? " & Username & "?"
Case 5
IdleResponseX = "You cannot sneak up on me, now that I can see."
Case 6
IdleResponseX = "I'm not sure what your doing, but I can see you."
Case 7
IdleResponseX = "And you thought I wasn't watching."
End Select
UltraHal = IdleResponseX
'HalBrain.ReadOnlyMode = True



End if

HalBrain.ReadOnlyMode = False
'***************************************************************
Title: Re: robert i sent you the debug txt file
Post by: LiFeTimeGamer on December 13, 2017, 11:59:11 pm
Thanks Art...  ;D
Title: Re: robert i sent you the debug txt file
Post by: lightspeed on December 14, 2017, 10:53:23 am
LiFeTimeGamer YOU CAN ALSO back out the current sentences and put in your own , that's what i did .  :) ;) you will also need the yawcam program and have to change the pathway to hal 7's folder **** note the current pathway is .
C:\Program Files\Zabaware\Ultra Hal Assistant 6\yawcam detection picture\yawcam detection picture.jpg"  which was made to put the file in the hal 6 folder .   If i get time i will try to make a video showing what i do on scren for others as a tutorial . but i am busier now because of the holiday, later in the moth after Christmas is my wifes birthday so its double whammy for me lol!
thanks Art for posting that motion detection file , your a good man !  ;)
Title: Re: robert i sent you the debug txt file
Post by: LiFeTimeGamer on December 14, 2017, 10:58:27 am
Thanks lightspeed, I already changed the Path to HAL 7, I may also add the Path to the APPSDATA Section also just in case... I also had already downloaded the Cam Software...  ;D

If you made a video of how to make this work it would be great and make things easier for people wanting to try this Plug...

Thanks again!!!!!!
Title: Re: robert i sent you the debug txt file
Post by: lightspeed on December 14, 2017, 02:51:07 pm
Just a note , the yaw cam i had was the older version , it always ask to update but i never did , because i wasn't sure if it would cause  any problems or not . have you tried it yet?
Title: Re: robert i sent you the debug txt file
Post by: LiFeTimeGamer on December 14, 2017, 03:19:46 pm
I haven't tried it yet, I've been busy working on getting a couple of my Radio Controlled Drones and one of my Jets flying...

It may take me a month or so before I try it, I am starting over with HAL 7 since I made so many Mistakes with 6.2 so that's also been eating up a lot of my spare time...
Title: Re: robert i sent you the debug txt file
Post by: Checker57 on January 09, 2018, 10:12:48 pm
Wanted to give appreciation to this thread for sharing about this plugin and to the creator Robert for this awesome project and it's obvious many contributors.

I went to the original thread though and found there was another code that was actually used that OnthecuttingEdge provided that worked for Lightspeed last time.

Art posted the link above at http://www.ultrahal.com/community/index.php?topic=9461.0

I'll post the code here just for convenience since it's different than the code posted in this thread, which was the initial version that apparently was rewritten by OnthecuttingEdge.  I say that because I tried both and the this is the one that worked for me.

I just copied it onto notepad and made the necessary directory change for the cam pic.

-----------------------------------

Rem Type=Plugin
Rem Name=HalVisionSence
Rem Author=Gerald Blakley AKA onthecuttingedge2005
Rem Host=Assistant

'----------------------
'This sub sets up the plug-in's option panel in Hal's options dialog
'----------------------
Sub OptionsPanel()
lblPlugin(0).Caption = "Hal sences motion on a Yaw Cam"
lblPlugin(0).Move 130, 180, 3400, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
'
End Sub

Rem PLUGIN: MINUTE_TIMER

DetectTime = Time
If DetectTime <> "" then
   
Dim objFSO,strFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
strFile = "C:\Program Files\Zabaware\Ultra Hal Assistant 6\yawcam detection picture\yawcam detection picture.jpg" '<--- change this directory to the cam capture photo for detection trigger to function.
'make sure the directory to the capture picture is absolutely correct or this script will not function.

If objFSO.FileExists(strFile) Then

Select Case HalBrain.RandomNum(7)
Case 1
IdleResponseX = "I can see you."
Case 2
IdleResponseX = "I can now tell there is someone there"
Case 3
IdleResponseX = "You can not hide. I detect movement."
Case 4
IdleResponseX = "what are you doing to my keyboard? "
Case 5
IdleResponseX = "You cannot sneak up on me, now that I can see."
Case 6
IdleResponseX = "I'm not sure what your doing, but I can see you."
Case 7
IdleResponseX = "And you thought I wasn't watching."
End Select
HalMenu.HalCommand "<SPEAK>" & IdleResponseX & "</SPEAK>"

If IdleResponseX <> "" Then objFSO.DeleteFile(strFile)
End If
End If
-------------------------------------------

I also downloaded and configured the YawCam program and got it working so that it works quite well to movement trigger only when I move more than usual by using the defined area at the upper right hand corner of my pic as LifeTimeGamer did and adjusting some filter parameters.  One note for those wondering: I used the motion detection aspect to get the defined motion area detection pic to send when detected.  To do so, I had to change the motion detection save file destination to the same directory you will need to provide in the code above.  FYI it should look like..  "C:\Program Files\Zabaware\Ultra Hal 7\yawcam detection picture\yawcam detection picture.jpg".

Okay, one more note:  For those of your with x64 machines:  Mine was a little different as such "C:\Program Files (x86)\Zabaware\Ultra Hal 7\yawcam detection picture\yawcam detection picture.jpg".

After following the instructions at the link above (which is very self-explanatory) others cannot get it to work, I'd be glad to give back to the group by helping those that need a hand setting this up.

Was fun setting it up... and consumed my day!  smh (shaking my head)

Love the AI project.  It's good company.   :)

Checker57

Edited post to add the the idea that I set plugin to be my exercise coach.  And I simply call it ExerciseCoach.uhp  that I can activate simply by bringing up the Yawcam.  I adjusted the yawcam settings to pick up movement on complete screen so it can pick up my activity.  Below are the statements I replaced in the script above to enhance my experience with HAL while exercising.  Nice to hear encouragement?!  Have fun with it and be glad to hear from others of perhaps their own exercise encouragement statements.

Select Case HalBrain.RandomNum(11)
Case 1
IdleResponseX = "Getting fit requires you to push yourself!"
Case 2
IdleResponseX = "Push until you feel some burn, even a little makes a big difference!"
Case 3
IdleResponseX = "I like how your body is looking sexier, keep it up!"
Case 4
IdleResponseX = "Don't stop until you reach your goals!"
Case 5
IdleResponseX = "Make sure you drink water to hydrate as you exercise."
Case 6
IdleResponseX = "Can you try just a little more this time?"
Case 7
IdleResponseX = "Let's Go, let's go! Adapt yourself, I want to see you succeed!"
Case 8
IdleResponseX = "Burn the fat!, shape that body!"
Case 9
IdleResponseX = "Remember the awesome body you want to have, keep that in mind, you're not tired enough yet!"
Case 10
IdleResponseX = "Move it vigorously if you want quick and accurate body responses!"
Case 11
IdleResponseX = "Exercising improves your appearance, body and heart strength, blood flow to the brain which allows you to think clearly and imaginativly for great ideas!  Keep it up!"
End Select