Thanks so much for looking at the code. I'm curious about the jungle map script. There is no tundra, but both deer fur is available.
No problem.
Overriding the XML constraints is done in the python for the mapscript. Unfortunately i've never looked into the python before now so i'm not familiar with how it works, but this bit has got to be what controls it in Rainforest.
Code:
# Init all bonuses. This is your master key.
resourcesToEliminate = ('BONUS_WHALE', 'BONUS_CLAM', 'BONUS_FISH', 'BONUS_CRAB')
jungleFood = ('BONUS_BANANA', 'BONUS_PIG', 'BONUS_RICE')
banana = ('BONUS_BANANA')
pig = ('BONUS_PIG')
rice = ('BONUS_RICE')
resourcesToForce = ('BONUS_FUR', 'BONUS_SILVER', 'BONUS_DEER')
forcePlacementOnFlats = ('BONUS_FUR', 'BONUS_DEER')
forcePlacementOnHills = ('BONUS_SILVER')
along with more that follows (I think the above is just defining terms.)
But it does describe whats happening, the jungle feature allowance was forced onto pigs, water resources aren't allowed, and fur, deer and silver are forced onto tiles based on their elevation disregarding other restrictions.
This line gives me what I need to be fairy certain
Code:
elif (forceFlats and pPlot.isFlatlands()) and (pPlot.getFeatureType() == gc.getInfoTypeForString("FEATURE_FOREST")): pass
While resources are forced onto tile they should not exist in, for the camping resources they are only forced onto forest tiles. This doesn't occur for Silver allowing it to go onto Jungle tiles initially.
My line of thinking suggests that this means silver can have jungle initially, but once chopped it won't regrow and forest would not regrow over grassland deer or fur due to these resources being forced and not having their XML attributes changed, wheras jungle will grow onto pigs as jungle is now an allowed feature for them.
EDIT - After some testing it seems this is the case.
Elephants with forests would rock, but I've never seen it.
This isn't suprising on a normal mascript, as elehants can only exist on plains, grass and grass jungle... not forests
And I don't think it can even appear on clear grass without the normalizer!