Dear modding enthusiasts and fellow spacefarers.
I am trying to create a custom faction, with custom tech tree, but I'm running into issues.
1. Early in my testing, I played for hours with the custom faction, and had Hypergates, Stellar Architects, and everything was awesome.
2. Later, the tech is gone. All of it. I've searched through all my XML files, and I can't find a reference to Spatial Manipulation, nor can I find any tech tree entries based on my research.
3. I resync mods, restart app, over and over. I can't seem to get them to show up.
I'm going to guess you started playing with your mods. You probably are using the wrong xml files in your mods, so everything that is missing was removed from the game by your mods. There is an xml file for everything in the base game directory. The expansions may or may not have added a new xml file in the expansion directory to account for the changes in the expansion.
Since you have the ultimate edition, you need to use the xml files in the Retribution expansion. Some may not have been changed by Retribution, so the file won't be there. You will then need check the Intrigue expansion, then the Crusade expansion to find the file. If you haven't found it, it was not changed in the expansions, so use the one in the base game directory.
The directories for the expansion are:...\Galactic Civilizations III\DLC\EXP4_Retribution...\Galactic Civilizations III\DLC\EXP3_Intrigue...\Galactic Civilizations III\DLC\EXP2_Crusade
Be sure to check them in that order. Most of the files you want will be in the game directory in those expansion directories. Some may be in the core directory.
Once you use the right files, most of the problems will go away.
Unfortunately, the resync mods button has nothing to do with mods. It actually resyncs workshop content.
from a quick look you didn't use the exp4_retribution MasterTechDefs. the one from crusade lacks hypergates.
the specific code used by the game:
<Tech>
<InternalName>MasterSpacialManipulation</InternalName>
<GenericName>SpacialManipulation</GenericName>
<DisplayName>MasterSpacialManipulation_Name</DisplayName>
<TechTree>Master_Tree</TechTree>
<ShortDescription>MasterSpacialManipulation_ShortDec</ShortDescription>
<Description>MasterSpacialManipulation_Dec</Description>
<FlavorName>SpacialManipulation_FlavorText_DisplayName</FlavorName>
<FlavorShortDescription>SpacialManipulation_FlavorText_ShortDescription</FlavorShortDescription>
<FlavorDescription>SpacialManipulation_FlavorText_Description</FlavorDescription>
<ColorDef>TechOrange</ColorDef>
<Icon>GC3_Enginering_Tech_Icon.png</Icon>
<Bink>GC3_Interstellar_Craft_Temp.bk2</Bink>
<ResearchCost>32</ResearchCost>
<TechPoints>1</TechPoints>
<Tags>Hulls</Tags>
<Tags>Critical</Tags>
<AICategoryWeight>
<Military>30</Military>
<Growth>25</Growth>
<Tech>25</Tech>
<Diplomacy>25</Diplomacy>
<Expansion>25</Expansion>
<Wealth>25</Wealth>
<Influence>25</Influence>
<Fortification>25</Fortification>
</AICategoryWeight>
<Prerequ>
<Techs>
<Option>ArtificialGravity</Option>
</Techs>
<TechAge>
<Option>AgeOfExpansion</Option>
</TechAge>
</Prerequ>
</Tech>
can't say what if any other tech changes retribution made over crusade so if you just cut and paste that into your tech you might be missing other changes ect. depending on how much you've changed thought it might be helpful tho.
It (the miniature computer gremlin known as "The System") is complaining about Master Tech tree is invalid, so I removed one of the mods that was pitching a fit. THEN it has the audacity to complain to me about the Tech being invalid because it's missing prerequisites, but they are CLEARLY in.... wait. I just spotted a typo in your post.
I need sleep, I will tackle it again on the morrow...
Sorry if i caused you any confusion, if you would be kind enough to point out the typo I'd be happy to edit my post and fix it. After you sleep of course .
Everything from <Tech> to and including </Tech> was directly from the game files but maybe the forum did some funny formating to it or something.
It didn't, that wasn't the problem, the Prerequ tag threw me off.
I changed the Tech tree listed to my new tech tree, but the program keeps crashing on failed validation for tech in Master_Tree. I can't figure out where or why.
I have tried many things to get this to work, but alas, I'm without hypergates.
Getting the following errors; Any thoughts?
Debug Message: ERROR: Tech Tree Audit: Tech MasterSpacialManipulation has no valid tech prerequisite, and is unreachable. Tree: Master_Tree
Debug Message: ERROR: Tech Tree Audit: Tech MasterSpacialManipulation has no valid tech prerequisite, and is unreachable. Tree: TaraEs_Tree
Debug Message: ERROR: Tech Tree Audit: Total number of errors: 2. See log above for errors.
Debug Message: ERROR: Improvement Defs Audit: ImprovementDef SlaveRecycler is unreachable. TechTree: Master_Tree
Debug Message: ERROR: Improvement Defs Audit: One or more improvement defs has invalid tech prerequisite, PowerTech TechTree: Master_Tree
Debug Message: ERROR: Improvement Defs Audit: One or more improvement defs has invalid tech prerequisite, TorianPlanetaryImprovement TechTree: Master_Tree
Debug Message: ERROR: Improvement Defs Audit: One or more improvement defs has invalid tech prerequisite, PlanetUtilizationTech TechTree: Master_Tree
Debug Message: ERROR: Improvement Defs Audit: One or more improvement defs has invalid tech prerequisite, SlaveringRecycling TechTree: Master_Tree
Debug Message: ERROR: ImprovementDefs Audit: Total number of errors: 1. See log above for errors.
I do have a couple, but before I start I haven't done any tech tree modding myself so my suggestions are going to be more focused on what issues I have caused myself and possible complications depending on how you went about trying to create your mod. Also your errors didn't mention bad variables or missing tags, somehow the tech branch itself was broken
From what you said you created new files and saved those right? No game files were saved with the original name? Did you save them to C:\Users\Owner\Documents\My Games\GC3Crusade\Mods directory? Inside your mod folder are the files in the game or text folder as needed or just sitting there? You mentioned it not showing up or seeing your changes anywhere and this stuff could cause it.
As I mentioned before if your base code is from an outdated file you could be missing stuff as well.
"
I added a custom {name}TechDefs.xml and {name}TechSpecializationDefs.xml and linked the name of the tree in my {name}FactionDefs.xml.
Is there anything else I need to do to wire up a tech tree to a faction?
every time you change a tech name you first need to copy the old name, change it to the new name then run a search for the old name and change it everywhere else (usually i still suggest doing a find and manually changing it when warranted but reading what is around it first and not just replace all). Test, smallest galaxy, one opponent if you can get the game to launch. This method will produce a new tech with your variables, and make sure everything that took the old tech now requires your new one.
you seem to point to both Master_Tree and TaraEs_Tree if nothing else seems to be the problem this may be causing you some issues (this is a speculative guess)
It can be easier to start fresh, and slowly make one change at a time and testing it after to actually make progress and get the results you want. It helps to include a change in the description so you know if your change got loaded at all.
I hope I have been helpful but I am an too far out of my depth to be able to offer anything else that isn't just random guessing.
I FIXED IT!!!
So, I reread your suggestion @Charch and I finally picked up what you were laying down . I had to make a small adjustment. Here's what I did (if you want to replicate).
Source Files
1. Locate and open the following files.
New Files (these should be named for your faction as to NOT interfere with the "master" list...)
1. Create the following files in your Mod directory under the folder you created for your faction.
Copy Content - Master Text Find/Replace
1. Inside the new files, copy the XML from the source files.
2. Find "Master" and replace with your {faction} name.
3. Close the app and open again (the only way to sync local Mods!)
Note: You MUST replace all instances of "Master" with your faction name (or something NOT "Master") or the program throws errors. Not sure why, but it gets mad.
Thanks Charch for your help! I appreciate your hanging in there with me.
I am very glad I was able to help. Time well spent
There are many great features available to you once you register, including:
Sign in or Create Account