BattleMaster Community

BattleMaster => Helpline => Topic started by: Morningstar on January 12, 2012, 01:57:03 PM

Title: Warehouse Updates
Post by: Morningstar on January 12, 2012, 01:57:03 PM
The new warehouse/caravan code looks pretty nice on the front end and seems like it will be fairly useful. Problem is, the update also appears to have wiped out all stored food in the regions. I went from having over 300 bushels to having 9 overnight. Is this intended/known or should I take it to the bugtracker? I'm currently hosting a gathering army and everyone's going to start starving in 3 days.
Title: Re: Warehouse Updates
Post by: Anaris on January 12, 2012, 02:44:15 PM
Certainly not intended, known, or in any way expected.

Please provide any and all relevant information, so we can track this down ASAP.
Title: Re: Warehouse Updates
Post by: Indirik on January 12, 2012, 02:46:24 PM
Is the food *gone*, or does the warehouse page just no longer display it? You should be able to check from the caravan page.
Title: Re: Warehouse Updates
Post by: egamma on January 12, 2012, 03:03:47 PM
The new warehouse/caravan code looks pretty nice on the front end and seems like it will be fairly useful. Problem is, the update also appears to have wiped out all stored food in the regions. I went from having over 300 bushels to having 9 overnight. Is this intended/known or should I take it to the bugtracker? I'm currently hosting a gathering army and everyone's going to start starving in 3 days.

What island?

All regions, or just yours?

Did you have an order to send food out?
Title: Re: Warehouse Updates
Post by: fodder on January 12, 2012, 05:09:00 PM
bt, avengmil .. .seems to be working fine... "Stored Now:   107"

that said.. i'm not sure some of the numbers are correct...

for example...
Stored Now:   107   At Harvest:   197

why 197? it certainly wasn't 197 at the last harvest. and won't be 197 at the next harvest

now.. there is a number of 90 in that table... but that entire row seems dodgy to me. to start, the "production till next harvest" shouldn't be there or should be 0... because you aren't producing food everyday and storing it..

the consumption till harvest is correct... so, in my case, the surplus/deficit till next harvest should really be +12 (like it says at the bottom of the page)

---
given there'll only be a surplus of 12 at harvest, with a production of 259, store after harvest should be 271 and not 456 (see... all the subsequent numbers are calculated from that "extra" production...)

--

so yeah... i think all you need to do to fix the lot is to stick a permanent big fat 0 in the "production until harvest" entry. (i assume caravans bringing food will be added on in smaller text in the production column, just like soldiers consuming extra food in the consumption column?)

-----

interestingly, there's a link to build more warehouses... does that mean i don't have to be in the region to build more warehouses? useful. (ps.. don't have the gold on hand when i clicked the link.. and it says i don't have the gold, as opposed to not being in the region.. or both)
Title: Re: Warehouse Updates
Post by: Morningstar on January 13, 2012, 08:45:03 PM
World: Dwilight
Region: Itaufield

Code: [Select]
Produced Consumed Surplus/Deficit
Per Day:       9             10
      +2 for 368 troops -3
Per Harvest:       63    70
      +14 for 368 troops    -21
Till Next Harvest:
(0 days)       0             0
      +0 for 368 troops    0

Stored Now: 0 At Harvest: 0
Caravans This Harvest: 0 Carrying: 0
Production This Harvest: 63
Adjusted Store After Harvest: 63

That's what I'm currently seeing. Prior to the update, on the old warehouse screen, I had ~300-350 bushels and sent 100 of that to Via (oddly enough, has not arrived in 2-3 days and last I checked it was saying it would take another 4 days). So I should have had at least 200 bushels, if not more.

It looks like the current amount stored in the warehouses just got wiped and the code started fresh from 0.
Title: Re: Warehouse Updates
Post by: Morningstar on January 13, 2012, 08:47:38 PM
Quote
Daily Statistics

Under current conditions, your region will produce 9 bushels of food per day.

Your peasants will eat 10 bushels of food per day.

There are currently 368 soldiers here, who will eat a total of 2 bushels each day they remain.

Thus, under current conditions, you have a 3-bushel-per-day deficit.

With the current storage of 0 bushels, your people are starving.
This Harvest

Based on the production and consumption per day, your region will produce 63 and consume 70 bushels each harvest period, giving you a 21-bushel deficit each harvest.

