Author Topic: FRED Capship in-mission warpout help  (Read 5766 times)

0 Members and 1 Guest are viewing this topic.

Offline Crybertrance

  • 29
  • Conventional warheads only, no funny business
FRED Capship in-mission warpout help
Hey guys, I have created an in-mission subspace jump for a player capship, following Axem's beautifully written tutorial. In the tutorial he uses a "ship-lat-maneuver" SEXP to move the ship while its playing dead. However, this SEXP only relies on the tabled movement speed of the ship in particular. This effect while for a fighter is cool, its not so good for a capship (who likes to see a caphip warpout at 40 m/s?) Is there a way to use the the ships tables warpout speed instead?

Also, on another note, is the "ship-rot-maneuver" SEXP not working? I tried using it on a disabled ship, no joy tho (obviously i cleared all goals and used the play-dead SEXP)
<21:08:30>   Hartzaden fires a slammer at Cybertrance
<21:09:13>   Crybertrance pops flares, but wonders how Hartzaden acquired aspect lock on a stealth fighter... :\
<21:11:58>   *** The_E joined #bp [email protected]
21:11:58   +++ ChanServ has given op to The_E
<21:12:58>   Hartzaden continues to paint crybertrance and feeding the info to a wing of gunships
<21:14:07>   Crybertrance sends emergency "IM GETING MY ASS KICKED HERE!!!!eleventy NEED HELPZZZZ" to 3rd fleet command
<21:14:50>   Hartzaden jamms the transmission.
<21:14:51>   The_E explodes the sun

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: FRED Capship in-mission warpout help
Also, on another note, is the "ship-rot-maneuver" SEXP not working? I tried using it on a disabled ship, no joy tho (obviously i cleared all goals and used the play-dead SEXP)
It may sound obvious, but it sounds like it's related to the fact that a disabled ship can't move and hence cannot perform any sort of manoeuvre.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline Crybertrance

  • 29
  • Conventional warheads only, no funny business
Re: FRED Capship in-mission warpout help
Hey guys, I have created an in-mission subspace jump for a player capship, following Axem's beautifully written tutorial. In the tutorial he uses a "ship-lat-maneuver" SEXP to move the ship while its playing dead. However, this SEXP only relies on the tabled movement speed of the ship in particular. This effect while for a fighter is cool, its not so good for a capship (who likes to see a caphip warpout at 40 m/s?) Is there a way to use the the ships tables warpout speed instead?

Is it not possible?
<21:08:30>   Hartzaden fires a slammer at Cybertrance
<21:09:13>   Crybertrance pops flares, but wonders how Hartzaden acquired aspect lock on a stealth fighter... :\
<21:11:58>   *** The_E joined #bp [email protected]
21:11:58   +++ ChanServ has given op to The_E
<21:12:58>   Hartzaden continues to paint crybertrance and feeding the info to a wing of gunships
<21:14:07>   Crybertrance sends emergency "IM GETING MY ASS KICKED HERE!!!!eleventy NEED HELPZZZZ" to 3rd fleet command
<21:14:50>   Hartzaden jamms the transmission.
<21:14:51>   The_E explodes the sun

 

Offline Lester

  • 27
Re: FRED Capship in-mission warpout help
You could use set-object-speed in an every-time where the speed is determined by a variable that gets 1 added to its value every time the event triggers. Set one of the conditions for the every time to
Code: [Select]
not
       =
       variable
       300
so the event stops triggering after your capship has accelerated to 300 (or whatever your desired speed is). You'd have to be sure the ship is aligned with one of the x, z, or y axes as this sexp only supports axis movement independent of the ship's actual orientation. It'd look weird if you had the ship going into subspace sideways.
« Last Edit: February 04, 2012, 06:25:01 am by Lester »

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: FRED Capship in-mission warpout help
Actually, the SEXP should support both relative and absolute reference frames (IIRC), so set it to use the former and use the Z-axis.

 

Offline Crybertrance

  • 29
  • Conventional warheads only, no funny business
Re: FRED Capship in-mission warpout help
Actually, the SEXP should support both relative and absolute reference frames (IIRC), so set it to use the former and use the Z-axis.

