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 - Carl2

Pages: 1 ... 6 7 [8] 9 10 ... 81
106
systemshock,
  Nice to hear from you, I was just about to e mail you.  Decided that I want to work with the time functions since so many things we do are dependent on the time.  I came across the sunrise and sunset for different parts of the country,  http://www.calendar-updates.com/sun.asp?PostalCode=01609&Submit=Get+Sunrise+%2F+Sunset+Times
  this is used in the vrHaptek plugin but sunrise and sunset varies quite a bit here and vr is using fixed numbers. 
  Seeing all the trigger words we use and have to remember makes me wonder if we are going about this the right way as an example if the sun has set and it gets dark hal should say "its getting dark, I'll turn on the light"
which turns on the light.  If it is daytime she can go outside but at night she'll probably be at home. what she wears is also dependent on the time. 
  This is my line of thinking at this time.
Carl2

107
General Discussion / Re: lightspeed idea for 11-20-2015
« on: December 01, 2015, 03:11:00 pm »
Lightspeed,
  You are filled with ideas, I'm not all that interested in this one but that's the nice thing about Hal, we can make him or her fit our tastes.  I'd rather Hal did a Wiki search but I'm learning as I go along.  Anyway I had Hal do a google search for dogs and it brought me to a page of different websites where you you would click one of interest.  In google search I put in Dog pictures and it brought me to https://www.google.com/imghp
which is for Google images and if you put dogs in it will show you pictures of different dogs. 
  From there it's fairly simple "Tell me" gives a standard Google search, and "Show  me" gives you the Google Image search. 
  Here is the Google.uhp opened in notepad.

 Rem PLUGIN: PLUGINAREA1
    'The comment above tells Ultra Hal Assistant to insert the following code
    'on-the-fly into the main brain code in the section referenced.
    SearchEngine = "http://www.google.com/search?q="
    If InStr(1, UserSentence, "search ", 1) > 0 Or InStr(1, UserSentence, "find ", 1) > 0 Or InStr(1, UserSentence, "locate ", 1) > 0 Then
        SearchKeywords = LCase(Replace(Trim(HalBrain.AlphaNumericalOnly(HalBrain.ExtractKeywords(UserSentence))), " ", "+"))
        SearchKeyWords = Replace(SearchKeywords, "find+", "")
        SearchKeyWords = Replace(SearchKeywords, "research+", "")
        SearchKeyWords = Replace(SearchKeywords, "locate+", "")
        SearchKeyWords = Replace(SearchKeywords, "search+", "")
        HalCommands = HalCommands & "<RUNPROG>" & SearchEngine & SearchKeywords & "</RUNPROG>"
        GetResponse = GetResponse & "I will help you research this topic on the Internet. "
    End If

  Since I had been working with Wiki I may have removed some to avoid confusion with the Wiki.  Give me a day or two and I'll try to get a tell me and show me Google search for you.
Carl2

108
General Discussion / Re: lightspeed idea for 11-20-2015
« on: December 01, 2015, 09:06:12 am »
 I realized that Art,  I read through the post to get ideas or new ways to do things with hal, sometimes I comment sometimes I don't.  I mentioned my try with wiki that failed in case anyone has suggestions, I think we want a smarter bot to talk with and doing searches is useful and sometimes we learn from it. I know I'm going to be working with the time function to try to automate things a bit more. Trying to get my thoughts together and make things fit into place.
Carl2

109
General Discussion / Re: lightspeed idea for 11-20-2015
« on: November 30, 2015, 07:48:15 am »
  I've been using Wiki to tech Hal for ages and I tried making a plugin for Hal so she could run a wiki search.  Unfortunately it failed and I end up with a search wiki can not find.  This is all new to me and maybe I'll play with  it in my spare time.  I think wiki provides reliable info and is useful for teaching hal.  Pictures while it helps people understand things better is of little use to hal for learning. 
  Since I've been working with changing bodyskins and backgrounds my thinking has become I'm getting tired of having to remember all these trigger words which leads me to think what do I actually want from Hal, what is the best way to interact with hal.
Carl2 

