RHIB from cargo ship disappears even though claimed

I had a player tell me that this doesn't seem to work with the RHIB from the Cargo Ship. Is that correct? He has claimed several of them, put them within TC range and they all decay.

I see your message is describing different two things, vehicle ownership, and decay near TC.

If upon claiming the vehicle, a message is printed in chat saying that it was successful, then I presume this plugin is doing its job, meaning we can simply focus on the decay issue. There's not a lot that could interfere with Vehicle ownership unless you have another plugin that specifically alters that, such as Vehicle Locks (not to be confused with Vehicle Deployed Locks).

Focusing now on the decay issue, based on what you wrote, I'm guessing that you expect only owned vehicles to have no-decay, and to only have that effect near a TC. What plugin are you using to perform this function? If using Vehicle Decay Protection, you might be misunderstanding how that plugin works, since the decay protection near TC is independent of the no-decay permission. Nevertheless, if you are using both features of that plugin and configured it right, either of those features should be preventing decay in this scenario. Please share your config of that plugin, and confirm which permission you granted the player.

Have you tried reproducing what the player described?

Sorry, I wasn't thinking when I made my post. The no-decay part comes from another mod. By it decaying in range of a TC, it means the plugin doesn't recognize the RHIB from the Oil Rig as a claimed vehicle. I am clarifying with the player if he recieved a message after trying to claim the RHIB. 

I have not tried reproducing it but I have no reason to doubt his word.

Can you share what plugin you are using to prevent decay to vehicles, as well as how you've configured it?

6SfbLoa4ZYNG5MK.jpg WhiteThunder

Can you share what plugin you are using to prevent decay to vehicles, as well as how you've configured it?

https://umod.org/plugins/vehicle-decay-protection

I set "DecayMultiplierNearTC" to 0.0 for all vehicles so they won't decay when in range of a TC.

UgInyM717getr5o.jpg BetterDeadThanZed

https://umod.org/plugins/vehicle-decay-protection

I set "DecayMultiplierNearTC" to 0.0 for all vehicles so they won't decay when in range of a TC.

I see. That feature works entirely independent of permissions and vehicle ownership, so this plugin is not related to the issue the player reported.

I don't know why that feature wouldn't be working though. I would need to reproduce the issue to be able to fix it. If you can first reproduce and then give me the reproduction steps, that would be great.

The steps are take a RHIB from the cargo ship, park it within range of the TC and wait. From the Vehicle Decay Protection page:

"If you want to selectively reduce or nullify decay damage only for vehicles that are near a tool cupboard, for vehicles that have recently been used, or for vehicles owned by privileged players, then this plugin is for you."

"Vehicle ownership is determined by the OwnerID property of the vehicle, which is usually a player's Steam ID, or 0 for no owner. Most plugins that spawn vehicles for a player will assign that player as the owner. For vehicles spawned by the vanilla game, it's recommended to use one of the following plugins to grant vehicle ownership.

  • Vehicle Vendor Options - Automatically assigns ownership of vehicles purchased at vanilla NPC vendors if the player has permission
  • Claim Vehicle Ownership - Allows players with permission to claim ownership of unowned vehicles using a command on cooldown"
I'm just a little confused I guess. I was under the impression to prevent a vehicle from decaying within range of a TC, it needed to be claimed using this plugin. I thought that the reason it was decaying even within range of the TC was because maybe this plugin didn't work properly with a RHIB from the Cargo Ship. I suspect that's not the case, that those RHIBs are just like any other you might buy at the fishing village.
The steps are take a RHIB from the cargo ship, park it within range of the TC and wait.
I performed these exact steps earlier today and confirmed that the TC decay multiplier was working as expected. I tested with values 0, 0.1, 2.0.

Are you sure the plugin is loaded? Some folks recently had a compilation error after downloading the latest update. If you are not on a sufficiently new Oxide version, then the plugin will have failed to load. This was bolded in the update notes for v1.4.0, but if you downloaded the plugin for the first time this month, then you may have not seen that notice since I did not have it on the documentation. To test if the plugin can load successfully, simply run o.reload VehicleDecayProtection.

Sorry for the confusion with the plugin design for Vehicle Decay Protection. Originally, I did not have permissions in the plugin, but folks asked for a simple "no decay with permission" for VIPs. Since I didn't holistically design the plugin with all three of the decay protection types, I could see how it could be confusing.

I'm going by the word of my player who knows how it works. He claims that on 4 occasions the RHIB decayed in range of a TC. He placed a code lock on it (I have that mod too) and the server uses TruePVE so no one could have blown it up. The plugin is loaded. I started using it a few months ago when I first put my server online. I will check to see what Oxide version I'm on but it should be the latest. I use RSM to run my server and update everything.

SbP26d7UgC1VJNq.jpg BetterDeadThanZed

I'm going by the word of my player who knows how it works. He claims that on 4 occasions the RHIB decayed in range of a TC. He placed a code lock on it (I have that mod too) and the server uses TruePVE so no one could have blown it up. The plugin is loaded. I started using it a few months ago when I first put my server online. I will check to see what Oxide version I'm on but it should be the latest. I use RSM to run my server and update everything.

I see. One thing worth mentioning is that it's very unlikely for any other plugin to be able to interfere with how this plugin works, so we can probably rule out a plugin conflict.

The only idea I have at this point is based on how you phrased the player's experience. It sounds like they claim the RHIB disappeared, not that they have saw it actually take decay damage. Since that player is involved in the investigation, I suggest you ask them to drive a RHIB to their base, and leave it there for 1 hour, but not much longer, without mounting it. During the 45-60 minute mark, the boat should have taken sufficient decay damage to be showing as damaged (the health bar doesn't show until below a certain amount of health IIRC). For best results, the boat should be in deep water (> 4m, or just over one wall deep). If the boat is damaged and continues to take damage approximately every minute, then it is indeed decaying. If it does not decay under these circumstances, then you may have another culprit that is causing the boat to disappear.

The RHIB from the cargo ship is identified as such within the game code when it arrives on the ship, and will be automatically despawned, normally after the next cargo ship event. Occasionally it will be delayed until after two or sometimes three ship events, though I've never had the interest to try to determine why.

fNnTj2D3MGjniiL.jpg Roxette

The RHIB from the cargo ship is identified as such within the game code when it arrives on the ship, and will be automatically despawned, normally after the next cargo ship event. Occasionally it will be delayed until after two or sometimes three ship events, though I've never had the interest to try to determine why.

That certainly makes sense. Thank you!

lxHw5CldVRV8lE1.jpg Roxette

The RHIB from the cargo ship is identified as such within the game code when it arrives on the ship, and will be automatically despawned, normally after the next cargo ship event. Occasionally it will be delayed until after two or sometimes three ship events, though I've never had the interest to try to determine why.

Thank you for this insight. From what I can see, there is no code in the RHIB or CargoShip classes that directly despawns it. However, when the RHIB is spawned on the cargo ship, the enableSaving property is set to false. This means that when the server restarts, the RHIB will be gone.

@BetterDeadThanZed Can you confirm based on the player's account and restart times that the server restarted between the time they acquired the RHIB and the time they reported that it was gone?