CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.26k stars 4.12k forks source link

Cannot install an armored training dummy for some cryptic reason #75973

Open l29ah opened 2 weeks ago

l29ah commented 2 weeks ago

Describe the bug

It's greyed out even though i got all the requirements.

Attach save file

2024.08.21.zip

Steps to reproduce

Expected behavior

Being able to build it.

Screenshots

Versions and configuration

Additional context

No response

HadeanLake commented 2 weeks ago

UI does not display all requirements, apparently. Dummy can only be installed in diggable terrain such as dirt and grass "pre_flags": { "flag": "DIGGABLE", "force_terrain": true },

l29ah commented 2 weeks ago

seems like armored training dummy can't be installed on pavement or concrete, only on grass

PatrikLundell commented 2 weeks ago

It should be possible to address by adding a "pre_note" of e.g. "Needs diggable terrain to secure it" or something similar. You might also be able to infer such a requirement from the fact that you need a digging tool to install it, but an explicit message is better.

It's a general problem with construction: they can have fairly elaborate requirements that aren't communicated at all, so notes should probably be used a lot more frequently. A fair amount of room for notes would help to promote the provision of descriptions that cover more of the requirements. Note that it's not possible to generate notes automatically in general, because requirements can involve code (sure, the code could be bundled with snippets, but then you'd end up with a bundle of disjointed snippets in many cases).