Jump to content

Inventory poofed on loggout.

Closed 3.1.15

Screepers
Screepers

Posted (edited)

I logged in, and all my items were gone.  Backpack, and all inventory.  My gear is admin gear.  My plugin backpacks was fine. 

Edited by Screepers
Xray

Posted

Changed Status from Pending to Work in Progress

Xray

Posted

Please share your config file

Screepers

Posted

{
  "MODES": [
    {
      "Permission": "master",
      "Priority": 999,
      "Master Level CAREFUL! (Enabling this does the following #Overrides priority, mode & permission system! #Allows to set/get modes for yourself or others! #Overrides limitations by current or lower modes": false,
      "Toggle Commands": [
        "admin",
        "mode"
      ],
      "Restrict Mode To Specfic SteamIds (Leave blank to disable)": [
        "76561198007819683"
      ],
      "Settings": {
        "On Admin": {
          "Require Reason": false,
          "Autorun Commands Use Forward Slash '/' For Chat-Commands & Leave It Blank For Console-Commands": [],
          "Toggle Groups To Grant (Leave blank to disable)": [
            "admin"
          ],
          "Specified Auth Level (1 = moderators, 2 = owners) Must either be 1 or 2 cannot be below or above": 2,
          "Keep Separate Inventories": true,
          "Teleport Back Upon Exiting": false,
          "Revert On Disconnect, Restart, Reload": false,
          "Ignore Server Violations (Bans, Kicks Etc) (Recommended to keep true)": true,
          "Blocked Commands": [],
          "Name Prefix Changes your name to a set prefix (Leave blank to disable)": "ADMIN",
          "Admin Outfit": {
            "Enabled": true,
            "Lock Outfit": false,
            "Settings": {
              "(Shortnam::SkinID)": [
                "hoodie::1234567890",
                "pants::1234567890",
                "shoes.boots::1234567890"
              ]
            }
          },
          "Notifications": {
            "Global Chat": {
              "Enabled": false,
              "Settings": {
                "Chat Icon (SteamID64)": 0,
                "Text Message Special Color (HEX) Example %message%": "#faaf19",
                "Text Message": "%{player.name}% Activated %{mode.permission}% Mode"
              }
            },
            "Self Chat": {
              "Enabled": true,
              "Settings": {
                "Chat Icon (SteamID64)": 0,
                "Text Message Special Color (HEX) Example %message%": "#faaf19",
                "Text Message": "%You% Activated %{mode.permission}% Mode"
              }
            },
            "Self Popup": {
              "Enabled": false,
              "Settings": {
                "Text Message Special Color (HEX) Example %message%": "#faaf19",
                "Text Message": "%You% Activated %{mode.permission}% Mode"
              }
            },
            "Self Sound": {
              "Enabled": false,
              "Settings": {
                "Sound (Prefab)": "assets/prefabs/misc/easter/painted eggs/effects/eggpickup.prefab"
              }
            },
            "Discord": {
              "Enabled": true,
              "Settings": {
                "Webhook": "https://discord.com/api/webhooks/1285099612562128896/-ywJ1TbyUWR-GVUWFxgYQcaU3G5XVk4CLqH0cMH8wZw3Tnrzzsx8TYGC_jzPKow7_Mwx",
                "Embed Color": 3315400
              }
            }
          },
          "Interface": {
            "Button": {
              "Enabled": true,
              "Settings": {
                "Opacity (0.0 to 1.0)": 0.64,
                "Active Color (HEX)": "#008000",
                "Inactive Color (HEX)": "#800000",
                "Active Text": "Activated",
                "Inactive Text": "Disabled",
                "Active Text Color (HEX)": "#ffffff",
                "Inactive Text Color (HEX)": "#ffffff",
                "Design (Advanced)": {
                  "Anchor": {
                    "Min Width (0.0 - 1.0)": 0.5,
                    "Min Height (0.0 - 1.0)": 0.0,
                    "Max Width (0.0 - 1.0)": 0.5,
                    "Max Height (0.0 - 1.0)": 0.0
                  },
                  "Offset": {
                    "Min Width (pixels)": 0,
                    "Min Height (pixels)": 0,
                    "Max Width (pixels)": 60,
                    "Max Height (pixels)": 60,
                    "Offset Points (Relative To Offset)": {
                      "Top (pixels)": 0,
                      "Bottom (pixels)": 18,
                      "Left (pixels)": 0,
                      "Right (pixels)": 263
                    }
                  }
                }
              }
            },
            "Panel": {
              "Enabled": true,
              "Settings": {
                "Text": "A D M I N   M O D E      A C T I V A T E D",
                "Text Color (HEX)": "#ffffff",
                "Pulse Duration ": 1.0,
                "Design (Advanced)": {
                  "Anchor": {
                    "Min Width (0.0 - 1.0)": 0.5,
                    "Min Height (0.0 - 1.0)": 0.0,
                    "Max Width (0.0 - 1.0)": 0.5,
                    "Max Height (0.0 - 1.0)": 0.0
                  },
                  "Offset": {
                    "Min Width (pixels)": 0,
                    "Min Height (pixels)": 0,
                    "Max Width (pixels)": 380,
                    "Max Height (pixels)": 20,
                    "Offset Points (Relative To Offset)": {
                      "Top (pixels)": 0,
                      "Bottom (pixels)": 82,
                      "Left (pixels)": 0,
                      "Right (pixels)": 200
                    }
                  }
                }
              }
            },
            "Menu": {
              "Enabled": true,
              "Settings": {
                "Opacity (0.0 to 1.0)": 0.64,
                "Not Found Color (HEX)": "#000000",
                "Active Color (HEX)": "#008000",
                "Inactive Color (HEX)": "#800000",
                "Text Color (HEX)": "#ffffff",
                "Design (Advanced)": {
                  "Anchor": {
                    "Min Width (0.0 - 1.0)": 1.0,
                    "Min Height (0.0 - 1.0)": 0.0,
                    "Max Width (0.0 - 1.0)": 1.0,
                    "Max Height (0.0 - 1.0)": 0.0
                  },
                  "Offset": {
                    "Min Width (pixels)": 0,
                    "Min Height (pixels)": 0,
                    "Max Width (pixels)": 180,
                    "Max Height (pixels)": 81,
                    "Offset Points (Relative To Offset)": {
                      "Top (pixels)": 0,
                      "Bottom (pixels)": 16,
                      "Left (pixels)": 0,
                      "Right (pixels)": 392
                    }
                  }
                }
              }
            }
          },
          "Actions": {
            "Allow All Actions (Overrides Specfic Actions)": false,
            "Allow Specfic Actions": {
              "Can Build": true,
              "Can Craft": true,
              "Can Loot Players": true,
              "Can Loot Entities": true,
              "Can Damage Structures": true,
              "Can Interact With Items In Weapons Category": true,
              "Can Hurt Players": true,
              "Can Drop Items": true
            }
          },
          "Third-Party Plugins": {
            "Autorun Plugins": {
              "Autorun All": false,
              "Autorun Specfic": {
                "AdminRadar": true,
                "Vanish": true,
                "Godmode": true
              }
            },
            "Blocked Plugins": {
              "Block All": false,
              "Block Specfic": {
                "Backpacks": false,
                "AdminRadar": false,
                "Vanish": false,
                "Godmode": false
              }
            }
          }
        },
        "On Player": {
          "Autorun Commands Use Forward Slash '/' For Chat-Commands & Leave It Blank For Console-Commands": [],
          "Toggle Groups To Revoke (Leave blank to disable)": [
            "admin"
          ],
          "Notifications": {
            "Global Chat": {
              "Enabled": false,
              "Settings": {
                "Chat Icon (SteamID64)": 0,
                "Text Message Special Color (HEX) Example %message%": "#faaf19",
                "Text Message": "%{player.name}% Returned To %Player% Mode"
              }
            },
            "Self Chat": {
              "Enabled": true,
              "Settings": {
                "Chat Icon (SteamID64)": 0,
                "Text Message Special Color (HEX) Example %message%": "#faaf19",
                "Text Message": "%You% Returned To %Player% Mode"
              }
            },
            "Self Popup": {
              "Enabled": false,
              "Settings": {
                "Text Message Special Color (HEX) Example %message%": "#faaf19",
                "Text Message": "%You% Returned To %Player% Mode"
              }
            },
            "Self Sound": {
              "Enabled": false,
              "Settings": {
                "Sound (Prefab)": "assets/prefabs/misc/easter/painted eggs/effects/eggpickup.prefab"
              }
            },
            "Discord": {
              "Enabled": true,
              "Settings": {
                "Webhook": "https://discord.com/api/webhooks/1286585333709803520/tXsd8RexpDZ1MNIUQn0209-LJCSDuOCSLSzmlzXM3HF04mFGkv_Fa8GxW8i7pkHHbdGK",
                "Embed Color": 3315400
              }
            }
          },
          "Blocked Commands": [
            "god",
            "vanish",
            "freeze",
            "spectate"
          ],
          "Third-Party Plugins": {
            "Blocked Plugins": {
              "Block All": false,
              "Block Specfic": {
                "AdminRadar": false,
                "Vanish": false,
                "Godmode": false
              }
            }
          }
        }
      }
    }
  ]
}

