Palace hardcoded ?

grallon

Warlord
Joined
Feb 5, 2003
Messages
110
I've added a new building: the tribal hall (using the Palace model). I want this to be the initial gov center - building only after Agriculture has been discovered. The Palace (using the Castle model) will become available only after Monarchy is discovered. So I made the changes in the building XLM and yet when I fire a game there is the palace... How can I change this so that it's not present at the onset ?



G.
 
Nothing's really hardcoded, and if you're only changing the name, it should be working fine, assuming the mod was loaded correctly.
 
I'm not 100% sure, but I think what you need to change is this line in the CIV4CivilizationInfos.xml:

<FreeBuildingClasses>
<FreeBuildingClass>
<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
<bFreeBuildingClass>1</bFreeBuildingClass>
</FreeBuildingClass>
</FreeBuildingClasses>

This line is there for every civilization. Unfortunately that means you'll have to change it for all of them individually.
 
Stuporstar said:
This line is there for every civilization. Unfortunately that means you'll have to change it for all of them individually.


Of course ! And it worked perfectly. Thank you. A pity all this modding is slowed down that way by the illogical layout of information scattered all over the place :rolleyes:




G.
 
Back
Top Bottom