View Issue Details

IDProjectCategoryView StatusLast Update
0001386Dwarf FortressItemspublic2010-07-05 01:24
ReporterPencilinHand Assigned ToToady One  
PrioritynoneSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
PlatformFuijitsu Lifebook T4220OSWindows XP Tablet Edition 2005OS VersionSP3
Product Version0.31.03 
Fixed in Version0.31.09 
Summary0001386: High boots weigh about 1/33 as much as low boots.
DescriptionTitle pretty much says it all. High boots weigh a fraction of what low boots weigh. Surely, there is a calculation mistake somewhere.
Steps To ReproduceEnter arena mode. Equip a creature with one slade high boot and one slade low boot. Compare their weights.
Additional InformationThe weight formula for shoes appears to be LAYER_SIZE*DENSITY/75000 though more research is needed.
TagsEquipment, weight

Relationships

child of 0000297 resolvedToady One Bronze shields, gauntlets and boots weigh less than 1 kilogram 

Activities

user6

2010-04-20 22:39

  ~0004413

See 0000297.

Zas

2010-04-20 22:53

reporter   ~0004416

I think it's just a typo in raws. Should simply be the other way round.

PencilinHand

2010-04-20 23:11

reporter   ~0004418

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.

user6

2010-07-04 09:03

  ~0009618

Reminder sent to: Toady One

Was this one fixed as well?

smjjames

2010-07-04 09:09

reporter   ~0009619

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?

Toady One

2010-07-05 01:24

administrator   ~0009639

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.

Issue History

Date Modified Username Field Change
2010-04-20 22:25 PencilinHand New Issue
2010-04-20 22:39 user6 Note Added: 0004413
2010-04-20 22:39 user6 Relationship added child of 0000297
2010-04-20 22:49 foxbyte Tag Attached: weight
2010-04-20 22:49 foxbyte Tag Attached: Equipment
2010-04-20 22:53 Zas Note Added: 0004416
2010-04-20 23:11 PencilinHand Note Added: 0004418
2010-07-04 09:03 user6 Note Added: 0009618
2010-07-04 09:09 smjjames Note Added: 0009619
2010-07-05 01:24 Toady One Note Added: 0009639
2010-07-05 01:24 Toady One Status new => resolved
2010-07-05 01:24 Toady One Fixed in Version => 0.31.09
2010-07-05 01:24 Toady One Resolution open => fixed
2010-07-05 01:24 Toady One Assigned To => Toady One