In order to reach the next harvest, your people will need 0 bushels of food. Given the current storage of 0, this means that you will have a surplus of 0 bushels.

Quote
Send a Caravan to Sell Food
There are 0 bushels in the warehouse.

Code: [Select]
Mission Status Destination Current Location Estimated Arrival
sell (limit 1 gold) outward journey, carrying 100 bushels food Via Via 4 days

I think that's everything you were asking for.
Title: Re: Warehouse Updates
Post by: fodder on January 14, 2012, 09:07:11 AM
did a merchant buy/blackmarket the stuff? or are you that unlucky to be the only region that's got food missing?
Title: Re: Warehouse Updates
Post by: Tom on January 14, 2012, 11:36:24 AM
I've heard a few people complain about the complexity of it all.

Maybe we could offer a simplified default page and put the full details (that some other people like to have, so we need to serve both sides) into a collapsable part (jquery hide, not a new page).
Title: Re: Warehouse Updates
Post by: fodder on January 14, 2012, 01:34:30 PM
it's not all that complex to be dead honest... just some wrong numbers (as mentioned above)

what might be useful for those who don't want to see the stuff is to move the text stuff at the bottom to the top. that is a good summary from what i can see.

for example....
Quote
This Harvest

Based on the production and consumption per day, your region will produce 259 and consume 126 bushels each harvest period, giving you a 126-bushel surplus each harvest.

In order to reach the next harvest, your people will need 57 bushels of food. Given the current storage of 69, this means that you will have a surplus of 12 bushels.

the 2nd line has everything a lord would need to know re: how much food they need to buy or has spare to sell.

don't even need to hide anything.
Title: Re: Warehouse Updates
Post by: Tom on January 14, 2012, 02:02:29 PM
the 2nd line has everything a lord would need to know re: how much food they need to buy or has spare to sell.

That's what I mean.

I want to have the game simpler and more approachable again. The complexity can be there for those who care, but most don't.
Title: Re: Warehouse Updates
Post by: Anaris on January 14, 2012, 04:41:48 PM
it's not all that complex to be dead honest... just some wrong numbers (as mentioned above)

what might be useful for those who don't want to see the stuff is to move the text stuff at the bottom to the top. that is a good summary from what i can see.

I dunno...I'd really rather make it a preference than do that.  Part of the purpose of the way it's currently organized is so that someone who does understand how it works can just go to the page, glance through the table, and see everything he could want to know.

Furthermore, it's not totally finished: I intend, as I have time, to go through and continue the long-form text explanations for all the other numbers in the table.

I really, really do not want people who know perfectly well what all the stuff means to have to scroll down to the very bottom just to see the quick-glance table. That defeats the purpose of having the table at all.
Title: Re: Warehouse Updates
Post by: egamma on January 14, 2012, 11:09:29 PM
I told one of my region lords that he doesn't have enough food to last until harvest. According to the banker's table, it's easy to read--just look at the surplus/shortage column.

But here's what a region lord thinks/sees when he reads his region report:
Quote
Dear Fiduciary,

My Region reports would indicate otherwise, although I am admittedly not as learned in these matters as perhaps I aught:
~~~~~~~~
Daily Statistics
Under current conditions, your region will produce 18 bushels of food per day.
Your peasants will eat 22 bushels of food per day.
There are currently 68 soldiers here, who will eat a total of 1 bushel each day they remain.
Thus, under current conditions, you have a 5-bushel-per-day deficit.
With the current storage of 61 bushels, you have at most 12 days until your people start to go hungry.
~~~~~~~
That final line is incorrect. It should be 61 divided by 22, not 61 divided by 5, so that he knows he will be out of food in 3 days (61-22-22=17).
Title: Re: Warehouse Updates
Post by: ^ban^ on January 14, 2012, 11:35:41 PM
But here's what a region lord thinks/sees when he reads his region report:That final line is incorrect. It should be 61 divided by 22, not 61 divided by 5, so that he knows he will be out of food in 3 days (61-22-22=17).

Should be 23, not 22, due to troops. I think the problem is that the days till starvation is being calculated based on the daily harvests that the system *technically* works by, but in reality works on a weekly basis.
Title: Re: Warehouse Updates
Post by: egamma on January 15, 2012, 07:10:58 AM
Should be 23, not 22, due to troops. I think the problem is that the days till starvation is being calculated based on the daily harvests that the system *technically* works by, but in reality works on a weekly basis.