Xray

Posted

I have tested my plugin with your configuration, and I was unable to reproduce the error.

Are you running with Carbon or Oxide?

Do you have any other plugins that might conflict with the inventory?

Screepers

Posted

I'm sure not related, just wanted to inform you (if you did not know, tho you probably do) about a probably memory leak.

 

Xray

Posted

On 9/30/2024 at 7:27 PM, Screepers said:

I'm sure not related, just wanted to inform you (if you did not know, tho you probably do) about a probably memory leak.

 

I have no clue how to manage to achieve that.
I tested extensively over on my development sever for 48 hours but never managed to get near that.

Screepers

Posted

I believe you, I was surprised when I saw that too.

Screepers

Posted

AdminToggle - Failed to compile: 'PlayerInventory' does not contain a definition for 'AllItems' and no accessible extension method 'AllItems' accepting a first argument of type 'PlayerInventory' could be found (are you missing a using directive or an assembly reference?) | Line: 3571, Pos: 87

 

Xray

Posted

10 hours ago, Screepers said:

AdminToggle - Failed to compile: 'PlayerInventory' does not contain a definition for 'AllItems' and no accessible extension method 'AllItems' accepting a first argument of type 'PlayerInventory' could be found (are you missing a using directive or an assembly reference?) | Line: 3571, Pos: 87

 