In the same way you use the warp-effect SEXP to show a warphole in front of your ship?
« Last Edit: February 04, 2012, 08:44:28 am by Crybertrance »
<21:08:30>   Hartzaden fires a slammer at Cybertrance
<21:09:13>   Crybertrance pops flares, but wonders how Hartzaden acquired aspect lock on a stealth fighter... :\
<21:11:58>   *** The_E joined #bp [email protected]
21:11:58   +++ ChanServ has given op to The_E
<21:12:58>   Hartzaden continues to paint crybertrance and feeding the info to a wing of gunships
<21:14:07>   Crybertrance sends emergency "IM GETING MY ASS KICKED HERE!!!!eleventy NEED HELPZZZZ" to 3rd fleet command
<21:14:50>   Hartzaden jamms the transmission.
<21:14:51>   The_E explodes the sun

 

Offline Crybertrance

  • 29
  • Conventional warheads only, no funny business
Re: FRED Capship in-mission warpout help
You could use set-object-speed in an every-time where the speed is determined by a variable that gets 1 added to its value every time the event triggers. Set one of the conditions for the every time to
Code: [Select]
not
       =
       variable
       300
so the event stops triggering after your capship has accelerated to 300 (or whatever your desired speed is). You'd have to be sure the ship is aligned with one of the x, z, or y axes as this sexp only supports axis movement independent of the ship's actual orientation. It'd look weird if you had the ship going into subspace sideways.

Could I get an example Event as I am very new to variables...  :p
<21:08:30>   Hartzaden fires a slammer at Cybertrance
<21:09:13>   Crybertrance pops flares, but wonders how Hartzaden acquired aspect lock on a stealth fighter... :\
<21:11:58>   *** The_E joined #bp [email protected]
21:11:58   +++ ChanServ has given op to The_E
<21:12:58>   Hartzaden continues to paint crybertrance and feeding the info to a wing of gunships
<21:14:07>   Crybertrance sends emergency "IM GETING MY ASS KICKED HERE!!!!eleventy NEED HELPZZZZ" to 3rd fleet command
<21:14:50>   Hartzaden jamms the transmission.
<21:14:51>   The_E explodes the sun

  

Online NeonShivan

  • Previously known as BTA
  • 29
  • By the Omnisiah's grace.
Re: FRED Capship in-mission warpout help
Sorry but wouldn't this be posted under FRED discussion or am I wrong.
In German even the most beautiful love letter sounds like an execution order -Mito

(•_•)
 <)  )/
 /  \ All the Single Ladies

( •_•)
\(  (>
  /  \ All the Single Ladies

(•_•)
 <)  )/
 /  \  Oh Oh Oh

Author of Dusk Wars - A modification for Freespace 2.

 

Offline Crybertrance

  • 29
  • Conventional warheads only, no funny business
Re: FRED Capship in-mission warpout help
Thanks Karajorma (for moving this thread to the FRED Discussion).

Is it that hard? :confused: Can someone please at-least provide a sample event? :blah:
<21:08:30>   Hartzaden fires a slammer at Cybertrance
<21:09:13>   Crybertrance pops flares, but wonders how Hartzaden acquired aspect lock on a stealth fighter... :\
<21:11:58>   *** The_E joined #bp [email protected]
21:11:58   +++ ChanServ has given op to The_E
<21:12:58>   Hartzaden continues to paint crybertrance and feeding the info to a wing of gunships
<21:14:07>   Crybertrance sends emergency "IM GETING MY ASS KICKED HERE!!!!eleventy NEED HELPZZZZ" to 3rd fleet command
<21:14:50>   Hartzaden jamms the transmission.
<21:14:51>   The_E explodes the sun

 

Offline Lester

  • 27
Re: FRED Capship in-mission warpout help
Dragon was right, there indeed is a third optional operator that sets the speed based on the object's orientation. Here's a screenie of the
event:


 

Offline Crybertrance

  • 29
  • Conventional warheads only, no funny business
