-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Advanced Inventory Management not allowing some things to be dropped #79414
Comments
Also experiencing this on the same build. Started a fresh save and new world to double check and it is present there as well. Can move items into open containers such as bags and jars but can not move items into furniture/vehicles (in addition to the open ground) such as car trunks, fridges, cupboards.. |
When looking at the previous commit it could possibly be this: |
I have this exact same issue on the latest experimental. Happens with the advanced inventory when dropping on the floor, furniture, or vehicles. |
I can confirm that the problem started appearing in cdda-experimental-2025-01-29-1944 (so #79409) , and did not exist in the previous release cdda-experimental-2025-01-29-1641 cc @marilynias for visibility |
I updated to the latest update with #79409. I found a difference between a few items that can be moved and those that can't... but can't figure out any more than that. Some items like The difference being... the items I can move don't open the actions menu along side the item info when I press 'e' to examine the item. The items that claim the destination area is full when trying to move them do open the actions menu along side the item info when pressing 'e' to examine. (pictures in the details section) Do the items that can be moved somehow report weight strangely... or the items that can't move reporting their weight strangely when considering the definitely some jank here lol.
The items on the right pane are able to be moved without issue. The items on the left say "destination area full..."
The items that can't be moved will open the item info window including the actions you can take on that item when 'e' examined. The items that can be moved will open just the item info window upon being 'e' examined.
|
This is kinda strange... I made a tiny tweak to the code so I could inspect the results of charges_per_volume and charges_per_weight. Also set a breakpoint so I could step through and see whats up. so couldn't figure out how to make the permalinked code look nice, including link followed by code. trying to move an item that won't move to an empty square, in function charges_per_weight the value for m = 9223372036854775807 and my_weight = 560000. Odd. Ah... I think I see... the values being delt with don't always fit nice into an int. We'd need an extra check in advanced_inv::query_charges for if the value from charges_per_weight being negative of change the type of return to something bigger than int (mass is an int64) or an extra bid of code in item::charges_per_weight to return max int in the right condition... Or I'm off about the stuff after 'Odd' ... can't really concentrate rn |
indeed, item::charges_per_weight() (which my PR relied on) tried to return a value greater than INT_MAX overflowing to negative. The ground has a practically infinite weight capacity, so the items it could hold were greater then INT_MAX |
Describe the bug
On experimental build 2025-01-29-1944, I am having an issue with the advanced inventory screen and placing items on the ground - somethings will drop and others will not. When using the drop interface I can drop all items onto the same spot that otherwise would not work in the advanced inventory screen.
Attach save file
Greensburg-trimmed.tar.gz
Steps to reproduce
Utilizing my save should suffice, I'm pretty much playing on vanilla CDDA besides tiles and music.
Expected behavior
I would expect that I can place things on the ground
Screenshots
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Portal Storms Ignore NPCs [personal_portal_storms],
Slowdown Fungal Growth [no_fungal_growth]
]
Additional context
This just started happening when I updated to 1944.
The text was updated successfully, but these errors were encountered: