Some core things have changed and I need to update the plugin which I will try to do so as soon as I can.

Player Corpse Duration Modifier
Modify the length of which a player's corpse remains active in the world
Total Downloads: 6,017 - First Release: Jan 17, 2015 - Last Update: Feb 3, 2017
- 5/5, 24 likes
-
-
Greetings everyone. After last update I and my players faced the problem with fast disappearing bodies (about 3-4 minutes). And of course I immediately remembered about this nice plugin. But after installing and typing the /corpsetime 10 occurred next error :
Code:[Oxide] 12:37 AM [Error] Failed to call hook 'cmdCorpseDuration' on plugin 'm-DisappearingCorpses v1.0.3' File: m-DisappearingCorpses.lua Line: 187 attempt to call field 'QuoteSafe' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, 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
-
Hello,
Thank you for this essential plugin!
Please, please update ♥
: D
Shu -
Mughisi? Pleeeeeeease ♥♥♥
-
Yes. Pleaseeeeeeeeeeeee =)))
-
Try this. I think it works.
Attached Files:
-
-
Mughisi updated Player Corpse Duration Modifier with a new update entry:
2.0.0
-
Hello! Me again =(. Any ideas?
Code:[Oxide] 1:54 AM [Error] Failed to run a 1.00 timer in 'CorpseDuration v2.0.0' (NullReferenceException: ) [Oxide] 1:54 AM [Debug] at (wrapper managed-to-native) UnityEngine.MonoBehaviour:CancelInvoke (string) at BaseCorpse.ResetRemovalTime (Single dur) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CorpseDuration+<ResetTime>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0 at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0
-
I have the same error as above.
Code:[1/26/2016 7:05:34 PM] [Oxide] 7:05 PM [Error] Failed to run a 1.00 timer in 'CorpseDuration v2.0.0' (NullReferenceException: )
Code:[1/26/2016 7:05:34 PM] [Oxide] 7:05 PM [Debug] at (wrapper managed-to-native) UnityEngine.MonoBehaviour:CancelInvoke (string) at BaseCorpse.ResetRemovalTime (Single dur) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CorpseDuration+<ResetTime>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0 at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0
-
I can confirm the same error here as well on the new version. We are on Oxide version: 2.0.1740
-
Wulf Community Admin
-
Thank you Wulf. Thought that might be a possibility.
Will update on next reboot and report back after the update. -
I switched out something last minute, which is probably causing the error, while the error is annoying it won't prevent the plugin from doing what it is doing. Because the server automatically resets the time on certain actions the plugin uses a 1 second timer to alter the default reset. This reset is executed initially when the player dies and then every time someone stops looting the corpse and when the corpse is attacked.
So I am assuming that the error is caused by the last one, where a player is attacking a corpse and eventually killing it and that at that point the timer still runs one more time because of that final attack.
I am currently at work but I will try to get a fix out for it tonight when I get home.
Regarding the Oxide version, the plugin won't fully function yet until your server is using version 1742 where a hook was added to capture the on end looting event on entities. So if you are not running this version yet you might experience some issues with corpses disappearing at the default interval set by the server. -
-
Wulf Community Admin
-
I use Streamline and they use the Snapshots.
I updated it today when I restarted the server and got to 1742 -
-
Mughisi updated Player Corpse Duration Modifier with a new update entry:
2.0.1
-
I just tested on 15 minutes. It works perfectly.
THANK Mughisi!
It's cool ♥
Shu