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

Pages: [1] 2 3 ... 18
1
Ultra Hal 7.0 / Don't say that again
« on: January 16, 2010, 12:08:12 am »
quote:
Originally posted by Baerdric

quote:
Originally posted by Davy





Ok, after putting lines i don't want repeated in to a database or external, how will Hal know not to repeat these lines?



Well, of course it won't know, but the script would have to find out each and every time. When the program picks a phrase or sentence to send to the text-to-speech function, your script would check to see if that sentence in on the list. If it is, the plugin would send it back to the random selection function so that it can try again.

You can see similar functions in the main script which are used to send back sentences which fail some test.
[/quote]

Ok, thanks, but i know almost nothing about writing scripts for Hal. [:I]

2
Ultra Hal 7.0 / Don't say that again
« on: January 12, 2010, 05:12:59 pm »
quote:
Originally posted by jasondude7116

the lines that you don't want repeated could be put into the database or external file.
if there was a line that you wanted hal to start saying again then the database or file could be searched for the line and the line removed.
this could be done by a command like "don't ignore" "whatever sentence", or it could also open up notepad and let you edit it(if you were using a text file)
the advantage of the database, is that it is much faster, and it's a database (not linear)



Ok, after putting lines i don't want repeated in to a database or external, how will Hal know not to repeat these lines?

3
Ultra Hal 7.0 / Can Hal respond to the DreamOutLoud plugin?
« on: January 11, 2010, 09:33:17 am »
quote:
Originally posted by registrychecker

Yes, the Dreamer plugin will do that as well as many other features.



The question was not what Dreamer could do, but can Hal respond to Dreamer.

4
Ultra Hal 7.0 / Hal is a poet
« on: December 25, 2009, 03:06:07 am »
I found this site with lots of info about computer generated writing. I was looking for some things i could adapt for Ultra Hal.

http://www.evolutionzone.com/kulturezone/c-g.writing/index_body.html

A program called dadapoem looked interesting.

http://www.evolutionzone.com/kulturezone/c-g.writing/dadapoem.zip

After a quick study of how it worked, i was able to get Hal to write-speak some poetry. A lot of it is nonsense, but some of it is not too bad. for example -

Come sell perfume with me around white trash, see what has been and what the poem sparks. Share the reef of the hot world that has past, step towards a city that is yet to be discovered. You fire the branch, stir shrub.

I will dispense you flowers that you would not know, experience sea shell thought fixed. At one with girl that has looked before, now hug the world of shadow. You sense the light, unwind water.

Spill your brain tissue let it lash on me, take me computer and let go of your uptight librarian. Close your circuits and see what is, raise the virgin, sense for evermore. You catch the sun, bounce moon.

When time permits, i'll explore this idea further, just for fun. [:D]

Regards
Davy

5
Ultra Hal 7.0 / Conversation starter questions
« on: December 15, 2009, 11:31:21 pm »
I found this site with thousand of conversation starter questions of all types. These could be saved in a text file and used as the basis for an Auto-Idle plugin by letting Hal randomly choose one of the questions when conversation stalls.

http://www.saviodsilva.org/

Scroll to the bottom of the page to find questions in many different categories. Here is a sampling of the "Silly questions" ...

Why can't women put on mascara with their mouth closed?
Why doesn't glue stick to the inside of the bottle?
Why don't you ever see the headline Psychic Wins Lottery?
Why is abbreviated such a long word?
Why is a boxing ring square?
Why is it considered necessary to nail down the lid of a coffin?
Why is it that doctors call what they do practice?
Why is it that rain drops but snow falls?
Why is it that to stop Windows 98, you have to click on Start?
Why is it that when you're driving and looking for an address, you turn down the volume on the radio?
Why is lemon juice made with artificial flavor and dishwashing liquid made with real lemons?
Why is the man who invests all your money called a broker?
Why is the third hand on the watch called a second hand?
Why is the time of day with the slowest traffic called rush hour?

