Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0001386Dwarf FortressItemspublic2010-04-20 22:252010-07-05 01:24
PencilinHand 
Toady One 
nonetweakalways
resolvedfixed 
Fuijitsu Lifebook T4220Windows XP Tablet Edition 2005SP3
0.31.03 
0.31.09 
0001386: High boots weigh about 1/33 as much as low boots.
Title pretty much says it all. High boots weigh a fraction of what low boots weigh. Surely, there is a calculation mistake somewhere.
Enter arena mode. Equip a creature with one slade high boot and one slade low boot. Compare their weights.
The weight formula for shoes appears to be LAYER_SIZE*DENSITY/75000 though more research is needed.
Equipment, weight
child of 0000297resolved Toady One Bronze shields, gauntlets and boots weigh less than 1 kilogram 
Issue History
2010-04-20 22:25PencilinHandNew Issue
2010-04-20 22:39FootkerchiefNote Added: 0004413
2010-04-20 22:39FootkerchiefRelationship addedchild of 0000297
2010-04-20 22:49foxbyteTag Attached: weight
2010-04-20 22:49foxbyteTag Attached: Equipment
2010-04-20 22:53ZasNote Added: 0004416
2010-04-20 23:11PencilinHandNote Added: 0004418
2010-07-04 09:03FootkerchiefIssue Monitored: Toady One
2010-07-04 09:03FootkerchiefNote Added: 0009618
2010-07-04 09:09smjjamesNote Added: 0009619
2010-07-05 01:24Toady OneNote Added: 0009639
2010-07-05 01:24Toady OneStatusnew => resolved
2010-07-05 01:24Toady OneFixed in Version => 0.31.09
2010-07-05 01:24Toady OneResolutionopen => fixed
2010-07-05 01:24Toady OneAssigned To => Toady One

Notes
(0004413)
Footkerchief   
2010-04-20 22:39   
See 0000297.
(0004416)
Zas   
2010-04-20 22:53   
I think it's just a typo in raws. Should simply be the other way round.
(0004418)
PencilinHand   
2010-04-20 23:11   
That is a negative there Zas, not a problem in the raws but something internal. The other items in item_shoes.txt derive their weight from LAYER_SIZE*DENSITY/75000. Plugging in the raw numbers for high boots results in a different weight number than the one reported in game.

Helm's appear to be somewhat similarly cursed. Items under item_helm.txt derive their weight from (layer size * material density)/60000 but a helm is just the material density / 1010(or something close to that).

I stumbled on the helm and high boots problem trying to derive the weight formulas for each item. I was somewhat surprised to find they weren't all consistent even within an item class. After weighing the degree of discrepancy I concluded they were bugs.
(0009618)
Footkerchief   
2010-07-04 09:03   
Reminder sent to: Toady One

Was this one fixed as well?
(0009619)
smjjames   
2010-07-04 09:09   
Foot, maybe put a reminder on 0001009 since that one is related to weight and the same thing that was causing the weight bug with armor and clothing could have been fixed there as well?
(0009639)
Toady One   
2010-07-05 01:24   
Ah, yeah, I was going to search for and mark these off today, since I fixed these problems without reference to a specific bug report. Thanks for hunting them down.