Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripts
Scripts [message #19763] Sat, 10 May 2003 14:52 Go to previous messageGo to next message
bigwig992 is currently offline  bigwig992
Messages: 555
Registered: February 2003
Location: Nashua, NH
Karma: 0
Colonel
Grrr. I tryed my script in Ren but it just crashes. I set up my script as a poke and play and I put it in my editor cache. For location I put myfilename.txt

Here's my script. Can anyone pick out the problem?
*****************Camera
-0 Enable_Letterbox, 1 1
-0 Create_Object, 0, "camera", 0, 0, 50
-0 Play_Animation, 0, "camera.camera", 0
-0 Control_Camera, 0
-0 Set_Screen_Fade_Color, 0, 0, 0, 0
-0 Set_Screen_Fade_Opacity, 1, 0
-2 Set_Screen_Fade_Opacity, 0, 0
-290 Set_Screen_Fade_Opacity, 0, 2
-319 Set_Screen_Fade_Opacity, 0, 0
-319 Control_Camera, -1
-319 Enable_Letterbox, 0, 1
-319 Destroy_Object, 0
*****************Animation
-0 Create_Object, 1, "fly_bone"
-0 Play_Animation, 1, "fly_bone.fly_bone"
-305 Destory_Object, 1
*****************A-10
-0 Create_Object, 2, "GDI_A10_Flyover", 0, 0, 50
-0 Attach_to_Bone, 2, 1, "Box01"
-301 Destory_Object, 2
*****************Pilot Eject
-248 Create_Real_Object, 3, "GDI_Grenader_0", 1, "Box01"
-248 Create_Object, 4, "eject_bone"
-248 Attach_to_Bone, 4, 1, "Box01"
-248 Attach_to_Bone, 3, 4, "eject"
-248 Attach_Script, 3, "M00_Base_Defense", "0,300,2"
-248 Attach_Script, 3, "
-250 Play_Animation, 4, "eject_bone.eject_bone"
-260 Attach_to_Bone, 3, -1, "eject"
-270 Destory_Object, 4
*****************Sounds
-0 Play_Audio, 2, "gdi_A10_Idle_01"
-0 Play_Audio, 0, "Music_Level_x0_Tank"
-240 Play_Audio, 2, "mayday"


-The ONLY Renegade fan to pee off a school.
http://www.n00bstories.com/image.fetch.php?id=1055662786
http://www.n00bstories.com/stats/renegade_stats.php?player=bigwig992&team=gdi
Scripts [message #19773] Sat, 10 May 2003 17:46 Go to previous messageGo to next message
Dante
Messages: 1039
Registered: February 2003
Karma: 0
General (1 Star)
you have camera.w3d?

and it is setup properly?

how did you set it up?


Scripts [message #19798] Sat, 10 May 2003 23:20 Go to previous messageGo to next message
bigwig992 is currently offline  bigwig992
Messages: 555
Registered: February 2003
Location: Nashua, NH
Karma: 0
Colonel
*sigh*
Here is my most updated script.
*****************Camera
-0 Enable_Letterbox, 1, 1
-0 Create_Object, 0, "camera", 0, 10, 50, 0
-0 Play_Animation, 0, "camera.camera", 1
-0 Control_Camera, 0, "camera"
-0 Set_Screen_Fade_Color, 0, 0, 0, 0
-0 Set_Screen_Fade_Opacity, 1, 0
-290 Set_Screen_Fade_Opacity, 0, 2
-319 Set_Screen_Fade_Opacity, 0, 0
-319 Control_Camera, -1
-319 Enable_Letterbox, 0, 1
-319 Destroy_Object, 0
*****************Animation
-0 Create_Object, 1, "fly_bone", 0, 0, 50, 0
-0 Play_Animation, 1, "fly_bone.fly_bone", 1
-305 Destory_Object, 1
*****************A-10
-0 Create_Object, 2, "GDI_A10_Flyover", 0, 0, 50, 0
-0 Attach_to_Bone, 2, 1, "Box01"
-301 Destory_Object, 2
*****************Pilot Eject
-248 Create_Real_Object, 3, "GDI_Grenader_0", 1, "Box01"
-248 Create_Object, 4, "eject_bone", 0, 100, 50, 0
-248 Attach_to_Bone, 4, 1, "Box01"
-248 Attach_to_Bone, 3, 4, "eject"
-250 Play_Animation, 4, "eject_bone.eject_bone", 1
-260 Attach_to_Bone, 3, -1, "eject"
-270 Destory_Object, 4
*****************Sounds
-0 Play_Audio, "gdi_A10_Idle_01", 1, "Box01"


I have the poke 'n' play script attached to a civilian, and created a spawner for it. The poke n play parameters are "Text File: brianscript.txt" (its in my editor cache) and "Location: X=0 Y=0 Z=0". I have the following w3d's in my editor cache:
camera.w3d
eject_bone.w3d
fly_bone.w3d

I have created a new preset by clicking "add" under one of the other music songs, to get its volume and radius down. I changed the file to "mayday.wav", which is also in my editor cache.

Now whenever I "poke" my civilian, Renegade crashes. I think I'm doing everything right, and I just told you, everything. Any Suggestions?


-The ONLY Renegade fan to pee off a school.
http://www.n00bstories.com/image.fetch.php?id=1055662786
http://www.n00bstories.com/stats/renegade_stats.php?player=bigwig992&team=gdi
Scripts [message #19801] Sun, 11 May 2003 00:50 Go to previous messageGo to next message
Dante
Messages: 1039
Registered: February 2003
Karma: 0
General (1 Star)
again i ask how you have your camera.w3d setup...


another suggestion, use the westwood naming conventions

X3D_Test_Camera.w3d instead of camera.w3d

so your play animation would be

X3D_Test_Camera.X3D_Test_Camera

*note..
x = effects
3d = well, duh, 3d effect

that might not be right in WS terms, but this is how i define them


Scripts [message #19802] Sun, 11 May 2003 01:05 Go to previous message
bigwig992 is currently offline  bigwig992
Messages: 555
Registered: February 2003
Location: Nashua, NH
Karma: 0
Colonel
My camera w3d is a rotated cone with 301 frames of animation, trying to keep the point of the cone facing towards the "fly_bone" as it moves along. The point is perfect when it comes to tracking the fly bone. I checked "hide" then unchecked "export geometry". Then I exported just the camera bone with it's animation.

-The ONLY Renegade fan to pee off a school.
http://www.n00bstories.com/image.fetch.php?id=1055662786
http://www.n00bstories.com/stats/renegade_stats.php?player=bigwig992&team=gdi
Previous Topic: Revamped Stealth Generators
Next Topic: Ceiling guns in CnC mode
Goto Forum:
  


Current Time: Tue Dec 24 05:41:11 MST 2024

Total time taken to generate the page: 0.00651 seconds