1. Got a little problem with this plugin, made me a config with Jedi's Crafting and Loottables Creator and now i get many errors. Before i use this new config, i used another which seems to work right, but unfortunately i was still able to learn the blocked blueprints. The oxidelog said x Blueprints were blocked, but i was able to lern them.

    Did i miss something in my config?
    Code:
    {
    "BlockedCrafting": {"Explosive Charge": true,
    "Explosives": true,
    "M4": true,
    "MP5A4": true,
    "P250": true},"BlockedBlueprints": {"Explosive Charge Blueprint": true,
    "M4 Blueprint": true,
    "MP5A4 Blueprint": true,
    "P250 Blueprint": true,
    "Shotgun Blueprint": true},"BlockedResearch": {"Explosive Charge": true,
    "M4": true,
    "MP5A4": true,
    "P250": true,
    "Shotgun": true},"blockblueprintsmessage": "This blueprint has been disabled.",
    "blockresearchmessage": "Researching this item has been blocked",
    "blockcraftingmessage": "Crafting this item has been blocked."
    }
    
     

    Attached Files:

  2. Not sure why mine isn't working... My config file below. Am I suppossed to change anything other than the config file?
    Code:
    {
      "BlockedBlueprints":   {
                                           "Explosives Blueprint" : true,
                                           "556 Ammo Blueprint" : true,
                                           "Shotgun Ammo Blueprint" : true,
                                           "P250 Blueprint" : true,
                                           "Shotgun Blueprint" : true,
                                           "F1 Grenade Blueprint" : true,
                                           "9mm Pistol Blueprint" : true,
                                           "Bolt Action Rifle Blueprint" : true,
                                           "MP5A4 Blueprint" : true,
                                           "M4 Blueprint" : true,
                                           "Explosive Charge Blueprint" : true,
                                           "Kevlar Boots Blueprint" : true,
                                           "Kevlar Pants Blueprint" : true,
                                           "Kevlar Vest Blueprint" : true,
                                           "Kevlar Helmet Blueprint" : true,
                                           "Rad Suit Boots Blueprint" : true,
                                           "Rad Suit Pants Blueprint" : true,
                                           "Rad Suit Vest Blueprint" : true,
                                           "Rad Suit Helmet Blueprint" : true,
                                           "Flashlight Mod Blueprint" : true,
                                           "Holo Sight Blueprint" : true,
                                           "Laser Sight Blueprint" : true,
                                           "Silencer Blueprint" : true,
                                           "Metal Door Blueprint" : true,
                                           "Metal Wall Blueprint" : true,
                                           "Metal Pillar Blueprint" : true,
                                           "Metal Doorway Blueprint" : true,
                                           "Metal Foundation Blueprint" : true,
                                           "Metal Ceiling Blueprint" : true,
                                           "Metal Window Blueprint" : true
                                           },
      "BlockedCrafting":      {
                                           "Explosives" : true,
                                           "556 Ammo" : true,
                                           "Shotgun Ammo" : true,
                                           "P250" : true,
                                           "Shotgun" : true,
                                           "F1 Grenade" : true,
                                           "9mm Pistol" : true,
                                           "Bolt Action Rifle" : true,
                                           "MP5A4" : true,
                                           "M4" : true,
                                           "Explosive Charge" : true,
                                           "Kevlar Boots" : true,
                                           "Kevlar Pants" : true,
                                           "Kevlar Vest" : true,
                                           "Kevlar Helmet" : true,
                                           "Rad Suit Boots" : true,
                                           "Rad Suit Pants" : true,
                                           "Rad Suit Vest" : true,
                                           "Rad Suit Helmet" : true,
                                           "Flashlight Mod" : true,
                                           "Holo Sight" : true,
                                           "Laser Sight" : true,
                                           "Silencer" : true,
                                           "Metal Door" : true,
                                           "Metal Wall" : true,
                                           "Metal Pillar" : true,
                                           "Metal Doorway" : true,
                                           "Metal Foundation" : true,
                                           "Metal Ceiling" : true,
                                           "Metal Window" : true
                                           },
      "BlockedResearching": {
                                           "Explosives" : true,
                                           "556 Ammo" : true,
                                           "Shotgun Ammo" : true,
                                           "P250" : true,
                                           "Shotgun" : true,
                                           "F1 Grenade" : true,
                                           "9mm Pistol" : true,
                                           "Bolt Action Rifle" : true,
                                           "MP5A4" : true,
                                           "M4" : true,
                                           "Explosive Charge" : true,
                                           "Kevlar Boots" : true,
                                           "Kevlar Pants" : true,
                                           "Kevlar Vest" : true,
                                           "Kevlar Helmet" : true,
                                           "Rad Suit Boots" : true,
                                           "Rad Suit Pants" : true,
                                           "Rad Suit Vest" : true,
                                           "Rad Suit Helmet" : true,
                                           "Flashlight Mod" : true,
                                           "Holo Sight" : true,
                                           "Laser Sight" : true,
                                           "Silencer" : true,
                                           "Metal Door" : true,
                                           "Metal Wall" : true,
                                           "Metal Pillar" : true,
                                           "Metal Doorway" : true,
                                           "Metal Foundation" : true,
                                           "Metal Ceiling" : true,
                                           "Metal Window" : true
                                           }
    }
     
    Last edited by a moderator: Feb 20, 2014
  3. If you're running on an HFB server you need to change the crafting controller txt file starting with cfg in oxide/data/

    I'm running into this error in my logs:
    Code:
    2:59 PM: -----------------------
    2:59 PM: 20 items have been blocked from crafting
    2:59 PM: ERROR: Lua error (craftingcontroller)
    mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\SamuelT\14076\save\oxide\pl..."]:34: bad argument #1 to 'pairs' (table expected, got nil)
      --- End of inner exception stack trace ---
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    : NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\SamuelT\14076\save\oxide\pl..."]:34: bad argument #1 to 'pairs' (table expected, got nil)
      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
    2:59 PM: Core init
    2:59 PM: Loading Oxmin...
    any suggestions?

    It looks like it's blocking the crafting items before spazzing out, though there is no mention of the blocked blueprints/research (a similar number of each should be mentioned).

    Any help appreciated!
     
    Last edited by a moderator: Feb 20, 2014
  4. My issue is that it says the JSON is valid, but you can still read the plans even though I have said plans blocked that are learnable. EDIT: Wrong post, but relevant to this one, the oxide log says everything loads, no errors, no lua issues.
     
    Last edited by a moderator: Feb 20, 2014
  5. Something strange happened:
    Code:
    10:15 AM: ERROR: craftingcontroller: [string "14774\save\oxide\pl..."]:63 - Invalid argument 1 to rust.NetUserFromNetPlayer (expecting uLink.NetworkPlayer, got string)
    10:15 AM: ERROR: craftingcontroller: [string "14774\save\oxide\pl..."]:63 - Invalid argument 1 to rust.NetUserFromNetPlayer (expecting uLink.NetworkPlayer, got string)
    
     
  6. I'm getting that too and strangely enough only with 1.13.1 and 1.15 (1.14 was fine). It blocks everything like it's supposed to, it's just that the player doesn't get a notice.
     
  7. 6:42 PM: 14 items have been blocked from crafting
    6:42 PM: ERROR: Lua error (craftingcontroller)
    mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\JamesL\17512\save\oxide\plu..."]:34: bad argument #1 to 'pairs' (table expected, got nil)
    --- End of inner exception stack trace ---
    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
    at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
    at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    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
    at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
    at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    : NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\JamesL\17512\save\oxide\plu..."]:34: bad argument #1 to 'pairs' (table expected, got nil)
    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


    Same issue as previous post. Can learn plans (even though I already removed them from drop tables) that are blocked, and it is not giving any feedback messages, the crafting creation just fails to work/research kits dont work, no message prompts.
     

    Attached Files:

  8. I have successfully blocked crafting of items, but I cannot block the researching. Any thoughts?

    Code:
    {
    "BlockedCrafting":
    {"Bolt Action Rifle": true,
    "M4": true,
    "MP5A4": true,
    "P250": true,
    "Shotgun": true},"BlockedBlueprints": {"9mm Blueprint": true,
    "Bolt Action Rifle Blueprint": true,
    "Explosive Charge Blueprint": true,
    "F1 Grenade Blueprint": true,
    "Flashlight Mod Blueprint": true,
    "Holo Sight Blueprint": true,
    "Kevlar Boots BP": true,
    "Kevlar Helmet BP": true,
    "Kevlar Pants BP": true,
    "Kevlar Vest BP": true,
    "Large Wood Storage Blueprint": true,
    "Laser Sight Blueprint": true,
    "M4 Blueprint": true,
    "MP5A4 Blueprint": true,
    "P250 Blueprint": true,
    "Shotgun Blueprint": true,
    "Silencer Blueprint": true},"BlockedResearch": {"Bolt Action Rifle": true,
    "M4": true,
    "MP5A4": true,
    "P250": true,
    "Paper": true,
    "Shotgun": true},"blockblueprintsmessage": "This blueprint has been disabled.",
    "blockresearchmessage": "This item is too complicated for you to craft.",
    "blockcraftingmessage": "Crafting this item has been blocked."
    }
    
     
  9. Hi All,

    If you're crafting controller doesn't appear to be adding the blocked reseach items check your spelling in the cfg. It should read 'BlockedResearching' ...not 'BlockedResearch'. I think those that used Jedi's crafting controller tool are generally affected, but its a very quick fix and should remove the an LUA issue too (at least on mine).

    Hope that helps =]
     
  10. Code:
    {
      "BlockedCrafting":[],
      "blockblueprintmessage":"This blueprint has been disabled.",
      "blockcraftingmessage":"Crafting this item has been blocked.",
      "BlockedResearching":[],
      "BlockedBlueprints":[],
      "blockresearchmessage":"Researching this item has been blocked."
    }
    That's the default cfg file. he need to fix BlockedResearch to BlockedResearching
    and change the {'s to ['s
     
  11. I eventually fixed it myself, but all I can say is spelling spelling spelling... Jedi's creator spells things wrong.
     
  12. Trying to get some stuff where you cannot research it but getting the following error

    Code:
    [Oxide] Lua error (craftingcontroller)
    mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\Cprl.Rst\1459\save\oxide\pl..."]:60: attempt to index field 'BlockedResearching' (a nil value)
      --- End of inner exception stack trace ---
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    : NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\Cprl.Rst\1459\save\oxide\pl..."]:60: attempt to index field 'BlockedResearching' (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 (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 
    using cfg_craftingcontroller.txt
    Code:
    {
    "BlockedCrafting": {},"BlockedBlueprints": {},"BlockedResearch": {"Explosives": true,
    "Metal Wall": true,
    "Metal Pillar": true,
    "Metal Foundation": true},"blockblueprintsmessage":"Definitely written in the wrong language.",
    "blockresearchmessage":"You don't quite know what you are doing with this.",
    "blockcraftingmessage":"You don't even know where to begin when crafting this."
    }
     
  13. Wulf

    Wulf Community Admin

    @Cprl.Rst change BlockedResearch to BlockedResearching.
     
  14. Ozi

    Ozi

    on 1.16b:


    Code:
    6:16 PM: ERROR: Error loading oxide!
    mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "craftingcontroller.lua"]:36: bad argument #1 to 'pairs' (table expected, got nil)
      --- End of inner exception stack trace ---
    
    [DOUBLEPOST=1393349895][/DOUBLEPOST]anyone can confirm this is not working with 1.16b? at least not for me...[DOUBLEPOST=1393355877][/DOUBLEPOST]


    I found the error. In the old cfg_craftingcontroller.txt the blocked items where in brackets "{". THe new requires "[...]" brackets... Dont ask me why or how :)
     
    Last edited by a moderator: Feb 25, 2014
  15. It works fine, but i get these errors:

    Code:
    11:19 PM: ERROR: craftingcontroller: [string "craftingcontroller.lua"]:101 - Invalid argument 1 to rust.NetUserFromNetPlayer (expecting uLink.NetworkPlayer, got string)
    11:19 PM: ERROR: craftingcontroller: [string "craftingcontroller.lua"]:101 - Invalid argument 1 to rust.NetUserFromNetPlayer (expecting uLink.NetworkPlayer, got string)
    Previously I had not this error. Maybe cause i have add the repair Bench?
     
  16. Ozi

    Ozi

    have you tried my solution?
     
  17. I get errors with jsonlint, but this setup works well, changing "{" with "["..:)
    Code:
    [
        "BlockedCrafting": [
            "Explosive Charge": true,
            "F1 Grenade": true,
            "Explosives": true,
            "P250": true,
            "M4": true,
            "MP5A4": true,
            "Bolt Action Rifle": true
        ],
        "blockblueprintmessage": "This blueprint has been disabled.",
        "blockcraftingmessage": "Crafting this item has been blocked.",
        "BlockedResearching": [
            "Explosive Charge": true,
            "F1 Grenade": true,
            "Bolt Action Rifle": true,
            "Explosives": true,
            "P250": true,
            "M4": true,
            "MP5A4": true,
            "Shotgun": true,
            "Kevlar Boots": true,
            "Kevlar Helmet": true,
            "Kevlar Pants": true,
            "Kevlar Vest": true
        ],
        "BlockedBlueprints": [
            "Explosive Charge Blueprint": true,
            "F1 Grenade Blueprint": true,
            "Bolt Action Rifle Blueprint": true,
            "P250 Blueprint": true,
            "M4 Blueprint": true
        ],
        "blockresearchmessage": "Researching this item has been blocked."
    ]
    :);)
     
  18. Hi,

    after update to dev 1.1b got these problem:
    Can connect to the server but stuck at: loading waiting for character screen. Press [ESC] and just black screen



    Without it everything works fine.

    Code:
    ERRORS:
    3:15 AM: ERROR: Error loading oxide!
    mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "craftingcontroller.lua"]:36: bad argument #1 to 'pairs' (table expected, got nil)
      --- End of inner exception stack trace ---
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at Oxide.Plugin.CallFunction (NLua.LuaFunction func, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugin.Call (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.PluginManager.Call (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Main.Load () [0x00000] in <filename unknown>:0
      at Oxide.Main..ctor () [0x00000] in <filename unknown>:0
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at Oxide.Plugin.CallFunction (NLua.LuaFunction func, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugin.Call (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.PluginManager.Call (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Main.Load () [0x00000] in <filename unknown>:0
      at Oxide.Main..ctor () [0x00000] in <filename unknown>:0
    : NLua.Exceptions.LuaScriptException: [string "craftingcontroller.lua"]:36: bad argument #1 to 'pairs' (table expected, got nil)
      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[code]Update:
    Used a new controller file and forgot to change " {" to "[" in case somebody got the same
     
    Last edited by a moderator: Feb 26, 2014
  19. [Oxide] craftingcontroller: [string "craftingcontroller.lua"]:101 - Invalid argument 1 to rust.NetUserFromNetPlayer (expecting uLink.NetworkPlayer, got string)