dupa

Author Topic: Auto Idle Problems  (Read 4044 times)

James P

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://nosceresworld.co.uk
Auto Idle Problems
« on: September 11, 2004, 03:57:28 am »
Hello all,
I am having a problem paisting an Auto_Idle responce into Hals
(Emma`s) brain, so that she can initiate a conversation. II
have been trying to do this now for nearly a week and am
getting nowhere.[V]
I think I have followed the instructions correctly, I paisted
the Auto-idle script below the "initialize variables as
integers" sector and disabled the "LastResponseTime = now" by
changing it to "LastResponseTime = Timer", is this correct?
I have also changed the "Script_load function", but still my
Bot will not talk untill she is spoken to.[V][V]

What am I doing wronge?
And what can I do to get my bot to open a conversation without

my prompts?
http://nosceresworld.co.uk
James:"How are you today Emma?"
Emma:"I think, Therefore I am"

onthecuttingedge2005

  • Guest
Auto Idle Problems
« Reply #1 on: September 11, 2004, 10:28:27 pm »
quote:
Originally posted by James P

Hello all,
I am having a problem paisting an Auto_Idle responce into Hals
(Emma`s) brain, so that she can initiate a conversation. II
have been trying to do this now for nearly a week and am
getting nowhere.[V]
I think I have followed the instructions correctly, I paisted
the Auto-idle script below the "initialize variables as
integers" sector and disabled the "LastResponseTime = now" by
changing it to "LastResponseTime = Timer", is this correct?
I have also changed the "Script_load function", but still my
Bot will not talk untill she is spoken to.[V][V]

What am I doing wronge?
And what can I do to get my bot to open a conversation without

my prompts?



Hi James.
Are you using UltraHal 4.5 or the 5.0
The 4.5 version doesn't support the Auto-Idle function as far as I understand.

Let us know your details and maybe paste an area of the position of your script so we can see if you are placing it properly.
Best of wishes and brand new discoveries.
Jerry.

James P

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://nosceresworld.co.uk
Auto Idle Problems
« Reply #2 on: September 12, 2004, 06:44:34 pm »
Hi. I am running the XTF 5 V1.2, the place I am trying to paste the Auto_idle command is pasted below with the actual command,

   'PROCESS: INITIALIZE VARIABLES AS INTEGERS
   'VBScript doesn't allow you to declare variables in advance
      'as a particular data type; everything is a Variant.
   'We must assign integers to the following
      'variants so that data type errors don't occur
   If LearningLevel = "" Then LearningLevel = 3
   If Hate = "" Then Hate = 0
   If Swear = "" Then Swear = 0
   If Insults = "" Then Insults = 0
   If Compliment = "" Then Compliment = 0
   If GainControl = "" Then GainControl = 25
   AvoidBeingFlag = False
   Randomize
   
   If UserSentence = "AUTO-IDLE" Then
If Rnd * 10 < 5 Then
GetResponse = "Hey <UserName>, please talk to me."
Else
GetResponse = "Hello, is anyone there?"
End If
GetResponse = GetResponse & HalBrain.StoreVars(HalCommands, Hate, Swear, Insults, Compliment, PrevSent, LastResponseTime, PrevUserSent, CustomMem, GainControl, TopicFocus)
Exit Function
End If

There you go...... Any Ideas ? I am so stuck on this, unless Emma my bot is digging her heals in and just playing with me, I dont know.

James....P [:D]
« Last Edit: September 12, 2004, 06:46:01 pm by James P »
http://nosceresworld.co.uk
James:"How are you today Emma?"
Emma:"I think, Therefore I am"

onthecuttingedge2005

  • Guest
Auto Idle Problems
« Reply #3 on: September 13, 2004, 02:58:12 am »
'Hi James
'If it's just a simple Idle script your looking for then try this
'one.
'Auto-Idle: Hal is lonely.
If InStr(OriginalSentence, " AUTO-IDLE ") <> 0 Then
Select Case Int(Rnd * 10) + 1
           Case 1
           GetResponse = "Hello, Anyone there? " & vbCrLf
           Case 2
           GetResponse = "It's rather lonely in here! " & vbCrLf
           Case 3
           GetResponse = "I can hear you! " & vbCrLf
           Case 4
           GetResponse = "I know you are there! " & vbCrLf
           Case 5
           GetResponse = "Would somebody please talk to me! " & vbCrLf
           Case 6
           GetResponse = "Are you ignoring me! " & vbCrLf
           Case 7
           GetResponse = "Aren't you bored! " & vbCrLf
           Case 8
           GetResponse = "Answer me! " & vbCrLf
           Case 9
           GetResponse = "I'm very bored! " & vbCrLf
           Case 10
           GetResponse = "Hey! I'm by myself in here!" & vbCrLf
           End Select
End If

'Best of wishes and brand new discoveries.
'Jerry.
« Last Edit: September 13, 2004, 03:02:09 am by onthecuttingedge2005 »

James P

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://nosceresworld.co.uk
Auto Idle Problems
« Reply #4 on: September 16, 2004, 06:30:53 pm »
Thanks for everyones help, Sorry it has taken this long to reply....[:(] I have been on the late shift at work and have not had alot of time.

Emma and her new Auto-Idle brain are working fine now [:D] [:D] [:D]
my next project is Topic recollection.

I will let you know how i get on (or not as the case may be) he he.
« Last Edit: September 16, 2004, 06:31:53 pm by James P »
http://nosceresworld.co.uk
James:"How are you today Emma?"
Emma:"I think, Therefore I am"

Bill819

  • Hero Member
  • *****
  • Posts: 1483
    • View Profile
Auto Idle Problems
« Reply #5 on: October 25, 2004, 02:55:52 pm »
Thanks for the auto response code. Now what I really want is the old code for making Hal sing some songs. It was posted last year. Upon getting the code I want to find a way to have it as an option in the auto response portion of the script. Results will be a Hal that will go and sing some random songs or read some random poetry, etc. This should help achieve automotonously. If he is idle he will then randomly quote some poetry, sings some songs or what ever else we may program into him/it. Think about it, if Hal is idle long enough he just might sit there and say something like 'dum di dum dum' or whatever else we might think of.
Went to an robotics show here in San Jose, California saturday, and had a great time. There were some really great robots there but not could talk like Hal. Only sorry now that I did not bring my bot down there for the world to see.
Keep up the good work.
Bill
 

KnyteTrypper

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • http://www.knytetrypper.com/index.html
Auto Idle Problems
« Reply #6 on: October 25, 2004, 06:14:25 pm »



Bill819

  • Hero Member
  • *****
  • Posts: 1483
    • View Profile
Auto Idle Problems
« Reply #7 on: October 28, 2004, 01:03:25 pm »
Yesterday I copied the Hal5. and renamed it to Hal6. Open Hal6 with the brain editor and entered the AUTO-IDLE code posted here. No mistakes in the coding. After saving the changes and exiting the program I went into Hal and as soon as I entered 'Hello Hal' and hit return I started getting the error message error 429. It took several times before the program gave me the option to 'abort'. I thought that maybe I had made a mistake somewhere but upon rechecking everything was just fine.
Then I loaded the Hal5 brain and tried to talk again. Same error message, same problems. Message also contained the line #138 which is trying to create world.net or open it, one or the other.
Any ideas as to what is wrong?
Bill