FurnaceSplitter

Moved

Total Downloads: 9,005 - First Release: Apr 9, 2017 - Last Update: Apr 20, 2018

5/5, 31 likes
  1. That's strange.

    This is the code that's failing:
    Code:
    public static float GetWorkTemperature(BaseOven oven)
    {
        var property = oven.GetType().GetProperty("cookingTemperature", BindingFlags.Instance | BindingFlags.NonPublic);
        return (float)property.GetValue(oven, null);
    }
    The property (cookingTemperature) exists as a private float in the current rust/oxide build, it's been that way for years.

    I can only imagine it's the GetProperty failing because oven is null, or because the cookingTemperature property can't be found. Neither makes sense because the call to GetWorkTemperature always makes sure the oven is not null.

    Can you try the embedded version? It has some more error checking.
     

    Attached Files:

  2. Just uploaded it then :)
     
  3. Version 2.0.1 sometimes stops working.
    Installed version 1.2.0 back. Works stably.
     
  4. Can you expand on that? Any errors in the console or describe what stops working?
     
  5. is it possible to edit the smelt-timer so it matches the x5 smelt or the x10 smelt for example?
     
  6. Should work fine unless the plugin you're using does something weird to modify smelt times. I've tested with Quicksmelt and that one works fully.
     
  7. Doesn't seem to be working for my server. Checked settings in oxide/data/FurnaceSplitter.json and all users have "Enabled": True. Any idea what I'm doing wrong?
     
  8. Code:
    grant group default furnacesplitter.use 
     
  9. can you add config
    {
    "maxx": 0.0,
    "maxy": 0.0,
    "minx": 0.0,
    "miny": 0.0
    }

    to change Furnace Splitter place in game ?
     
  10. There are no errors. Just the plugin does not work. Does not display anything.
    [DOUBLEPOST=1495258215][/DOUBLEPOST]Tell me, in version 1.2.0 on which line of code to change the number of slots for a small furnace by default?
     
  11. does not work
     
  12. Code:
    (20:32:04) | at Oxide.Plugins.FurnaceSplitter.GetEnabled (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter+<CanMoveItem>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory playerLoot, UInt32 targetContainer, Int32 targetSlot) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (20:32:05) | Failed to call hook 'CanMoveItem' on plugin 'FurnaceSplitter v2.0.1' (NullReferenceException: Object reference not set to an instance of an object)
    (20:32:05) | at Oxide.Plugins.FurnaceSplitter.GetEnabled (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter+<CanMoveItem>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory playerLoot, UInt32 targetContainer, Int32 targetSlot) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (20:32:06) | Failed to call hook 'CanMoveItem' on plugin 'FurnaceSplitter v2.0.1' (NullReferenceException: Object reference not set to an instance of an object)
    (20:32:07) | at Oxide.Plugins.FurnaceSplitter.GetEnabled (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter+<CanMoveItem>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory playerLoot, UInt32 targetContainer, Int32 targetSlot) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (20:32:08) | Failed to call hook 'CanMoveItem' on plugin 'FurnaceSplitter v2.0.1' (NullReferenceException: Object reference not set to an instance of an object)
    (20:32:08) | at Oxide.Plugins.FurnaceSplitter.GetEnabled (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter+<CanMoveItem>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory playerLoot, UInt32 targetContainer, Int32 targetSlot) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  13. Have you made sure your data file is valid? Try using a fresh data file and see if that changes anything.
    [DOUBLEPOST=1496403185][/DOUBLEPOST]
    Line 151
     
  14. I'm interested by that too... Possible ?
     
  15. Code:
     Failed to call hook 'CanMoveItem' on plugin 'FurnaceSplitter v2.0.1' (NullReferenceException: Object reference not set to an instance of an object)
    (13:15:39) | at Oxide.Plugins.FurnaceSplitter+Extensions.GetWorkTemperature (.BaseOven oven) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter+<CanMoveItem>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory playerLoot, UInt32 targetContainer, Int32 targetSlot) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (13:15:47) | Failed to call hook 'CanMoveItem' on plugin 'FurnaceSplitter v2.0.1' (NullReferenceException: Object reference not set to an instance of an object)
    (13:15:47) | at Oxide.Plugins.FurnaceSplitter+Extensions.GetWorkTemperature (.BaseOven oven) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter+<CanMoveItem>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory playerLoot, UInt32 targetContainer, Int32 targetSlot) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  16. anyway to move the spliter options GUI to the top left?
     
  17. Code:
    (19:41:53) | Failed to call hook 'OnEntityKill' on plugin 'FurnaceSplitter v2.0.1' (InvalidOperationException: out of sync)
    (19:41:53) | at System.Collections.Generic.Dictionary`2+Enumerator[System.UInt64,System.String].VerifyState () [0x00000] in <filename unknown>:0
      at System.Collections.Generic.Dictionary`2+Enumerator[System.UInt64,System.String].MoveNext () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.DestroyOvenUI (.BaseOven oven) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.OnEntityKill (.BaseNetworkable networkable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (19:41:55) | [Better Chat] [VIP+]  {chur}  Mack: who even has a base yet
     
  18. Code:
    (06:55:57) | Failed to call hook 'CanMoveItem' on plugin 'FurnaceSplitter v2.0.1' (KeyNotFoundException: The given key was not present in the dictionary.)
    (06:55:57) | at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.FurnaceSplitter+PlayerOptions].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.GetEnabled (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter+<CanMoveItem>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory playerLoot, UInt32 targetContainer, Int32 targetSlot) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (06:55:57) | Failed to call hook 'CanMoveItem' on plugin 'FurnaceSplitter v2.0.1' (KeyNotFoundException: The given key was not present in the dictionary.)
    (06:55:57) | at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.FurnaceSplitter+PlayerOptions].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.GetEnabled (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter+<CanMoveItem>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory playerLoot, UInt32 targetContainer, Int32 targetSlot) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (06:55:58) | [BetterLoot] Refreshed 16 containers
    (06:55:58) | Failed to call hook 'CanMoveItem' on plugin 'FurnaceSplitter v2.0.1' (KeyNotFoundException: The given key was not present in the dictionary.)
    (06:55:58) | at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.FurnaceSplitter+PlayerOptions].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.GetEnabled (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter+<CanMoveItem>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory playerLoot, UInt32 targetContainer, Int32 targetSlot) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.FurnaceSplitter.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  19. samething, can we get an update plz.
     
  20. Hi !
    First : Amazing plugin ! Good job !
    Second : I try to find a way to delete the time (because I have QuickSmelt so I guess it's useless because it's not synchro)
    Just need the quantity of wood and the number of slot for splitt. It's possible ?
    If yes, how can I do that ?
    And last question, if I may, I see in somes servers, the same plugin but you have just the splitt option, with ON/OFF. No more. It's a modification of this plugin ? or another ? or a MacGyver plugin ? ^^
    Thank you for your time ! :)
    See ya !