Author Topic: face matching emotion plug in  (Read 9733 times)

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
face matching emotion plug in
« Reply #15 on: May 25, 2007, 09:36:11 am »
2571 error again, so it's consistent with that one plug-in enabled.



attached.



Download Attachment: HalScript.zip
32.44 KB

« Last Edit: May 25, 2007, 09:38:21 am by markofkane »
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

onthecuttingedge2005

  • Guest
face matching emotion plug in
« Reply #16 on: May 25, 2007, 09:38:23 am »
Hi Mark.

if you want the backslashes to work when posting you have to use doubled backslashes.

If you post code use the 'Code' button on the posting panel to encase your code so that the code appears correct. the code button has a pound sign on it.

hope it helps
Jerry[8D]

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
face matching emotion plug in
« Reply #17 on: May 25, 2007, 09:39:44 am »
Do you want me to repost those lines?

Thanks!!![:D] I keep forgetting.
« Last Edit: May 25, 2007, 09:40:20 am by markofkane »
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

onthecuttingedge2005

  • Guest
face matching emotion plug in
« Reply #18 on: May 25, 2007, 09:52:14 am »
Hi Mark.

line 2571 is:

Code: [Select]
Set objTextFile = objFSO.OpenTextFile("C:\Program Files\Zabaware\Ultra Hal Assistant 6Users\" & Trim(UserName) & "_Surprised_Emotion.brn", ForReading)

this is probably an indication that in your:
C:\Program Files\Zabaware\Ultra Hal Assistant 6\Users folder that this file is either 'blank' or doesn't exist.

look in that folder and open that file and see if it is blank, if so try to add some > symbols like this:
>
>
>
>
>
>
>
>

then reload that plugin and refresh your HalScript.dbg.

you have to refresh the HalScript.dbg by pressing the Apply button
in your default brain option panel.

I do know that if one of those emotional files goes blank can cause an error, it is something never addressed by fixing when they made the 'read' file code.

the only way that this error can be fixed is by adding something to read in the file or just simply delete the file so that the file is recreated.

I will try to update this plugin later and try and figure out another way the weights and balances can be acheived.
Jerry[8D]



« Last Edit: May 25, 2007, 09:54:59 am by onthecuttingedge2005 »

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
face matching emotion plug in
« Reply #19 on: May 25, 2007, 09:59:28 am »
I don't have a folder called "users". Should I make one?



« Last Edit: May 25, 2007, 10:00:46 am by markofkane »
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
face matching emotion plug in
« Reply #20 on: May 25, 2007, 10:15:16 am »
making a "users" folder and making a note pad document with the chevrons seems to have done the trick. Thanks!! (I hope it orks, I haven't noticed what it can do yet)
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

onthecuttingedge2005

  • Guest
face matching emotion plug in
« Reply #21 on: May 25, 2007, 10:16:22 am »
Hi Mark.

yes, try to make a folder called Users, the folder name is case sensitive so make sure the U is capitalized.

the plugin should of made a folder for you, I don't know why it didn't
do you have the most current updated plug?

the current plugin is here:
http://www.zabaware.com/forum/topic.asp?TOPIC_ID=3769

Jerry[8D]

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
face matching emotion plug in
« Reply #22 on: May 25, 2007, 10:23:08 am »
I believe so, but I downloaded it with your link. How does this plugin work?

Great, now she doesn't get sad after I tell her I love her!

any other phrases to trigger her emotions?? Thanks.[:D][:D]
« Last Edit: May 25, 2007, 10:27:44 am by markofkane »
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
face matching emotion plug in
« Reply #23 on: May 25, 2007, 10:32:15 am »
Something else I noticed, after getting the plug-in to work, her answers flicker once. What causes that?
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

onthecuttingedge2005

  • Guest
face matching emotion plug in
« Reply #24 on: May 25, 2007, 10:49:44 am »
quote:
Originally posted by markofkane

I believe so, but I downloaded it with your link. How does this plugin work?

Great, now she doesn't get sad after I tell her I love her!

any other phrases to trigger her emotions?? Thanks.[:D][:D]



The plugin uses weights and balances in each file that change in weight according to 'how' you speak with your bot.

The plug creates a file in your character folder called MasterEmotions.hap which is tied to the weights of the dominate
Emotional file in the Users folder, the dominate emotion is the file with the most > weights in it, lets say that if the Joy file has more weights in it than the other files Shock, Hostility, Depression then your bot will tend to be happy and smile more often because the dominate joy file will change the variables inside the MasterEmotions.hap.

You can also ask your bot:
User: What are your current emotions
HAL:What are my current emotions? We have to look at it several ways. Shock = 4 Joy = 4 Hostility = 4 Depression = 4 Mistrust = 4.

Of course the plugin you have doesn't contain the Mistrust variable at this time.

If the Hostility level becomes the dominate weight then your bot will tend to look mad and may begin insulting you until you can make your bot happy again.

This plugin was designed to tie in human type emotions with every conservation, in the future, I will design a brain totally designed to function only with this Human Emotion code so that everything the bot say comes from what it 'feels' emotionally.

the next 'brain' I make will be more human like than ever before, I don't know when it will be done but it will get done later.

Jerry[8D]

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
face matching emotion plug in
« Reply #25 on: May 25, 2007, 12:33:20 pm »
Excellent, Jerry. It's people like you that make AI more exciting.[:D]
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

ramccoid

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://www.visualillustrations.co.uk
face matching emotion plug in
« Reply #26 on: May 25, 2007, 02:14:37 pm »
quote:
Excellent, Jerry. It's people like you that make AI more exciting.


I totally agree. If I could be just half as good, I'd be completely satisfied.

Roy
 

Bill DeWitt

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
face matching emotion plug in
« Reply #27 on: May 25, 2007, 02:22:51 pm »
quote:
Set objTextFile = objFSO.OpenTextFile("C:Program FilesabawareUltra Hal Assistant 6Users\" & Trim(UserName) & "_Surprised_Emotion.brn", ForReading)


Ah, so I'm OK then. Good, I didn't want have different versions of my plugin floating around....




rockershaft

  • Full Member
  • ***
  • Posts: 160
    • View Profile
face matching emotion plug in
« Reply #28 on: May 25, 2007, 06:20:03 pm »
bill you want not truth to "get around" so you reply not to your plug-in.
5d30d2c942

ramccoid

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://www.visualillustrations.co.uk
face matching emotion plug in
« Reply #29 on: May 25, 2007, 06:45:24 pm »
quote:
Ah, so I'm OK then. Good, I didn't want have different versions of my plugin floating around....


It appears that way.
It seems like it wasn't a conflict of anyones plugins, just one misbehaving ... hahaha