Magic Craft

Alternative crafting system

Total Downloads: 6,456 - First Release: Sep 18, 2015 - Last Update: Oct 13, 2017

5/5, 25 likes
  1. 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
     
  2. Yup we need a fix

    Still no fix :'(
     
    Last edited by a moderator: Jul 8, 2016
  3. Any fix for the error ?
     
  4. Any fix for the error ?
     
  5. Here you go
     
  6. Yes I tryed this line but he doesn't give Xp
    That's why I didn't post the fix
     
  7. 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 ?
     
  8. You don't need XP, you will get like 10 levels in 10min crafting.
     
  9. how to allowed everyone from my server to use>?
     
  10. Permission magiccraft.able
     
  11. It's not the problem, I just want to add level when you craft something.
     
  12. 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);}
    The 51 like for example you want stop Xp craft at level 100 you need to write 100+1 to block at the level 100
    And you can change how much Xp you win at the same line at the 10 in "(crafter.xp.Add(Definitions.Cheat, 10)"
     
  13. 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'
    This file fix the last update:
     
  14. MrE
    Do you have de config file? I try to load this plugin but the config file aren't generated.Can you help me?
    Thanks bro
     
  15. I dont see the magicCraft data folder
     
  16. 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
  17. same i get that too
     

  18. Make it better in percentage!
    how in "CraftingController"
     
  19. Ok, I Don't now how did you get the error I fixed normaly, with the last file. Try it again with this one. (Don't miss to rename the file config -> oxide/config and data -> oxide/data)

    If I want to make it per percentage I need to create and function (on geogebra) with X And I don't now how to make it Croissant ? or Decroissant Expensive ? (like f(x) = SQRT(Exp(x)) -1 -> to have something correct)
    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.
    Screenshot
     

    Attached Files:

    Last edited by a moderator: Jul 15, 2016