Also on BlockedCrafting, there's also an extra comma at the end of the Bolt Action Rifle line.
Crafting Controller [Unmaintained]
Discussion in 'Plugin Support' started by thomasfn, Jan 6, 2014.
-
I am trying to use this plugin on my Multiplay server. It passes JSON validation tests, however I can still craft, use blueprints, etc of these weapons. Is there something I did wrong in the configuration?
Code:{ "BlockedCrafting": { "Explosive Charge": true, "Bolt Action Rifle": true, "Hand Cannon": true, "Pipe Shotgun": true, "9mm Pistol": true, "P250": true, "Shotgun": true, "M4": true, "MP5A4": true, "F1 Grenade": true }, "BlockedBlueprints": { "Explosive Charge": true, "Bolt Action Rifle": true, "Hand Cannon": true, "Pipe Shotgun": true, "9mm Pistol": true, "P250": true, "Shotgun": true, "M4": true, "MP5A4": true, "F1 Grenade": true }, "BlockedResearching": { "Explosive Charge": true, "Bolt Action Rifle": true, "Hand Cannon": true, "Pipe Shotgun": true, "9mm Pistol": true, "P250": true, "Shotgun": true, "M4": true, "MP5A4": true, "F1 Grenade": true } }
-
To block a blueprint you have to use the name of the blueprint, not the item name, e.g "Explosive Charge Blueprint": true
-
thomasfn updated Crafting Controller with a new update entry:
Update to Oxide 1.8
-
In our "cfg_craftingcontroller.txt" I see the following:
{
"BlockedCrafting":[],
"BlockedBlueprints":[],
"BlockedResearching":[],
"blockresearchmessage":"Researching this item has been blocked.",
"blockblueprintmessage":"This blueprint has been disabled.",
"blockcraftingmessage":"Crafting this item has been blocked."
}
Can anyone provide assistance on how to properly format this as to only block explosive charges across the board (crafting/bps/researching). It seems to be a different format than that of previous posters on this thread given the different bracket types.
Thanks! -
[BAW] -HolySh0t I have the same issue right now, I've been messing with this for 2 hours now
-
@KBz | juggedout :
I think those second "more square brackets" were just place holders here is what I wrote:
{
"BlockedCrafting": {
"Explosive Charge": true
},
"BlockedBlueprints": {
"Explosive Charge Blueprint": true
},
"BlockedResearching": {
"Explosive Charge": true
},
"blockresearchmessage": "Researching this item has been blocked.",
"blockblueprintmessage": "This blueprint has been disabled.",
"blockcraftingmessage": "Crafting this item has been blocked."
}
JSON Validated -
Samr here, when I block explosives crafting it makes explosives instacraft -
Is that working for you currently? I tried it and I still have no luck. -
Just as a reference, the file should now be called "cfg_craftingcontroller.txt" as it uses the new config system.
-
When I did a copy paste from the thread, it slightly changed the spacing. I fixed the spacing and it now seems to be working.
-
Yeah just make sure you put it through JSON, validate it, and copy that exactly into the cfg. The formatting on here probably would've messed it up when I pasted it to show you.
-
Is this working in 1.8.2 ?
-
same question ^
-
^
It does, however the file name of the txt has changed from crafting_controller.txt to cfg_craftingcontroller.txt. So the lua will be looking for the latter. In my case I still had the former and no matter how I formatted it it wouldn't work till I noticed "cfg_craftingcontroller.txt" on the overview. In short, have the 1.8 lua and the cfg_craftingcontroller.txt with the text juggedout provided above (run it trough JSON) inside it, restart server and it should work fine, did by me. -
Also there are 3 new entries on the config file:
Code:"blockcraftingmessage":"Crafting this item has been blocked.", "blockblueprintmessage":"This blueprint has been disabled.", "blockresearchmessage":"Researching this item has been blocked.",
-
typo
-
For me it does not work with 1.8.2
-
Cfg_Crafting.txt I think it was called
-
clean install of this mod and its not working
Code:{ "blockcraftingmessage": "Crafting this item has been blocked.", "BlockedCrafting": [ { "Explosive Charge": true }, { "M4": true }, { "556 Ammo": true } ], "blockresearchmessage": "Researching this item has been blocked.", "BlockedResearching": [], "BlockedBlueprints": [], "blockblueprintmessage": "This blueprint has been disabled." }
3 items have been blocked from crafting
But i'm still able to take the M4 Blueprint, study it, then craft it.