Need Animation Trigger Help

Help
. I've spent a week studying everything I can find on triggering a looping animation and it still won't trigger. The click button region is live, the animation will loop, but when I set loop = 0 and try running the responder script, the animation doesn't start. My code in the first version (Alscript) is:
I have a second version using quickscript which also doesn't work. The code there is:
I'm working with Blender 2.49B, GOW PyPRP 1.6.0, Python 2.6.4, 32Bit Windows7. I have created an sdl file, but I've been unsuccessful in compiling the Python file for my age. I'm getting a "magic number" error (wrong version???).
I've downloaded the AvatarAnimations file and it works fine both in Blender and URU. I even tried copying the code from that file into a my age, still didn't work. I'm making a basic error somewhere and I can't find it.
Can someone help?
TIA

- Code: Select all
CaveDoorButton:
physical:
pinned: true
quickscript:
simpleclick:
region: RavenBtnRegion
animation: DoorButtonTouch
animtarget: CaveDoorEmpty
autorun: true
CaveDoorEmpty:
logic:
actions:
- type: oneshot
name: CaveDoorEmpty
oneshot:
animation: DoorButtonTouch
CaveDoor:
animations:
- name: CaveDoorOpen
autostart: 0
loop: 0
logic:
actions:
- type: responder
name: DoorOpen1
responder:
states:
- cmds:
- type: oneshotmsg
params:
receivers:
- oneshotmod:CaveDoorEmpty
callbacks:
- marker: DoorButtonTouch
receiver: respondermod:DoorOpen1
user: 0
waiton: -1
- type: animcmdmsg
params:
receivers:
- 006D:CaveDoor
animname: CaveDoorOpen
cmds:
- continue
waiton: -1
nextstate: 0
waittocmd: 0
curstate: 0
flags:
- detecttrigger
I have a second version using quickscript which also doesn't work. The code there is:
- Code: Select all
CaveDoorEmpty:
logic:
actions:
- type: oneshot
name: CaveDoorEmpty
oneshot:
animation: DoorButtonTouch
CaveDoor:
animations:
- name: CaveDoorOpen
autostart: 0
loop: 0
CaveDoorButton:
physical:
pinned: true
quickscript:
simpleclick:
region: RavenBtnRegion
animation: DoorButtonTouch
animtarget: CaveDoorEmpty
autorun: true
stateanimation:
objectname: CaveDoorOpen
region: RavenBtnRegion
sdlname: CaveDoorVis
avatar:
animation: DoorButtonTouch #optional
animtarget: CaveDoorEmpty #optional
forewards:
animation: CaveDoorOpen
backwards:
animation: CaveDoorOpen #will be reversed if same as forewards
I'm working with Blender 2.49B, GOW PyPRP 1.6.0, Python 2.6.4, 32Bit Windows7. I have created an sdl file, but I've been unsuccessful in compiling the Python file for my age. I'm getting a "magic number" error (wrong version???).
I've downloaded the AvatarAnimations file and it works fine both in Blender and URU. I even tried copying the code from that file into a my age, still didn't work. I'm making a basic error somewhere and I can't find it.
Can someone help?
TIA