FurnaceSplitter

Moved

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

5/5, 31 likes
  1. Wulf

    Wulf Community Admin

    The Oxide.Rust build will be available soon, keep an eye out for the changelog for both it and this plugin.
     
  2. Wulf

    Wulf Community Admin

    Wulf updated Furnace Splitter with a new update entry:

    2.1.6

     
  3. Thank you for your very hard work! @Wulf
     
  4. No errors, but it creates an nearly empty config

    Code:
    {
      "UiPosition": {
        "x": 0.6505,
        "y": 0.022
      }
    }
     
  5. Wulf

    Wulf Community Admin

    All credit to @Jake Rich!
     
  6. My config is the same too. nearly empty. nothing working and what I posted got deleted. Thats fantastic!
     
  7. I'm getting the same errors as Razor using FS 2.1.6 and OM 2.0.3898.

    Also @SomethinSquishy the Json in your Config folder afaik has always been only UI position settings. the Json in your data folder was your FS info. I could be wrong though.
     
  8. this is what used to be in my .json file if im not mistaken.
    Code:
    [PluginReference] private Plugin FurnaceSplitter;[ChatCommand("split")]
    private void ChatCommand_Split(BasePlayer player, string command, string[] args)
    {
        GameObject lookTarget = GetLookTarget(player);
        var oven = lookTarget?.GetComponent<BaseOven>();    if (oven == null)
        {
            player.ChatMessage("Invalid look target");
            return;
        }    var firstCookable = player.inventory.containerMain.itemList.FirstOrDefault(x => x.info.GetComponent<ItemModCookable>() != null);    if (firstCookable != null)
        {
            string result = FurnaceSplitter.Call<string>("MoveSplitItem", firstCookable, oven, totalStacks: 15);
            player.ChatMessage(result);
        }
        else
        {
            player.ChatMessage("No cookable found");
        }
    }private static GameObject GetLookTarget(BasePlayer player)
    {
        RaycastHit hit;
        var position = player.eyes.position;
        var direction = player.eyes.HeadForward();
        if (!Physics.Raycast(new Ray(position, direction), out hit, 10f, 1 << (int)Layer.Deployed))
            return null;    return hit.transform.gameObject;
    }
     
  9. Well this is my data folder


    Code:
    {
      "AllPlayerOptions": {}
    }
     
  10. Ok reupdated oxide mod, restart server and now here is my error in my rcon console.
    Code:
    Failed to call hook 'CanMoveItem' on plugin 'FurnaceSplitter v2.1.6' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory inventory, 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 (Oxide.Core.Plugins.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
    Failed to call hook 'CanMoveItem' on plugin 'FurnaceSplitter v2.1.6' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.FurnaceSplitter.CanMoveItem (.Item item, .PlayerInventory inventory, 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 (Oxide.Core.Plugins.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 
     
    Last edited by a moderator: Apr 20, 2018
  11. Lmk when there is a 100% Fix cbf restarting everytime with 50 people online
     
  12. Looks like this latest error is popular! Me too :(
     
  13. Still getting error after this update
     
  14. Wulf

    Wulf Community Admin

    That is part of a plugin, not a config file and would never be in the config file.

    For those still having errors, please check that you are on the version of Oxide for Rust mentioned in the changelog (2.0.3898), else you will continue to have the error. You can check using the oxide.version command.

    Also, I would suggest having a test server for this sort of thing, as I can't always reproduce everything myself and I always advise against blindly updating a live server without testing locally first.
     
  15. (20:43:57) | Protocol: 2081.160.1
    Build Date: 04/18/2018 06:10:37
    Unity Version: 2017.1.3f1
    Changeset: 26475
    Branch: release
    Oxide.Rust Version: 2.0.3898

    Still getting error
     
  16. Wulf

    Wulf Community Admin

    Is it the error with HasPermission in it? If so, just looks like a goof there on my part, but the original error appears to be fixed.
     
  17. same error
     
  18. Wulf

    Wulf Community Admin

    Wulf updated Furnace Splitter with a new update entry:

    2.1.7

     
  19. Yeah dont worry about it wulf, Take your time We cant complain on a free plugin anyway in my opinion.
     
  20. It doesn't appear to split for me although the console error is gone.