How to add a new ship design to a faction?

 

Say I want to add a new Terran frigate (in addition to the existing one) and have it use its own ship blueprint?  Will the following work? and if so what name will show up in ship designer

 

>> in  ShipClassDeffs   add

<ShipClass>

    <InternalName>TerranFrigateNEW</InternalName>

    <DisplayName>TerranFrigate_Class_Name</DisplayName>

    <Description>TerranFrigate_Dec</Description>

    <ThumbnailOverride>Terran_Frigate_02T.PNG</ThumbnailOverride>

    <ShipHullType>Medium</ShipHullType>

    <ShipRule>FavorKinetic</ShipRule>

    <ShipDesign>Terran_Frigate_02T</ShipDesign>

    <AIShipClass>Assault</AIShipClass>

    <StrategicIcon>Frigate</StrategicIcon>

    <BlueprintDef>FrigateBlueprintNEW</BlueprintDef>

 

>> add in: FactionShipStyleSetDefs.xml

<ShipClass> TerranFrigateNEW </ShipClass>

49,329 views 7 replies
Reply #1 Top

You need to create a blueprint as well. (ShipBluePrintsDefs.xml) Just be warned, ship blueprints was not easy to mod before, and unless they've changed something recently, you might be in for a rough ride. 

and if so what name will show up in ship designer

<DisplayName>TerranFrigate_Class_Name</DisplayName>

This decides what name shows up. But the string is located in English/Text/ShipClassText.xml, so you need to go there to change the name, or make a new file with just your new ships in it. 

Reply #2 Top

Quoting sjaminei, reply 1

You need to create a blueprint as well

Check

Quoting sjaminei, reply 1

ship blueprints was not easy to mod before

I know just enough to be dangerous :\ ,  see my other port for a question about it  :O

https://forums.galciv3.com/471885/page/1/

 

Quoting sjaminei, reply 1

located in English/Text/ShipClassText.xml

 

Ahh Thanks, I had not found this file so..

<DisplayName>TerranFrigate_Class_NameNEW</DisplayName>   in my ShipClassDeffs  block and the define TerranFrigate_Class_NameNEW in  English/Text/ShipClassText.xml

right?

Thanks a bunch

Reply #3 Top

Quoting a0152570, reply 2

TerranFrigate_Class_NameNEW   in my ShipClassDeffs  block and the define TerranFrigate_Class_NameNEW in  English/Text/ShipClassText.xml

right?

Yep. Just put that name in a label in the file, and then edit the string to what it should be named. 

Though I am not sure where the M# suffix (version of the ship) is supposed to be edited. Can't find it in either blueprints or that text file. Might even be hardcoded. As I said, blueprints is a mess ;)

+1 Loading…
Reply #4 Top

Quoting sjaminei, reply 3

Though I am not sure where the M# suffix

I THINK it is automatic,  if everything is done corectly, the fires of my "new" ship will me M1, as new tech's come up it should follow the blueprint and become M2

Reply #5 Top

I almost have it working.  where does the English/ShipClassText.xml file go after modding?  Or do i need to change it i the original steam game directory

Reply #6 Top

It goes to Mods\NameOfMod\Text\

For example, I have:

..\GalCiv3\Mods\ShipDesigns\Game\FactionDefs.xml
..\GalCiv3\Mods\ShipDesigns\Game\FactionShipStyleSetDefs.xml
..\GalCiv3\Mods\ShipDesigns\Game\Mod_ShipBlueprintDefs.xml
..\GalCiv3\Mods\ShipDesigns\Game\Mod_ShipClassDefs.xml
..\GalCiv3\Mods\ShipDesigns\Game\Mod_StaticShipBlueprintDefs.xml
..\GalCiv3\Mods\ShipDesigns\Text\Mod_ShipClassText.xml

Game directory:

- FactionDefs: Modified starting ships for factions. REPLACES base game version.

- FactionShipStyleSetDefs: Modified available designs for factions. REPLACES base game version.

- Mod_ShipBlueprintDefs.xml: My new ship blueprints. ADDITIONAL to base game version.

- Mod_ShipClassDefs.xml: My new ship designs using the new blueprints. ADDITIONAL to base game version.

- Mod_StaticShipBlueprintDefs.xml: Blueprints for the starting ships. ADDITIONAL to base game version.

Text directory:

- Mod_ShipClassText: Names and descriptions for my new ship classes. ADDITIONAL to base games version.

I think there's no way to mod FactionDefs.xml and FactionShipStyleSetDefs.xml for the existing factions without overriding the base game version. This causes the need to check and merge any updates and bugfixes from StarDock for these files.

+1 Loading…
Reply #7 Top

Quoting Petri, reply 6

think there's no way to mod FactionDefs.xml and FactionShipStyleSetDefs.xml for the existing factions without overriding the base game version. This causes the need to check and merge any updates and bugfixes from StarDock for these files.

 

The above is a bummer.  I thought there was an xml standard that supported merging, if so guess SD is not using it.

thanks for the help