v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing User talk:Ziusudra

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 27: Line 27:
  
 
I think what's going on with the [[Size]] and [[Weight]] pages is that, internally, the game '''divides''' the specified value by 10 before storing it in its data structures, then it multiplies it by 10 when calculating actual weight. I took this into account when filling in the "volume" values on the Weight page (which is why its formula lacks the "* 10" ''and'' mentions the rounding down to the nearest multiple of 10), and I'm guessing the same thing happens with creature sizes. --[[User:Quietust|Quietust]] ([[User talk:Quietust|talk]]) 16:24, 30 November 2023 (UTC)
 
I think what's going on with the [[Size]] and [[Weight]] pages is that, internally, the game '''divides''' the specified value by 10 before storing it in its data structures, then it multiplies it by 10 when calculating actual weight. I took this into account when filling in the "volume" values on the Weight page (which is why its formula lacks the "* 10" ''and'' mentions the rounding down to the nearest multiple of 10), and I'm guessing the same thing happens with creature sizes. --[[User:Quietust|Quietust]] ([[User talk:Quietust|talk]]) 16:24, 30 November 2023 (UTC)
:I think I found what is causing part of my confusion: IRL 600 cm³ of iron would weigh about 4.7 kg, but in game a bar of iron is shown as weighing 47Γ ... so either a DF bar really is 6000 cm³ '''or''' the game's Γ is equivalent to 100 g, not 1 kg as initially claimed [https://dwarffortresswiki.org/index.php?title=v0.31:Weight&diff=prev&oldid=102326 here].
 
:But then in adv mode I killed a dwarf and the corpse is 89Γ, even though the size_cur is 6617 (and his head exploded) ... since the game is probably calculating a density from the layers (or adding up the weight of the layers, etc) 1359.6 kg/m³ is not that far off. So since the 89Γ is close enough to what a real human would weigh in kg, then a Γ is equivalent to a kg, and a bar really would be 6000 cm³.
 
:From that and some web searching, some already known and verified things:
 
:* 1 Γ = 1 kg
 
:* densities in raws are in kg/m³ ([https://en.wikipedia.org/wiki/Density#Various_materials])
 
:* {{token|BODY_SIZE|c}} values in raws are in cm³ ([https://www.wolframalpha.com/input?i=average+volume+of+human+body])
 
:* The values in the table on [[Weight]] are in cm³
 
:* The values in the table on [[Size]] are also in cm³
 
:* volumes of items and creatures are stored as 1/10th
 
:And thus:
 
:* The "* 10" on Size is not needed
 
:* The size of a bar is 6000 cm³, not 600 cm³
 
: I'm gonna think a bit more before making changes. [[User:Ziusudra|Ziusudra]] ([[User talk:Ziusudra|talk]]) 08:08, 1 December 2023 (UTC)
 
:: Maybe this report {{bug|11772}} (from before your changes to the values on [[Weight]]) wasn't completely wrong, except the densities are correct and only some things are 10× bigger than they should be. Like the bars, or seeds, a 100 cm³ spherical seed would be 5.75 cm (2.26 in) in diameter, and seeds are larger than plant growths. And cut gems are larger than large gems. [[User:Ziusudra|Ziusudra]] ([[User talk:Ziusudra|talk]]) 12:41, 1 December 2023 (UTC)
 
:::Where exactly did you see that Bars were only 600cm³? In the game code, item_barst::base_volume() does indeed return 600, but on the [[Weight]] page I documented it as having a volume of 6000 so that the weight calculation (where Γ ''does'' mean kilograms) doesn't need an extra multiplication by 10. --[[User:Quietust|Quietust]] ([[User talk:Quietust|talk]]) 13:41, 1 December 2023 (UTC)
 
::::[[Bar]] and [[Size]], both also hav an incorrect capacity for bins. [[User:Ziusudra|Ziusudra]] ([[User talk:Ziusudra|talk]]) 13:54, 1 December 2023 (UTC)
 
:::::It looks like the [[Storage]] page also has all of its capacities off by a factor of 10, likely to make things line up with the extra *10 on the Size page. For example, it lists Minecarts as having a capacity of 50000, even though the raws clearly specify "[CONTAINER_CAPACITY:500000]". I suspect a major overhaul is in order. --[[User:Quietust|Quietust]] ([[User talk:Quietust|talk]]) 15:01, 1 December 2023 (UTC)
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Please sign comments with ~~~~

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)