|
So far, we've only been looking at properties that affect the ship as a whole. Much of the customization possible for a ship design comes in the form of the dozen or more systems that give the ship its specialized abilities. Each ship system is defined by a structure in the ship definition file. All of the system structures have a few properties in common, but they each have custom attributes as well. COMMON SYSTEM PROPERTIES
Each system structure is introduced by a specific attribute
name that identifies the type of system being declared. For
example, reactors are declared with the name "power", like this:
SYSTEM TYPES: Click each name for more info
The order that systems are listed in the ship definition file is significant. Each system must draw power from a reactor in order to operate (except for power sources themselves!). Each system is automatically attached to the power source that was most recently declared in the definition file. For example:
In the above listing, the plasma drive will draw power from the main reactor, and the shield will be attached to the auxilliary reactor. Starship captains can adjust power distribution and connection during the game through the engineering screen. For example, a starship captain could easily move the shield system from the aux reactor to the main fusion reactor to help balance the load. However, fighter pilots do not have access to the engineering screen, so fighter power routing is fixed at design time. Weapons Hardpoints and Loadouts Starships are generally designed with fixed weapons systems. If the ship definition file declares that a particular type of destroyer has two x-ray laser mounts, and one torpedo launcher, all ships of that type will always have those weapons. Fighters, on the other hand, usually have underwing weapons hardpoints that can carry a variety of different weapon types. You can configure each fighter to carry an appropriate set of weapons each time one takes off during the game. In order to do this, fighter ship designs use two additional structures:
Death Spiral Properties All good things must come to an end, preferably in a suitably noisy and colorful series of fireballs!
Samples Here are links to two sample ship design def files. The first one is a fighter design, similar to the Stormhawk fighter from the game. The second one is a fleet carrier design, based on the Orion class carrier: Fighter.def Carrier.defYou can use these samples as the basis for your own designs. Be sure to rename them to match your mod design names. And remember to save the files using a .def extension. |
