AutoPurge

Moved

Total Downloads: 5,820 - First Release: Dec 27, 2015 - Last Update: Sep 18, 2017

5/5, 34 likes
  1. Will auto purge act on pasted buildings with no owner? I have a town with a bunch of huts I pasted, just don't want em to disapear in a few days when my purge kicks in.
     
  2. Nope...it purges only those Ents with OwnerID...and second protection would be the ownership by an admin.
     
  3. Code:
    (15:02:34) | [Oxide] 13:02 [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'AutoPurge v1.3.3' (NullReferenceException: Object reference not set to an instance of an object)
    (15:02:34) | [Oxide] 13:02 [Debug]   at Oxide.Plugins.AutoPurge.InitPlayer (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.AutoPurge.OnPlayerDisconnected (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.AutoPurge.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  4. Is it an one-time error or is it recurring?
     

  5. It occurs every time a hook is called.
     
  6. Only the OnPlayerDisconnected hook or other hooks as well? And would you be able to provide a full oxide log and perhaps the plugin's datafile as well?
     
  7. AutoPurge data file just contains "NULL"

    Sorry, only on player connect and player disconnect hooks.

    Code:
    [09/10/2016 15:04:18] [Oxide] 15:04 [Debug]   at Oxide.Plugins.AutoPurge.InitPlayer (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.AutoPurge.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.AutoPurge.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0[09/10/2016 15:01:09] [Oxide] 15:01 [Debug]   at Oxide.Plugins.AutoPurge.InitPlayer (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.AutoPurge.OnPlayerDisconnected (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.AutoPurge.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  8. Seems like your data file somehow corrupted. Unload the plugin, then delete the data file and after that reload the plugin again. This should create a new datafile which the plugin should be able to write to
     
  9. decay wall.frame.cell.gate floor.ladder.hatch in the zone arena
     
  10. AutoPurge is not a decay-plugin.
     
  11. Fujikura updated Auto Purge with a new update entry:

    1.4.0

     
  12. Awesome thanks. Also will apply your update.

    One thing I thought was a bit weird was my purge seemed to work fine but when loading the plugin it would say 0 players 0 minutes etc
     
  13. By default it should display this: Purge will be executed every: 6 hours, players become inactive after: 2 days.
     
  14. Awesome thanks. Also will apply your update.

    One thing I thought was a hit weird was my purge seemed to work fine but when loading the plugin it would say 0 players 0 minutes etc
    Hmm weird. I have mine set to 4 days and it's working fine. Just shows 0 on reload .
     
  15. Indeed, thats a bit strange...
     
  16. Yeh, I see this in the console on reload

    (11:05:00) | [Oxide] 03:04 [Info] [AutoPurge] Purge will be executed every: 0 minutes, players become inactive after: 0 minutes.

    Even though this is my config

    Code:
    {
      "Exclution": {
        "excludeGroupModerator": true,
        "excludeGroupOwner": true,
        "excludePermission": "autopurge.exclude"
      },
      "Generic": {
        "killSleepers": true,
        "logPurgeToFile": true,
        "purgeOnStart": false,
        "removeRecordAfterDays": 30,
        "removeRecordAfterPurge": true,
        "testMode": false,
        "useClansIO": true,
        "useFriendsApi": true
      },
      "Messaging": {
        "showMessages": true,
        "showMessagesAdminOnly": false
      },
      "Timing": {
        "inactiveAfter": 345600,
        "timerEnabled": true,
        "timerJob": 86400
      }
    }
     
  17. I loaded your numbers into mine config, and it seems, the display calculation is'nt able to show them correct. Thx for the info.
     
  18. Fujikura updated Auto Purge with a new update entry:

    1.4.1

     
  19. Code:
    (11:58:59) | [Oxide] 03:58 [Info] [AutoPurge] Purge will be executed every: 0 hours (1D | 0H | 0M | 0S)
    (11:58:59) | [Oxide] 03:58 [Info] [AutoPurge] Players become inactive after: 4 days (4D | 0H | 0M | 0S)
    Awesome, thanks

    quick question, does this plugin reset the timer when you reload the plugin? I'm pretty sure Anti Offline Raiding plugin does.
     
  20. mehhhhh...the hours is'nt shown correct at exactly 24H = 1D...shit^^