Re: FRED Capship in-mission warpout help
Oooh! Thanks!
For some godforsaken reason when I set the 3rd Option of the set-object-speed-z (3: Whether the speed on the axis should be set according to the universe grid (when false) or according to the object's facing (when true); You almost always want to set this to true; (optional; defaults to false).) to tru...the event wont run... However if I set it to false (delete) the even works fine. wahts tah problehm!!
<21:08:30>   Hartzaden fires a slammer at Cybertrance
<21:09:13>   Crybertrance pops flares, but wonders how Hartzaden acquired aspect lock on a stealth fighter... :\
<21:11:58>   *** The_E joined #bp [email protected]
21:11:58   +++ ChanServ has given op to The_E
<21:12:58>   Hartzaden continues to paint crybertrance and feeding the info to a wing of gunships
<21:14:07>   Crybertrance sends emergency "IM GETING MY ASS KICKED HERE!!!!eleventy NEED HELPZZZZ" to 3rd fleet command
<21:14:50>   Hartzaden jamms the transmission.
<21:14:51>   The_E explodes the sun

 

Offline Crybertrance

  • 29
  • Conventional warheads only, no funny business
Re: FRED Capship in-mission warpout help
 :bump: :bump: :bump:

Sorry, but I'm still stuck....Can someone please help!
<21:08:30>   Hartzaden fires a slammer at Cybertrance
<21:09:13>   Crybertrance pops flares, but wonders how Hartzaden acquired aspect lock on a stealth fighter... :\
<21:11:58>   *** The_E joined #bp [email protected]
21:11:58   +++ ChanServ has given op to The_E
<21:12:58>   Hartzaden continues to paint crybertrance and feeding the info to a wing of gunships
<21:14:07>   Crybertrance sends emergency "IM GETING MY ASS KICKED HERE!!!!eleventy NEED HELPZZZZ" to 3rd fleet command
<21:14:50>   Hartzaden jamms the transmission.
<21:14:51>   The_E explodes the sun

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: FRED Capship in-mission warpout help
I think I just ended up doing an end-mission honestly, and I'm not sure how to adapt this to a mid-mission jump.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FRED Capship in-mission warpout help
I think you need to post a simplified version of the mission with just the capship warping out. Then we can see what you're doing wrong.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: FRED Capship in-mission warpout help
I think you need to post a simplified version of the mission with just the capship warping out. Then we can see what you're doing wrong.

If I'm not mistaken/misrepresenting (I may be, just let me know) isn't the issue here that he needs to use ship-lat-maneuver for the mid-mission warpout (as per usual protocol for mid-mission jumps), but can't use that SEXP to push the ship up beyond its tabled maximum?

This is a problem I don't know of a workaround for.

 

Offline bigchunk1

  • bigchunk1 = Awesome²
  • 29
  • ...and by awesome I mean Jerk!
Re: FRED Capship in-mission warpout help
Well if that's the case, would setting the speed just under the warpout threshhold and letting the ship accelerate the rest of the way work? Is there any way to tell what the warpout threshhold is?

If that does not work, you could trigger a change-ship-class sexp to set the ship to a custom pre-tabled version of the capital ship, only its has the acceleration/speed of a fighter. This type of ship, regardless of its size, should warpout how you would expect it to.
BP Multi
The Antagonist
Zacam: Uh. No, using an effect is okay. But you are literally using the TECHROOM ani as the weapon effect.

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: FRED Capship in-mission warpout help
That would probably work.

Though, an override for ship maneuver sexps could be handy. (To override tabled top speeds)
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Crybertrance

  • 29
  • Conventional warheads only, no funny business
Re: FRED Capship in-mission warpout help
That would probably work.

Though, an override for ship maneuver sexps could be handy. (To override tabled top speeds)

That would be handy indeed, I tried setting the ship_lat_maneuver speed to 200%, but i didnt work...


If that does not work, you could trigger a change-ship-class sexp to set the ship to a custom pre-tabled version of the capital ship, only its has the acceleration/speed of a fighter. This type of ship, regardless of its size, should warpout how you would expect it to.

This might work. Ill have to try it when I finish my exams..
<21:08:30>   Hartzaden fires a slammer at Cybertrance
<21:09:13>   Crybertrance pops flares, but wonders how Hartzaden acquired aspect lock on a stealth fighter... :\
<21:11:58>   *** The_E joined #bp [email protected]
21:11:58   +++ ChanServ has given op to The_E
<21:12:58>   Hartzaden continues to paint crybertrance and feeding the info to a wing of gunships
<21:14:07>   Crybertrance sends emergency "IM GETING MY ASS KICKED HERE!!!!eleventy NEED HELPZZZZ" to 3rd fleet command
<21:14:50>   Hartzaden jamms the transmission.
<21:14:51>   The_E explodes the sun

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: FRED Capship in-mission warpout help
Change-ship-class is probably the best way to do this.