Author Topic: Frustration - halp!  (Read 1521 times)

0 Members and 1 Guest are viewing this topic.

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • Minecraft
    • FLAMES OF WAR
I have an issue of missing missile launchers.

As you can see the subobjecs are properly set up, the turrets are properly set up and the weapon code looks fine. Yet the bloody launchers do not appear in FRED or in game.
I know I've been you of the game for a while, bu I made and tested the Cobra X (that also has missile launchers) a week ago and it worked fine
.
What the hell am I missing?

Code: [Select]
;----------  torpedo launchers -----------
$Subsystem:                     mt01,3.0,1.0
        $Default SBanks:                                ( "TNM-01 Supernova" )
$SBank Capacity: (2000)
$Flags: ( "turret use ammo" "wait for animation" )
$Subsystem:                     mt02,3.0,1.0
        $Default SBanks:                                ( "TNM-01 Supernova" )
$SBank Capacity: (2000)
$Flags: ( "turret use ammo" "wait for animation" )
$Subsystem:                     mt03,3.0,1.0
        $Default SBanks:                                ( "TNM-01 Supernova" )
$SBank Capacity: (2000)
$Flags: ( "turret use ammo" "wait for animation" )
$Subsystem:                     mt04,3.0,1.0
        $Default SBanks:                                ( "TNM-01 Supernova" )
$SBank Capacity: (2000)
$Flags: ( "turret use ammo" "wait for animation" )


$Subsystem:                     mhatch1_1,0,1.0
$Flags: ( "untargetable" )
$animation: triggered
$type: turret-firing   
   +sub_type:       1
   +delay:          0
   +relative_angle: 0,0,90
   +velocity:       0,0,10
   +acceleration:   0,0,5
   +time:           2000

$Subsystem:                     mhatch1_2,0,1.0
$Flags: ( "untargetable" )
$animation: triggered
$type: turret-firing   
   +sub_type:       1
   +delay:          0
   +relative_angle: 0,0,90
   +velocity:       0,0,10
   +acceleration:   0,0,5
   +time:           2000
   
$Subsystem:                     mhatch2_1,0,1.0
$Flags: ( "untargetable" )
$animation: triggered
$type: turret-firing   
   +sub_type:       4
   +delay:          0
   +relative_angle: 0,0,90
   +velocity:       0,0,10
   +acceleration:   0,0,5
   +time:           2000   

$Subsystem:                     mhatch2_2,0,1.0
$Flags: ( "untargetable" )
$animation: triggered
$type: turret-firing   
   +sub_type:       4
   +delay:          0
   +relative_angle: 0,0,90
   +velocity:       0,0,10
   +acceleration:   0,0,5
   +time:           2000   

$Subsystem:                     mhatch3_1,0,1.0
$Flags: ( "untargetable" )
$animation: triggered
$type: turret-firing   
   +sub_type:       7
   +delay:          0
   +relative_angle: 0,0,90
   +velocity:       0,0,10
   +acceleration:   0,0,5
   +time:           2000   

$Subsystem:                     mhatch3_2,0,1.0
$Flags: ( "untargetable" )
$animation: triggered
$type: turret-firing   
   +sub_type:       7
   +delay:          0
   +relative_angle: 0,0,90
   +velocity:       0,0,10
   +acceleration:   0,0,5
   +time:           2000   

$Subsystem:                     mhatch4_1,0,1.0
$Flags: ( "untargetable" )
$animation: triggered
$type: turret-firing   
   +sub_type:       10
   +delay:          0
   +relative_angle: 0,0,90
   +velocity:       0,0,10
   +acceleration:   0,0,5
   +time:           2000   

$Subsystem:                     mhatch4_2,0,1.0
$Flags: ( "untargetable" )
$animation: triggered
$type: turret-firing   
   +sub_type:       10
   +delay:          0
   +relative_angle: 0,0,90
   +velocity:       0,0,10
   +acceleration:   0,0,5
   +time:           2000   


It's driving me bonkers.

[attachment stolen by Russian hackers]
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Nyctaeus

  • The Slavic Engineer
  • 212
  • My "FS Ships" folder is 582gb.
    • Minecraft
    • Exile
Do not appear? Or do not fire?
Exile | Shadow Genesis | Inferno | Series Resurrecta  | DA Profile | P3D Profile

Proud owner of NyctiShipyards. Remember - Nyx will fix it!

All of my assets including models, textures, skyboxes, effects may be used under standard CC BY-NC 4.0 license.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
The subobject name itself must include the string "turret", so instead of "mt01" you need "mturret01".
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • Minecraft
    • FLAMES OF WAR
The subobject name itself must include the string "turret", so instead of "mt01" you need "mturret01".

Son of a....
The answer was staring me in the face.
The missile turrets on the Cobra ARE named turretM01, etc...
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!