thomasfn submitted a new resource:
Crafting Controller - Allows control over crafting, researching and studying.
Read more about this resource...
Crafting Controller [Unmaintained]
Discussion in 'Plugin Support' started by thomasfn, Jan 6, 2014.
-
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 -
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 }
-
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 -
I think this may work.
"BlockedResearching":
{"Explosive Charge": true, "9mm Pistol": true} -
Last edited by a moderator: Jan 7, 2014
-
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.
-
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 } }
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 -
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.
-
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]
{
"BlockedBlueprints":[],
"BlockedResearching":[],
"BlockedCrafting":[]
}
those [] << made it so hard for me to understandthey should not even be there right?
Last edited by a moderator: Jan 7, 2014 -
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 } }
-
Thanks, I will try this and get back to you.
-
Damn wow! Thanks for all the answers! <3
Yeah the [] made it hard to understand -
let me know how if it worked!
Like i said i have problem with my provider and my server is locked -
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 } }
-
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! -
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.
-
u should have it fairly balanced right now?
if u want to share it that is
-
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.