Research Tree Modding

Needing Help

Ok, so I'm trying to build a brand new research tree for a mod project I'm working on for Entrenchment. And I've run into a brick Wall.

I'm trying to create a research pre-requisite for a ship. So I'll walk you through my process and see if someone can spot what I'm doing wrong. Also if someone is sitting on / would like to write up a how to mod the tech tree I'd be grateful.

Step 1

I open up the ship entity file. FrigateAncientScout.entity (the ship in questions entity folder)

I append

 

NumResearchPrerequisites 0 to 1 and add underneath it

ResearchPrerequisite
        Subject "RESEARCHSUBJECT_FRIGATEACCESS_ANCIENTSSCOUT"
        Level 1

Save and Close the Ship entity file.

I then proceed to grab a randomn RESEARCHSUBJECT_FRIGATEACCESS file from Reference data and rewrite it to deal wiith the vessel in question. Save the rewritten file as RESEARCHSUBJECT_FRIGATEACCESS_ANCIENTSSCOUT.Entity in the Gameinfo folder

Open up

PlayerAncient.Entity (the player entity file)

And add the research item to the research tree and change the research tree count increasing it by one.

Save and Close

Finally I go to English.str and add the Research String IDS for both Name and Description.

Save and Close

When I start up Entrenchment Dev with this mod pre-enabled with the research tree alteration I get the following Mini Dump Error

Entity Ref not found: RESEARCHSUBJECT_FRIGATEACCESS_ANCIENTSSCOUT

 

What am I doing wrong?

So yeah a Research Tree Guide would be nice. I don't think of myself as a nub, nor a pro, just getting frustrated at being stuck and not knowing why.

 

4,079 views 5 replies
Reply #1 Top

There are a few things you need to do.

1) you need to add the name of the extra frigate entity file that you made to the Player"" entity file as well as the name of the new research 1 you created, counts adjusted accordingly.

2) both of these new files names need to be included in the entity manifest file, count adjusted accordingly.

3) In your newly created research entity, have you given it a new location in the research block? If you have left the block position unchanged then it will be conflicting with the research entity that you copied it from.

Reply #2 Top

1) Is this what you meant by adding the name of the extra frigate entity file to player.entity?

frigateInfo
        Page:0
            count 4
            entityDefName "FrigateAncientsScout"            
            entityDefName "FrigateAncientsPuddlejumper"
            entityDefName "FrigateAncientsCorsair"
            entityDefName "FrigateAncientsColony"   

As well as

entityDefName "RESEARCHSUBJECT_FRIGATEACCESS_ANCIENTSSCOUT" added ti the research section. Both counts have been adjusted accordingly.

 

2) This is what I think I was missing am re-adding my research item now to see whether this fixes it.

 

3) Don't know, will edit post once I finish playing around

 

Reply #3 Top

Ok, so I added my research subject to entity.manifest and I get a new error now

Failed to find data file 'RESEARCHSUBJECT_FRIGATEACCESS_ANCIENTSSCOUT,entity'. (SubPath = GameInfo)

Reply #4 Top

Quoting eternal_darkness, reply 3
Ok, so I added my research subject to entity.manifest and I get a new error now

Failed to find data file 'RESEARCHSUBJECT_FRIGATEACCESS_ANCIENTSSCOUT,entity'. (SubPath = GameInfo)
End of eternal_darkness's quote

The file name and the name you put in the entity.manifest are not the same, especially if that coma is supposed to be a period.

Reply #5 Top

Thanks guys. I've been bashing my head on this for a few hours, checking the file name over and over. Didn't bother to check the extension.