11
General Discussion / Re: Questions Not Worth Their Own Thread: C# Edition
« Last post by nuclearslurpee on Yesterday at 12:06:18 PM »Does anyone know if Ship Component type names are scripted in the DB or in the executable? I've edited some names in DIM_ComponentType, yet cannot find how to rename type branch names. Like, my eternal damnation is Geo Sensors, wich I'm mixing up with Grav Sensors every second time; tried to rename Gravitational to Topological in the DB, yet the type branch remains Geological Survey Sensors, wich means I will still mix it up.
There are some components which are the same for every race, so they do not use generated names. The flip side is, if you rename them in-game they will be renamed for every player race in all games using that DB. You can also rename them in the DB but you have to dig into the FCT_ShipDesignComponents table, I think. Off the top of my head, the most interesting components for which this is true would be the Geo/Grav Sensors, ECM components, and industrial production modules (sorium harvester, stabilization modules, etc.), but this should apply to any component which is not race-designed.
For race-designed components the procedural naming means you can't control every aspect, but I think the type names are pulled from FCT_TechSystem entries. Looks like it uses the component name if present, otherwise the primary tech name. Probably with a bit of trial and error for each component type you can figure out which entries control the relevant parts of each name.