kryo kryo

Making a player-usable custom ship style

Making a player-usable custom ship style

In order to make a custom style for your own use, where all (or some) of the core ships are replaced:

1. During a game, design enough templates to make up the new style. You'll need at least one template of each hull size if you want it to be useable by the AIs. If you won't ever use it for an AI race and don't build core ships, you'll really only need a Cargo (preferably two) and a Medium template to cover the colony, miner, and survey ships you start with.

2. In AI race customization screen at game creation, pick the style you used when you made your templates, edit it, and save it under a new name.

3. Go to My Documents\My Games\GC2DarkAvatar\ShipStyles and open your style's xml file in a text editor.

4. Change the <Prefix> value to something unique, with no spaces or special symbols. Check through the file for any instances of the original style name you copied yours from and change them to your new name.

5. Go to My Documents\My Games\GC2DarkAvatar\ShipTemplates, and rename the .shipcfg files for the templates you made in step 1 to match the prefix value you set in step 4.

6. Once renamed, copy at least the three starting ships' templates to GalCiv2\DarkAvatar\Data\ShipCfg as well (this is necessary to make them appear when you use the style for your own race), and rename them to match their roles in the same format as all the other files in that folder. So prefix_ColonyShip.shipcfg, prefix_SurveyShip.shipcfg, prefix_SpaceMiner.shipcfg, etc.

7. Start up the game, and go edit the style via AI race setup. Pick each item on the left and double-click the template on the right to assign it, then save.

Your style should now be ready for use. Whether you use it yourself or for an opponent, the three starting ships (and any future core ships or AI designs if you replaced more) should use the templates you made yourself.
183,046 views 45 replies | Pinned
Reply #26 Top
Im interested of the relation between shipstyles/configs and AI decisions what to build/research? I've replaced every ship for the terrans, with a hyperdrive only as equipment. Nothing else. But now the AI doesnt research any weapon technology and builds the ships without any.
Reply #27 Top
I've never seen this before but then I spend most of my time making ships and shipstyles I haven't actually played the actual game in a long while. But I really hope I do one day.

I was curious if anyone had this problem with my ships so I brought up the question in reply#386 in: F&E.

I hope to get a answer soon.
Reply #28 Top
Im interested of the relation between shipstyles/configs and AI decisions what to build/research? I've replaced every ship for the terrans, with a hyperdrive only as equipment. Nothing else. But now the AI doesnt research any weapon technology and builds the ships without any.


No relation. The templates are used as the graphic only.
Reply #30 Top

My ship style is invisible when I choose the race, but the three starter ships have not changed. Here's what my files look like:

Step 5: Djani_UD_T_D'janiFlagship_t.shipcfg, which is how the game saved it but with my new prefix, which i changed in step 4.

Step 6: Djani_D'janiFlagship_t.shipcfg, which is what the other files in that folder look like.

What am I doing wrong?

Reply #33 Top

I really wish Stardock would just integrate this into the game. Going through folders and renaming files is a very inefficient and sometimes frustrating method.

Reply #34 Top

you can make a player usable shipstyle without leaving the game!

Reply #36 Top

go to the race selection screen, choose your race and go to the appearance tab. in that tab there is a button that says 'create custom shipstyle' or something like that and click on it to choose templates to add to the style and you're done. To create templates, just go to the ship designer and when you create the ship, click save as template.

 

-Dave

Reply #37 Top

Yeah, the option is now available for the player in the latest version of TA. I'm not sure offhand if it replaces the starting ships though, those still might need to be done manually.

Reply #38 Top

those still might need to be done manually.

That's in fact quite true for DA styles editing as the 'currently available templates' list i ended up with yesterday wouldn't pick everything i gave it.

 

Btw Kryo, are UD_ tags (initial designs certainly had to be saved) still necessary for ships driven by an eventual pre-defined style?

Reply #39 Top

Okay, i deleted all the UD tags as per Carielf 'oldmodguide' suggested and still have a sortof problem;

 

I'm testing a temporary ship style for the X-Com fleet (which must be valid for either the Human Player or any AIs if selected as opponent), soooo....

1-- all their templates (XC_T_...shpscfg + XC_..._t.xml) are located in x:\..\MODS\X-Worlds\Data\ShipTemplates.. and declared as such in the XWhU X-Com style file which is also located in the given ShipStyles folder.

2-- all pre-defined (with valid components & engines, etc) XC_...shpfg are into the MOD\Shipcfgs folder. Considering the special Colony,SurveyShip & Miner supplemental trio has been copied there too as recommended.

3-- all pre-defined xml for number--2 above are also into the MOD\ShipDefs folder.

 

