PDA

View Full Version : Cog won't work!



Edward
09-25-2003, 02:24 PM
Hi!
A COG of mine won't work in SP. What's wrong?


# Taunting!
#
# By Edward
symbols

message activated

model player0=ky.3do local
model player1=kyh4.3do local
model player2=kya9.3do local
model player3=kya10.3do local
model player4=kya11.3do local
model player5=kya12.3do local
model player6=kym13.3do local
model player7=kyi14.3do local
model player8=kya15.3do local
model player9=kya16.3do local
model player10=kya17.3do local
model player11=kya18.3do local
model player12=kya19.3do local
model player13=kyu0.3do local
model player14=kyx0.3do local
model player15=kyug.3do local
model player16=kyed.3do local
model player17=kyrb.3do local
model player18=kyrl.3do local
model player19=kygm.3do local
model player20=kycys.3do local
model player21=kydh.3do local
model player22=kydv.3do local
model player23=kysb.3do local

sound taunt0=i00ky111.wav local
sound taunt1=fett.wav local
sound taunt2=i00sa07z.wav local
sound taunt3=look2.wav local
sound taunt4=i00ic16z.wav local
sound taunt5=i00o105z.wav local
sound taunt6=i00s111z.wav local
sound taunt7=bossk-1.wav local
sound taunt8=00tuskenhowl01.wav local
sound taunt9=ptcldroidtalk01.wav local
sound taunt10=i00gr08z.wav local
sound taunt11=i00yu01z.wav local
sound taunt12=i00je05z.wav local
sound taunt13=i00ky111.wav local
sound taunt14=i00ky111.wav local
sound taunt15=ugnauttalk01.wav local
sound taunt16=Edwards local
sound taunt17=reeyee02.wav local
sound taunt18=reeyee03.wav local
sound taunt19=00gamorgibberish01.wav local
sound taunt20=30pro007.wav local
sound taunt21=gooddumb.wav local
sound taunt22=lakfaith.wav local
sound taunt23=SpaceBall local

keyframe dance0=kyfpull0.key local
int dk=-1 local
int i=0 local
int z local

end
#
code
activated:
if(i!=0) return;
i=1;
for(z=0; z<24; z=z+1)
{
If(GetThingModel(GetLocalPlayerThing())==player0[z])
{
PlaySoundThing(taunt0[z],GetLocalPlayerThing(),1,-1,1,0xC0);
dk=PlayKey(GetLocalPlayerThing(),dance0,1,0x4);
sleep(GetKeyLen(dk));
StopKey(GetLocalPlayerThing(),dk,1);
}
}
i=0;
return;
end

My guess is too many symbols...

/Edward

gbk
09-25-2003, 02:30 PM
Two of your sound files dont have extensions.


Also, IIRC, your limited to 16 models defined incog.... http://forums.massassi.net/html/confused.gif

------------------
Back in Black...

Emon
09-25-2003, 05:13 PM
I thought it was like 29, as dumb of a number that sounds, I remember reading the comments in the Glowsaber code, and they could only make it so smooth because they hit some limit. Maybe they meanted 29 models for the lightsaber because they had 3 more for other models, making the limit 32?

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.

gbk
09-25-2003, 07:59 PM
32 sounds more like it. I havent dealt with raw models very often, so Im not too sure.

------------------
Back in Black...

Edward
09-26-2003, 05:13 AM
Well, it works in MP but not in SP.
(JK)
/Edward

DogSRoOL
09-27-2003, 11:51 AM
I think MP supports far more models than SP, for obvious reasons.

------------------
"The Just shall live by faith." - Galatians 3:11
To edit is human... To COG is divine!!
America is a giant horn-dog.
The Giant Internet IC Masturbator (http://www.ionpool.net/arcade/giicm/GIICM.html)

[Anoying posts] + 1.

Edward
09-27-2003, 12:28 PM
So, how do I make this COG 'invisable' in SP?

SaberMaster
09-28-2003, 10:53 AM
You might try upping the model count in the static.jkl, and if that doesn't work try defining them. I doubt it will help, but it's worth trying.

You can't really make it invisible, but you can stop if from working with an IsMulti() check. I would just let it work in SP.

------------------
Author of the JK DataMaster (http://www.geocities.com/sabersdomain/files.html), Parsec (http://www.geocities.com/sabersdomain/files.html), Scribe (http://www.geocities.com/sabersdomain/files.html), and the EditPlus Cog Files (http://www.geocities.com/sabersdomain/files.html).

[This message has been edited by SaberMaster (edited September 28, 2003).]

Edward
09-28-2003, 02:03 PM
<font face="Verdana, Arial" size="2">Originally posted by SaberMaster:
You might try upping the model count in the static.jkl, and if that doesn't work try defining them. I doubt it will help, but it's worth trying.

You can't really make it invisible, but you can stop if from working with an IsMulti() check. I would just let it work in SP.

</font>

Humma... IsMulti??? I think the game crashes the moment it registers over so many models (or symbols). And to change a bit in static.jkl. Yes, I'm coming to that... I'm awaiting help from another part of the forum for how to implement templates to the static.jkl, so I don't dare try anything else yet.

/Edward

DogSRoOL
09-30-2003, 08:58 AM
Maybe check out some of the cog flags. Right above symbols, you can have flag=0x??? (Check Datamaster for flags). I'm not sure if there's anything useful for that because I've rarely used it. (Might actually be flags=0x??? (with an 's')).

------------------
"The Just shall live by faith." - Galatians 3:11
To edit is human... To COG is divine!!
America is a giant horn-dog.
The Giant Internet IC Masturbator (http://www.ionpool.net/arcade/giicm/GIICM.html)

[Anoying posts] + 1.

Edward
09-30-2003, 09:52 AM
Nothing there seemed to give me a choice of work in MP, not work in SP.

/Edward