Python confusion

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!

Re: Python confusion

Postby D'Lanor » Sat Mar 21, 2009 1:58 pm

Since you added "Vis" to it for some reason you have to put that into the SDL file as well.
"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: Python confusion

Postby Justintime9 » Sat Mar 21, 2009 3:32 pm

No Dice :P. Is it possible I don't have the updated Quickscripts plugin for blender? Or has the same version been used since PyPRP 1.5.0 has been released?
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Python confusion

Postby boblishman » Sat Mar 21, 2009 4:05 pm

D'Lanor wrote:... The trunk version of prp_QuickScripts is outdated though so you need to get the latest version here.


err... you did download and install this ... didn't you ?
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Python confusion

Postby Justintime9 » Sat Mar 21, 2009 4:08 pm

The link doesn't work.
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Python confusion

Postby teedyo » Sat Mar 21, 2009 4:47 pm

Latest version of prp_QuickScripts.py was moved to 'trunk'. It's now at:

http://svn.guildofwriters.com/pyprp/tru ... Scripts.py
teedyo
 
Posts: 212
Joined: Tue Oct 09, 2007 5:47 pm

Re: Python confusion

Postby D'Lanor » Sun Mar 22, 2009 4:37 am

The stateanimation quickscript was added long after the 1.5.0 release. So if you did not grab it from my first post here (when the link still worked) then you probably don't have it . That explains why it does not create a clickable.

Thanks for pointing out the new location teedyo.
"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: Python confusion

Postby Justintime9 » Sun Mar 22, 2009 2:15 pm

That did it :D thx guys!
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Python confusion

Postby Justintime9 » Tue Mar 24, 2009 4:49 pm

Just to clarify, I'm adding sounds to my button, and window now. Should I use the sound AlcScript:
Code: Select all
<name of emitter object>:
    type: soundemit
    sound:
        flags:
          - <flags>
        file: <name of file>
        volume: <sound volume between 0.0 and 1.0>
        type: <sound type>

or do I just add the name of the emitter to the Quickscript? If the former is true, what do I put for the flags? it's not an atmosphere sound, and it doesn't say any sound types that sound like they would be the right for a button. Also, would I need to make it a 3D sound (or rather, should I?) thx :)
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Python confusion

Postby D'Lanor » Tue Mar 24, 2009 4:56 pm

Yes, you have to use the soundemit AlcScript to configure your emitters. Then you can add the names of those emitters to the stateanimation quickscript as animsound or clicksound.
"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: Python confusion

Postby Justintime9 » Sat Mar 28, 2009 5:22 pm

Thx :) Now, I just added a new animation similar to the previous one (something opens). However, this time, I use a foot pedal. I opened up the SDL file to add the new animation, and looked at other SDL files as a reference. I finally put it directly under the first line. When I tried to link to my age however, the game crashed to the desktop. I took a closer look at the SDL file, and studied others more, I decided to add "DEFAULTOPTION=VAULT" to the end like most of the other ones. This did not work however, so apparently that wasn't the right thing. Here's my SDL file:
Code: Select all
STATEDESC Zefora
{
    VERSION 1

    VAR BOOL    WindowOpen[1]    DEFAULT=0 DEFAULTOPTION=VAULT
    VAR BOOL    LidOpen[1]    DEFAULT=0 DEFAULTOPTION=VAULT
}

And here's my AlcScript for the new animation (in case the problem lies with it):
Code: Select all
BBQLid:
    animations:
        - name: LidOpen
          autostart: 0
          loop: 0
   
LidPetal:
    quickscript:
        stateanimation:
            objectname: BBQLid
            region: PLidReg
            sdlname: LidOpen
            avatar:
                animation: StepOnFloorPlate
                animtarget: AvatarEmptyPetal
            forewards:
                animation: LidOpen
            backwards:
                animation: LidOpen

Do I need to update the .pak/python file too? Or does that stay the same?
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

PreviousNext

Return to Building

Who is online

Users browsing this forum: No registered users and 9 guests