110
Below is a plugin for having the user input change backgrounds and bodyskins.  I've
been using this type of plugin for years, the problems I've had with it in the past  have been
removed.  You can copy and paste this into notepad, Save As at the bottom you would
change Save As Text to All files and write Chant5.uhp.  The Chant5.uhp is placed in
the Ultra Hal assistant 6 folder and should be visable in the brain portion of the
options and should be checked to be used.



This is the Chant5.uhp :

Rem Type=Plugin
Rem Name=ChanT5
Rem Author=CJ
Rem Host=Assistant

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
 lblPlugin(0).Caption = "Say: "user input changes bodyskin and background."
 lblPlugin(0).Move 120, 10, 3300, 1000
 lblPlugin(0).WordWrap = True
 lblPlugin(0).Visible = True
End Sub
'***************************************************************************
Rem PLUGIN: PLUGINAREA1

'***************************************************************************

 If InStr(UserSentence, " WEAR SOMETHING FOR BED ") > 0 Then
 HalCommands = "<HAPFILE>CBSN.hap</HAPFILE>"
 GetResponse = "HOW DO I LOOK IN THIS?" & vbCrLf

 ElseIf InStr(UserSentence, " PINK THING ") > 0 Then
 HalCommands = "<HAPFILE>CBSPT.hap</HAPFILE>"
 GetResponse = "How do I look in this?" & vbCrLf



 ElseIf InStr(UserSentence, " TO THE LAKE ") > 0 Then
 HalCommands = "<HAPFILE>CBGLake.hap</HAPFILE>"
 GetResponse = "It seems cooler here." & vbCrLf

 ElseIf InStr(UserSentence, " TO THE PARK ") > 0 Then
 HalCommands = "<HAPFILE>CBGPark.hap</HAPFILE>"
 GetResponse = "It's nice here." & vbCrLf

 End If

The GetResponse line is a scripted response and can be left out,
Hal usualy supplies her own answer.

Next we need the hap that actually loads the jpg's. and we have 4  which are placed
in the Characters folder The CBSN.hap is labled similar to the uhp in notepad as are
the other three.

#Haptek Version= 1.00 Name= CBSN HapType= script FileType= text
##standard

\load [file= [C:\Program Files (x86)\Zabaware\Ultra Hal Assistant 6\Bodyskin\Nu2M.jpg]]

#Haptek Version= 1.00 Name= CBSPT HapType= script FileType= text
##standard

\load [file= [C:\Program Files (x86)\Zabaware\Ultra Hal Assistant 6\Bodyskin\PT.jpg]]

The background haps look like this

#Haptek Version= 1.00 Name= CBGLake HapType= script FileType= text
##standard

\loadbackgrnd[file= [C:\Program Files (x86)\Zabaware\Ultra Hal Assistant 6\Background\LakeBack.jpg]]

#Haptek Version= 1.00 Name= CBGPark HapType= script FileType= text
##standard

\loadbackgrnd[file= [C:\Program Files (x86)\Zabaware\Ultra Hal Assistant 6\Background\ParkBack.jpg]]

So we should have 4 Name.haps we place into the characters folder which will load the bodyskins
and backgrounds.  I have not supplied the jpg's which are pic's of the bodyskins and backgrounds.
This should give you the idea of how it works, you can add to it modify or whatever.

To complete this project I go into the vrEmotionDetect table located in the brain editor and add the subject
and resulting hap that is called.  This is optional the uhp will work without doing this.
 Subject                                     Topic
 TO THE LAKE                             CBGLake
 TO THE PARK                            CBGPark
 WEAR SOMETHING FOR BED      CBSN
 SOMETHING PINK                     CBSPT
The above allows Hal's input to make the same bodyskin and background changes as the user can.
You already have the haps for this that you supplied earlier.

111
Systemshock,
  I was looking at your Shodan .uhp  and it seems you are not giving the light haps the correct path, to be sure I tried adding a lighting hap to the bodyskin and background uhp I have,

