Page 1 of 1
guide to adding techs & other items
Posted: Sat May 14, 2022 1:23 am
by mordachai
I'm surprised that simply adding new <ResearchProjectDefinition> objects to the end of ResearchProjectDefinitions.xml doesn't add new techs in the tech tree?
Is there a guide on how to?
I see that there is a mod manager - which can alter these files on the fly - but I have extensive changes - or would like to - so simply recording every single delta in another file format is not really feasible - so prefer to replace a few of the base files - including ResearchProjectDefinitions.xml.
I skimmed the forums and have been active here for a while - but apologies if I'm missing the obvious? I don't see any guides really - just some links to some software that has a UI for editing these things, and the mod manager itself?
Re: guide to adding techs & other items
Posted: Sat May 14, 2022 1:51 am
by mordachai
Okay - so it turns out this is how you do it - but I'd copied from a tech that had this in it:
<PrerequisiteProjectsMinimumPathCount>3</PrerequisiteProjectsMinimumPathCount>
I don't know what that does - other than make the new techs disappear

Re: guide to adding techs & other items
Posted: Sat May 14, 2022 11:35 am
by mordachai
I think that has to do with the random tech system - and indicating that in order to enable this tech - at least (3) tech paths have to have been enabled to this one.
Removing that from my tech (which has no such need) fixed my issue.
Re: guide to adding techs & other items
Posted: Mon May 16, 2022 6:37 pm
by Sabranan
Yep, PrerequisiteProjectsMinimumPathCount means that the project won't appear (or be researchable if you're playing with full visibility of the tech tree) unless at least the number of prerequisite project paths specified generate. Certain projects with lots of paths in-game do use this such as Stealth and Advanced Star Fighters.
It is an optional value however (along with PrerequisiteProjectsMaximumPathCountRatio and the equivalent parent versions), so you can just not have those lines if you want the project to always appear.
Re: guide to adding techs & other items
Posted: Tue May 17, 2022 8:59 pm
by frankycl
Sabranan wrote: Mon May 16, 2022 6:37 pm
Yep, PrerequisiteProjectsMinimumPathCount means that the project won't appear (or be researchable if you're playing with full visibility of the tech tree) unless at least the number of prerequisite project paths specified generate. Certain projects with lots of paths in-game do use this such as Stealth and Advanced Star Fighters.
It is an optional value however (along with PrerequisiteProjectsMaximumPathCountRatio and the equivalent parent versions), so you can just not have those lines if you want the project to always appear.
Good to know

- Thanks for sharing this.
