I've been tinkering around with buildings and hidden_resources, and I want to have a 'faction's-culture barrack' and 'non-culture colony' such as "Northern and Southern European Levy Barracks" for regions given the "NESEHome" resource, and "Northern and Southern European Colony" for regions that lack the "NESEHome" resource. I've gone through the descr_regions.txt and added "NESEHome," "MEHome" and "EEHome" resources to the settlements outside of America. For the home-culture Barracks I've given
"and hidden_resource NESEHome"
or MEHome or EEHome as appropriate, to the first buildings in the building trees. And for the outside-culture barracks (the colony barrack) I've given
"and not hidden_resource NESEHome"
or MEHome or EEHome as appropriate. I've deleted the map.rwm file as needed, and I tried the campaign as different factions (from different cultures) and it seems that the buildings that use "and hidden_resource" work without any issues. However, I cannot build the "and not hidden_resource" buildings where I should be able to, instead those regions do not have any barracks present. Does the game reject the "and not hidden_resource" clause? Attached are my EDB and descr_regions.txt if anybody cares to view them.
EDIT:
It appears that if I include
"and hidden_resource MEHome or hidden_resource EEHome or hidden_resource america" along with the "and not hidden_resource NESEHome" it works properly. However, regions that use both cultures (as in Iberia) will use both barracks, so I'll have to create another hidden_resource, "IberiaHome," to cope with this problem.
And it does work. I guess this thread could be locked since I answered my own question.




Reply With Quote








































