Customizable Airdrop Hotfix [Abandoned]
Discussion in 'Plugin Support' started by BedIntruder319, Dec 23, 2014.
-
-
-
And if you're receiving errors, you're better off putting them here so that the owner of the plugin can see them and can actually try to fix the problem instead of just ranting about having to test before releasing. -
today I used it the first time. I installed the latest version of Oxigin, so I installed the plugin, not touched in the config file, and got this:
5:46 AM [Info] Loading Oxide core...
5:46 AM [Info] Loading extensions...
5:46 AM [Info] Loaded extension Lua version 1.0.0 by Oxide Team
5:46 AM [Info] Loaded extension Rust version 1.0.0 by Oxide Team
5:46 AM [Info] Loaded extension Unity version 1.0.0 by Oxide Team
5:46 AM [Info] Loading plugins...
5:46 AM [Info] Loaded plugin Airdrops (v1.1.3) by BedIntruder319
5:46 AM [Info] Loaded plugin Rust Core (v1.0.0) by Oxide Team
5:46 AM [Info] Loaded plugin Unity Core (v1.0.0) by Oxide Team
5:46 AM [Info] -----------------------------
5:46 AM [Info] Airdrops: Loaded Successfully
5:46 AM [Info] -----------------------------
5:49 AM [Info] Airdrops: A Rust default airdrop event was prevented
5:51 AM [Error] airdrops: A .NET exception occured in user-code
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 (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
This is the full log, the server is 1169 -
i get that after some time too and also see alot of parachutes in the sky where they havent deleted or something also my cmd is spammed with
LuaScriptException: invalid arguments to method call
Rcon Exception
LuaScriptException: invalid arguments to method call
Rcon Exception
LuaScriptException: invalid arguments to method call
Rcon Exception
LuaScriptException: invalid arguments to method call
Rcon Exception
LuaScriptException: invalid arguments to method call
Rcon Exception
LuaScriptException: invalid arguments to method call
Rcon Exception
LuaScriptException: invalid arguments to method call
Rcon Exception
LuaScriptException: invalid arguments to method call
Rcon Exception
LuaScriptException: invalid arguments to method call -
) the first time a position is requested from an entity it returns a table instead of the required Vector3 which causes an error when you use '/airdrop <player>' for the first time (per player). Technically this isn't gamebreaking as when you call it again it will not throw the error and it'll just work.
-
-
Looks like your timer error is spamming the server and creates this overflow
-
because hes using a repeat timer to destory parachute lololol without atleast ending the timer this make infinite timers
[DOUBLEPOST=1419683225][/DOUBLEPOST]local ParachuteTimer = timer.Once(9, function() selfestroyParachute(Parachute, Supply_Drop) end)
change parachute destroy timer like that and the destory func like this
function PLUGINestroyParachute(parachute, supplydrop)
for i,sd in pairs(Parachutes) do
if (sd[1] == Parachute) then
parachute:KillMessage()
Parachutes[3]estroy()
end
end
Parachutes = {}
end
untested in theory should workLast edited by a moderator: Dec 27, 2014 -
-
Code:function PLUGIN:Unload() if (self.ParachuteTimer) then self.ParachuteTimer:Destroy() self.ParachuteTimer = nil end end
-
-
I see a lot of you are having issues with the plugin and are getting quiet upset about it. As stated by Mughisi and Reneb, two of these errors are not caused by the plugin. The chat spam is created from the /airdrop command, and to be frank I have never seen this during my testings. The other error, the .NET exception has been pointed out to be an error with the server lagging thus causing an issue with the timers. All of the timers are destroyed as they are stored in a table and the table is set to nil.
As many of you know it is the holidays. I cannot fix all of your issues the instant you post them. If you are having an issue you cannot live with, simply delete the plugin from your plugins folder. -
estroy().
Also want to point out to everyone else that a new snapshot for Oxide was released a few moments ago which introduced a small change to timers, now when a timer causes an error it will throw a proper error once and will then be destroyed which stops the infinite error loops. -
-
i fixed it the issue i said is 100% related to your plugin
Rcon Exception
LuaScriptException: invalid arguments to method call
console spaming that due to u using repeat timer instead of once timer on your destorying of the parachute -
-
now the parachute remain in sky . Is there any way to remove them ?
Attached Files:
-