1
Ultra Hal 7.0 / new turnback.hap running in hal
« on: August 05, 2005, 07:03:19 pm »
I got a different error message that time.
I'm going to start over. I deleted hal5_XTF_v1.2.uhp and reinstalled it. I have a clean slate, so to speak. I'm going to go through this step by step...again...and see if I can get it to work. The first code to add to the brain would be:
If InStr(UserSentence, " please turnaround ") <> 0 Then
GetResponse = "Like what you see."
HalCommands = "<HAPFILE>fullbodyturnback.hap</HAPFILE>"
BlockSave=True
GetResponseBlock = True
End If
My question...where in the brain should I put it? Is there a specific line or can it pretty much be pasted anywhere?
My fullbodyturnback.hap file should have this code:
setswitch [switch= hands_on_hips state= start]
clock [t= 0] keyframe[figure= fullBod switch= 0 ry= 0 rz= 0 w= 0 x= 0 y= 0 z= 0 t= 0 ]
clock [t= 2] keyframe[figure= fullBod switch= 0 ry= 315 rz= 0 w= 0 x= 0 y= 40 z= -10 t= 0 ]
clock [t= 4] keyframe[figure= fullBod switch= 0 ry= 225 rz= 0 w= 0 x= 0 y= 50 z= -10 t= 0 ]
clock [t= 8] keyframe[figure= fullBod switch= 0 ry= 180 rz= 0 w= 0 x= 0 y= 100 z= -120 t= 0 ]
clock [t= 10] keyframe[figure= fullBod switch= 0 ry= 90 rz= 0 w= 0 x= 0 y= 30 z= -150 t= 0 ]
clock [t= 12] keyframe[figure= fullBod switch= 0 ry= 0 rz= 0 w= 0 x= 0 y= 25 z= -80 t= 0 ]
I'm going to start over. I deleted hal5_XTF_v1.2.uhp and reinstalled it. I have a clean slate, so to speak. I'm going to go through this step by step...again...and see if I can get it to work. The first code to add to the brain would be:
If InStr(UserSentence, " please turnaround ") <> 0 Then
GetResponse = "Like what you see."
HalCommands = "<HAPFILE>fullbodyturnback.hap</HAPFILE>"
BlockSave=True
GetResponseBlock = True
End If
My question...where in the brain should I put it? Is there a specific line or can it pretty much be pasted anywhere?
My fullbodyturnback.hap file should have this code:
setswitch [switch= hands_on_hips state= start]
clock [t= 0] keyframe[figure= fullBod switch= 0 ry= 0 rz= 0 w= 0 x= 0 y= 0 z= 0 t= 0 ]
clock [t= 2] keyframe[figure= fullBod switch= 0 ry= 315 rz= 0 w= 0 x= 0 y= 40 z= -10 t= 0 ]
clock [t= 4] keyframe[figure= fullBod switch= 0 ry= 225 rz= 0 w= 0 x= 0 y= 50 z= -10 t= 0 ]
clock [t= 8] keyframe[figure= fullBod switch= 0 ry= 180 rz= 0 w= 0 x= 0 y= 100 z= -120 t= 0 ]
clock [t= 10] keyframe[figure= fullBod switch= 0 ry= 90 rz= 0 w= 0 x= 0 y= 30 z= -150 t= 0 ]
clock [t= 12] keyframe[figure= fullBod switch= 0 ry= 0 rz= 0 w= 0 x= 0 y= 25 z= -80 t= 0 ]