I think there should be a daily report on the duchy level and to the banker for any region of the duchy that will run out of food before the next harvest, just a simple:
IF stored_food < (daily_consumption * days_till_harvest), THEN issue alert.
Title: Re: Warehouse Updates
Post by: Tom on January 15, 2012, 10:57:00 AM
I think there should be a daily report on the duchy level and to the banker for any region of the duchy that will run out of food before the next harvest, just a simple:
IF stored_food < (daily_consumption * days_till_harvest), THEN issue alert.

There will.
Title: Re: Warehouse Updates
Post by: Feylonis on January 19, 2012, 06:15:52 PM
There's something weird going on in Uppervia (Dwilight). There aren't any automatic transfers set up, but every time the region manages to get food, all of the food in then transferred to Via. :|
Title: Re: Warehouse Updates
Post by: Carl on January 21, 2012, 02:39:15 AM
"Daily Statistics

Under current conditions, your region will produce 8 bushels of food per day.

Your peasants will eat 23 bushels of food per day.

There are currently soldiers here, who will eat a total of 24 bushels each day they remain.


Thus, under current conditions, you have a 39-bushel-per-day deficit.

With the current storage of 479 bushels, you have at most 12 days until your people start to go hungry."


The population is 11190 and there are 530 troops, so 1000 troops eat 45 bushels and 1000 peasants eat 2 bushels. That means a soldier eats 22 times as much as a peasant. Surely not?
Title: Re: Warehouse Updates
Post by: fodder on January 21, 2012, 08:36:22 AM
they are meant to eat tons.. yes.
Title: Re: Warehouse Updates
Post by: Tom on January 21, 2012, 10:54:07 AM
The population is 11190 and there are 530 troops, so 1000 troops eat 45 bushels and 1000 peasants eat 2 bushels. That means a soldier eats 22 times as much as a peasant. Surely not?

