Customizable Airdrop Hotfix [Abandoned]
Discussion in 'Plugin Support' started by BedIntruder319, Dec 23, 2014.
-
-
-
-
[Oxide] 9:14 PM [Error] airdrops: A .NET exception occured in user-code
at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unkn
own>:0
at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System
.Type[] returnTypes) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (ob
ject,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invoke
Attr, System.Reflection.Binder binder, System.Object[] parameters, System.Global
ization.CultureInfo culture) [0x00000] in <filename unknown>:0
maybe it will help -
-
BedIntruder319 updated Customizable Airdrop Hotfix with a new update entry:
No More Timers
-
Just a little side-note, the issue that was described earlier wasn't regarding server restarts but plugin reloads as the plugin creates the drop timer when it's loaded but the timer is never destroyed so it keeps running until the server restarts. When the plugin is reloaded in the meanwhile a new timer starts. So basically if you start your server and have the plugin running there will be no issues, but once that the plugin is reloaded another timer starts so now 2 crates will drop each hour (depending on the settings ofcourse), when it's reloaded another time the amount of crates that will drop increase again by one.
What you'll need to do to fix this is actually store the timer in a variable ( droptimer = timer.Repeat(...... ) and when the plugin is reloaded/unloaded you need to destroy the timer. To capture the reload/unload event you use the hook Unload, and you basically just destroy the timer there:
Code:function PLUGIN:Unload() dropTimer:Destroy() end
-
BedIntruder319 updated Customizable Airdrop Hotfix with a new update entry:
Timer Bug Fix 2.0
[DOUBLEPOST=1419540438][/DOUBLEPOST] -
REALM STACK IS : 1744 -
That's not an error it's à rust warning.
Dont think it has to do with the plugin.
Your server was probably lagging -
-
-
-
-
-
I've notice after few hours of running the server with your plugin the console start to spam like 3-4 messages at once from this type: LuaScriptException: invalid arguments to method call . The function that need fixing is this one: DestroyParachute(parachute, supplydrop) . You should look into it
-
-
-