I'm not the developer of this plugin, and it is working fine for me.
Crafting Controller [Unmaintained]
Discussion in 'Plugin Support' started by thomasfn, Jan 6, 2014.
-
Wulf Community Admin
-
Code:
1:02 PM: ERROR: craftingcontroller: [string "C:\TCAFiles\Users\ThomasK\1988\save\oxide\plu..."]:63 - Invalid argument 1 to rust.NetUserFromNetPlayer (expecting uLink.NetworkPlayer, got string) 1:02 PM: ERROR: craftingcontroller: [string "C:\TCAFiles\Users\ThomasK\1988\save\oxide\plu..."]:63 - Invalid argument 1 to rust.NetUserFromNetPlayer (expecting uLink.NetworkPlayer, got string) 1:03 PM: ERROR: craftingcontroller: [string "C:\TCAFiles\Users\ThomasK\1988\save\oxide\plu..."]:63 - Invalid argument 1 to rust.NetUserFromNetPlayer (expecting uLink.NetworkPlayer, got string)
-
It doesnt seem to work for everyone, including me. Just a hint for the developer: there was a Change in the loottable (Zombie to AI). I manually edited this, but perhaps this is related to the Problem?
-
Hey for any HFB users, I was having an issue getting this to work. It seems the .txt file that controls the config is different in the mod vs. what HFB have set up in the control panel. If you use the File Manager and browse Oxide/data/ folder you'll likely see two files. Edit the one with the cfg_ prefix.
Once I had done this it was working fine for me. -
To make this clear: the plugin itsself seems to be working as crafting is blocked. But still i get the lua error -
The plugin works fine for 1.14, I specifically tested it. The only issue is that once the player takes or deals damage, attempts to craft/study/research restricted items will cause a Lua error and the notice won't be sent to them - this is a result of an ongoing issue as investigated here: http://oxidemod.org/threads/inventory-breaking-after-dealing-damage-any-ideas.1270/
-
I get the error when starting the Server, not only when s.o. wants to craft.
-
Wulf Community Admin
-
i already posted it, but i will do it again[DOUBLEPOST=1392564807][/DOUBLEPOST]9:23 AM: 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\kd19096\1259\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\kd19096\1259\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[DOUBLEPOST=1392575916,1392564772][/DOUBLEPOST]my Server experiences constant crashes and i think it might be related to this plugin because no plugins cause Errors than this. -
Seems to be a lot of conflicting info in this thread and also some examples which aren't even valid JSON.... here is a very basic valid config which is confirmed working on Multiplay servers. If you are just looking to simply stop crafting / researching / blueprints for explosives, explosive charge (C4) and F1 Grenade this is for you:
Code:{ "BlockedResearching": { "Explosive Charge": true, "F1 Grenade": true, "Explosives": true }, "BlockedCrafting": { "Explosive Charge": true, "F1 Grenade": true, "Explosives": true }, "BlockedBlueprints": { "Explosive Charge Blueprint": true, "F1 Grenade Blueprint": true, "Explosives Blueprint": true }, "blockresearchmessage": "This item is to complicated to learn how to make!", "blockcraftingmessage": "You are already missing a finger from last time you tried to make this!", "blockblueprintmessage": "This blueprint is in a language you do not understand!" }
-
well, mine is valid. And i dont think the error message is from the data txt but the lua itsself...
Code:{ "BlockedCrafting": {"556 Ammo": true, "Bolt Action Rifle": true, "Explosive Charge": true, "Explosives": true, "M4": true, "MP5A4": true, "Paper": true, "Kevlar Pants": true, "Kevlar Vest": true, "Kevlar Helmet": true, "Kevlar Boots": true},"BlockedBlueprints": {"Bolt Action Rifle Blueprint": true, "Explosive Charge Blueprint": true, "Kevlar Boots BP": true, "Kevlar Helmet BP": true, "Kevlar Pants BP": true, "Kevlar Vest BP": true, "M4 Blueprint": true, "MP5A4 Blueprint": true, "Kevlar Pants": true, "Kevlar Vest": true, "Kevlar Helmet": true, "Kevlar Boots": true},"BlockedResearch": {"556 Ammo": true, "Bolt Action Rifle": true, "Explosive Charge": true, "Explosives": true, "M4": true, "MP5A4": true, "Paper": true, "Kevlar Pants": true, "Kevlar Vest": true, "Kevlar Helmet": true, "Kevlar Boots": true},"blockblueprintsmessage": "This blueprint has been disabled.", "blockresearchmessage": "Researching this item has been blocked", "blockcraftingmessage": "Crafting this item has been blocked." }
-
Ozi, what happens if you have an empty config file, do you still get an error?
-
Just like one of the previous Oxide versions (1.12/1.13?) this plugin works, but it doesn't show the custom error message when it blocks research or crafting and generates an error in oxidelog.txt. I haven't experienced any CPU/memory issues or crashes while using this.
-
Code:
[Oxide] Error in timer (craftingcontroller) : NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\Amphysbaenas\2338\save\oxid..."]:252: attempt to perform arithmetic on field 'x' (a string 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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Main+<>c__DisplayClass4.<lua_NewTimer>b__2 () [0x00000] in <filename unknown>:0
-
@Amphysbaenas: That's not Crafting Controller, but another plugin that depends on coordinates (location/teleportation/etc.). Crafting Controller doesn't even have 252+ lines of code.
-
oxide 1.15 is out.
Any problem with Crafting Controller dev 1.1a?[DOUBLEPOST=1392665782][/DOUBLEPOST] -
Wulf Community Admin
-
i have problem after 1.15
[Oxide] craftingcontroller: [string "C:\...\...\...\1953\save\oxide\pl..."]:99 - Invalid argument 1 to rust.NetUserFromNetPlayer (expecting uLink.NetworkPlayer, got string)
basically is blocking the craft but no message appear -
The notices are still broken when blocking stuff, but that was to be expected as nothing really changed.
-
How to set Your CFG Work Tutorial:
(After wasting several hours i put this to help people)
1/ Stop server
2/ Put *.lua plugin in plugin floder
3/ Start server and connect. (this will create a cfg.txt file and connect to be sure the server is completely started)
4/ Disconnect and stop server ( to work on figed files)
5/ edit cfg.txt WITH THE PANNEL OF YOUR GSP file in data folder with a json parsed script ( http://jsonlint.com/ )
6/ Save the File choosing UNICODE
PS: Object names are bad
exp Research Kit 1 => Research Kit Blueprint
exp for some Blueprint it's Blueprint OR just BP
exp Holo sight againts Holo Sight
etc
Code:{ "BlockedResearching": { "M4": true, "MP5A4": true, "Shotgun": true, "P250": true, "9mm Pistol": true, "Laser Sight": true, "Silencer": true, "Holo sight": true, "Explosives": true, "Explosive Charge": true, "F1 Grenade": true, "Kevlar Pants": true, "Kevlar Vest": true, "Kevlar Helmet": true, "Kevlar Boots": true, "Rad Suit Helmet": true, "Rad Suit Vest": true, "Rad Suit Pants": true, "Rad Suit Boots": true, "Research Kit 1": true }, "blockblueprintmessage": "Vous n avez aucune idee de ce que raconte cette BluePrint.", "BlockedBlueprints": { "M4 Blueprint": true, "MP5A4 Blueprint": true, "Shotgun Blueprint": true, "P250 Blueprint": true, "9mm Pistol Blueprint": true, "Laser Sight BP": true, "Silencer BP": true, "Holo sight BP": true, "Explosive Charge Blueprint": true, "Explosives Blueprint": true, "F1 Grenade Blueprint": true, "Kevlar Pants BP": true, "Kevlar Vest BP": true, "Kevlar Helmet BP": true, "Kevlar Boots BP": true, "Rad Suit Helmet BP": true, "Rad Suit Vest BP": true, "Rad Suit Pants BP": true, "Rad Suit Boots BP": true, "Research Kit Blueprint": true }, "blockcraftingmessage": "C est bien au dela de vos competences de craft.", "BlockedCrafting": { "M4": true, "MP5A4": true, "Shotgun": true, "P250": true, "9mm Pistol": true, "Laser Sight": true, "Silencer": true, "Holo sight": true, "Explosive Charge": true, "Explosives": true, "F1 Grenade": true, "Kevlar Pants": true, "Kevlar Vest": true, "Kevlar Helmet": true, "Kevlar Boots": true, "Rad Suit Helmet": true, "Rad Suit Vest": true, "Rad Suit Pants": true, "Rad Suit Boots": true, "Research Kit 1": true }, "blockresearchmessage": "Vous restez confus devant votre feuille de papier." }
Now you know the right procedure and will not waste 5 hours of your time as meLast edited by a moderator: Feb 18, 2014