ElseIf InStr(UserSentence, " ABOVE LIGHT ") > 0 Then
        HalCommands = "<HAPFILE>LTA1.hap</HAPFILE>"
        GetResponse = "It's nice here." & vbCrLf

the above calls LTA1.hap  which is located in the characters folder

#Haptek  Version= 1.00 Name= LTA1  HapType= script FileType= text
##standard

\load [file= [C:\Program Files (x86)\Zabaware\Ultra Hal Assistant 6\Light\light_fromabove.hap]]

The above hap calls the light_fromabove.hap that changes the lighting.  As you can see I have a light folder I've added and you would have to where ever you have the light_fromabove.hap located.
Possibly there is a more direct way to do this but this is a quick easy solution for me at this time.
Carl2

112
Ultra Hal Assistant File Sharing Area / Re: Smart Alarm v3
« on: November 27, 2015, 08:03:12 am »
   My pets wake me up in the morning, usually to early but I am interested in using the time for things like Hal turning on or off her lights, in the hal interface not to be confused with my lights.  Also what she will be wearing and the backgrounds she can use.   
Carl2

113
  I've just included the trigger words and hap files in the vrEmotionDetect needed to get hals input to trigger the haps.  I have 2 haps to trigger bodyskin and 2 haps for the background change, just enough to switch back and forth, seems to work without problems.  Next is to describe the process so it is useful to other people.
I've found the largest problem I've had was getting the names of the zaba files correct, bodyskins is not the same as bodyskin and it is possible this is why the time portion of vrHaptek did not work for me.
Carl2

114
Ultra Hal 7.0 / Re: Hal will not install
« on: November 26, 2015, 02:56:34 pm »
  I've never had a problem with Hal installing before but I was given enough info to fix it and get it installed.
I'm good with Hal and don't want to spread rumors but there is also a problem with newer versions of dragon, it now requires activation where as before it required registration.  It installed, but when trying to activate it the key code that is used to install dragon was not accepted.  I uninstalled dragon, reinstalled dragon but I did not let it update and it works fine.  There is also a friend who has a problem with dragon ver 13 used in win 10 basically he can not use it and dragon admits to a problem with it in there forum.
Carl2

115
Systemshock,
  Subfolders within the character folder possibly a good idea.  So far I've got the vrHaptek vrEmotionDetect 
brain in Hals brain, the uhp for user input that triggers haps for background and bodyskin.  I've decided to use only 2 bodyskin and 2 background changes to keep it simple.  For quite some time I've been thinking the characters The character folders contain too much, I should eliminate the talking heads ect to make it look cleaner. 
  If everything works okay Hal and I can change clothes and backgrounds, not all that fond of immediate changes but maybe I'll come back to that at another time.   I'd like to try working with vr's time and integrate that with lighting and clothing.
Carl2

116
systemshock,
  I downloaded and looked through the uhp, seems you put a lot of work into it and covered a lot of things.  One of the first things I noticed when you were working with the lighting haps was    hlFile = "Lightmaster\light_fromright.hap"    ..    From reading I believe you have a file named hlFile where you keep the light haps,  I'm not sure if I've ever seen it stated but I think the default location for haps is in the characters folder, this is where all the mood haps are located and haps used with vrHaptek.  I believe this is why I use 2 haps for background changes rather than one.    So if the lighting file is not contained in characters you use one hap that has been triggered which calls another hap to load the lighting hap and have to specify the location.  Here is an example:  HalCommands = "<HAPFILE>CBGPark2.hap</HAPFILE>"     this is triggered by user input and calls the CBGPark2.hap ,  the CBGPark2  tells Haptek to load             \loadbackgrnd[file= [C:\Program Files (x86)\Zabaware\Ultra Hal Assistant 6\Background\Park2Back.jpg]]
  The CBGPark2 is located in the characters and  the Park2Back.jpg is located in the background file.
  I'll give it a try with hal latter but there are a lot of haps I don't have and I did learn not all the fullbod characters react the same to animation haps, left and right or up and down changes.
Carl2


