then how i need edit plugin when i chnage something there .json .cs .lua or how?
Welcome Gifts [Unmaintained]
Discussion in 'Plugin Support' started by Wulf, Nov 1, 2014.
-
Wulf Community Admin
-
Last edited by a moderator: Sep 14, 2015
-
-
This does not work for me, can't see any errors though..
[DOUBLEPOST=1442701122][/DOUBLEPOST]
[DOUBLEPOST=1442719587,1442701089][/DOUBLEPOST]Code:[Oxide] 4:25 AM [Error] Failed to call hook 'OnPlayerInit' on plugin 'welcomegifts v0.1.2' File: welcomegifts.lua Line: 31 invalid arguments to method call: 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 [Oxide] 4:25 AM [Warning] CallHook 'OnPlayerInit' on plugin 'welcomegifts v0.1.2' took: 1016ms
-
Wulf Community Admin
-
-
Wulf Community Admin
-
-
Wulf Community Admin
-
So im having a problem. After setting up the config, New players don't get any items and somehow the layout of the config changed:
Code:"Settings": { "Gifts": { "building": { "planner": 1 }, "burlap": { "shirt": 1, "shoes": 1, "trousers": 1 }, "hammer": { "salvaged": 1 }, "knife": { "bone": 1 }, "smallwaterbottle": 5, "stonehatchet": 1, "wolfmeat": { "cooked": 5 }, "wood": 200 } } }
-
Wulf Community Admin
-
Aaahh, That makes alot of sense. Thank you very much! Awesome job on the scripts
-
Wulf Community Admin
-
Great mod for someone who doesn't want kits, Thanks very much! I have a quick question, though. It seems that after a server restart the file under \oxide\data\welcomegifts.json was wiped and everyone will receive the welcome gift again. Is there any way to prevent this? I have my server set for daily restarts to keep the server running smooth and I only want NEW players to get the items ONCE, not daily. Any way to do this?
-
New players still not getting anything, now i get this error message.
Code:[Oxide] 8:14 AM [Error] Failed to call hook 'OnPlayerInit' on plugin 'welcomegifts v0.1.2' File: welcomegifts.lua Line: 31 invalid arguments to method call: 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
Last edited by a moderator: Dec 20, 2015 -
I'm having the same problem as comment 116. I installed the file from page 5 but I'm getting the welcome gifts after each restart (24hr). Is there a way to prevent this? (I would do kits but I cant figure that 1 out)
-
I am still getting the same problem as before, as soon as a new player comes on i get the error message that it will not load, AND I do not have a welcome gifts config in the "data" section of my files only the "config"., I have attached the screens but will have to wait for next new player to get error pic
Attached Files:
-
-
Attached Files:
Last edited by a moderator: Jan 11, 2016 -