Ship addition test: Orbital Defense Station
from
GalCiv2 Forums
Edit: Removed code and hosted it.
Playing around with the xml files I made a new ship hull that some people might like to use: the Orbital Defense Station hull. It doesn't have any new models or textures or whatever (it uses the Tiny_1 model), just a short addition to the GC2Types.xml. It's got a base cost of 40, size of 15, 18 HP, 3 Logistics, no speed (unless you put engines on it and/or research an engine ability bonus), and no range. It's designed specifically as a defensive ship, to stay in orbit permanently unless you outfit it with an engine and several life supports, which will give it just minimal space for weapons put able to move short distances to planets without a Starport. It requires the research item Planetary Defense to build.
Get the text you need to add to GC2Types.xml here.
Link
Copy the code to the bottom of GC2Types.xml, below the module code and above the GC2 code.
Although it shouldn't make any difference, it's suggested you try the ship in a new game. Research Planetary Defense to get it. If you want to remove it, simply delete those lines later in GC2Types.xml
While testing around with different settings I had problems with the ship getting infinite range despite having a negative one in the xml. I don't know why, but if anyone tries this ship out and has that problem, please tell me how many and what type life supports you added to the ship (if any) and how much of a support bonus you had in the Range ability and Life Support research.
Playing around with the xml files I made a new ship hull that some people might like to use: the Orbital Defense Station hull. It doesn't have any new models or textures or whatever (it uses the Tiny_1 model), just a short addition to the GC2Types.xml. It's got a base cost of 40, size of 15, 18 HP, 3 Logistics, no speed (unless you put engines on it and/or research an engine ability bonus), and no range. It's designed specifically as a defensive ship, to stay in orbit permanently unless you outfit it with an engine and several life supports, which will give it just minimal space for weapons put able to move short distances to planets without a Starport. It requires the research item Planetary Defense to build.
Get the text you need to add to GC2Types.xml here.
Link
Copy the code to the bottom of GC2Types.xml, below the module code and above the GC2 code.
Although it shouldn't make any difference, it's suggested you try the ship in a new game. Research Planetary Defense to get it. If you want to remove it, simply delete those lines later in GC2Types.xml
While testing around with different settings I had problems with the ship getting infinite range despite having a negative one in the xml. I don't know why, but if anyone tries this ship out and has that problem, please tell me how many and what type life supports you added to the ship (if any) and how much of a support bonus you had in the Range ability and Life Support research.