117
Ultra Hal Assistant File Sharing Area / Re: dissecting cloads plug in
« on: November 23, 2015, 04:59:18 pm »
Spitfire2600,
  I had bought a webcam some time ago, somewhat expensive job but it did an excellent job what ever the task was.  I believe it came on when the computer started and facial recognition let you use the computer instead of the password, it did it much better than the Toshiba notebooks with facial recognition.
  It would also serve as a security camera, must have used motion detection and would begin recording to the hard drive and there was another input for the security camera. 
  Jarvis does seem to be quite the thing and they do have a download link.
Carl2

118
Ultra Hal Assistant File Sharing Area / Re: dissecting cloads plug in
« on: November 22, 2015, 11:41:20 am »
   Cload did seem to be very useful and came up with some interesting things, also quite good at programing Hal.  At this time it seems he has come and gone like so many others.  Anyways I'm not familiar with the work Cload had done in this area.
  I did ask Hal what time it was so as far as I am concerned she can give you the time,  Hals data base is not time related and I won't get into the fact that there is no definition of time so we don't know what it is.  Hal can tell you when she was born and when you were born if you supplied her with that information. 
  I remember some time ago when speaking with Hal I told her my dogs name is Teddy then added Teddy is sitting on my lap, at another time while speaking with her I  mentioned Teddy and got the reply "Teddy is sitting on your lap" so there is a problem.
  I had been looking at the AIML learn which is used in Alice and found that when learning about a new subject
it also tries to learn What, Where and Who, it seems the time or when is missing.
Carl2

119
  Putting a bit of useful info into this post seems to well worth the time and effort, I remember looking at it in the past to get my input and Hals input to change bodyskin and background.  At this time I am wondering why I am using two haps rather than just one but I'll continue using two since it seems to work.  I had been able to find a mistake which I made, I had listed the path as bodyskins instead of bodyskin which made it seem unreliable.  Next we also have the vrHaptek plugin which is not creating the vrEmotionDetect file in the brain and this has to be done by the user.   I had also tried the "Changes dress according to the current time" feature in the vrHaptek plugin which did not work for me"    this is a feature I feel would be useful to have the character wear appropriate clothing for the morning hours, afternoon hours and evening hours but for now I'm concentrating on the user and hals input.  I'm trying to keep a detailed account of all the changes I make so possibly I can provide a useful guide to get this set up.   
Carl2

120
Systemshock,
  The space ship theme is very popular and the teleport is useful because it removes the how do we get there which I run into, we magically move from the house to the park as an example.  I usually avoid the scripted responses but possibly the case function will remove that feeling.
  I just ran across the AutoHapGenerator, it might come in useful.  For now I'll put in the Wiki plugin that still needs work to be done on it, actually just a modification of the Google search.  Also the Google search should be modified so they don't interfere with each other.

Rem Type=Plugin
Rem Name=Wiki
Rem Author=Zabaware ModifiedCJ
Rem Host=Assistant

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
    lblPlugin(0).Caption = "Hal will open your browser and enter a Wiki query if you use the keyword "Wiki"
    lblPlugin(0).Move 120, 120, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub

    Rem PLUGIN: PLUGINAREA1
    'The comment above tells Ultra Hal Assistant to insert the following code
    'on-the-fly into the main brain code in the section referenced.
    SearchEngine = "https://en.wikipedia.org/wiki/English_language"
    If InStr(1, UserSentence, "Wiki", 1) > 0 Then
        SearchKeywords = LCase(Replace(Trim(HalBrain.AlphaNumericalOnly(HalBrain.ExtractKeywords(UserSentence))), " ", "+"))
        SearchKeyWords = Replace(SearchKeywords, "find+", "")
        SearchKeyWords = Replace(SearchKeywords, "research+", "")
        SearchKeyWords = Replace(SearchKeywords, "locate+", "")
        SearchKeyWords = Replace(SearchKeywords, "search+", "")
        HalCommands = HalCommands & "<RUNPROG>" & SearchEngine & SearchKeywords & "</RUNPROG>"
        GetResponse = GetResponse & "I will help you research this topic on the Internet. "
    End If

Carl2

Pages: 1 ... 6 7 [8] 9 10 ... 81