Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: herkie423 on May 11, 2017, 02:04:32 am
-
We all know the convetional way for ships to jump in: The Subspace Vortex. Is it possible to have a different way like the Startrek Warp Effect? I will very much appreciate it if somebody teach me the mechanics of it. Just show me the way. :)
-
There's the $Warpin Type: (http://www.hard-light.net/wiki/index.php/Ships.tbl#.24Warpin_Type:) ships.tbl setting which has a few alternative options, although none strictly match the Star Trek effect, Hyperspace might be close.
-
A galactica warpin with the apropriate sound and effect should do, see diaspora for examples
-
How about having an insanely high warpin-warpout speed and then place them on the FRED grid at extreme distance for arrival?
-
Perfect for my Romulan ships. I'll do a combination of parameters. Warp in type, sound, and warp in speed. That should be close. Thanks for the help, guys. :) :yes:
-
How about having an insanely high warpin-warpout speed and then place them on the FRED grid at extreme distance for arrival?
I think you would have the same side effect that was shown in the warp-out scene of the final battle in Rogue One, i.e. the Resistance transport crashing against the star destroyer that had just arrived. Basically you cannot warp-out/in if your vector is pointing/going through another object...
-
Perfect for my Romulan ships.
Romulan ships don't warp in, they decloak (even the drone ship in ST: Enterprise never warped in looking like itself). It is one of the Star Trek-franchise staples (until the Kelvin-timeline came along) to clearly distinguish them and reinforce the concept that they are the sneaky (and in TNG) plotting people.
-
How about having an insanely high warpin-warpout speed and then place them on the FRED grid at extreme distance for arrival?
I think you would have the same side effect that was shown in the warp-out scene of the final battle in Rogue One, i.e. the Resistance transport crashing against the star destroyer that had just arrived. Basically you cannot warp-out/in if your vector is pointing/going through another object...
It'll just require some mission scripting to ensure that nothing is in the way for an arriving or departing ship.
-
I've tried that before and I have to say it's harder than it sounds. You'll want to do it in Lua, because raytracing via SEXP sounds painful.
You'd think you can just carefully pick arrival/departure vectors, but the AI has a fetish for colliding with things - and you have very little control of where the player ship is. It can be done, but you're basically giving up the ability to use shock-jumps.
-
Perfect for my Romulan ships.
Romulan ships don't warp in, they decloak (even the drone ship in ST: Enterprise never warped in looking like itself). It is one of the Star Trek-franchise staples (until the Kelvin-timeline came along) to clearly distinguish them and reinforce the concept that they are the sneaky (and in TNG) plotting people.
No, they do not warp in. I only call them "Romulans" because I used romulan models, the Valdore. In my sequel, in the world of "The Aftermath," I call them Arcturians. Absolutely no reference to Startrek. Any names of ship or characters or tech used in the mod are purely a homage. :)
-
I've tried that before and I have to say it's harder than it sounds. You'll want to do it in Lua, because raytracing via SEXP sounds painful.
You'd think you can just carefully pick arrival/departure vectors, but the AI has a fetish for colliding with things - and you have very little control of where the player ship is. It can be done, but you're basically giving up the ability to use shock-jumps.
Yeah, I am well aware of that. It will be a daunting task pulling that off. But I like that kind of task. It will take a lot of testing and experimenting. I love torturing my brain. :)
-
I was able to get this working perfectly. Warp in and warp out. But... I have a problem with sound. I place the "$Warpin Sound Start" and its "End" counterpart with a filename entry as it says in the Wiki. The sound file is stored in the "sounds" folder. But there is no sound. I need to do more testing.
-
Did you table in your sound in sounds.tbl or a mod-sounds.tbm
-
So it's not a filename. I thought it was a direct read like "play from file" SEXP. This is relatively easy. Thanks, JSR.
Oh one more thing, I deliberately placed an Orion destroyer right in their warp out and warp in path and see what happens. When the ships did their hyperspace animation, they pass through! He he. I find it hilarious. Great care must be done in mission design.
-
Well, I thought it was easy. It should be straight forward but it is actually complicated or rather confusing to me.
I made a "*-snd.tbm" file (I also have a "sounds.tbl file)
--------------------------------------
#Game Sounds Start
$Name: HyperIN
+Filename: NBeamDown
+Preload: no
+Volume: 0.9
+3D Sound:
+Attenuation start: 1000
+Attenuation end: 4000
$Name: SonicBOOM
+Filename: MassD
+Preload: no
+Volume: 0.9
+3D Sound:
+Attenuation start: 1000
+Attenuation end: 4000
$Name: HyperOUT
+Filename: NBeamUP
+Preload: no
+Volume: 0.9
+3D Sound:
+Attenuation start: 1000
+Attenuation end: 4000
#Game Sounds End
----------------------------------------
The sounds used here are also indexed in my "sounds.tbl" which are temporary, only for testing. I used the beam rev up and rev down, and the mass driver sound effect for sonic boom. I will creat new ones if I am successful with this.
The warp entry in my "ships.tbl" for the asset is as follows:
-----------------------------------------
$Warpin Type: Hyperspace
$Warpin Start Sound: HyperIN
$Warpin End Sound: SonicBOOM
$Warpin Time: 5.0
$Warpin Decel Exp: 10
$Warpout Type: Hyperspace
$Warpout Start Sound: HyperOUT
$Warpout End Sound: SonicBOOM
$Warpout Time: 5.0
$Warpout Accel Exp: 10
------------------------------------------
Visually, I get this working as I want it to but no sounds. Initially, I followed the syntax mentioned in Wiki (string, filename) for the "$Warpin Start Sound" and "$Warpin End Sound" parameters and the matching Warp out sound parameters using the actual filenames with .ogg extensions. No sound. Then I took out the extensions. No dice. I change the entries using their index numbers defined in my Sounds.tbl. Nothing. Now, JSR adviced me to make a "-snd.tbm" which I did. Still nothing. I change the entries again using the name as defined by the "$Name" parameter in my TBM file. No cigar...I adjusted the attenuation entries to their possible maximum (the values for my massive explosion sounds) because I suspected that origin of the hyperspace effect might be the key here. When the ship warps out and goes off to a far far distance, I still see it in my radar then it disappears. So the effect origin must be some 100k kilometers. We cannot hear the effect.
My possible solution for this is to disable the 3D sound parameter and treat it as a HUD sound. I can do that in the Sounds.tbl file but I'm not sure how to do it in a "-snd.tbm" file. More research needed....
If I can not pull this off,... Well, there is always a FRED workaround and it's messy considering there will be around 20 of them warping in... and warping out.
-
"$Warpin Type: Hyperspace" doesn't play sound effects.
-
If I can not pull this off,... Well, there is always a FRED workaround and it's messy considering there will be around 20 of them warping in... and warping out.
I'd need to do some research, but there's probably scripted solution.
-
"$Warpin Type: Hyperspace" doesn't play sound effects.
Yeah. Just as I have suspected. Thanks for the info, Admiral.
-
If I can not pull this off,... Well, there is always a FRED workaround and it's messy considering there will be around 20 of them warping in... and warping out.
I'd need to do some research, but there's probably scripted solution.
Thanks, Xeno. A script is the solution.