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

About the actual limit of 4096 items per tile #35398

Closed
DMFan79 opened this issue Nov 8, 2019 · 8 comments · Fixed by #37258
Closed

About the actual limit of 4096 items per tile #35398

DMFan79 opened this issue Nov 8, 2019 · 8 comments · Fixed by #37258
Labels
<Bug> This needs to be fixed Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones Items / Item Actions / Item Qualities Items and how they work and interact <Suggestion / Discussion> Talk it out before implementing
Milestone

Comments

@DMFan79
Copy link

DMFan79 commented Nov 8, 2019

ref. #20483

Is your feature request related to a problem? Please describe.

Lately I've been having an issue regarding the auto-sorting mechanic. I've amassed several hundreds rags, kevlar patches, leather patches and so on and I finally hit the 4096 items per tile limit. The dresser I've selected as storage for spare parts sits around 1500/2000 volume, but the sorting function simply goes on a loop because it can't put any more objects inside the pile. I have to manually stop the process and start removing stuff from the dresser and move it somewhere else.

Describe the solution you'd like

I know, I shouldn't be such a hoarder and I'm actively trying to stop picking stuff up. I've noticed however that items like nails, gold, silver and such are written in the code like a single object. Is there a specific reason you've chosen to not do the same with rags and such? I mean, do we really need to keep track of, for instance, the damage a piece of rag has received?

Describe alternatives you've considered

If you disagree with my suggestion, I believe it would be useful to take a look at the actual sorting function. The loop bug should be addressed, when the limit has been reached, the sorting should stop or at least skip that item and go to the next one. Also, It would be helpful to change the function to use other tiles, if available for sorting, for splitting stacks once the limit on a single tile has been reached. At the moment it just loops forever.

@Night-Pryanik Night-Pryanik added <Suggestion / Discussion> Talk it out before implementing Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones Items / Item Actions / Item Qualities Items and how they work and interact labels Nov 8, 2019
@ZhilkinSerg
Copy link
Contributor

Changing items like rags to use stack size (like nails do) could be not a trivial task.

You can compile game with increased limits in the meanwhile:

// Really just a sanity check for functions not tested beyond this. in theory 4096 works (`InvletInvlet)
#define MAX_ITEM_IN_SQUARE 4096
// no reason to differ
#define MAX_ITEM_IN_VEHICLE_STORAGE MAX_ITEM_IN_SQUARE

@DMFan79
Copy link
Author

DMFan79 commented Nov 8, 2019

Changing items like rags to use stack size (like nails do) could be not a trivial task.

You can compile game with increased limits in the meanwhile:

// Really just a sanity check for functions not tested beyond this. in theory 4096 works (`InvletInvlet)
#define MAX_ITEM_IN_SQUARE 4096
// no reason to differ
#define MAX_ITEM_IN_VEHICLE_STORAGE MAX_ITEM_IN_SQUARE

It's not my intention to minimize the effort to apply this change. I just think that, if there's not a strong reason to have them as multiple objects, the game could greatly benefit with the change.

Kevin gave a solid answer regarding the limit, I'm going to adapt for the moment, without changing it.

@Night-Pryanik
Copy link
Contributor

You're actually mixing several issues in one, and that's not very good.
First is a bug with activity looping.
Second is a suggestion about making rags stack like nails or gold.
And finally, both of these issues have almost nothing to do with the actual limit of items in a tile.

@DMFan79
Copy link
Author

DMFan79 commented Nov 8, 2019

Actually I have mixed nothing. Once I encountered the bug I searched for the reason behind it and discovered the thread I've linked on the top. Without the limit I wouldn't have made the suggestion to turn rags into a single stackable object. My suggestion could solve the matter and at the same time benefit the game. I've mentioned the bug as an alternative following the template. If the suggestion will be considered invalid, I'll close this thread and open another one about the bug.

@RDru
Copy link
Contributor

RDru commented Nov 9, 2019

Changing items like rags to use stack size (like nails do) could be not a trivial task.

I once tried changing something to ammo type and it worked, it changed from separate items to stack on current save.

I'm also encountering this limit. It's not hard when you are a hoarder :D

@stale
Copy link

stale bot commented Dec 9, 2019

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 Dec 9, 2019
@ZhilkinSerg ZhilkinSerg added (P5 - Long-term) Long-term WIP, may stay on the list for a while. and removed stale Closed for lack of activity, but still valid. labels Dec 9, 2019
@kevingranade kevingranade added <Bug> This needs to be fixed and removed (P5 - Long-term) Long-term WIP, may stay on the list for a while. labels Dec 10, 2019
@kevingranade
Copy link
Member

The sorting loop might have this bug, the remainder is unrelated.

@kevingranade kevingranade added this to the 0.E milestone Jan 13, 2020
@ghost
Copy link

ghost commented Jan 16, 2020

Cannot reproduce the activity looping part anymore.
Fill up the destination loot square so its overflowing, then place an unsorted over all of it, perform activity, it stops immediately, as the target tile is full up.

Because it has the check for free space on the target tile in the activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones Items / Item Actions / Item Qualities Items and how they work and interact <Suggestion / Discussion> Talk it out before implementing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants