Disabling Research for a Particular Civ - Tech Advisor Problem

deanej

Deity
Joined
Apr 8, 2006
Messages
4,859
Location
New York State
I've set up my Star Trek mod so that one civ can't research techs normally. I've done this by adding a new XML tag in Civ4CivilizationInfos and referencing that tag in CvPlayer::canResearch. Problem is, using the tech advisor screen, you can still research techs! It seems that canResearch is only used by goody huts and the tech selection popup. What does the tech advisor use?
 
I just found and looked at the tech advisor screen and it uses canEverResearch to display and changing that function fixed the problem (I prefer clean solutions anyways).

I know you've already solved your problem, but just for reference: in the XML files you can disable a civ from researching certain techs. I probably would have just listed the techs in the research tree that I didn't want them to progress past, since all those after would be dependent on having them.
 
Back
Top Bottom