Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0001447Dwarf FortressDwarf Mode -- Tradepublic2010-04-22 23:062010-07-20 08:40
jgoodwin 
Toady One 
lowminorhave not tried
acknowledgedopen 
x64win7
0.31.03 
 
0001447: Gold nuggets weigh 901352
In the trade display gold the weight format is not wide enough and the weight value (1352) runs into the sale value (90) and overwrites the dwarf-bucks symbol.

Anyway 1352 is unreasonably large given that anvils weigh only 78 and the entire caravan's weight capacity was 3100. So instead of fixing the format you could just set a max weight of 999 for any one item.
strike the earth, find gold, trade nugget.
item, trading, user interface, weight
related to 0000297resolved Toady One Bronze shields, gauntlets and boots weigh less than 1 kilogram 
related to 0001575resolved Toady One Interface text is too wide, overwrites other menu options 
has duplicate 0002395resolved Footkerchief Heavy weights printing over value of trade items 
related to 0003955new  Text overflow 
related to 0001862new  Weight discrepancy between boulders and blocks/bars 
Issue History
2010-04-22 23:06jgoodwinNew Issue
2010-04-22 23:47FootkerchiefNote Added: 0004684
2010-04-23 00:09FootkerchiefIssue Monitored: Footkerchief
2010-04-23 10:47ronarscorruptionNote Added: 0004736
2010-04-25 22:35jgoodwinNote Added: 0005090
2010-04-25 22:40jgoodwinNote Edited: 0005090bug_revision_view_page.php?bugnote_id=0005090#r1781
2010-04-25 23:05PencilinHandNote Added: 0005095
2010-04-26 05:07GReadNote Added: 0005109
2010-04-26 09:03DoctorZuberNote Added: 0005127
2010-07-08 08:25FootkerchiefRelationship addedchild of 0000297
2010-07-08 08:26FootkerchiefIssue Monitored: Toady One
2010-07-08 08:26FootkerchiefNote Added: 0009789
2010-07-08 08:27FootkerchiefRelationship replacedrelated to 0000297
2010-07-08 08:27FootkerchiefRelationship addedparent of 0001862
2010-07-08 08:27FootkerchiefRelationship addedparent of 0001860
2010-07-08 08:28FootkerchiefSummaryGold nuggests weigh 901352 => Gold nuggets weigh 901352
2010-07-08 08:32FootkerchiefRelationship addedrelated to 0001484
2010-07-15 01:27Toady OneNote Added: 0010320
2010-07-15 01:27Toady OneAssigned To => Toady One
2010-07-15 01:27Toady OneStatusnew => acknowledged
2010-07-18 10:31FootkerchiefRelationship addedhas duplicate 0002395
2010-07-18 10:31FootkerchiefRelationship addedrelated to 0001575
2010-07-18 10:31FootkerchiefRelationship replacedrelated to 0001860
2010-07-18 10:32FootkerchiefRelationship deletedparent of 0001862
2010-07-18 10:32FootkerchiefRelationship deletedrelated to 0001484
2010-07-18 18:23TomiTapioTag Attached: item
2010-07-18 18:23TomiTapioTag Attached: trading
2010-07-18 18:23TomiTapioTag Attached: weight
2010-07-20 08:40quatchTag Attached: user interface
2011-07-09 01:04DwarfuRelationship addedrelated to 0003955
2012-05-14 15:50FootkerchiefRelationship addedrelated to 0001862
2012-05-14 15:50FootkerchiefRelationship deletedrelated to 0001860

Notes
(0004684)
Footkerchief   
2010-04-22 23:47   
Does this reproduce? That value seems awfully high.
(0004736)
ronarscorruption   
2010-04-23 10:47   
I can vouch for that, I get the same thing.
(0005090)
jgoodwin   
2010-04-25 22:35   
(edited on: 2010-04-25 22:40)
Btw examining a gold nugget shows its weight is 1352. Anyone with gold can repro this easily. So it's simply a display format error that the value (90) runs into the weight (1352). But I think 1352 is too high anyway.

24kt gold is 1204 lb/ft3 and cast lead is 708 lb/ft3, the ratio is 1.7:1.
In game a bar of lead (weight 22) and a bar of gold (weight 38) closely match this ratio, implying that a bar of lead in game is the same size as a bar of gold. Since you get one bar of lead from a galena boulder, which weighs 525, there's a smelting reduction factor of 23.86. And since you get one gold bar weighing 38 from smelting a gold nugget weighing 1352, the gold smelting reduction factor is much higher, 35.58, implying that a gold nugget is much less pure gold than a galena boulder is pure lead.

That doesn't match my intuition about gold nuggets, which is of course based on movies and not science.

Just using the lead smelting reduction factor for gold would mean gold nuggets should weigh 907 (38*23.86). Or 525*1.7 is 983, so I think gold nuggets should weigh no more than 907.

(0005095)
PencilinHand   
2010-04-25 23:05   
There is some general funniness with the way weight is calculated currently. See 0001386 and 0000297.
(0005109)
GRead   
2010-04-26 05:07   
This seems unrelated to 0001386 and 0000297, which are internal calculation errors. This actually follows directly from the raws; gold nuggets *are* pure gold, and have a solid_density of 19320. Galena has a solid_density of 7500. But all boulders are created the same, so the 'gold nuggets' weigh significantly more than the galena boulder.
(0005127)
DoctorZuber   
2010-04-26 09:03   
nice report. Allowing for some variance in purity from one material to the next the weight for gold could be working as intended. raw ore is awful darned heavy, and isn't necessarily all on the same ratio before smelting.

In either event, this does still leave a misleading display error.
(0009789)
Footkerchief   
2010-07-08 08:26   
Reminder sent to: Toady One

Hey Toady -- another weight bug that was possibly fixed already.
(0010320)
Toady One   
2010-07-15 01:27   
That one is kind of in a weird space. The boulders are human-sized, so a gold boulder ("nuggets") is quite heavy -- 1300kg seems reasonable. The reason they are human-sized is because you can make giant statues from them (as well as like three goblets). Shrinking/growing is inevitable until more reactions respect sizes etc., and I'm not even sure how good of an idea that'll end up being, though it's more important to do for adv mode.