1. My cfg_craftingcontroller.txt file with the following content, I would like someone to tell me if there is any error please because I've tried and I can always crafter Camp Fire for example I do not understand why there are not blocked.

    Code:
    {
    "blockresearchmessage":"Les recherches sont bloques.",
      "BlockedResearching": {
      "Explosive Charge": true,
      "M4": true,
      "MP5A4": true,
      "F1 Grenade": true,
      "Shotgun": true,
      "Bolt Action Rifle": true,
      "Pipe Shotgun": true
      },"blockcraftingmessage":"Vous devez acheter l'objet sur le commerce afin de l'avoir.",
      "BlockedCrafting": {
      "Camp Fire": true,
      "Explosive Charge": true,
      "M4": true,
      "MP5A4": true,
      "F1 Grenade": true,
      "Shotgun": true,
      "BoltActionRifle": true,
      "Pipe Shotgun": true
      },"blockblueprintmessage":"Les blueprint sont desactives.",
      "BlockedBlueprints": {
      "Explosive Charge Blueprint": true,
      "M4 Blueprint": true,
      "MP5A4 Blueprint": true,
      "F1 Grenade Blueprint": true,
      "Shotgun Blueprint": true,
      "BoltActionRifle Blueprint": true
      }
    }[DOUBLEPOST=1406323075][/DOUBLEPOST][quote="Tidav, post: 44789, member: 35561"]My cfg_craftingcontroller.txt file with the following content, I would like someone to tell me if there is any error please because I've tried and I can always crafter Camp Fire for example I do not understand why there are not blocked.{
    "blockresearchmessage":"Les recherches sont bloques.",
      "BlockedResearching": {
      "Explosive Charge": true,
      "M4": true,
      "MP5A4": true,
      "F1 Grenade": true,
      "Shotgun": true,
      "Bolt Action Rifle": true,
      "Pipe Shotgun": true
      },"blockcraftingmessage":"Vous devez acheter l'objet sur le commerce afin de l'avoir.",
      "BlockedCrafting": {
      "Camp Fire": true,
      "Explosive Charge": true,
      "M4": true,
      "MP5A4": true,
      "F1 Grenade": true,
      "Shotgun": true,
      "BoltActionRifle": true,
      "Pipe Shotgun": true
      },"blockblueprintmessage":"Les blueprint sont desactives.",
      "BlockedBlueprints": {
      "Explosive Charge Blueprint": true,
      "M4 Blueprint": true,
      "MP5A4 Blueprint": true,
      "F1 Grenade Blueprint": true,
      "Shotgun Blueprint": true,
      "BoltActionRifle Blueprint": true
      }
    }
    message close it's ok now for me :) just a reboot server and enjoy :)
     
    Last edited by a moderator: Aug 28, 2014
  2. Warning: Don't use it!

    It doesn't work! I trie ist out. First tim e it work on one of 4 items, the send try all things I can research, craft, and learn!

    Holy s....

    With that lagging mod you lose all your players!
     
  3. Wulf

    Wulf Community Admin

    It shouldn't cause any "lag" at all. I'd suggest checking your configuration. I use it for testing, and have been for quite some time.
     
  4. No, I use the json validator. Than I test it 3 times with my friend. First he cann't learn with a Kit the Explosive Charge (c4), but a few minutes later he are able to use a ResKit and lean it!!!! I make not change and the server is running the whole time....!

    That is the cfg:
    Code:
    {
        "BlockedCrafting": {
            "Explosive Charge": true,
            "Research Kit 1": true,
            "Bolt Action Rifle": true,
            "M4": true,
            "MP5A4": true,
            "P250": true,
            "Kevlar Pants": true,
            "Kevlar Vest": true,
            "Kevlar Helmet": true,
            "Kevlar Boots": true
        },
        "blockcraftingmessage": "Schade, es ist leider viel zu kompliziert für Dich.",
        "BlockedBlueprints": {
            "ExplosiveCharge": true,
            "BoltActionRifle": true,
            "M4": true,
            "MP5A4": true,
            "P250": true,
            "KevlarPants": true,
            "KevlarVest": true,
            "KevlarHelmet": true,
            "KevlarBoots": true
        },
        "blockblueprintmessage": "Mist, Du kannst diese Blueprint einfach nicht entziffern...",
        "BlockedResearching": {
            "ExplosiveCharge": true,
            "ResearchKit1": true,
            "BoltActionRifle": true,
            "M4": true,
            "MP5A4": true,
            "P250": true,
            "KevlarPants": true,
            "KevlarVest": true,
            "KevlarHelmet": true,
            "KevlarBoots": true
        },
        "blockresearchmessage": "Trotz aller Mühe, Du kannst die Sache einfach nicht herstellen."
    }
    Tell me the error, If you find one. Tks

    PS: Holy Shit: The json validator has deleting the space between the words...... Sorry, I try it out first...bevor I attack your work.....
     
    Last edited by a moderator: Aug 28, 2014
  5. Wulf

    Wulf Community Admin

    Not my work, just trying to help resolve issues. ;) Are you sure they aren't crafting the Explosive Charges using Explosives?

    Also, please use the code tags when posting configuration files. I've added it to your post above.
     
  6. Ok, I change the names, but now my friend is offline, I have to wait for a new test...but I promise to report about the results!
     
  7. Same problem. Doesn't works for me. Used Json validator.
     
  8. Wulf

    Wulf Community Admin

    Valid json doesn't mean you configured it right. I suggest looking at the examples under the Resources section or using a tool to help you.
     
  9. I know, just to say the problem doesn't comes from an invalid Json file. Btw, what do u mean by "ressources section"? And what tool for exemple?
    TY
     
  10. Wulf

    Wulf Community Admin

  11. Thank u but im running on OSX :/
     
  12. i only wanted 2 block Paper to be able 2 craft. My config:
    Code:
    {
    "BlockedCrafting": {
    "Paper": true
    },
    "BlockedBlueprints": {
    },
    "BlockedResearching": {
    },
    "blockblueprintsmessage": "This blueprint has been disabled.",
    "blockresearchmessage": "Researching this item has been blocked",
    "blockcraftingmessage": "Papier ist nicht herstellbar!"
    }
    what am i doing wrong?

    Kind regards
    Hanes
     
    Last edited by a moderator: Feb 15, 2015
  13. [Oxide] craftingcontroller: [string "craftingcontroller.lua"]:101 - Invalid argument 1 to rust.NetUserFromNetPlayer (expecting uLink.NetworkPlayer, got string)[DOUBLEPOST=1409913225][/DOUBLEPOST]
    FIX
     

    Attached Files:

    Last edited by a moderator: Sep 5, 2014
  14. I downloaded the plugin and it comes up with an error I copied and pasted to the JSON Validator and it was confirmed

    Error I get
    Parse error on line 1:
    PLUGIN.Title="Crafti
    ^
    Expecting '{', '['
     
  15. Wulf

    Wulf Community Admin

    The plugin is not JSON, it is Lua. Only the config file is JSON.
     
  16. Sorry I fixed the config and it works great....
     
  17. it goes? allow weapons and metal parts of buildings and just reduce them droprate?
    About c4, will drop just from airdrop? noncraftable.
    What I must edit in plugin, please?
     
  18. Wulf

    Wulf Community Admin

    This plugin is for restricting crafting, not changing loot.
     
  19. "This plugin is for restricting crafting, not changing loot."
    Aaaw, sorry man.
    New question for you Sir.


    How i will block craft to c4 for all?
     
  20. Wulf

    Wulf Community Admin