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

[Bug] Ammo truck / outpost loot crate inventory capacity is smaller than what it's filled to. #3464

Open
ante185 opened this issue Dec 11, 2024 · 7 comments
Assignees
Labels
Bug Something isn't working Low priority Not something that needs dealing with soon

Comments

@ante185
Copy link

ante185 commented Dec 11, 2024

the inventory of outpost/seaport/airbase loot crate, and the inventory of ammo truck targets is smaller than the amount of stuff being stuffed into them.

This leads to unintuitive situations where when people pull stuff out of the crate, either because they need X item right now or because they're just checking the stuff out. Especially in the latter case it ends up putting a lot of the crate items on the ground instead of back into the box or truck.

@ante185 ante185 added the Bug Something isn't working label Dec 11, 2024
@jaj22
Copy link

jaj22 commented Dec 11, 2024

Not a bug but it's theoretically possible to change it now with setMaxLoad. Probably too much of a pain to bother though.

@ante185 ante185 changed the title [BUG] Ammo truck / outpost loot crate inventory capacity is smaller than what it's filled to. [Bug] Ammo truck / outpost loot crate inventory capacity is smaller than what it's filled to. Dec 11, 2024
@ante185
Copy link
Author

ante185 commented Dec 11, 2024

Not a bug but it's theoretically possible to change it now with setMaxLoad. Probably too much of a pain to bother though.

unintuitive/undesirable/unwanted behaviour is close enough to a bug, especially when the cause is from our side

@ante185 ante185 added the Low priority Not something that needs dealing with soon label Dec 11, 2024
@jaj22
Copy link

jaj22 commented Dec 11, 2024

IIRC it's overshot by miles in common cases, so blocking adding gear if it's full isn't an option. And setMaxLoad didn't exist at the time. I'm not sure it's a good idea though, because you'll end up with ammo trucks that have epic cargo capacity up until you cycle them through the garage.

@ante185
Copy link
Author

ante185 commented Dec 11, 2024

I think that would be fine, or not as bad as you worry it could be.
Could tie a reset into the mission fail and complete

@jaj22
Copy link

jaj22 commented Dec 11, 2024

Maybe better to tie it to the transfer-to-arsenal action, although that one is still batshit. Other issue is calculating what value to set it to, as I don't think there's a built-in method. You'd have to run through the entire contents and calculate using config lookups.

@ante185
Copy link
Author

ante185 commented Dec 11, 2024

using "loadAbs" (or "load" and "maxLoad") it should be possible to do that in a neater way. See the "see also" of https://community.bistudio.com/wiki/setMaxLoad
But yes transfer to arsenal could have the ability to reset it too should we feel that's required.

@jaj22
Copy link

jaj22 commented Dec 11, 2024

Ah right, loadAbs works since 2.08 allegedly.

@ante185 ante185 self-assigned this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Low priority Not something that needs dealing with soon
Projects
None yet
Development

No branches or pull requests

2 participants