Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory volume is miscounted #50472

Closed
Brambor opened this issue Aug 4, 2021 · 12 comments
Closed

Inventory volume is miscounted #50472

Brambor opened this issue Aug 4, 2021 · 12 comments
Labels
Info / User Interface Game - player communication, menus, etc. Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones stale Closed for lack of activity, but still valid. <Suggestion / Discussion> Talk it out before implementing

Comments

@Brambor
Copy link
Contributor

Brambor commented Aug 4, 2021

Describe the bug

See pic. In advanced and normal inventory, it says 15.81 / 50.00 L used, but much more is used.

Steps To Reproduce

It happens all the time, so just spawn a character and load them with stuff?

If you cannot reproduce, I will investigate further

Expected behavior

Right volume counted.

Screenshots

CDDA inventory wrong volume countedt

Versions and configuration

  • OS: Windows 10
  • Game Version: 2021-08-04-0834
  • Graphics version: Tiles

Additional context

No response

@Brambor Brambor changed the title Volume is miscounted Inventory volume is miscounted Aug 4, 2021
@actual-nh actual-nh added (S1 - Need confirmation) Report waiting on confirmation of reproducibility Info / User Interface Game - player communication, menus, etc. Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones labels Aug 4, 2021
@mqrause
Copy link
Contributor

mqrause commented Aug 4, 2021

Canning pots are rigid containers, so their pocket volume isn't counted, since you can fill them up anyway when you put them inside your backpack.

Can't tell you why the jar doesn't fit without a save, though.

@Brambor
Copy link
Contributor Author

Brambor commented Aug 4, 2021

Canning pots are rigid containers, so their pocket volume isn't counted, since you can fill them up anyway when you put them inside your backpack.

Can't tell you why the jar doesn't fit without a save, though.

I guess the jar doesn't fit into the other jars. Well, it would be better to display the information in a different way. I don't think I'm the only one who is confused. I will try to think of something...

@mqrause
Copy link
Contributor

mqrause commented Aug 4, 2021

There is definitely a lot to improve in that regard and it's also not possible to have a perfect display taking everything into account with just some numbers since some pockets have specific restrictions. I'm also not sure how AIM does this compared to the normal inventory and pickup/drop menues.

@actual-nh actual-nh added <Suggestion / Discussion> Talk it out before implementing and removed (S1 - Need confirmation) Report waiting on confirmation of reproducibility labels Aug 4, 2021
@chrispikula
Copy link
Contributor

This also happens if you've got filters for your inventory, it only shows displayed inventory.

Ideally it'd show the max volume of a space available, but given that AIM is talked about being merged into normal inventory, I don't know if it'll get updated.

Also, a canning pot is an 'open_container', so it might only hold things when carried?

If true, the contents of this pocket will spill if this item is placed into another item.

@PatrikLundell
Copy link
Contributor

Yes, you have to wield a canning pot to put anything into it.

@Brambor
Copy link
Contributor Author

Brambor commented Aug 5, 2021

In that case, isn't it a bug? Shouldn't the volume occupied (15.81 in the picture) be >= volume of canning pot?

@mqrause
Copy link
Contributor

mqrause commented Aug 5, 2021

Also, a canning pot is an 'open_container', so it might only hold things when carried?

While that is true, it's not the point. When a rigid container is in a pocket, it will only occupy its total volume minus the volume of its pocket. Because it wouldn't make any sense to just leave it empty when you pack things like that. Technically all the items you put inside then go into the parent pocket, of course.

@chrispikula
Copy link
Contributor

While that's reasonable in reality, in CDDA, I'm trying to think of the best method to load/unload that pot. If you decided to remove that canning pot from your bag, and things were occupied inside it, you've got a few options.

Do they spill on the ground? No, this is bad. The most realistic, given that in game you are removing the pot from the bag as quickly as possible.

Do they go into the container on the ground? Well yes, but it's not wielded, so no?

Do you remove each item, one at a time from inside the pot, inside the bag, leaving them inside the bag while you remove the pot? Maybe, but this could end up with a very large remove/insert move cost. If it's a bunch of small non-stacking things, it might take over ten minutes, given that move costs for some pockets start over 200. If you are wielding something or have hand encumbrance this can unintentionally skyrocket. I'd be kinda opposed, as I would sometimes end up losing a couple hours if I forgot to drop something.

Do you tell the player 'you can't remove that object while holding something' or 'there is no space to remove said item'? This isn't intuitive, nor would the code look sane without a paragraph or two of comments, so... I dunno?

@mqrause
Copy link
Contributor

mqrause commented Aug 5, 2021

This is moving away from the actual issue here (how available space is displayed) and probably belongs more in #40163.

@Brambor
Copy link
Contributor Author

Brambor commented Sep 24, 2021

What about showing the range of volumes one can put in their inventory?

Ex: You have 40L of free space. You can fit items with volume ranging from 0L to 2.8L. Lengths from 0cm to 140 cm.

Maybe not in AIM but a sort of a popup (hotkey in AIM and elsewhere) for summarization so that you don't have to go through pockets to figure this out?

@Brambor
Copy link
Contributor Author

Brambor commented Sep 24, 2021

Oh, and list of pockets with space! Yas, that's it, right?

@stale
Copy link

stale bot commented Apr 27, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Apr 27, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Info / User Interface Game - player communication, menus, etc. Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones stale Closed for lack of activity, but still valid. <Suggestion / Discussion> Talk it out before implementing
Projects
None yet
Development

No branches or pull requests

5 participants