No. Soldiers do eat more than peasants (that's mostly a game-design decision, otherwise troops food usage would go entirely unnoticed), but it's less than double - except for cavalry. Horses eat a lot, but about 3x that of a man, not 22 times. Somewhere in there someone probably forgot to account for harvest periods or something.

We have new functions upcoming doing better calculations.

Title: Re: Warehouse Updates
Post by: fodder on January 21, 2012, 11:35:32 AM
what about daimons? i think when those 6xx daimons went past avengmil, it was either 20 odd or 40 odd bushels a day.
Title: Re: Warehouse Updates
Post by: Tom on January 21, 2012, 01:01:56 PM
what about daimons? i think when those 6xx daimons went past avengmil, it was either 20 odd or 40 odd bushels a day.

Daimons and monsters eat like soldiers, undead don't eat at all.

Mind you, that is the new code. The old is still active and I don't know by heart how that works.
Title: Re: Warehouse Updates
Post by: Feylonis on January 24, 2012, 08:49:02 AM
There's something weird going on in Uppervia (Dwilight). There aren't any automatic transfers set up, but every time the region manages to get food, all of the food in then transferred to Via. :|

(http://i901.photobucket.com/albums/ac218/ceruleanink/bmcap.png)

Here's a screencap of the trade page of Uppervia. As you can see, there are no automatic transfers set up. However, every time the region manages to get food, this is what happens:

(http://i901.photobucket.com/albums/ac218/ceruleanink/bmsend.png)

Hence, Uppervia has been starving for some time now because whatever food it has it always sends to Via. Might this be a bug that came from the fiddling with food?
Title: Re: Warehouse Updates
Post by: Morningstar on January 24, 2012, 01:55:09 PM
So, after the unresolved issue that started this thread of a couple hundred bushels disappearing from the warehouse in Itaufield, the rebalance has now turned what was usually a healthy surplus every harvest into a weekly deficit of over 100. Daily totals run at -16. And this coming from a townsland region that supposedly boasts excellent farming. Working as intended or bug somewhere?
Title: Re: Warehouse Updates
Post by: De-Legro on January 24, 2012, 02:07:50 PM
So, after the unresolved issue that started this thread of a couple hundred bushels disappearing from the warehouse in Itaufield, the rebalance has now turned what was usually a healthy surplus every harvest into a weekly deficit of over 100. Daily totals run at -16. And this coming from a townsland region that supposedly boasts excellent farming. Working as intended or bug somewhere?

Working as intended. Population has increased in townslands, while the amount of land has not. Thus not only do you have more mouths to feed, you likely have no land to re-purpose to producing food that was not already utilised, and you also have to find land for your new inhabitants. The few townslands I have checked are all the same, only they have deficits larger then 16.
Title: Re: Warehouse Updates
Post by: D`Este on January 24, 2012, 02:11:19 PM
So now both townslands and cities need to be fed by rurals?
Title: Re: Warehouse Updates
Post by: De-Legro on January 24, 2012, 02:23:09 PM
So now both townslands and cities need to be fed by rurals?

From the few I've seen. It will depend greatly on the exact stats of the regions. But then Poryatu our townsland generates 1000 gold and over 300 food, while Poraytown the city produces 1100 gold and 48 food. The extra gold is a fair trade off for running a small deficit. To be honest, if you are paying for good, the townsland probably results in a higher income then the city now.

Also rurals are mostly producing far more food, so it should not be an issue.
Title: Re: Warehouse Updates
Post by: Naidraug on January 24, 2012, 06:39:24 PM
The one thing i notice now in BT, is that none of my regions is producing any food...even the rural regions that always produced enough food has production below 100 and a deficit in food.

Title: Re: Warehouse Updates
Post by: egamma on January 24, 2012, 06:49:56 PM
in D'Hara, Cities, Townslands, and our lone Badlands have deficits, while our rurals and stronghold have surpluses.

The badlands and stronghold are underpopulated, so those might change in the future.
Title: Re: Warehouse Updates
Post by: Indirik on January 24, 2012, 06:50:52 PM
Don't forget that it is still spring, with reduced harvests. And also make sure you check the weather, too.
Title: Re: Warehouse Updates
Post by: fodder on January 24, 2012, 08:14:05 PM
bt doesn't have weather though... since i am not banker and not lord of rural, i can't tell you anything about them. like i said in the other thread.. my townsland appears to be harvesting the same amount from a normal (um.. assuming weather displayed is correct) as a drought pre-change.
Title: Re: Warehouse Updates
Post by: Tom on January 24, 2012, 08:51:05 PM
The basic intention is:

Rurals should have a surplus
Woodlands should have a small surplus
Badlands/Mountains/etc. - whatever (yes, really - some are this way, others that)
Townslands should be around equal - some will have a small surplus, some a small deficit
Cities are, of course, net consumers

Title: Re: Warehouse Updates
Post by: fodder on January 24, 2012, 10:10:14 PM
i get the intention bit. my townsland is now roughly even.. it's just that i'm not sure if the numbers are correct or not, since production of food actually dropped, hence i post them.

if it helps linking them...
http://forum.battlemaster.org/index.php/topic,1856.msg40152.html#msg40152   <-- numbers from pre change /old fixes
http://forum.battlemaster.org/index.php/topic,1856.msg40173.html#msg40173 <-- numbers after latest fix.
Title: Re: Warehouse Updates
Post by: Naidraug on January 25, 2012, 12:47:13 PM
Current weather (harvest tomorrow):
West Badlands: Good, rich harvest ahead
South Plains: Average
Central Lake: Average
It is Summer right now

It was the same yesterday...that harvest was going to be today...still nothing, and every region is starving...
Title: Re: Warehouse Updates
Post by: De-Legro on January 25, 2012, 12:49:37 PM
Current weather (harvest tomorrow):
West Badlands: Good, rich harvest ahead
South Plains: Average
Central Lake: Average
It is Summer right now

It was the same yesterday...that harvest was going to be today...still nothing, and every region is starving...

I thought harvest are every day now.
Title: Re: Warehouse Updates
Post by: Indirik on January 25, 2012, 01:54:47 PM
Wait... this doesn't make sense. It's Spring on Dwilight. And BT doesn't have seasons...
Title: Re: Warehouse Updates
Post by: Tom on January 25, 2012, 01:57:19 PM
yes, please ignore the harvest part. I can't remove it right now because that piece of code is shared with stable, and stable still has harvest periods.

Title: Re: Warehouse Updates
Post by: fodder on January 25, 2012, 08:28:54 PM
is the weather bit accurate though? (as in being used to determind good/bad/normal harvests <-- for the day)
Title: Re: Warehouse Updates
Post by: Tom on January 26, 2012, 12:16:34 AM
Yes, weather should be accurate.