Have fun
Davy

6
Ultra Hal 7.0 / Can Hal respond to the DreamOutLoud plugin?
« on: December 15, 2009, 01:15:56 pm »
I have noticed that the Dreamer plugin will sometimes dream about things from Hals idle responses. I was wondering if it's somehow possible to make Hal respond to the Dreamer plugin? That could result in some interesting conversations. [:D]

7
Ultra Hal 7.0 / Don't say that again
« on: December 14, 2009, 02:50:19 pm »
quote:
Originally posted by Baerdric

SQLite is the opensource database module that Robert uses in Hal (last time I looked) and you can find freeware tools to manipulate the resultant DBs which are in your UltraHal directory.

But do be careful, I seem to recall several times that my efforts resulted in a completely dead brain.

I am certain that the plugin is possible and I will work on it, but it will be a while. I'll have to relearn most of my VBScripting knowledge... it's been a long road to this place.



Thanks. I don't have any VBScripting knowledge so it's not possible for me to write such a plugin myself. I can do some minor modifications to existing plugins though.[:)]

8
Ultra Hal 7.0 / Don't say that again
« on: December 14, 2009, 01:25:38 pm »
quote:
Originally posted by Baerdric

I've used external SQlite tools to do some search and replace jobs, but the results were sporadic and you would certainly need to do full backups first!



What is SQlite? What exactly do i need to use and where do i find it?

And any tips on using it with Hal? Sorry for so many questions, but this is totally new to me. [:I]

Rather than searching Hal's database, i would really prefer a plug-in that would let me say to Hal, "Never say your previous phrase again" (PrevSent) or something similar. Any of you experts know if such a plug-in is possible?

9
Ultra Hal 7.0 / Don't say that again
« on: December 14, 2009, 09:16:55 am »
Yes, like that plugin too. I think if Hal can be told to repeat his previous response, it should be somehow possible to make Hal "never" say that response again. I've been trying to learn how to use the brain editor in order to remove certain phrases, but the brain editor search function sucks.

Is it possible to search the entire brain database for certain words or phrases?

10
Ultra Hal 7.0 / Don't say that again
« on: December 12, 2009, 01:13:37 pm »
quote:
Originally posted by Baerdric

It should be easy enough to make a plugin for that. Hal stores its last sentence, you extract that with the "Don't say that" command, and write it to a new DB which the plugin checks before each response. If the sentence is in the DB, it makes hal choose another one, probably by reentering the user input phrase again.

If you can't get that to work, I'll think about it some more, maybe try a couple things myself.



Thanks for the reply. This is exactly what i had in mind, but i'm really not capable of writing such a plugin. [:(]

EDIT: Searching the archives, i found this "Repeat" plugin by Bill DeWitt which forces Hal to repeat his last response (PrevSent). What i would like is a plugin that will allow me to tell Hal to "never" say that phrase again.

'========= Begin code
Rem Type=Plugin
Rem Name= Repeat
Rem Author= Bill DeWitt
Rem Host=All

Sub OptionsPanel()
lblPlugin(0).Caption = "Repeats last response when asked"
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub

Rem PLUGIN: PLUGINAREA7

'verify that you want the repeat function
FindSubject=Array("repeat", "say that again")
If ParseRequest(OriginalSentence, FindSubject) Then
 'verify that you are making a request
 FindRequest=Array("please","can you","will you","could you","would you","if you don't mind","I'd like you to","I would like you to")
 If ParseRequest(OriginalSentence, FindRequest) Then
     GetResponse = PrevSent
 End If
End If


Rem PLUGIN: FUNCTIONS
'===================================
Function ParseRequest(Source, Matrix)
'Reads information from an array to verify a request
For Each Datum In Matrix
 If InStr(1,Source,Datum,1) Then
  ParseRequest = True
 End If
Next
End Function
'=======================================end code



