Cataclysm-dda: Container should be able to hold powder.

Created on 4 Sep 2017  路  12Comments  路  Source: CleverRaven/Cataclysm-DDA

Expected Behavior

When selecting a container in the [C] section of the AIM menu you should be able to store stuff in there.

Actual behavior

Always get an error saying "Source must be a container."

Steps to reproduce the behavior

  1. Get a small plastic bottle of powdered eggs or something similar.
  2. Unload the eggs into your inventory
  3. Open AIM
  4. Select the now empty small plastic bottle and press 'c' or 'C'
  5. Select the loose powdered eggs and try to move them

I can see that the existing system only allows container to container transfer but that seems odd. I haven't really looked at the code for this but I think it should be fixable. That way all those plastic bags and paper wrappers can have some use again

<Enhancement / Feature> <Suggestion / Discussion> Mechanics Change Items / Item Actions / Item Qualities

Most helpful comment

I had an idea regarding this before: powders could be treated like liquids in player's inventory, but like solids outside.
That is, an uncontained powder could be picked up, but only into a container. Losing the container would cause the powder to spill on the ground.

Pills and similar almost-powders would be treated the same way. This would prevent the one pill storage bullshit.

All 12 comments

One can store liquid but not powder in container.

Then why did I find a small plastic bottle of powdered eggs?

That's just a limitation of game engine.

Couldn't a flag get added for something like this?

I literally just empty any container without a liquid because you can literally just throw the powder in your backpack with everything else and still manage to scrape it all up when taking it out of the bag. Getting rid of the containers is lighter and so its more convenient, but breaks immersion.

I had an idea regarding this before: powders could be treated like liquids in player's inventory, but like solids outside.
That is, an uncontained powder could be picked up, but only into a container. Losing the container would cause the powder to spill on the ground.

Pills and similar almost-powders would be treated the same way. This would prevent the one pill storage bullshit.

I really like Coolthulhu's idea.

That is, an uncontained powder could be picked up, but only into a container. Losing the container would cause the powder to spill on the ground.

Powders should be treated just like liquids but I am a but confused how you would pick up a powder after it falls on the ground. I think it should act just like a liquid except it needs a broom to clean the mess when it spills.

Pills and similar almost-powders would be treated the same way. This would prevent the one pill storage bullshit.

I like the idea of having pill bottles instead of having them just loose in your pockets. I am unsure what the "one pill storage bullshit" you are talking about. Is it that one pill is the same volume as 100 pills?

We could add an new container called "pill bottle" that only holds 0.1L or 0.05L that pills will be contained in by default.

What almost-powders are you thinking of? Sand is the only thing I can think of off the top of my head

I think it should act just like a liquid except it needs a broom to clean the mess when it spills.

A desperate survivor could just pick up flour by hand. Plus, broom would also make some cases look worse: salt spilled on table etc.

I am unsure what the "one pill storage bullshit" you are talking about. Is it that one pill is the same volume as 100 pills?

No, it's that one pill has volume of one pill and can be stored uncontained in the inventory just fine, picked from a pile of identically sized pills, doesn't fall out and so on. If it had the volume of 100 pills, it could be considered an abstraction similar to batteries. But it has volume of one pill, meaning it can't be an abstraction, hence the next closest word: bullshit.

A desperate survivor could just pick up flour by hand

That is a good point. Now I understand what you meant by it acting like a liquid in the inventory but a solid on the ground

The pill issue could be solved with the pill bottle idea that I proposed. A 0.1L bottle would allow for 100 pills to be in a single bottle, which seems reasonable

I really like this idea. Where would someone look to figure out the size of the average Aspirin or Ambien?

As the person who initially increased weight granularity back when weight moved from .25lbs to 1 gram, you spend hours and hours and hours googling things and measuring them yourself.

(So to answer the question, I'd pull out my ruler and take a look into my medicine cabinet).

Closing as per lack of discussion.

Was this page helpful?
0 / 5 - 0 ratings