View Issue Details

IDProjectCategoryView StatusLast Update
0011863Dwarf FortressItemspublic2022-04-08 08:03
ReporterAtkana Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
Product Version0.47.05 
Summary0011863: Tool SIZE and CONTAINER_CAPACITY are a tenth defined size
DescriptionWhile 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.
TagsNo tags attached.

Activities

Atkana

2022-04-01 06:22

reporter   ~0041238

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

Quietust

2022-04-08 08:03

reporter   ~0041240

Last edited: 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.

Add Note

Note

Issue History

Date Modified Username Field Change
2022-04-01 06:18 Atkana New Issue
2022-04-01 06:22 Atkana Note Added: 0041238
2022-04-08 08:03 Quietust Note Added: 0041240
2022-04-08 08:30 Quietust Note Edited: 0041240