Im trying to increase the amount of Wood that trees carry, It works but now all the trees have the resource amount bar above them, even when untouched,
Does anybody know how to fix this?
Im trying to increase the amount of Wood that trees carry, It works but now all the trees have the resource amount bar above them, even when untouched,
Does anybody know how to fix this?
I uploaded a mod called “Resource Source Amounts x2 (compatible)” which doubles the resource amount of all resources via techtree modding (gives everyone a tech that doubles the amount … btw. now that I think about it… does it mean it gets multiplied for each player… hm… :D)
anyway, I had the very same problem that these progress bar always shows and the responsible flags are DynamicUpdate and for trees also StartOnNoUpdate. You can of course remove them permanently, but then you wont have the progress bar anymore for trees with no-maximum-amounts-left.
My solution was to remove them via tech and add them back after mulitplying the amounts.
But as you can read in the comments of that mod, it is buggy as hell. I tried dozens of different code and it did not acted as expected, especially when comparing a new game vs loading a savegame … the current upload only works for new games (for savegames where the mod was not active from the start, you will have these permanent progress-bars)…
In general I think this is more kind of a game bug. Trees and other sources should not display the progress bar just because the resource amount changed, but only when the current amount is less than the max amount.
edit:
maybe the reason why it did not work as expected is because it was most executed multiple times (once per active player) and therefore a kind of race condition started… could explain it but at least in singleplayer with AI, the current code only multiplies it with 2, not with 2 per playercount… so no clue…
Well Id have peace for now with them being some since it really feels like a pain in the eye to have complete forests have all those progress bars above them…
Ive also tried remove those 2 flags for the trees but they still have the progress bar above them…
Is it for now even possible to remove them just only with triggers?
Hello, can you please tell me how to do this? I know a bit of modding, so If you could tell me which file to modify, it’d help me a lot.
I’m interested in removing those bar permanently so I can take nicer screenshots.
Thanks!
I got somewhat close, but still not good enough,
I use this in proto_mods.xml
<protomods>
<unit name="TreePalm">
<flag mergeMode='remove'>StartOnNoUpdate</flag>
<flag mergeMode='remove'>DynamicUpdate</flag>
</unit>
</protomods>
And it removes the yellow bar one second after the villagers are gathering from the TreePalm, but it shows it again when the villagers gather again from it.
And it doesn’t work for “Chicken” because it doesn’t those flags in the first place…