Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Playing key on startup
Playing key on startup
2002-07-03, 9:55 AM #1
I have the key file float.key in my projects 3do/key directory. I want the key file to play on startup. I'm trying to make a floating crate but it just isn't working.

Code:
symbols

message startup

thing object1
thing object2

keyframe key0=float.key local

end

# ========================================================================================

code


startup:
PlayKey(object1, key0, 1, 0x00);
PlayKey(object2, key0, 1, 0x00);
return;


# ........................................................................................

end
2002-07-03, 10:16 AM #2
This should do it...

Code:
symbols

message startup

thing object1
thing object2

keyframe key0=float.key local

end

# ========================================================================================

code


startup:
PlayKey(object1, key0, 1, 0x14);
PlayKey(object2, key0, 1, 0x14);
return;


# ........................................................................................

end


------------------
Uh-uh. I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kind of lost track myself. But being this is a .44 Magnum, the most powerful handgun in the world, and would blow your head clean off, you've got to ask yourself one question: Do I feel lucky? Well do ya, punk?
Last edited by mb; today at 10:55 AM.
2002-07-03, 10:49 AM #3
Add Sleep(.5); right after Startup: JK has a problem with doing things like that on startup, ex Print("something"); I had to do this with one of my things (thank you SaberMaster, who ever you are)

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-03, 11:04 AM #4
Still no luck [http://forums.massassi.net/html/frown.gif]
2002-07-03, 11:43 AM #5
Try changing the flags to 0x4. Like this.
Code:
symbols
message      startup
thing        object1
thing        object2
keyframe     key0=float.key             local
end
# ========================================================================================
code
startup:
   Sleep(.5);
   PlayKey(object1, key0, 1, 0x4);
   PlayKey(object2, key0, 1, 0x4);
   Return;
end


------------------
The Sniper Missions. Current project, The Sniper Missions

[This message has been edited by Descent_pilot (edited July 03, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-03, 12:05 PM #6
Still no luck. With all these flag answers I'm getting, is there a right way to doing this? In the JK Specs the key flag for repeat is 0x00.

[This message has been edited by Bransin (edited July 03, 2002).]
2002-07-03, 12:11 PM #7
That's an awesome sig, Cavey.
2002-07-03, 12:19 PM #8
Duh, the crate templates have to have a puppet file defined in them. "pup=cr.pup" w/o quotes

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-03, 12:28 PM #9
I know nothing about puppet files. How do I go about in creating a puppet file. Where do I enter this? pup=cr.pup
2002-07-03, 5:18 PM #10
Add it to the template in JED. If you're using LEC's templates, create a new one, and its parent is LEC's. Just use that line, Pup=cr.pup . If it's your own just add that line in.

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-04, 3:01 AM #11
Sorry it should be Puppet=cr.pup So sorry.

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-04, 3:30 AM #12
The JKSpecs are correct there, leave the flags at 0. Not that the 0x0 flag does anything, repeat is the default.

------------------
Author of the JK DataMaster, Parsec, and the EditPlus Cog Files.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!