guide to adding techs & other items

Please post here for questions and discussion about data, event, art and sound modding and the game editor for Distant Worlds.

Moderator: MOD_DW2

Post Reply
mordachai
Posts: 798
Joined: Fri Mar 06, 2015 4:55 pm

guide to adding techs & other items

Post 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?
mordachai
Posts: 798
Joined: Fri Mar 06, 2015 4:55 pm

Re: guide to adding techs & other items

Post 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 :P
mordachai
Posts: 798
Joined: Fri Mar 06, 2015 4:55 pm

Re: guide to adding techs & other items

Post 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.
Sabranan
Posts: 486
Joined: Wed Feb 24, 2016 4:05 pm

Re: guide to adding techs & other items

Post 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.
User avatar
frankycl
Posts: 402
Joined: Mon Mar 01, 2021 5:16 pm

Re: guide to adding techs & other items

Post 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 8-) - Thanks for sharing this. :D
Post Reply

Return to “Design and Modding”