Misc .csv File Overview

From Starsector Wiki
Jump to navigation Jump to search

The .csv files covered here are: descriptions.csv, hull_mods.csv, person_names.csv, sim_opponents.csv, and wing_data.csv.


descriptions.csv


Descriptions.csv will contain all the unique strings and descriptions for your mod. More info can be found on the file-specific page: Descriptions CSV

Breakdown

At the very top of descriptions.csv, you will see a list of categories. Going from left to right, the function of each will be described:

id - Internal ID of the item being referenced. Can be a ship, weapon, resource, asteroid, tooltip, or planet.

type - Type of item being referenced. Options are: SHIP, WEAPON, RESOURCE, PLANET, ASTEROID, ACTION_TOOLTIP, SHIP_SYSTEM, FACTION, TERRAIN, or CUSTOM.

text1 - The generic description of the item. Keep in mind that for ships and weapons, only the first paragraph is shown in the stats tooltip/window; the remaining text will be shown in the codex entry.

text2

  • SHIP type: Optional short form of the text1 description that gets displayed on the ship stats window (as opposed to the long description used in the codex).
  • WEAPON type: specifies the Primary Role denoted in the codex, such as point defense, strike, etc.
  • ACTION_TOOLTIP type: specifies label.
  • SHIP_SYSTEM type: specifies the short type description denoted in the codex, under the ship system name.

text3 - Used for some CUSTOM types. Used by SHIP_SYSTEM types

notes - Unused.

hull_mods.csv

Refer to Hull_mods.csv

Breakdown

At the very top of hull_mods.csv, you will see a list of categories. Going from left to right, the function of each will be described:

name - The name of the hull mod that is displayed in-game. This isn't the internal name for the hull mod.

id - This is the internal name that is recognized by the code in the background. When modding, this hull mod will be referenced everywhere by this ID. Remember, if you want to reference this hull mod somewhere else, it is this designation that you use, not the one above.

tier - Unused.

cost_frigate - Ordnance point cost of this hull mod for frigates.

cost_destroyer - Ordnance point cost of this hull mod for destroyers.

cost_cruiser - Ordnance point cost of this hull mod for cruisers.

cost_capital - Ordnance point cost of this hull mod for capital ships.

script - File path that points to the .java file to use for this hull mod.

desc - The hull mod's description. The %s characters represent percentages that are grabbed from the hull mod's .java file.

sprite - Filepath to the 32x32 icon that the hull mod will use.

person_names.csv


Person_names.csv will contain information pertaining to the names of AI fleet commanders that appear in the campaign.

Breakdown

At the very top of person_names.csv, you will see a list of categories. Going from left to right, the function of each will be described:

name - A person's name, either first or last.

gender - Determines gender usage of the name. "m" means it will only be used for males, "f" means it will only be used for females. Leave blank for unisex names.

usage - Determines whether the name will be used as a first or last name. "f" means it will be used as a first name, "l" means it will be used as a last name. Leave blank for it to be used in either location.

category - The category that the name belongs to. This will be referenced in a .faction file.


sim_opponents.csv


Sim_opponents.csv will contain information pertaining opponent ships in combat simulations.

Up-to-date

variant_id - The id of the ship variant that will appear as an opponent.

Note: Simulation opponents will appear in-game in the same order that they appear in the .csv file. Meaning if you have a fighter squadron first in the .csv, it will be the first on the list in-game.


wing_data.csv


Refer to Wing_data.csv_Overview

References

Icon cross.png
At least two versions out of date. Last verified for version 0.8.1a. Please refer to Version History and update this page.

---

Return to: Modding