Skip to content

compTypes.csv

prontotorpedo edited this page Nov 21, 2025 · 1 revision

This page is a WIP!

compTypes.csv

The compTypes.csv file is used to determine the various parameters around each of the possible components on a ship during construction.

Explanation of all columns in file (left to right)

@name

The name of the component.

nameShort

The short name for the UI. Pulls data from the .lng file

nameUI

The name shown in the constructor. Pulls data from the .lng file.

category

Specifies which section of the constructor the component can be found in.

shipTypes

Defines which ship types a component can be mounted on.

param

Defines various parameters related to each component. A list of params can be found below.

weightDiscard

During AI shipbuilding, this value is used to determine what to discard.

Comp_Need

Specifies any additional conditions that need to be met in order for this component to show up in the UI. A list of comp needs can be found below.

List of params

assign

A component is assigned to this compType by default. Having no component assigned is impossible unless the compType also has a Comp_Needs value.

campaign

This compType has no effect during battles, it is only useful during the campaign.

List of Comp_Needs

needs_component(xxx;yyy)

This compType will not be available unless the specified component(s) has been selected.

not_component(xxx;yyy)

This compType will be unavailable if the specified component(s) has been selected.

needs_armor(N)

This compType will not be available unless the ship has at least N inches of main belt armor.

needs_caliber(N)

This compType will not be available unless the ship a has main gun with a caliber of at least N inches.

needs_part(P)

This compType will not be available unless part P has been placed on the ship.

random(x)

Unknown. Presumably means that the compType has an x% chance of being added.

Clone this wiki locally