Extra food with fresh water

zez

Chieftain
Joined
Oct 10, 2010
Messages
6
Code:
<Improvement_FreshWaterYields>
        <Row>
            <ImprovementType>IMPROVEMENT_FARM</ImprovementType>
            <YieldType>YIELD_FOOD</YieldType>
            <Yield>1</Yield>
        </Row>
</Improvement_FreshWaterYields>

Heya,

Can anyone tell me why the above doesn't add 1 food to farms built on a fresh water plot?

Tried it with <Improvement_RiverSideYields> and worked fine but using that would leave lakeside farms without the added food.
 
you need to use update tags instead of row tags when you are changing existing data.

maybe try reading Kael's tutorial, in the tutorials and reference section.

it probably worked on the riversideYields because there likely wasn't already data there, an empty tag, they basically work the same, except of course fresh water can also be a lake.

and welcome to the forums!
 
nope, the <Improvement_FreshWaterYields> tag is unused by default so nothign to update...

thing is as said above the two situations are pretty much identical one works other doesn't... atm wondering if the <Improvement_FreshWaterYields> simply is bugged and non functioning. Kinda wondering if anyone else has succesfully used the tag or not?

even tested if it only works when a lake is the fresh water source, didn't work either... guess should also be testing if it actually works on tiles that are fresh water sources, like lakes and maybe oasis
 
check out the floating gardens building ;)

maybe you could use both together to get what you want
 
check out the floating gardens building ;)

maybe you could use both together to get what you want
Doesn't seem to have anything of use to him
floating garden increases the yields of water tiles.

It seems like it might be the case that some tags simply dont work, but I have no idea why it wouldn't recognize fresh water.

If you cant figure out a way around it, its a less than ideal solution, but you might be able to surround the lake tile with a river. wont help for scripted maps though. it might be usefull if your mod is for premade maps.

wish i could do more.
 
yea, actually your right, I've been looking through so many files I'm starting to get them mixed up :crazyeye:

it could be that it isn't working, many other tags don't.
 
The Civil Service tech gives all farms with fresh water (river and lake) +1 food. I think the easiest way to do this to all farms prior to that tech (and in addition to it) would be to duplicate the effect from Civil Service in the tech data for Agriculture since everybody gets it and it's needed to build farms in the first place.
 
Back
Top Bottom