Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Ao Help!!!

Trish Barbasz
Registered User
Join date: 29 Dec 2007
Posts: 17
09-07-2008 13:28
Hi, I need help with some AOs.

You see I have two outfits that I've combined, and I need two AOs for each. I use the ZHAO-II, modified to respond to channel chat by me, for resseting, card loading, and on/off. That works fine but when I switch between the AOs one gets stuck in walking, the other's flight get's all screwed up and I have to reload the card. Now I've tried reloading the card when I change between the outfits, but the loading takes far too long. And loading the different cards into one AO takes too long too. Each AO is in the main prims of different attachments. Is there anyone that can help me?
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
09-07-2008 17:25
I fear I may be misunderstanding something basic here, but what's the problem with putting all the anims in one ao (or, if they are copiable, putting them all in both aos) and compiling your own cards that contain the anims you want for particular outfits? You can use the same anim in several different cards, of course. Then, when you get changed, you load the card appropriate to the outfit into which you are changing.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
09-07-2008 17:29
Turn your AO off before you detach, otherwise the last animation can be stuck running.
Trish Barbasz
Registered User
Join date: 29 Dec 2007
Posts: 17
09-07-2008 17:38
From: Innula Zenovka
I fear I may be misunderstanding something basic here, but what's the problem with putting all the anims in one ao (or, if they are copiable, putting them all in both aos) and compiling your own cards that contain the anims you want for particular outfits? You can use the same anim in several different cards, of course. Then, when you get changed, you load the card appropriate to the outfit into which you are changing.


No they are two different sets of animations in two different attachments.
Trish Barbasz
Registered User
Join date: 29 Dec 2007
Posts: 17
09-07-2008 17:38
From: Viktoria Dovgal
Turn your AO off before you detach, otherwise the last animation can be stuck running.


I'm not detaching anything. Things are cloaking and uncloaking.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
09-07-2008 17:45
From: Trish Barbasz
I'm not detaching anything. Things are cloaking and uncloaking.

Then if you aren't detaching one of the AOs, you may have two running. You still will need to make sure you stop one before you start the other, or your avatar will act all kinds of silly.
Trish Barbasz
Registered User
Join date: 29 Dec 2007
Posts: 17
09-07-2008 18:56
From: Viktoria Dovgal
Then if you aren't detaching one of the AOs, you may have two running. You still will need to make sure you stop one before you start the other, or your avatar will act all kinds of silly.


I'm deactivating them, using the chat comand, but I still get a bad reaction. If it was somethign simple I really wouldn't need help. Can you think of something else?
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
09-07-2008 20:27
Well, are the two scripts listening on different channels so that they don't get crosstalk from you? Is your chat command using the ZHAO_AOOFF link message? If you added the listener to the core instead, is your "ao off" command doing exactly the same things that the link message would do?

I'm asking about these basic things because multiple copies can definitely coexist on the same avatar without trouble.

The "flight gets stuck" part of your original post is unclear but possibly telling. In the same prims or attachments where you have either of these AO scripts, are there any other scripts that also take controls? That can and will cause various problems, especially if the scripts take different keys.
Trish Barbasz
Registered User
Join date: 29 Dec 2007
Posts: 17
09-07-2008 20:33
From: Viktoria Dovgal
Well, are the two scripts listening on different channels so that they don't get crosstalk from you? Is your chat command using the ZHAO_AOOFF link message? If you added the listener to the core instead, is your "ao off" command doing exactly the same things that the link message would do?

I'm asking about these basic things because multiple copies can definitely coexist on the same avatar without trouble.

The "flight gets stuck" part of your original post is unclear but possibly telling. In the same prims or attachments where you have either of these AO scripts, are there also any other scripts that also take controls? That can and will cause various problems, especially if the scripts take different keys.


They are not listen on different channels but the comannds are different the scritps are;

listen( integer channel, string name, key id, string message )
{
if( llGetOwnerKey(id) == llGetOwner() )
{
if ( message == "demorphreset" )
{
llOwnerSay( "Resetting." );
llResetScript();
}
if ( message == "demorphoff" )
{
llSetTimerEvent( 0 );
animOverrideOn = FALSE;
startNewAnimation( "", noAnimIndex, lastAnimState );
}
if ( message == "demorphon" )
{
llSetTimerEvent( 0 );
animOverrideOn = TRUE;
startNewAnimation( "", noAnimIndex, lastAnimState );
}
if ( message == "load" ) {

// Can't load while we're in the middle of a load
if ( loadInProgress == TRUE ) {
llOwnerSay( "Cannot load new notecard, still reading notecard \"" + notecardName + "\"" );
return;
}
------------------------AND-------------------------------------------------


listen( integer channel, string name, key id, string message )
{
if( llGetOwnerKey(id) == llGetOwner() )
{
if ( message == "helmetreset" )
{
llOwnerSay( "Resetting." );
llResetScript();
}
if ( message == "helmetoff" )
{
llSetTimerEvent( 0 );
animOverrideOn = FALSE;
startNewAnimation( "", noAnimIndex, lastAnimState );
}
if ( message == "helmeton" )
{
llSetTimerEvent( 0 );
animOverrideOn = TRUE;
startNewAnimation( "", noAnimIndex, lastAnimState );
}
if ( message == "load" ) {

// Can't load while we're in the middle of a load
if ( loadInProgress == TRUE ) {
llOwnerSay( "Cannot load new notecard, still reading notecard \"" + notecardName + "\"" );
return;
}

Both on channel 2, replacing the listen comands originaly used by the script.
If you want you can join me online and help me. It would be apreicated and would get you some cash.