Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011863Dwarf FortressItemspublic2022-04-01 06:182022-04-08 08:03
Atkana 
 
normalminorN/A
newopen 
0.47.05 
 
0011863: Tool SIZE and CONTAINER_CAPACITY are a tenth defined size
While working out container sizes in arena mode, I noticed something was off with tools compared to the hard-coded items. It seems (based on investigation with placing things inside other things until full + looking at sizes in DFhack) that the size and capacity of tools are 1/10th their raw-defined amounts.
Examples:
- A bucket has a capacity of 600, but it's able to fit 6 display cases (supposedly 1000 in size each) before becoming full.
- A pouch has a supposed capacity of 1000, but can't fit in a bucket (which has a volume of 300). Nor can it fit any non-tool item more than 100 in size before becoming full.

It could be that this is intended, and that it's just the explanation on the wiki of what the SIZE and CONTAINER_CAPACITY values are supposed to represent that's wrong. If that's true though, then some of the numbers chosen seem a little off - it's hard to imagine that a six-sided die in the DF universe is supposed to be ~8mm per side.
No tags attached.
Issue History
2022-04-01 06:18AtkanaNew Issue
2022-04-01 06:22AtkanaNote Added: 0041238
2022-04-01 06:25AtkanaIssue Monitored: Atkana
2022-04-08 08:03QuietustNote Added: 0041240
2022-04-08 08:30QuietustNote Edited: 0041240bug_revision_view_page.php?bugnote_id=0041240#r16786

Notes
(0041238)
Atkana   
2022-04-01 06:22   
This might be why I've always been noticing tools being surprisingly light (as also noticed with this issue https://www.bay12games.com/dwarves/mantisbt/view.php?id=11196 [^])
Given the whole factor of 10 and sizing thing, this is probably in some way linked with https://www.bay12games.com/dwarves/mantisbt/view.php?id=11772 [^]
(0041240)
Quietust   
2022-04-08 08:03   
(edited on: 2022-04-08 08:30)
The Volume/Capacity numbers listed on the wiki page were determined via disassembly analysis, and they explicitly indicate that Tools use SIZE/10 and CAPACITY/10 for those numbers. Thus, you need to multiply all of them by 10 if you want things to match up (and I've just updated the wiki page accordingly).

Effectively, what the game is doing internally is just rounding all weights down to the nearest 10 units. Exactly why it's doing that, I don't know, but that's what it's doing.