Code:[07/07/2016 22:01:00] [Oxide] 22:00 [Error] Error while compiling MagicCraft.cs(155,64): error CS1501: No overload for method `CreateByItemID' takes `4' arguments

Magic Craft
Alternative crafting system
Total Downloads: 6,456 - First Release: Sep 18, 2015 - Last Update: Oct 13, 2017
- 5/5, 25 likes
-
Yup we need a fix
Still no fix :'(Last edited by a moderator: Jul 8, 2016 -
Any fix for the error ?
-
Any fix for the error ?
-
-
Yes I tryed this line but he doesn't give Xp
That's why I didn't post the fix -
Hi,
After the update the new system break the plugin like MagicCraft.
We found how to fix the line and make the plugin work.
However I don't have the code to give xp OnCraft, because when someone craft something with the bulkcraft he doesn't won XP
If someone can help me on the code ? -
-
how to allowed everyone from my server to use>?
-
-
-
I update the code to give xp when you craft womething. To win xp you need to craft one item, for example 1 Ak-47 give 10Xp But 2 Ak-47 Doesn't give 20Xp
You need to craft 2 Ak-47 not at the same time to win 20Xp (step by step) --> Like if you craft 999gun powder at the same time you just win 15Xp (Because is to much hard if you won 999*15Xp)
The code stop to give Xp when you are in level 50 for the craft only.
You can change the level max to stop win xp at line 159 (Notepad++)
Code:if (currentlevel<=51) {crafter.xp.Add(Definitions.Cheat, 10);}
And you can change how much Xp you win at the same line at the 10 in "(crafter.xp.Add(Definitions.Cheat, 10)" -
Code:
(08:54:44) | [Oxide] 08:55 [Error] MagicCraft.cs(163,29): error CS0104: `Convert' is an ambiguous reference between `System.Convert' and `Rust.Xp.Convert'
-
MrE
Thanks bro -
I dont see the magicCraft data folder
-
when i try to reload/load Magic Craft i get an error message:
Code:[Oxide] 21:03 [Error] Failed to call hook 'OnServerInitialized' on plugin 'MagicCraft v0.2.2' (JsonReaderException: Invalid character after parsing property name. Expected ':' but got: ". Path 'CraftList.antiradpills.Cooldown', line 161, position 5.) [Oxide] 21:03 [Debug] at Newtonsoft.Json.JsonTextReader.ParseProperty () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.ParseObject () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.ReadInternal () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0 [Oxide] 21:03 [Error] Failed to call hook 'OnItemCraft' on plugin 'MagicCraft v0.2.2' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 21:03 [Debug] at Oxide.Plugins.MagicCraft.OnItemCraft (.ItemCraftTask task, .BasePlayer crafter) [0x00000] in <filename unknown>:0 at Oxide.Plugins.MagicCraft.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
Last edited by a moderator: Sep 13, 2016 -
same i get that too
-
Make it better in percentage!
how in "CraftingController" -
But that to much when you craft more thant 3^10x -> x can be 10, 100, 1000, 10000. I don't now if you see what I mean ? look the screen.
ScreenshotAttached Files:
Last edited by a moderator: Jul 15, 2016 -
-
Thanks