I need help to with creating a mod for making a module so that it can be put on a ship to repair all ships in the fleetThis is what I have come up withI based it on the repair drones module. I haven't tested it out. I also looked at a starbase mod for referenceWould like advice on creating this mod in any way.Like how do I find the file with the repairdrone description... there must be a link to another file.Note: I tried to put it in xml code block but the text turned white...and the background is white in the block code.
<ShipComponent> <InternalName>RepairDronesStrategic</InternalName> <DisplayName>RepairDronesStrategic_Name</DisplayName> <Description>RepairDronesStrategic_Dec</Description> <ArtDefine>Slingshot_01</ArtDefine> <Category>Support</Category> <Type>RepairSupport</Type> <SupportType>Repair</SupportType> <PlacementType>Support</PlacementType> <Stats> <EffectType>Value</EffectType> <Target> <TargetType>Ship</TargetType> </Target> <BonusType>Flat</BonusType> <Value>6</Value> </Stats> <Stats> <EffectType>ManufacturingCost</EffectType> <Scope>Queue</Scope> <Target> <TargetType>Ship</TargetType> </Target> <BonusType>Flat</BonusType> <Value>75</Value> </Stats> <Stats> <EffectType>SupportMass</EffectType> <Target> <TargetType>Ship</TargetType> </Target> <BonusType>Flat</BonusType> <Value>20</Value> </Stats> <Stats> <EffectType>StrategicRepair</EffectType> <Scope>Fleet</Scope> <Target> <TargetType>Ship</TargetType> </Target> <BonusType>Flat</BonusType> <Value>5</Value> </Stats> <Stats> <EffectType>Maintenance</EffectType> <Target> <TargetType>Ship</TargetType> </Target> <BonusType>Flat</BonusType> <Value>1</Value> </Stats> <Prerequ> <Techs> <Option>HullRepairSystems</Option> </Techs> </Prerequ> </ShipComponent>
Text is found in \data\English\Text rather than \data\Game. You'll want ShipComponentText.XML.
What other help do you want? I haven't tried making a ship component modify strategic repair, but everything you've done looks to me like it ought to work.
take ShipComponentDefs.xml and strip all the components out paste in yours, make sure you leave the header alone and keep the closing tag so it looks like this.
<?xml version="1.0" encoding="utf-8" standalone="yes" ?><ShipComponentListxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="../Schema/ShipComponentDefs.xsd"><!-- Created with the Gal Civ 3 Editor --><!-- ShipComponentDefs.xml -->
Paste your code in here
</ShipComponentList>
Then save that in your mod directory with a prepend to the name like RDS_ShipComponentdefs.xml
Do the same with ShipComponentText.xml just change one entry to match your <DisplayName>RepairDronesStrategic_Name</DisplayName> and <Description>RepairDronesStrategic_Dec</Description> and dump the rest and save it just like the previous file.
The files should go in “//MyDocuments/My Games/GalCiv3/Mods” create your own directory here and then add a Game and Text directory inside it. The RDS_ShipComponentDefs.xml will go in the Game directory and the RDS_ShipComponentText.xml will go in the Text Directory.
Walla you have created your first mod and its append style so it shouldnt interfere with other mods or any patches.
Thanks joe! Now the next thing is whether it is possible to show it in the tech tree? I have read like bonuses for mods don't show up in tooltips as well .
Yeah already did it , referencing another mod I downloaded. Thanks !
=====However , for the text file , should I rename the text file in my mod folder?
E.g I copy the original text file , delete the content , leave the header in and add in my own label ( text description etc) ???
=====
If you leave the file named the same it must contain all the original contents though you can add your own stuff to it, this is an "overwrite" it will replace the original game file when the game starts up. This is less desirable because it can interfere with patches and doesn't play nice with other mods.
If instead you strip out the contents and put in just your code, then name the file pretty much anything else as long as it ends in .xml the game will read it and add it in, this is be cause the game only really cares about the header and the footer tag. This is known as an "append" it has the advantage that the game adds your code in without overwriting anything and you can generally have any number of append style mods running at once as long as all the internal names they use don't butt heads.
There are many great features available to you once you register, including:
Sign in or Create Account