Norn, you should add a console command to remove entities from a certain SteamID: RemoveSteamIDStructures(SteamID)
Cheers
AutoPurge
Moved
Total Downloads: 5,818 - First Release: Dec 27, 2015 - Last Update: Sep 18, 2017
- 5/5, 34 likes
-
Will this be something you would be willing to implement?
-
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
- (04:49:04) | Calling kill - but already IsDestroyed!? assets/prefabs/instruments/guitar/guitar.weapon.prefab[0]
- (04:49:04) | Calling kill - but already IsDestroyed!? assets/prefabs/locks/keypad/lock.code.prefab[0]
- (04:49:04) | Calling kill - but already IsDestroyed!? assets/prefabs/weapons/thompson/thompson.entity.prefab[0]
- (04:49:04) | Calling kill - but already IsDestroyed!? assets/prefabs/locks/keypad/lock.code.prefab[0]
- (04:49:04) | Calling kill - but already IsDestroyed!? assets/prefabs/tools/medical syringe/syringe_medical.entity.prefab[0]
- (04:49:05) | Calling kill - but already IsDestroyed!? assets/prefabs/locks/keylock/lock.key.prefab[0]
- (04:49:05) | Calling kill - but already IsDestroyed!? assets/prefabs/weapons/revolver/pistol_revolver.entity.prefab[0]
- (04:49:05) | Calling kill - but already IsDestroyed!? assets/prefabs/locks/keypad/lock.code.prefab[0]
- (04:49:05) | Calling kill - but already IsDestroyed!? assets/prefabs/locks/keypad/lock.code.prefab[0]
-
Last edited by a moderator: Jan 12, 2016 -
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.
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.
-
[AutoPurge] ERROR: One or more dependencies are missing, this plugin will not function.
I get this on startup but have both required dependencies installed -
This plugin is only like 30 lines, there isn't really much to go wrong
Unless ConnectionDB or EntityOwner bugs, but I doubt it. -
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.
-
-
-
I'm only guessing that's what's happening but oxide is quite smart so I'm not sure. -
-
-
-
-
[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."); } -
-
Attached Files:
-
-
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
-
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.