-
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
Expand 4096 item limit per tile #69898
Comments
High-amount items like cotton patches, aspirin, paper, etc should really be combined somehow. If so, we would barely run into the 4096 limit and have much better performance. I hate that there is a draft for removing charges, because the 4096 limit will be absolutely laughable. So if that goes through, upgrading tile limit will be required. Also, there are some ways that piles 'crumble' to nearby tiles if full. The more precise ways of moving items disallow it. Quite a few people are unaware of this and could probably be changed so that more methods can 'crumble" to another tile. |
What was the actual rationale of the item limit though? In #20483 (comment) kevin said it was to avoid the performance issue that stemed from using In #35411 (comment) kevin instead said it was to avoid hitting bugs in the code when the item count grows too large, but I don't see the difference between items in a container triggering the bugs and items in a map tile triggering the bugs. so if we really want to avoid bugs at all cost we should perhaps add the limit to containers as well (and get more bug reports from players because then they will not be able to store more than 4096 grains of salt in a condiment bottle...). But to be honest, if there is code that bugs out when there are to many items, the code should be fixed instead of putting a bandaid on it and pretending the bug doesn't exist. If the bug refers to the integer overflow problem stated in an earlier comment in that issue, the only difference I see that would trigger an integer overflow in a map tile is when too many items with small volume but large weight are added, which can be solved by adding a weight limit per tile instead, to be consistent with containers. |
You can easily change one line and compile with increased item limit: Cataclysm-DDA/src/game_constants.h Line 28 in d9741cd
|
Time to make it int_max I guess. It could also be placed in options for the player to decide if they are playing on slower machines. Performance doesn't seem as big a concern as it has been previously, and newer methods of representing items make it better anyways. |
IIRC it was already proposed and soundly rejected |
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. |
Is your feature request related to a problem? Please describe.
Because of removing charges from lots of items - lots of problems was created
Solution you would like.
Describe alternatives you have considered.
You can put items into containers, and than put it together to bypass the limit, but:
Additional context
No response
The text was updated successfully, but these errors were encountered: