Animations not working

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Animations not working

Postby Justintime9 » Sun Jun 28, 2009 2:25 pm

A few weeks ago I got a new computer. I transfered all the important stuff from my old hard drive to the new one. I forgot to pack data into my age project blendfiles, but luckily, the folders were all in the general same place so I only had to re-locate a few textures. This week I decided to export one of my ages to see if I missed some textures or something. I had one door animation triggered by a button, via quickscripts.

When I exported the age on my new computer, without changing anything, my animation suddenly doesn't work! The SDL file is there, as well as the python file, and my journal works, so it can't be the python file. Today I exported my other age, and the same thing happened. Why would my animations, that work fine in blender, suddenly stop working in URU?
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Animations not working

Postby D'Lanor » Sun Jun 28, 2009 3:54 pm

If this is the simpleclick quickscript combined with a custom Python file you may need to add something to the Alcscript to make the animation run automatically. Try adding this line to the simpleclick quickscript:

Code: Select all
<object>:
    quickscript:
        simpleclick:
            autorun: true

Default behavior now assumes that if you use the simpleclick quickscript to call Python you want to control everything through Python (which is essential for conditional actions in puzzles). I am afraid this had slipped my mind when documenting changes for the "upcoming" release. Edit: release documentation updated.

btw, the stateanimation quickscript in the latest PyPRP should still work as it previously did.
Edit: However, the plain vanilla PyPRP 1.5.0 does not have stateanimation at all. After all, that release is a year old! I didn't think anyone was still using that dinosaur but this may actually be the reason. Get the bleeding edge version.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Animations not working

Postby Justintime9 » Mon Jun 29, 2009 5:43 am

Well, here's my Quickscript:

Code: Select all
AnimDoor:
    animations:
      - name: DoorAnim
        autostart: 0
        loop: 0

DoorButton:
    quickscript:
        stateanimation:
            objectname: AnimDoor
            region: ButtonRegion
            sdlname: DoorOpen
            avatar:
                animation: DoorButtonTouch
                animtarget: ButtonEmpty
            forewards:
                animation: DoorAnim
            backwards:
                animation: DoorAnim


Where should I add the script you gave? I've heard that the bleeding edge PyPRP isn't recommended, because there's less support for it. Do you think it would fix my animation problem?
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Animations not working

Postby D'Lanor » Mon Jun 29, 2009 8:28 am

Read my post again. Adding that line was for the simpleclick quickscript which you are obviously not using.

My advice for the stateanimation quickscript is NOT to use the 1.5.0 version. That version has no stateanimation quickscript. Period. So yes, upgrading will fix your animations. If you keep refusing the bleeding edge version you can say goodbye to your animations.

Edit: Actually there is more support for the bleeding edge version than for 1.5.0. The tutorials assume you have the latest, and so do the people who give support on these forums.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Animations not working

Postby Justintime9 » Mon Jun 29, 2009 10:02 am

Thx, that fixed everything :D. Although, if it shouldn't work with 1.5.0, how was I able to get my animations exported fine on my older computer, when I didn't have the bleeding edge?
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Animations not working

Postby D'Lanor » Mon Jun 29, 2009 1:41 pm

I think you downloaded the prp_QuickScript.py file that was in my contrib folder before it was merged with the trunk.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Animations not working

Postby Justintime9 » Mon Jun 29, 2009 3:48 pm

oooh ya I remember now :P that must've been it
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am


Return to Building

Who is online

Users browsing this forum: No registered users and 10 guests