Zabaware Support Forums

face matching emotion plug in

Started by lightspeed, May 24, 2007, 12:18:40 PM

Previous topic - Next topic

markofkane

#15
2571 error again, so it's consistent with that one plug-in enabled.



attached.



Download Attachment: HalScript.zip
32.44 KB

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

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

#17
Do you want me to repost those lines?

Thanks!!![:D] I keep forgetting.
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

#18
Hi Mark.

line 2571 is:


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]




markofkane

#19
I don't have a folder called "users". Should I make one?



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

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

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

#22
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]
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

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

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

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

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

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

bill you want not truth to "get around" so you reply not to your plug-in.
5d30d2c942

ramccoid

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