Jump to content

Weapons with mods/water stacking into containers

Not a Bug 2.0.8

Trader08
Trader08

Posted (edited)

Edit: Containers = small/large storage box / Locker, etc.

Weapons with mod example: Store an ak w/o mod in a container. Right-click to store an ak w/mod(s) from your inventory to the container. Both ak will stack, mods go to oblivion. Same goes if you do it manually into a container.

Water example: Have a water bottle/jug fully filled into a container. Stack an empty one over it then unstack them to get both fully filled.

Thanks!

Edited by Trader08
What I mean with "container"
Khan

Posted

In regards to the weapons with attachment issue you are trying to report.

This is not a problem that happens in any tests I run, I suggest you unload all other plugins and re-test for your self to see that it is not an issue.

I also suggest looking in console to see if theirs any error reports that happen from a conflicting plugin when you do it.

Khan

Posted

Changed Status from Pending to Not a Bug

Trader08

Posted

No error, I'll try to find which plugin causes this and update here. Thanks!

Trader08

Posted

I've tried multiple things to end up installing a brand new vanilla instance. Then:

  1. Install umod (overwriting files) from here: https://umod.org/games/rust/download.
  2. Give myself ownerid
  3. Add only StackModifier.cs (v.2.0.8)
  4. Give myself permission stackmodifier.admin
  5. Change Assault Riffle stack size to 2 using /stackmodifier
  6. Give myself 2 ak from F1 (no skin), a weapon flashlight and a wood storage box
  7. Split both ak into my inventory
  8. Put the flashlight onto one of them
  9. 1st Transfer the empty ak into the box
  10. 2nd Right-click to transfer the ak with flashlight mod into the box (they will stack)
  11. No flashlight mod to be seen
Trader08

Posted

Under CanStackItem, GetOwnerPlayer is null when items are stacked in a container, so it gets returned null, preventing all stacking logic. OwnerPlayer is later used to giveitem (or drop) to fix other bugs.

What I did is allow stacking only if both items are empty of contents & magazine, or fuel for flamethrower & chainsaw.

As for water bottles/jugs that get all filled of fresh water, I commented the 1st "if" under OnItemSplit, so it does not fill them all on split.

I'm annoyed you say it's not a bug when it clearly is, but anyway, I'm open to share if you're interested. It could easily be made into a "fix" option too.

Thank you!

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.