Actually i added new researches for my mod. It's access to a ship.
Research windowFirst you need a research.entity file, that stores the research itself.This is the research for the Diablo Class Escort Cruiser from Distan Stars MOD
RESEARCHSUBJECT_FRIGATEACCESS_ESCORTTECH.entity
TXT
entityType "ResearchSubject" [color="#008000"]> Type of the entityhudIcon "HUDICON_RESEARCHSUBJECT_FRIGATEACCESS_UTILITY0TECH"
> iconsmallHudIcon "HUDICON_RESEARCHSUBJECT_FRIGATEACCESS_UTILITY0TECH"
> iconinfoCardIcon ""
NameStringID "IDS_RESEARCHSUBJECT_FRIGATEACCESS_ESCORTTECH_NAME"
> Name of the research. Stored in english.strDescriptionStringID "IDS_RESEARCHSUBJECT_FRIGATEACCESS_ESCORTTECH_DESCRIPTION" >
Short description of the research. Stored in english.strresearchWindowLocation
block 2
> Which area got the research (0 is the top) pos [ 5 , 0 ]
> Place of the research ( Colomn, Line )ResearchField "Combat"
> Is it represented on a military or non military field.Prerequisites
NumResearchPrerequisites 0
> is there are an other research(es) are needed to be availableMinimumArtifactLevel -1
> only for artifactsBaseUpgradeTime 50.000000
> time for researchPerLevelUpgradeTime 10.000000
> Time increase for additional levels (added to the base timeBaseCost
credits 1250.000000
metal 300.000000
crystal 350.000000
PerLevelCostIncrease
credits 100.000000
metal 25.000000
crystal 25.000000
Tier 5
> The tier level of the research. Bigger means more advanced techs (as i see, this this determines to the program, how many labs are needed for the research)onlyWorksIfTierLabsExist TRUE
> Are labs needed for being researchable (the lab need is the same as the tier where you put the researchMaxNumResearchLevels 1 > Are there additional levels for further upgrade
priority 0.000000
> Determines the research priorityresearchBoolModifiers 0
> Are the research made constant modifiers (Disable ability, Phase out, etc)researchFloatModifiers 0
> Floating modifiers (used for multi level upgrades, such as weapon damage, population limits, etc)artifactPicture ""
> only for artifacts[/color]
After this, you need to add the research for the raceAgain, the diablo class (for Tec) PlayreTech.entity
researchInfo
count 104 [color="#808000"]> Determines how many researches the race have (if don't adjust, the mod could be activated, but takes more time) entityDefName "RESEARCHSUBJECT_FRIGATEACCESS_UTILITY1TECH"
>>> entityDefName "RESEARCHSUBJECT_FRIGATEACCESS_ESCORTTECH" <<<
entityDefName "RESEARCHSUBJECT_HULLTECH0"
[/color]
Then you must point the research from the entity what the research unlocks
Prerequisites [color="#808000"]> is there requirments for build NumResearchPrerequisites 1 > How many researches are required
ResearchPrerequisite
Subject "RESEARCHSUBJECT_FRIGATEACCESS_ESCORTTECH" >
The required research Level 1
> Which level of the research unlocks the ship[/color]
Unit statsi hope this helps you a bit.
if you any questions, you can contact me via PM.