Download latest version 3.1.16 or checkout -> https://codefling.com/files/sc/16093-plugin-broken-with-last-patch/?do=findComment&comment=78874

Xray

Posted

14 hours ago, Screepers said:

I believe you, I was surprised when I saw that too.

The only thing i could think of to be a little issue is this
 

         "Panel": {
              "Enabled": true,
              "Settings": {
                "Text": "A D M I N   M O D E      A C T I V A T E D",
                "Text Color (HEX)": "#ffffff",
                "Pulse Duration ": 1.0,
                "Design (Advanced)": {
                  "Anchor": {
                    "Min Width (0.0 - 1.0)": 0.5,
                    "Min Height (0.0 - 1.0)": 0.0,
                    "Max Width (0.0 - 1.0)": 0.5,
                    "Max Height (0.0 - 1.0)": 0.0
                  },
                  "Offset": {
                    "Min Width (pixels)": 0,
                    "Min Height (pixels)": 0,
                    "Max Width (pixels)": 380,
                    "Max Height (pixels)": 20,
                    "Offset Points (Relative To Offset)": {
                      "Top (pixels)": 0,
                      "Bottom (pixels)": 82,
                      "Left (pixels)": 0,
                      "Right (pixels)": 200
                    }
                  }
                }
              }
            }

Because it re-renders every 1.0 seconds.
perhaps try to disable it, and see if you still have the issue.

Xray

Posted

Changed Status from Work in Progress to Closed

Screepers

Posted

so I was able to replicate the stuff going poof.  I was in admin mode, and had to reboot server for a different reason.  I logged back on, swapped to player mode, and all my gear go poof.

Xray

Posted

Maybe just switch out of admin mode before rebooting your server?

If in admin mode & you reboot the server the plugin might not be able to restore & update the player inventory

Xray

Posted

Changed Status from Closed to Work in Progress

Screepers

Posted

once I've figured that part out, that is my current workaround.  That and using paranoia by putting all my loot in a box 🙂

Thank you very much for taking the time to respond and help.

Screepers

Posted

FYI:  I was also experiencing a major issue constantly getting stuck on the terrain.  So I added a 1m to the teleport component, and that helped a lot.  

else { XLIB.PLAYER.Location.Utility.Teleport(player, new Vector3(player.transform.position.x, TerrainMeta.HeightMap.GetHeight(player.transform.position)+1.0f, player.transform.position.z)); }

Screepers

Posted

Also:  03 "AdminToggle" (3.1.16) by InfinityNet/Xray (0.36s / 130 MB) - AdminToggle.cs  the memory usage is MUCH MUCH better!  Thank you!

Xray

Posted

Changed Status from Work in Progress to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

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.