Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

ZHAO Adding Additional Stand Animations or Server Limit?

Ravenmyst Twine
Registered User
Join date: 11 Jul 2008
Posts: 32
07-22-2008 06:57
Hi everyone,

I am currently re-editing my ZHAO script to add in additional new animations but I have a quick question....

Within the ZHAO script, there are five (5) standing positions that you can fill with 5 respective standing animations. I would like to increase this number to more than 5, however the coding in the script does not seem to have this line as to where to increase the number.

Interestingly, this code makes me wonder if it is coded on the server side and 5 is the total limit of standing positions you can have:

integer numStands; // # of stand anims we use (constant: ListLength(stands))

Does this indicate that ListLength is source coded?


Furthermore, here are the stand indexes in the script...

// List of stands
list standIndexes = [ 20, 21, 22, 23, 24 ];

If I was to add to the standIndexes and increase these beyond five....will the animations then work? If this is correct, the numbers 20-24 above are precoded indexes or were they just choses randomly by the designer of the script and then designated for stand poses.

Hope this makes sense.

Thanks,
Raven
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
07-22-2008 07:01
Upgrade to the ZHAOII... It's not hard to find (NCI Freebie Wall), lag reduced, and the new notecard pose listing method is limited only to the memory space available. (^_^)
_____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y


http://slurl.com/secondlife/Ferguson/54/237/94
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
07-22-2008 07:12
From: Ravenmyst Twine
If I was to add to the standIndexes and increase these beyond five....will the animations then work?

Yes.
From: someone
If this is correct, the numbers 20-24 above are precoded indexes or were they just choses randomly by the designer of the script and then designated for stand poses.

You can add them at the end (they are the commented numbers in lineNums, and note that the notecard line numbers themselves count in twos to skip those comment lines), the ordering is internal to that list in the script.
_____________________
Ravenmyst Twine
Registered User
Join date: 11 Jul 2008
Posts: 32
07-22-2008 10:59
Thank you for the positive responses. I was able to tweak it, however when I upgraded to 2.0, it made my coding a bit easier ;-) Hugs, Raven
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
07-22-2008 16:32
The 5 stands was an arbitrary limit, the hard-coded notecard lines were an attempt to be backwards compatible with the Franimation notecard, which itself was an attempt to be backwards compatible with an even older notecard (if I remember my conversation with Francis right).

As the others suggested, start with ZHAO-II - the code should hopefully be a little cleaner and easier to follow. I think I might have mentioned this to you in IM as well, but I get so many AO-related IMs every day that I might be confusing you with someone else, and many people say "I'm trying to edit the script" when they mean "edit the notecard", so it's hard to know when someone is actually talking about editing the script :)

On a side note - Viktoria, I've been following some of your work on the MEAO, and you've made some good bug fixes / enhancements to the ZHAO code. If/when I get round to releasing an update... if you don't mind, I'd like to get in touch with you and roll your fixes in.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
07-22-2008 17:15
You saw inside that thing? :eek: OK, will try to sort out the improvements from our sleazy hacks before that happens, and thank you!
_____________________
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
07-22-2008 18:02
Heh, no, just from your blog posts. I'm rarely in-world these days - a 10 month old daughter takes up quite a bit of time :)