Inspect Stockpiles to show Average Q

Thoughts on the further development of Haven & Hearth? Feel free to opine!

Inspect Stockpiles to show Average Q

Postby Ardennesss » Mon Mar 26, 2018 4:11 am

Like subject says, ability to inspect a stockpile and get back the average quality of what's inside it. Thx.
User avatar
Ardennesss
 
Posts: 1148
Joined: Sun Oct 06, 2013 4:22 pm

Re: Inspect Stockpiles to show Average Q

Postby Granger » Mon Mar 26, 2018 6:00 am

Also amount of items, minimum, maximum and median, please.
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Granger
 
Posts: 9254
Joined: Mon Mar 22, 2010 2:00 pm

Re: Inspect Stockpiles to show Average Q

Postby synaris » Mon Mar 26, 2018 12:28 pm

+1 granted, if the quality difference is significant my village always sets stockpiles apart from each other.
Newbie and noob do not mean the same thing.

Neither do figuratively and literally.
User avatar
synaris
 
Posts: 1255
Joined: Sun Jul 06, 2014 12:58 am

Re: Inspect Stockpiles to show Average Q

Postby Aceb » Tue Mar 27, 2018 4:21 am

Nope. Stockpiles are always created by player, so player should be responsible for handling them. Average is easly misleading on top of that if You're living in your own chaos.
A quest for a hat. - W10
Image
Haven't spawned yet
User avatar
Aceb
 
Posts: 1830
Joined: Wed Jun 16, 2010 2:34 pm

Re: Inspect Stockpiles to show Average Q

Postby ctopolon3 » Tue Mar 27, 2018 11:56 am

same with barrels & cistern
ctopolon3
 
Posts: 488
Joined: Mon Nov 23, 2015 10:22 am

Re: Inspect Stockpiles to show Average Q

Postby MagicManICT » Tue Mar 27, 2018 8:58 pm

ctopolon3 wrote:same with barrels & cistern

Difference being that these storage containers average the quality of their goods. If you stick 10L of q100 water into a barrel with 90L of q10 water, you change the water to q10.9 (if I did my math right*... out of practice with mixing concentrations). Same is true of any liquids (milk, wine) or substances handled as liquids (flour, seeds). Stockpiles do not change the quality of products they contain. You have a list of items of varying quality, and sometimes even mixed items, such as a pile of 4 rabbit skins, two bear skins, and a five cow skins, all 11 of which are different quality.

Anything other than a list of what is in that stockpile is uninformative. In the cases of the pile being homogeneous items (such as pumpkins), the list of qualities would be enough. It would be very convenient, and a very nice thing, if we could click on an item in that list and it would be selected out to inventory.

edit: actually, thinking about this for a few minutes, and I believe q19 would be the right answer: 10 * 100 + 10 * 90 = 1900 / 100 = 19. this is what happens when you've been out of school so long and don't actually work in such a field.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: Inspect Stockpiles to show Average Q

Postby jorb » Thu Mar 29, 2018 12:22 pm

Not too keen on iterating over them on demand to present heuristics, no.
"The psychological trials of dwellers in the last times will be equal to the physical trials of the martyrs. In order to face these trials we must be living in a different world."

-- Hieromonk Seraphim Rose
User avatar
jorb
 
Posts: 18437
Joined: Fri Apr 03, 2009 7:07 am
Location: Here, there and everywhere.

Re: Inspect Stockpiles to show Average Q

Postby Granger » Thu Mar 29, 2018 7:21 pm

It is possible to do it without iteration, at least for average quality by updating a 'sum of quality' property for the pile the in the data structure (amount is already maintained) whenever items are added/removed. Shouldn't be that expensive (both from a coding and runtime perspective).
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Granger
 
Posts: 9254
Joined: Mon Mar 22, 2010 2:00 pm


Return to Critique & Ideas

Who is online

Users browsing this forum: Claude [Bot] and 88 guests