Jump to content

Backpack Lost When Switching Modes

Work in Progress 3.1.16

dustyhansen
dustyhansen

Posted (edited)

Sorry to report another issue, but I have the separate inventories disabled per our conversation in this ticket. I switched from admin mode to player mode and my backpack disappeared from my body and everything inside it as well as my hazmat suit I was wearing. I switched back to admin mode and they did not return. I don't think I lost anything in my actual inventory or hot bar.

So I am logging this as a separate bug, since I shouldn't lose/change any inventory items with my current settings.

Edited by dustyhansen
added additional info
dustyhansen

Posted

I just had this happen again. I switched from admin to player mode and lost my backpack and hazmat again.

Xray

Posted

If 
"Keep Separate Inventories": false,
Is disabled then my plugin doesn't touch your inventory
Perhaps you have assigned yourself 2 modes?
If you have assigned yourself 2 modes the one with highest Priority wins

Xray

Posted

Changed Status from Pending to Work in Progress

dustyhansen

Posted

2 hours ago, Xray said:

If 
"Keep Separate Inventories": false,
Is disabled then my plugin doesn't touch your inventory
Perhaps you have assigned yourself 2 modes?
If you have assigned yourself 2 modes the one with highest Priority wins

I shared my config with you in a separate thread, but will share it again. I have 2 modes, but both modes have separate inventories set to "false". And how would I assign myself 2 modes? Especially when my steam ID isn't allowed on the other mode?

AdminToggle (1).json

Xray

Posted

I see you have disabled "Keep Separate Inventories"
In both your 2 modes this means my plugin wont touch anyone's inventory 

dustyhansen

Posted

3 hours ago, Xray said:

I see you have disabled "Keep Separate Inventories"
In both your 2 modes this means my plugin wont touch anyone's inventory 

Then what would be causing me to lose my backpack and clothing when I switch modes?

Xray

Posted

If you're experiencing issues with the Backpack plugin try disabling this in AdminToggle.cs

Line 2273 till 2304
Simply comment it out like so

private void LockBackpack(BasePlayer player)
{
  /*
    DebugLog(DebugType.Method);

    if (Backpacks == null) { return; }
    var Mode = LevelHelper.Get(player);
    if (Mode == null) { return; }
    if ((Mode.SETTINGS.OnAdmin.Plugins.Blocked.All || Mode.SETTINGS.OnAdmin.Plugins.Blocked.Specfic.Backpacks))
    {
        var Backpack = Backpacks?.Call<ItemContainer>("API_GetBackpackContainer", player.userID);
        if (Backpack != null)
        {
            XLIB.PLAYER.Inventory.Utility.LockContainer(Backpack);
        }
    }
*/
}
private void UnLockBackpack(BasePlayer player)
{
/*
    DebugLog(DebugType.Method);

    if (Backpacks == null) { return; }
    var Mode = LevelHelper.Get(player);
    if (Mode == null) { return; }
    if ((Mode.SETTINGS.OnAdmin.Plugins.Blocked.All || Mode.SETTINGS.OnAdmin.Plugins.Blocked.Specfic.Backpacks))
    {
        var Backpack = Backpacks?.Call<ItemContainer>("API_GetBackpackContainer", player.userID);
        if (Backpack != null)
        {
            XLIB.PLAYER.Inventory.Utility.UnlockContainer(Backpack);
        }
    }
*/
}

 

dustyhansen

Posted

I don't have the backpack plugin. I lose my actual rust backpack and clothing.

Xray

Posted

I see what you mean now
Yes unfortunately my plugin doesn't support this new feature with backpacks within Rust
From what I  could there is no easy way to serialize the content of such a container

  • Confused 1
1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.3m

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.