AutoPurge

Moved

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

5/5, 34 likes
  1. Norn, you should add a console command to remove entities from a certain SteamID: RemoveSteamIDStructures(SteamID)

    Cheers
     
  2. Will this be something you would be willing to implement?
     
  3. Hey Norn,

    We gave this a go and it didn't remove anything after setting it to 2 days (we've ahd the pre-reqs running all wipe) so I changed it to 36 hours instead, it then started to spam the console with Calling Kill as soon as I saved. It did this for 5 mins until I rebooted the server :eek:

    1. (04:49:04) | Calling kill - but already IsDestroyed!? assets/prefabs/instruments/guitar/guitar.weapon.prefab[0]
    2. (04:49:04) | Calling kill - but already IsDestroyed!? assets/prefabs/locks/keypad/lock.code.prefab[0]
    3. (04:49:04) | Calling kill - but already IsDestroyed!? assets/prefabs/weapons/thompson/thompson.entity.prefab[0]
    4. (04:49:04) | Calling kill - but already IsDestroyed!? assets/prefabs/locks/keypad/lock.code.prefab[0]
    5. (04:49:04) | Calling kill - but already IsDestroyed!? assets/prefabs/tools/medical syringe/syringe_medical.entity.prefab[0]
    6. (04:49:05) | Calling kill - but already IsDestroyed!? assets/prefabs/locks/keylock/lock.key.prefab[0]
    7. (04:49:05) | Calling kill - but already IsDestroyed!? assets/prefabs/weapons/revolver/pistol_revolver.entity.prefab[0]
    8. (04:49:05) | Calling kill - but already IsDestroyed!? assets/prefabs/locks/keypad/lock.code.prefab[0]
    9. (04:49:05) | Calling kill - but already IsDestroyed!? assets/prefabs/locks/keypad/lock.code.prefab[0]
     
  4. Those are oxide warnings, can you tell me if there are any errors in the actual plugin in your logs? Cheers

    [​IMG]
     
    Last edited by a moderator: Jan 12, 2016
  5. Code:
    [1/11/2016 6:55:37 AM] [Oxide] 6:55 AM [Info] Loaded plugin AutoPurge v0.1.0 by Norn
    [1/11/2016 6:55:37 AM] [Oxide] 6:55 AM [Info] [AutoPurge] ERROR: One or more dependencies are missing, this plugin will not function.
    I have entity owner and connectiondb installed as well. I did a force run and I get this

    Code:
    [1/12/2016 6:34:14 AM] [Oxide] 6:34 AM [Info] [AutoPurge] Executing purge from external command...
    [1/12/2016 6:34:16 AM] [Oxide] 6:34 AM [Info] [AutoPurge] Nothing to remove... up to date.
    I looked on logs for all days since wipe on Thursday nothing else but the top error on reboot of server
     
  6. [AutoPurge] ERROR: One or more dependencies are missing, this plugin will not function.
    I get this on startup but have both required dependencies installed
     
  7. Probably because this plugin begins with "A" thus is loaded before those two, if you reload it when the server is properly initialized it should be fine.

    This plugin is only like 30 lines, there isn't really much to go wrong

    Unless ConnectionDB or EntityOwner bugs, but I doubt it.
     
  8. so I reloaded plugin then tried again the autopurge.run in console and still said up to date which I highly doubt as it's about to be 5 days since wipe and I left default settings and it has removed no entities since wipe as I just went day by day of logs with nothing to find with AutoPurge. I know I do go around and wipe raided bases but there has to be something I have missed that is not getting wiped.
     
  9. Yep either EntityOwner or ConnectionDB has stopped working for you, or you're missing either of them. I suggest wiping cached data files from all plugins and reloading them. If you look at my script you'll see all it does is call hooks from EntityOwner & ConnectionDB.
     
  10. Then can you fix the plugin so it checks that the plugins needed are installed when it starts to load this so it does not come up with that message
     
  11. There's nothing wrong with the plugin.

    I'm only guessing that's what's happening but oxide is quite smart so I'm not sure.
     
  12. Can you have a look at the plugin to see what you can do maybe an extra line of code or a small rewrite will fix the problem
     
  13. I'll have a look but I can't replicate the issue so it's gonna be hard
     
  14. Start your server and check logs you should see the message
     
  15. I don't get it, hence why I said I can't replicate. Wait for an update.
     
  16. The message comes up in the Log.Log
    [1/12/2016 2:31:04 PM] [Oxide] 2:30 PM [Info] Loaded plugin AutoPurge v0.1.0 by Norn
    [1/12/2016 2:31:04 PM] [Oxide] 2:30 PM [Info] [AutoPurge] ERROR: One or more dependencies are missing, this plugin will not function.

    Comes from line 53 of the script
    } else { Puts("ERROR: One or more dependencies are missing, this plugin will not function."); }
     
  17. Please read
     
  18. I have both of the other plugins needed this is why I am asking for a rewrite as it should not be coming up as I have them installed
     

    Attached Files:

  19. so I removed plugin and put it back in and force autopurge.run and now got an error because on connection I see connectiondb working and I only use entity owner I already changed tp and remover tool to work with it.
    Code:
    4:29 PM [Info] [AutoPurge] Executing purge from external command...
    4:29 PM [Error] Failed to call hook 'ccmdRunPurge' on plugin 'AutoPurge v0.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    4:29 PM [Debug]   at Oxide.Plugins.AutoPurge.PurgeMessage (Int32 type, Int32 count, Int32 unique_hits) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.AutoPurge.MainTimer () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.AutoPurge.ccmdRunPurge (.Arg arg) [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 (System.Reflection.MethodInfo 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 hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    4:29 PM [Warning] CallHook 'ccmdRunPurge' on plugin 'AutoPurge v0.1.0' took: 3070ms
     
  20. This is probably a stretch but is it possible to link up with Clan IO. Alot of our players have large clan bases and some clan members dont come on for a bit but the others still use it.