Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Creature Weight Info  (Read 1071 times)

Leonidas

  • Bay Watcher
    • View Profile
Creature Weight Info
« on: June 01, 2018, 08:48:57 pm »

Is there a way to get precise data on how much a given creature weighs? I'm testing drawbridge weight limits with a fortress full of reanimated corpses, and I don't want to assume that the corpses weigh as much as the adult creatures.
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Creature Weight Info
« Reply #1 on: June 02, 2018, 04:30:58 am »

<unit>.body.size_info.size_cur ought to give the size (in cm3 according to the wiki).
http://dwarffortresswiki.org/index.php/DF2014:Size
Based on that page, you could assume the value above is also the weight in grams. If you want an exact value you probably have to go into the body parts and their tissues and sum them up somehow.
Logged

Leonidas

  • Bay Watcher
    • View Profile
Re: Creature Weight Info
« Reply #2 on: June 02, 2018, 05:25:57 am »

Can a script determine the size of a specific unit? I'm curious about reanimated corpses that don't have all their body parts. Plus, there's this Giant Mosquito that has been bugging me.
Logged

Saiko Kila

  • Bay Watcher
  • Dwarven alchemist
    • View Profile
Re: Creature Weight Info
« Reply #3 on: June 02, 2018, 06:27:00 am »

Just look at the body or a unit with gui/gm-editor. I doubt actual weight is counted when dealing with bridges, it's almost certainly a size. I use gm-editor for quick checking of weight of objects and creatures, or a specialised script if needed something more specific.
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Creature Weight Info
« Reply #4 on: June 02, 2018, 08:11:18 am »

I'd follow Saiko Kila's advice by looking at the mosquito with gui/gm-editor and look at both the size_cur field and sum the body parts' various layers up as a comparison.

The necro bacon logic depends on reanimated creatures gaining strength which translates into muscles which translates into meat when butchered.
Logged

Saiko Kila

  • Bay Watcher
  • Dwarven alchemist
    • View Profile
Re: Creature Weight Info
« Reply #5 on: June 02, 2018, 08:58:30 am »

If we're talking about zombies from necromancer sieges, then they get boost not only to strength, but also to toughness. And the last one is boosted much higher (3x higher than during life, plus 1000, so even the least tough of tough zombies is tougher than average creature of its size, in comparison Strength is only 30% higher, and no flat bonus). Toughness probably doesn't count for butchering (?), but I mention it, since it explains why zombies are so resistant to physical damage. Toughness is responsible for that.
Logged

Saiko Kila

  • Bay Watcher
  • Dwarven alchemist
    • View Profile
Re: Creature Weight Info
« Reply #6 on: June 03, 2018, 11:57:42 am »

I've made a script for my tests today, related to the problem. May be useful. It's LUA script.
Spoiler (click to show/hide)

It needs an unit selected (may be from any lists or from "v" option or from "k" option, the last useful for guys in a cage). When no option is given, it shows size of an unit. With "all" it shows size of all units from the same position, and with "list" option it shows all and also lists them.

When "list " option is used, unit with asterisk is the one selected.

There are caveats: position of caged units is the same as the position of cage trap they were trapped, while dead units (from Dead/Missing list most likely) retain position of their death. Therefore these two categories are listed separately. Also it's good for units, not their corpses (or any other items).

A side functionality is ability to get cage trap's efficiency: if you list a unit which is caged, you also get all units caged at the same position. So you know how good this trapping position is, at least from size perspective.

Interestingly, living units usually have bigger actual (current) size than base size, while zombies have it opposite. I suppose missing limbs and organs have something to do with it...
Logged