Page 1 of 1

[1.21d] Food distribution anomalies (was: Zone report not clear about emergency food)

Posted: Wed Jun 28, 2023 5:37 pm
by alocritani
In attached savefile (staged in order to evidenziate the issue) Pepotio zone is feeded by emergency food only.
Zone report says that 228 emergency food (less than needed due to depleted stocks" has been supplied to population, but it seems wrong.

First, population is 22.400 (last turn they were 22.800, 500 has been recruited + 100 "natural growth") - food used is 228, so it seems that all people of previous turn are feed (maybe it's ok) but are recruits feeded twice, once as leaving population and once as new recruits? I think so because food consumed by recruits (68 in this case) is calculated on current (start of turn) number of recruits, not at the end of previous turn (would have been 58) but 5 of that food has already be feeded to city as emergency food for leaving people.
This also seems to happen for private food and even for workers when they are recruited as military.

Second, the part referring depleted stock is not clear to me: at first I thought SHQ was short of food (as suggested here) but...
1011 at turn start
-90 sent to units
-68 consumed by recruits
it's more than enought to give 228 food to Pepotio even accounting other zones delivers after emergency food distribution.

So I really don't understand what this "due to depleted stocks" refers to.

edit: is it possibile that the condition for showing "emergency food has been supplied to population" / "emergency food (less than needed due to depleted stocks) has been supplied to population" is simply reversed?

Re: [1.21d] Zone report not clear about emergency food

Posted: Thu Jun 29, 2023 4:23 pm
by alocritani
Extending the analisys on another save I think I've found that not only Recruits are fed twice but who is fed is also dependent on processing order.
food.jpg
food.jpg (59.31 KiB) Viewed 204 times
For example in previous image...

Population at the end previous turn = 84600 -> 846 food needed
red point -> luxury attracted 2000 people
Food consumed = 866 (846 from previous turn population + 20 from added free folk)
then blue points:
500 recruits removed (they are already been fed by zone and will be fed again by SHQ)
400 population from natural growth (not fed, will be fed next turn - intended?)

New population: 84600 + 2000 - 500 + 400 = 84600 + 1900 = 86500
newPopulation.jpg
newPopulation.jpg (34.49 KiB) Viewed 204 times

Re: [1.21d] Food distribution anomalies (was: Zone report not clear about emergency food)

Posted: Fri Jun 30, 2023 8:14 am
by Vic
Thanks!

First was a logging glitch! Will be fixed.

Second point you are right. Its a detail, but when you are right you are right :)

In upcoming v221g new recruits & colonists now return Food already received in Zone (as Pop/Worker) before reporting to barracks or units (where they’ll receive their rations for current turn).