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

Moderator: Vic

Post Reply
alocritani
Posts: 66
Joined: Mon Jun 05, 2023 3:12 pm

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

Post 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?
Attachments
emergencyFood.zip
(1.87 MiB) Downloaded 12 times
Last edited by alocritani on Thu Jun 29, 2023 4:25 pm, edited 1 time in total.
alocritani
Posts: 66
Joined: Mon Jun 05, 2023 3:12 pm

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

Post 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 205 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 205 times
User avatar
Vic
Posts: 9955
Joined: Mon May 17, 2004 2:17 pm
Contact:

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

Post 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).
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Post Reply

Return to “Tech Support”