Is this the correct procedure? Cuz, i even tried moving all these files into C:\Docs... and each time a new game started all shpcfg (XC_..) files simply got deleted by the program. So i returned them all to their earlier MOD locations; as a player, all ships showed up correctly and even in the AI situation the game could use and deploy any of these ships properly. BUT...

Every time i am trying to create a new ship (by say, just replacing the engine) from the Core list... i get an invisible ship and those specific files get saved in the C:\Docs... as usual. If i reload for a new game THAT previously invisible ship is now available and it's NOT invisible.

What am i missing here?

Reply #40 Top

For some reason, this feature has been unavailable to me for some time, even with the lastest versions of TA. The button is just greyed out.

Reply #42 Top

I'm not sure if this has been re-covered recently - but does this work for ToA? Specifically, I'm having problems with getting my customized ships to appear as the ships you get at start. What are the filenames I need to use, and which folder should they be in? So far, the one suggested here hasn't worked for me.

Thanks for the help.

Reply #43 Top

rename your colony,survey,spaceminer to this

KRI_ColonyShip.shipcfg

KRI_SurveyShip.shipcfg

KRI_SpaceMiner.shipcfg

Remember change the prefix from S0_to Something else use at least 3  numbers or letters than place them in your ShipCfg folder.Next go into your my documents games ShipTemplates folder and copy the ships you want to use only copy the XML.Then place them in your mods shiptemplates folder it should look like this when your done

<ShipStyle Name="Galactic Federation Style">
        <AIAttacker1>galfedattacker2_t</AIAttacker1>
        <AIAttacker2>galfedattacker3_t</AIAttacker2>
        <AIAttacker3>galfedattacker_t</AIAttacker3>
        <AIBattleship1>galfedbattleship2_t</AIBattleship1>
        <AIBattleship2>galfedbattleship3_t</AIBattleship2>
        <AIBattleship3>galfedbattleship_t</AIBattleship3>
        <AIColonyShip1>galfedcolony_t</AIColonyShip1>
        <AIConstructor1>galfedconstructor_t</AIConstructor1>
        <AIDefender1>DefenderTemplate1_t</AIDefender1>
        <AIDreadnought1>galfeddestroyer3_t</AIDreadnought1>
        <AIDreadnought2>galfeddestroyer2_t</AIDreadnought2>
        <AIDreadnought3>galfeddestroyer_t</AIDreadnought3>
        <AIFighter1>galfedfighter2_t</AIFighter1>
        <AIFighter2>galfedfighter3_t</AIFighter2>
        <AIFighter3>galfedfighter_t</AIFighter3>
        <AIFreighter1>galfedcargo_t</AIFreighter1>
        <AIFrigate1>galfedfrigate2_t</AIFrigate1>
        <AIFrigate2>galfedfrigate3_t</AIFrigate2>
        <AIFrigate3>galfedfrigate_t</AIFrigate3>
        <AIHeavyFighter1>HvyFtrTemplate2_t</AIHeavyFighter1>
        <AIHeavyFighter2>HvyFtrTemplate1_t</AIHeavyFighter2>
        <AIHeavyFighter3>HvyFtrTemplate3_t</AIHeavyFighter3>
        <AISpaceMiner1>galfedspaceminer_t</AISpaceMiner1>
        <AISpore1>SporeShipTemplate1_t</AISpore1>
        <AISurvey1>galfedsurvey_t</AISurvey1>
        <AITransport1>TransportTemplate1_t</AITransport1>
        <DisplayName>Galactic Federation Style</DisplayName>
        <Hidden>0</Hidden>
        <Prefix>GAL</Prefix>
        <ModuleStyle>0</ModuleStyle>
    </ShipStyle>

this is the easy way to get them to show you don't have to name them this its just easier to find them when you have alot of ships.And boy do I have alot it took me an hour to get the terran style to show.I hope this helps you our anyone else with custom shipstyles. 

 

 

Reply #44 Top

 

After alot of trial and error ( and I do mean ALOT OF TRIALS AND ERRORS ), I have finally integrated my User Designed ships into a custom ship style's templates that gets those whacky and abnormal upgrades and amount of weaponry that just outclasses whatever you design in every freaking way.

 

Dreadnought Ship

 

As you can see, the program doesn't really care much about looks and just slaps weapons in any available space it finds. and trust me this is wayyyyyyy overweighted than the allowed component space allowed.

I'll write down a brief explanation on what to do "in addition" to the steps mentioned by the OP.

Reply #45 Top

Great work with the instructions, thank you so much :)

I'm having problems with locating my core ship data. No matter where I look, I can't find GalCiv2\DarkAvatar\Data\ShipCfg


Any idea where I could find it? I bought the game from Steam.