This is a modding guide for those interested in designing custom ship styles that are used as the default style for custom faction (or even for replacing the style of an existing faction). By following this guide, you will learn how to setup a ship style set which is used by the AI in the development of new ships - whether for an AI controlled faction or for the ships that automatically appear/upgrade in your shipyard as you research new techs.
Assumptions:
Overview:You will need to create ships/templates for all ships you wish to use, including shipyard and starbase designs if you want. You will also need to work with two XML files, ShipClassDefs.xml and FactionShipStyleSetDefs.xml (And FactionDefs.xml to make it work with your faction in the end)
Step by Step Instructions:
Part 1: XML Setup
Part 2: Ship DesignThis process can take some time. Having looked at the FactionShipStyleSetDefs file, you know that there are quite a few ships and bases to design if you want a complete custom set. Not every entry requires a unique ship, since some are simply variations on the same ship. Still, it is a lot of ships.
Part 3: Putting It Together
Part 4: Clean Up Any Text Strings
(Don't think I need to post examples of this, but if you are unsure, ask below. I or someone else can help)
Part 5: Finishing Up
And there you go. The computer should now use your ship designs as the default for that faction and will auto-design your ships with new equipment as techs unlock new equipment. The way it choses equipment to upgrade is based on what is provided in the ShipBlueprintDefs.xml which defines what specific ships require and what to prioritize. You will notice that your ShipClassDefs_NEW.xml file pointed to these blueprints.
I hope this is helpful and makes sense, particularly to newer modders. If you have questions, please ask.
Go ahead and stick this in the steam guides to
Found something out. You definitely need to give the game Templates and not completed ships, otherwise it will give you whatever you last equipped to those ships. The game's templates also DO keep track of where you put everything in the original design, and it remembers what shapes, sizes, and rotations you had as well, and it will never deviate from these specifications. Even if it needs to put more parts than it has room for, it will just place the new parts underneath the old ones. This means if you want to make, say, functioning triple-barreled cannons, or one massive superlaser that has like 40 lasers all slapped onto one point, you absolutely can.
In other words, the way this game handles custom ships is really freaking good.
One more thing I just found out. The .ship files are only needed if you want a design to show up in the designer. Usually, you do! But your 80,000 Starbases and Shipyard are not ships, and you don't want them cluttering your Cargo designs, so you should move those .ship files to a backup folder once you finish them. Don't delete them, because if you want to make changes to your designs, you have to put them back, and if you deleted them... gotta start all over!
Needless to say, the game no longer crashes without the .ship files, and you don't have to put anything in the base game folders for this to work anymore. The my documents location has been up and running for some time now.
Just to add to this, I learned that if you set "AI Only" as true, in the ship def file, for Starting Colony, Scout, and Survey ships, the ship set will crash the game and fail to load.
You can however, set all other designs as AI Only is true to remove all of those pre-designed ships from your list (CLEAN AT LAST!!!)
Question: Is there a way to give Ship Specific Names based on a list of Names assigned to Classes ?
Example:
I am using "AirMasters" Startrek Collection.
I have a Ship CLass called "Intrepid-Class NX-<insertNumberHere>"
Once i order a Ship i need Manually rename it as of now to:
Once i upgrade e.g. USS Bellerophon (NCC-74705) from
I will need to rename the Ship back to USS Bellerophon (NCC-74705).
Once i loose a Ship in Combat i will need to note the name, rrder a new Ship , rename it and then append it.
Is it somehow possible to define a list of names that can be (Sub-)Class-specific automatically ?
The engine obviously would need to be aware what List of Shipnames corresponds to which Ship-Class and Sub-Class. It also would need to notice that a ship on that list has been destroyed and which apendige it had.
kind regards,
QWulf
Can this mod be used with the latest patch !!
Has anyone had the experience of a game never loading after creating a custom shipstyle? I've been watching a spinning galaxy for about 40 minutes.
Just a few question about custom shipyards:
-does the hull size you start with matter?-Is there an easy way to load the current shipyards, say the terran, into the game designer so i can look at its relative size so that ships wont clip while building. I found the.objgfxcfg and png file but not the .ship file for the shipyards.-I assume that even know the shipyard rotates 90d the ship being built also is placed correctly at 90d?
Thanks
1) Hull size does not matter.
2) Loading current yards? Not that I know of.
3) I don't think the rotation thing happens anymore. I design yards as one big ship and I don't rotate them differently than a normal ship.
Hi All,
Righty-ho, I'm just starting to try and follow this guide but I've fallen at the first hurdle - again!
I'm having trouble creating a new XML file - how do I do this? I can create a new folder or a a text document (these are the closest options that I am aware of) but can't see any obvious option to create an XML file.
Help!
Hi Dumhed,
Could you explain to this new-come-lately about adding descriptions (part four)? I'm not really clear on what is required, like do I create a new xml? Some examples may be quite useful for me.
Thanks!
Hey if you think a video might help... I have a tutorial online.
https://www.youtube.com/watch?v=JyuzaYS0ewY
Hey Gauntlet, I used your tutorial to help me understand a few concepts as I modded in my own shipset for a custom faction. Works nicely now, and thank you for putting that together.
Right now, the only thing I'm not clear on is descriptions, as it sounds like I need to add an entirely new text file and I'm not sure where the first step is. Not really essential, but would be a nice touch.
Also, after modding in my shipset, my I can see every other faction ship design in the ship builder. I'm not afraid of my faction suddenly using all the other faction ships, as my xml has them associated with my customs designs, but is this normal in your experience?
Regarding the descriptions, I always put my descriptions right in the direct XML file (cuz I'm lazy) instead of a separate descriptions reference file.
Never gives me a problem, its just that when you edit your XML lengthy descriptions can make the process a little bigger, but I benefit from having only to edit the one file.
Hope that helps.
AS for the ships. No... I would check your settings one of them lets you see all ship designs. Furthermore, just so you know, the AI will use USER designs, so if you have more than one race per shipset (which you have to at the moment) its possible the AI will use user designs from a different race.
So basically, if you play Krynn and used Krynn shipset as the base for your custom... your new custom race might use and user-designed Krynn ships. To avoid issues, I regularly delete all of my non-template designs to prevent this from happening.
Would really help if SD would add separate folders for templates, components, user ships, and downloaded ships.
So I've recently picked up a custom faction off of the Steam Workshop (the Ixion Republic) and I've run into a snag.
Whenever I try to edit an existing ship design or create a new one (outside of the custom Ixion style or even using ships from the custom style), my game immediately crashes to desktop the moment I try to save my new/edited ship.
Wondering if any of you have encountered this problem before and, if so, do you know of a solution.
By the by, I haven't really modded anything ever, though I could take a stab at rewriting xml code through Notepad++.
I don't know if this will be relevant but the existing ships in the custom style do update their modules accordingly with new developments in tech.
Why did they give us the tools to create custom races and ships but then neglect to add the button that combines the two? They could have scripted the option to create a custom fleet, themselves, without too much extra effort. If I do all that coding for them, in order to enjoy their game and partake of it's replayability, then it will stop being fun and start being work. Please finish your game Stardock, and realize it's potential. I find it maddening that you're releasing DLC, when the custom ships and custom races still can't be combined. OMG! Has nobody on the development team noticed the irony, here? Can't see the forest for the trees? K THX BYE
P.S. Thank you to the OP for the excellent and helpful guide!
So... I am having fun modding my own ship styles and all, but I have hit a slight problem...
My custom shipyard is a little bit skewy, so it my ships are clipping into the model a bit.
Does anyone have some tips for orienting the shipyard in the designer so that it's in a more *correct* position?
Hi folks,
Quick question. Do we need the protype category of ships or can we get rid of them and keep the starting, award and normal ship types?
I do not think they are needed as such, I recon you can create a FactionShipStyle.xml without them with out it having adverse effects, but, said faction would be at a disadvantage over factions that have them, as some of the prototype designs can be quite brutal, even the stock blueprint designs.
So, I'm trying to make a shipstyleset for my UNSC faction using designs from Steam. And I'm getting this message:
C:\Users\Cale\Documents\My Games\GalCiv3\Mods\Star Empire\Game\ShipClassDefs_UNSC.xml(530,5): error: expected end of tag 'Description'
I have looked and looked, and I have no idea witch Description tag it's talking about, or what's wrong. Help?
(Yes, I know that I have some ships, like the Sabre and Infinity, used as models for multiple ship classes (Scout, Sniper, Knight in Sabre's case). All the designs I got from Steam, and I'm not that good at making my own recreations. I also know that the Cradle-Class isn't a warship and is a mobile repair station, but there is no Huge Support Ship, so until I figure out how to make my own ship blueprints I'm just making do...is there a thread on custom Ship Blueprints?)
Beware, long file is long. Is there a way to hide it from those who don't want to help/visit the thread after I've been helped?
UNSCSurvey is the issue you have a missing <
What editor are you using? Have Civ5 by any chance? The xml editor in thier mod tools is dam good at highlighting syntax errors like this, took me all of 10s to find it
Screenshot
Thanks Horemvore. Now the game loads. Now, I assigned the Shipstyle to a custom faction I had already made and works fine, but of course the game crashes when I try to start a new game. Do you need to put guns/defences/engines/etc on the templates so they know where to put them or something? Or is it another problem? I'm not getting an error message.
I have never placed anything on my Templates. Did you check the debug.err file? (Can open it in any txt editor)
Didn't even know about the debug file, so thanks. Found out about a misspell it the Sabre's blueprint name it nearly every entry in ShipClassDefs and thought that was it. Now I get this at the end of the debug report whenever I try to start a new game. Also, is there a way to delete ship components?
Debug Message: Game Started (New Game).Debug Message: ShipComponent Created. [AuthorID 0, Name ACA-0010]Debug Message: ShipComponent Created. [AuthorID 0, Name ACA-0011]Debug Message: ShipComponent Created. [AuthorID 0, Name byy]Debug Message: ShipComponent Created. [AuthorID 0, Name Construction Pod]Debug Message: ShipComponent Created. [AuthorID 0, Name Jedi 1]Debug Message: ShipComponent Created. [AuthorID 0, Name Jedi 2]Debug Message: ShipComponent Created. [AuthorID 0, Name Jedi]Debug Message: ShipComponent Created. [AuthorID 0, Name Kodiak]Debug Message: ShipComponent Created. [AuthorID 0, Name New Part]Debug Message: ShipComponent Created. [AuthorID 0, Name New Part]Debug Message: ShipComponent Created. [AuthorID 0, Name Omega Weapon PL-S03]Debug Message: ShipComponent Created. [AuthorID 0, Name Quinjet]Debug Message: TachyonSystem: Successfully retrieved match report responseDebug Message: TachyonSystem: Successfully sent match reportDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failedDebug Message: ERROR: GetTranslation() failed
You can Ignore Translation Errors. I get them too, alot. i dont see anything else in that paste of the log file. Is you game working now? Not sure what you mean by delete ship components? Do you mean Ship Parts like in the designer?
There are many great features available to you once you register, including:
Sign in or Create Account