Making fighters spawnable on any ship

How can you (if possible) modify the .entity file of a ship so that it can make fighters? 

6,526 views 6 replies
Reply #1 Top

Yes, in the reference files you can make a mod to give pretty much any ship or structure strikecraft by finding this section.

squadTypeEntityDef:0 ""
squadAntiMatterCost:0 0.000000
squadTypeEntityDef:1 ""
squadAntiMatterCost:1 0.000000
squadTypeEntityDef:2 ""
squadAntiMatterCost:2 0.000000
squadTypeEntityDef:3 ""
squadAntiMatterCost:3 0.000000
maxNumCommandPoints 0

And changing it to say.

squadTypeEntityDef:0 "SquadTechCombat"
squadAntiMatterCost:0 90.000000
squadTypeEntityDef:1 ""
squadAntiMatterCost:1 0.000000
squadTypeEntityDef:2 ""
squadAntiMatterCost:2 0.000000
squadTypeEntityDef:3 ""
squadAntiMatterCost:3 0.000000
maxNumCommandPoints 1

this will give the unit one fighter squadron.

You will also have to give mesh of the unit you are working with a hangar point (most don't have one), which can be done in a text editor and I'll explain more when I have time.

Reply #2 Top

Did as instructed and I can build the fighter but it does not launch, it says the fighter is at 100% and the dock/undock button doesn't seem to do anything.

Reply #3 Top

Quoting JimSlater, reply 2
Did as instructed and I can build the fighter but it does not launch, it says the fighter is at 100% and the dock/undock button doesn't seem to do anything.
End of JimSlater's quote

Its because the ship you put it one doesn't have a hangar point for it to launch from. If you zoom out far enough you might see it flying around in the middle or no where, but yes it won't be useful. You have to edit the .mesh file and add one but I need to get on my other computer so I can actually look at the file.

Reply #4 Top

What ship or ships do you want the hangars on? I will make a text hangar for the mesh file you can use. 

Look at the Points in Mesh\Frigate_TechCarrier.mesh

The hangars points look like

Point
     DataString "Hangar"
     Position [ 24.466066 13.306476 25.496311 ]
     Orientation
         [ -0.000000 0.000000 -1.000000 ]
         [ 0.000000 1.000000 0.000000 ]
         [ 1.000000 0.000000 -0.000000 ]

and once added will need to add 1 to the points count. This will be an odd placed point though and using XSI I can position it perfectly and give the new mesh or just the new point to paste in your mesh.

Reply #5 Top

Okay, basically every ship that can launch strikecraft needs to have a section in the mesh file that looks like this.

    NumPoints 8

    ...

    Point
        DataString "Hangar"
        Position [ 0.000000 -7.000000 255.000000 ]
        Orientation
             [ 1.000000 0.000000 0.000000 ]
             [ 0.000000 1.000000 0.000000 ]
             [ 0.000000 0.000000 1.000000 ]

The position point will be different for each model, but if I just want to crudely add a new hangar point I just copy the point "Center" (as every ship has one of those) and change the name to Hangar. That will spawn the fighters out of the middle of the ship, but it won't effect gameplay, it may just look weird. Also make sure you increase the line NumPoints by one, so it will load your new hangar point correctly.

Reply #6 Top

In the future you should place your modding questions in the Modding section of the forum.

Edit: ahh you double posted