1. thomasfn submitted a new resource:

    Crafting Controller - Allows control over crafting, researching and studying.

    Read more about this resource...
     
  2. I can't seem to find the correct coding to this script(crafting_controller.txt). Can you help me with this or can you send me an already modified one?

    MY ATTEMPT:
    Code:
    {
        "BlockedResearching":
    "Explosive Charge": true, "9mm Pistol": true
        "BlockedCrafting":
    "Explosive Charge": true, "9mm Pistol": true
        "BlockedBlueprints":
    "Explosive Charge": true, "9mm Pistol": true
    }
     
    Last edited by a moderator: Jan 27, 2014
  3. I can't seem to find the correct coding to the crafting_controller.txt file. Can anyone help me with this or send me an already modified one?

    MY ATTEMPT:
    Code:
    {
    "BlockedResearching":
    "Explosive Charge": true, "9mm Pistol": true
    "BlockedCrafting":
    "Explosive Charge": true, "9mm Pistol": true
    "BlockedBlueprints":
    "Explosive Charge": true, "9mm Pistol": true
    }
     
  4. I can't seem to find the correct coding to the crafting_controller.txt file. Can anyone help me with this or send me an already modified one?

    MY ATTEMPT:
    Code:
    {
    "BlockedResearching":
    "Explosive Charge": true, "9mm Pistol": true
    "BlockedCrafting":
    "Explosive Charge": true, "9mm Pistol": true
    "BlockedBlueprints":
    "Explosive Charge": true, "9mm Pistol": true
    }
    
     
    Last edited by a moderator: Jan 26, 2014
  5. I think this may work.


    "BlockedResearching":

    {"Explosive Charge": true, "9mm Pistol": true}
     
  6. So i don't need "{" in it's own line like i have on mine right?
     
    Last edited by a moderator: Jan 7, 2014
  7. cheers
     
    Last edited by a moderator: Jan 7, 2014
  8. Whitespace has no effect. Read the little example I made. For multiple entries, Gary Harrison has the right idea - make sure to separate entries via a comma.
     
  9. Code:
    {
      "BlockedBlueprints": {
      "Explosive Charge Blueprint": true,
      "M4 Blueprint": true,
      "MP5A4 Blueprint": true,
      "F1 Grenade Blueprint": true,
      "Shotgun Blueprint": true,
      "BoltActionRifle Blueprint": true
      },
      "BlockedResearching": {
      "Explosive Charge": true,
      "M4": true,
      "MP5A4": true,
      "F1 Grenade": true,
      "Shotgun": true,
      "BoltActionRifle": true,
      "Pipe Shotgun": true
      },
      "BlockedCrafting": {
      "Explosive Charge": true,
      "M4": true,
      "MP5A4": true,
      "F1 Grenade": true,
      "Shotgun": true,
      "BoltActionRifle": true,
      "Pipe Shotgun": true
      }
    }
    Havent tryed that yet cuz my providers server got locked on "Stopped" so cant do anything.. guessing thats the right way to do it right?

    http://pastebin.com/XCMn18hr << thats a link how it looks like

    P.s http://pastebin.com/ is a great site to share text online and fast :)

    Updated!
     
    Last edited by a moderator: Jan 27, 2014
  10. Yep, looks good to me. Make sure to reference the blueprint items in blocked researching though, such as "Explosive Charge Blueprint". Also bolt action rifle has spaces I believe.
     
  11. i just took away the BP from the loots :) was not that hard. just made everything else i wanted a 1 and left the Gun BP on 0 :)

    But i do c what u mean! so cheers for that! when sitting and trying for hours its easy to forget :)[DOUBLEPOST=1389064872][/DOUBLEPOST]
    what made it hard to understand is that u had:

    {
    "BlockedBlueprints":[],
    "BlockedResearching":[],
    "BlockedCrafting":[]
    }

    those [] << made it so hard for me to understand :p they should not even be there right?
     
    Last edited by a moderator: Jan 7, 2014
  12. Enclose each section in curly brackets, like so:

    Code:
    {
    "BlockedResearching":
    { "Explosive Charge": true, "9mm Pistol": true },
    "BlockedCrafting":
    { "Explosive Charge": true, "9mm Pistol": true },
    "BlockedBlueprints":
    { "Explosive Charge": true, "9mm Pistol": true }
    }
     
  13. Thanks, I will try this and get back to you.
     
  14. Damn wow! Thanks for all the answers! <3

    Yeah the [] made it hard to understand
     
  15. i havent tryed it tho :) let me know how if it worked!

    Like i said i have problem with my provider and my server is locked :p
     
  16. Hey man, we had the same problem. Owner came up with this;
    Code:
    {
    "BlockedResearching":
    {
    "M4": true, "P250": true, "Shotgun":true, "MP5A4": true, "Flashlight Mod": true, "Holo sight": true, "Laser Sight": true, "Silencer": true
    }
    "BlockedCrafting":
    {
    "M4": true, "P250": true, "Shotgun":true, "MP5A4": true, "Flashlight Mod": true, "Holo sight": true, "Laser Sight": true, "Silencer": true
    }
    "BlockedBlueprints":
    {
    "M4": true, "P250": true, "Shotgun":true, "MP5A4": true, "Flashlight Mod": true, "Holo sight": true, "Laser Sight": true, "Silencer": true
    }
    } 
     
  17. Yeah, that was my issue at first, I thought it had to be in the brackets in order to work... But in the example I didnt even see brackets, I thought I was loosing it...

    Thanks for the helpful posts!

    And thanks for the script! This is yet another one I have been waiting for!
     
  18. Yes the [] in the default empty file is a product of the json encoder not quite knowing what to do with an empty table, I can see how it'd be confusing. Once you've figured it out, it shouldn't be hard to modify or make new entries - and most plugins I create will be using json so it's definitely worth learning how it works.
     
  19. i would love to c your loot_table.txt tho :) u should have it fairly balanced right now? :) if u want to share it that is
     
  20. The example loot tables I provided at the end of the "Loot Spawn Lists" plugin description are the ones I use on the official server.