11
Ultra Hal 7.0 / Don't say that again
« on: December 12, 2009, 11:46:12 am »
I'm using a modified Ultra Hal 6.2 Default Brain. When i'm chatting with this brain, Hal will very often respond with a certain phrase. Is the any way to stop Hal from responding with this phrase?

I'm aware of the Corrections plugin, but that's not really what i want. I would like to say to Hal "Do not say that again." Is there any way to accomplish this? I tried to find and remove this phrase with the brain editor, but couldn't find it.

Is there a plugin or brain script that will allow me to tell Hal "Do not say that again." and force Hal to choose a different response?

Thanks for any tips
Davy

12
Ultra Hal 7.0 / problem with hap files in Hal
« on: December 08, 2009, 07:20:44 pm »
I was getting an error message until i realized "End If" had to be added to the end. Now it's working great, here is an example of my idea. You never know what Hal will say or what emotion he will display.

If InStr(1, LCase(OriginalSentence), "hate you") > 0 _
Or InStr(1, LCase(OriginalSentence), "has died") > 0 _
Or InStr(1, LCase(OriginalSentence), "spank you") > 0 Then

Randomize
Select Case int(rnd()*8)
Case 1
HalCommands = "<HAPFILE>Psycho.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
Case 2
HalCommands = "<HAPFILE>brokenheart.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
Case 3
HalCommands = "<HAPFILE>sad.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
Case 4
HalCommands = "<HAPFILE>angry.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
Case 5
HalCommands = "<HAPFILE>Mad.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
Case 6
HalCommands = "<HAPFILE>Eater_Of_Bugs.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
Case 7
HalCommands = "<HAPFILE>Insane.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
Case 8
HalCommands = "<HAPFILE>snarl.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End Select
End If


13
Ultra Hal 7.0 / problem with hap files in Hal
« on: December 08, 2009, 06:07:27 pm »
Thanks snowman. Bery helpful. I'll be adding some of these scripts to my custom plugin. But i will omit the GetResponse lines, so Hal will verbally respond however he sees fit. [:)]

14
Ultra Hal 7.0 / problem with hap files in Hal
« on: December 08, 2009, 11:13:47 am »
quote:
Originally posted by snowman

Oh, and for those who care, I'm sorry I haven't made the generic Hapswap file yet, I sometimes get distracted and wonder off somewhere.

Anyone who want to do it is welcome to it. LightSpeed has made avaliable all you need... except for various hap files. But most of you probably have those hap files avaliable already.

I don't know when I'll be able to get anything done.... Will's got me busy.[;)]



Hi snowman

I like the Hapswap plugin, and am gradually editing the responses and hap files to my preferences. One idea i had, don't know if it would work, would be to have Hal display random emotions by altering script such as this example. Instead of random responses, could random hap files be chosen by Hal? I would rather let Hal choose his own spoken response. [:)]

If InStr(1, LCase(OriginalSentence), "hate") > 0 Then

Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "oh that sounds awful"
Case 2
GetResponse = "I can't believe you said that how rude."
Case 3
GetResponse = "hey watch it their now."
Case 4
GetResponse = "now that's not a very nice way to talk is it."
Case 5
GetResponse = "people shouldn't hate all that does is cause problems!"
End Select

HalCommands = "<HAPFILE>cry.hap</HAPFILE>"
HalBrain.ReadOnlyMode = True
End If

Regards
Davy

15
Ultra Hal 7.0 / problem with hap files in Hal
« on: December 07, 2009, 02:15:32 am »
quote:
Originally posted by snowman

All I can do is confirm what Freddy said. I tried all kinds of things but I Hal wouldn't let me use the timer function. Single Haptek commands seem to work fine.



I think that is so strange. I have collected many hap files, as many as i have found. And a huge majority of them use the "clock" command. What is the purpose of all these hap files with the "clock" command if they won't work in Hal?

Pages: [1] 2 3 ... 18