-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
vehicle inventory does not notify of 4096 item limit #58966
Comments
Only 4096 items can be stored in a tile. |
That's good to know, the game does not tell you at all. What counts as an "item"? I notice that some items have the quantity described inline (e.g. "flour (130)"), while others have the quantity in a separate column (e.g. "solar panel 4"). I never understood why there were two ways of counting but I guess that's a separate question. |
The first type of items are called |
AIM should probably tell you somehow that you're hitting the 4096 items limit. |
Isn't cargo shelving a game mod vehicle part? If so, this post should probably be tagged with the appropriate mod? |
Not sure, but either way the crux of the issue is in core game code. |
I'd like to edit the title of this issue because it's not specific to cargo shelving at all. Is that bad form? |
@bouchacha: Feel free to. It's the opposite of bad form, it'll make it clear that the problem is more general.
Agreed re the limit becoming an issue in the future |
According to this comment #20483 (comment) the 4096 limit was to work around the performance issue of iterating through a |
Well, we can at least tune the limit up if removing it is not an option. I'm not sure what overflow problem the comments in that issue are referring to. Considering that volume is always limited in a tile and should not overflow in any case, maybe they are refering to the weight? Although in that case you can still cause an overflow by having a stack of very many items counted by charge, nested containers, or a misbehaving mod that adds mini-blackholes to the game, so we probably want to add weight limit to a tile to prevent weight overflow.
In addition to causing the item limit to be hit more often as @bouchacha pointed out, this might also cause higher memory consumption if the items are not stored with an RLE-like data structure (especially with items such as thread which the player usually has thousands after some reasonable time). But that is more or less equivalent to keeping the items counted by charge but displaying them the same as a stack of items in UIs. |
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. |
Describe the bug
Moving items onto a cargo shelving with plenty of free space (961L out of 2000) nevertheless generates a message indicating "the cargo shelving is full, so it fell to the grass". The game doesn't even prompt you with the typical "there isn't enough room" warning you would otherwise get.
Steps to reproduce
Expected behavior
You'd expect the inventory volume indicator to be accurate. If volume is not maxed out, there's no reason items should fall to the ground.
Screenshots
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
No Fungal Growth [no_fungal_growth],
Bionic Professions [package_bionic_professions],
Blaze Industries [blazeindustries],
No Hope [no_hope],
Stats Through Kills [stats_through_kills],
Stats Through Skills [StatsThroughSkills]
]
Additional context
No response
The text was updated successfully, but these errors were encountered: