Non GlobalAnimations test age

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

Re: Non GlobalAnimations test age

Postby Grogyan » Sun Jul 20, 2008 2:31 am

I havn't got that far with learning all the nooks of AlcScript, hence i'm trying small steps
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Non GlobalAnimations test age

Postby Grogyan » Sat Jan 03, 2009 12:46 am

Back to this problem again, same exact problem.

I had created another topic, but found this one that I had started, and still having the problem

I have an empty that is where the animation starts from, a region, and in another blend file same setup but with a clickable

I've tried variations from both GoW and GoMa sites to no avail
Click to animate avatar or
avatar enters a region that triggers the oneshotmod


This is the code that Lontahv helped me with but it has a bug in it that I can't find.
Show Spoiler


what happens is if you walk backwards after the animation has finished, the avatar ends up doing the animation in an eternal loop.
Can anyone please help, preferrably not wih quickscripts, as I want to try really hard this time to know how to script this game
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Non GlobalAnimations test age

Postby Grogyan » Sun Jan 04, 2009 4:50 pm

I'm an idiot, I forgot to have the clickable itself set as an actor with bounds toggled.

Quickscript works, but i'd like to do it with full script

And I still would like the animation to play by region trigger only
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Non GlobalAnimations test age

Postby D'Lanor » Sun Jan 04, 2009 5:17 pm

You can look into the logfile and see the full script that the quickscript creates. Then you can adapt that to your wishes.
"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: Non GlobalAnimations test age

Postby Grogyan » Sun Jan 04, 2009 11:27 pm

I've applied the script that appears in the log file, but the animation doesn't not work, i've gone through the python file, the log file and my script to see if anything is different than the generated quickscript, and I can't find a problem

from what I can see the script is broken into 2 lots, one for the object the other for the seek point, i'm kinda poking in the dark here
Show Spoiler


so as to ececuting the script for region triggering, I am clueless
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Non GlobalAnimations test age

Postby Grogyan » Fri Jan 09, 2009 2:11 pm

Grr, I finally got the full script to work for a clickable, lots of indentation problems, this what I hate about AlcScript, that and not knowing what order to put things in.

I'm trying to get the quickscript.selfanimation.animation working, and thus far it isn't even loading the quickscript, let alone resolving it

Tried setting the region as oneshot and as a responder, nothing is working

Code: Select all
OneShotRgn:
    quickscript:
        selfanimation:
            region: OneShotRgn
            animation: SwimDockExit
            seektime: 1.0
            remote: OneShotSeekPt
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Non GlobalAnimations test age

Postby D'Lanor » Fri Jan 09, 2009 2:44 pm

Hmm, that quickscript seems to be missing one line.

Code: Select all
            modtxt += "  conditions:\n"
            modtxt += "    - type: volumesensor\n"
            modtxt += "      direction: enter\n"

... should probably be...

Code: Select all
            modtxt += "  conditions:\n"
            modtxt += "    - type: volumesensor\n"
            modtxt += "      satisfied: true\n"
            modtxt += "      direction: enter\n"


Edit: and it does not use the seekpoint you are providing... :o Also this quickscript does not have the debugging enabled which writes its full code to the logfile. I have only added that to quickscripts I made or modified.
"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: Non GlobalAnimations test age

Postby Grogyan » Fri Jan 09, 2009 3:23 pm

Ok, the "satisfied: true" makes sense

I then assume that the SelfAnimation uses the obdata centre as the seek point, that I can try out, but would have liked to use a seperate Empty as the seek point, and was hoping to copy out the builded script that does it so I may be able to understand what is going on.

I understand now that to use an Empty as a seek point is to use a responder on the region somewhere and script it up, I need to figure that part out
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Non GlobalAnimations test age

Postby D'Lanor » Fri Jan 09, 2009 4:35 pm

It uses no seek point at all. No surprise it doesn't work.
"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: Non GlobalAnimations test age

Postby Grogyan » Fri Jan 09, 2009 4:52 pm

lol.

How are you calling the script in Blender, cause I still can't get it to build up that script internally
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

PreviousNext

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron