How to set Racial Research Restrictions?

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

Moderators: Icemania, elliotg

Post Reply
Rookwood
Posts: 4
Joined: Wed Feb 26, 2020 11:39 am

How to set Racial Research Restrictions?

Post by Rookwood »

Ok, here's my second attempt at a question that hasn't been asked yet.

I'm looking at the research.txt for the base game and Extended. According to the modding guide, any racially restricted research should have an Allowed Races field with a list of the races that can research it. However that is not the case.

The base game literally has no Allowed Races fields on any research and Extended only has it on the Shakturi Super Laser. Yet both versions know that certain techs are restricted to certain races. How?
EliphasTheInheritor
Posts: 40
Joined: Sat Jul 23, 2016 6:33 pm

RE: How to set Racial Research Restrictions?

Post by EliphasTheInheritor »

ORIGINAL: Rookwood

Ok, here's my second attempt at a question that hasn't been asked yet.

I'm looking at the research.txt for the base game and Extended. According to the modding guide, any racially restricted research should have an Allowed Races field with a list of the races that can research it. However that is not the case.

The base game literally has no Allowed Races fields on any research and Extended only has it on the Shakturi Super Laser. Yet both versions know that certain techs are restricted to certain races. How?

Yeah, noticed that myself when I was at the beginning of Distant Worlds modding and I was modifying just the files. Idk if this will help you, but there is a modding tool that I recommend you use, it's so easy to use and it will save you a lot of trouble.
Rookwood
Posts: 4
Joined: Wed Feb 26, 2020 11:39 am

RE: How to set Racial Research Restrictions?

Post by Rookwood »

Well, it just happens by magic when I change things around. For instance I gave Entons Galactic Archives wonder for victory condition and it just magically knew to open it up in the tech tree for them. I didn't really want to do much more than that so I guess I'm not gonna worry about it.

Thanks for the tip on the mod. I've got the game set up pretty much how I like it... for now.
Landris
Posts: 10
Joined: Fri Mar 04, 2016 7:29 pm

RE: How to set Racial Research Restrictions?

Post by Landris »

One way is the `AllowedRaces` setting in the tech files, as you know. Another way is to use `DisallowedComponentIds` in the race files.
Post Reply

Return to “Design and Modding”