1. then how i need edit plugin when i chnage something there .json .cs .lua or how?
     
  2. Wulf

    Wulf Community Admin

    The oxide/config files are .json, everything else is a plugin and goes under oxide/plugins. After you edit and save a config, you'd simply reload the plugin with "reload pluginname" in your server console or RCON.
     
  3. Tnx Bro!!!!! Now working! Only this version working!
     
    Last edited by a moderator: Sep 14, 2015
  4. You're welcome :)
     
  5. This does not work for me, can't see any errors though..
    [DOUBLEPOST=1442701122][/DOUBLEPOST]
    giving this one a shot
    [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
     
  6. Wulf

    Wulf Community Admin

    Use this for now: Welcome Gifts | Page 5 | Oxide.
     
  7. Ok, so where does the lua file go?
     
  8. Wulf

    Wulf Community Admin

    It's the plugin, same as the original. It goes under oxide/plugins.
     
  9. Then I need to contact Multiplay :)
     
  10. Wulf

    Wulf Community Admin

    I'll probably post @Norn's version, else see if he'd like to take it over.
     
  11. 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
        }
      }
    }
    Am i being stupid or ...?
     
  12. Wulf

    Wulf Community Admin

    Use Welcome Gifts | Page 5 | Oxide.
     
  13. Aaahh, That makes alot of sense. Thank you very much! Awesome job on the scripts :)
     
  14. I have checked my data files and there is no data file for this plugin, i would like to change something in the config so everyone gets the gift on respawn no data file.png
     
  15. Wulf

    Wulf Community Admin

    The plugin isn't fully working, it's on my list of ones to re-write in C#.
     
  16. 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?
     
  17. 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
  18. 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)
     
  19. 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:

  20. Upload the welcomegifts.json to your config folder the other to your plugins folder I have edited the script so you need to upload and overwrite. If you dont have the file from the data folder I can upload that if needed
     

    Attached Files:

    Last edited by a moderator: Jan 11, 2016