RecycleManager

Moved

Total Downloads: 1,997 - First Release: Mar 24, 2017 - Last Update: Sep 12, 2017

5/5, 9 likes
  1. Is there a way I can make recyclers drop scrap as an output?
     
  2. Protocol: 2048.154.1
    Build Date: 12/22/2017 20:25:50
    Unity Version: 2017.1.2f1
    Changeset: 24615
    Branch: main

    We're trying to control the amount of scrap produced. Without RecycleManager loaded, then from these components we get:-

    pipe - 5 scrap
    spring - 10 scrap
    propane - 1 scrap
    tech trash - 20 scrap
    metal blade - 2 scrap
    gears - 10 scrap

    But when we load RecycleManager (with the default plugin values), we get:-

    pipe - 10 scrap
    spring - 15 scrap
    propane - 5 scrap
    tech trash - 8 scrap
    metal blade - 5 scrap
    gears - 50 scrap

    Which just seems completely random - no multiplier value makes any sense to us. We've tried deleting both the config and the data files containing the output amounts and loading the plugin so it regenerates the default files, but the output is the same. It doesn't seem to be populating the data files with the vanilla recycled values - it's as if it's applying some random number to the amount of output and then using that to create the data file. And it does seem consistent, so it's easy enough to replicate.

    Yes we can edit them, but then another update later might break them all again. ;)

    Would you please take a look and see if you can make it output vanilla amounts to the \oxide\data\RecycleManager.json file?

    Thanks. :)
     
  3. Its most likely because the output scrap is a certain % of the ingredient cost. Maybe i can have a look at making this easier in the future but for now your only way is to manually edit them
     
  4. Okay, we'll do that, thanks. :)
     
  5. Suggestion: Can you add a console command that does not immediately spawn a recycler but gives the player a researchtable. And once this is placed, it becomes a recycler. Maybe with a separate icon. I've already seen in other plugins that this is possible :)
     
  6. I added pistol and rifle ammo to the input blacklist, and reloaded the plugin. When I add any of the ammo to the Input, and click "Turn On", the button doesn't turn red and the the recycler doesn't make any noise, but after 5 seconds it still recycles and outputs the raw materials.

    I love your plugins and I hate saying this because it's you, but I think this plugin is broken inasmuch as it's random and so it's unusable in its current state. Sorry. :-(

    Code:
    {
      "Lists": {
        "Input Blacklist": [
          "ammo.handmade.shell",
          "ammo.pistol",
          "ammo.pistol.fire",
          "ammo.pistol.hv",
          "ammo.rifle",
          "ammo.rifle.explosive",
          "ammo.rifle.hv",
          "ammo.rifle.incendiary",
          "ammo.shotgun",
          "ammo.shotgun.slug",
          "hemp.seed"
        ],
        "Output Blacklist": [
          "hemp.seed"
        ],
        "Recycle Output Multipliers": {
          "*": 1,
          "metal.refined": 1
        }
      },
      "Settings": {
        "Max Items Per Recycle": 100,
        "Recycle Time": 5.0
      }
    }
     
    Last edited by a moderator: Jan 24, 2018
  7. It doesn't seem to place exactly how im standing, now i have a recycler in an akward position in my base. I tried the ent kill from the console and its not working. How do you remove them once their down?
     
  8. You can use uMod - Telekinesis to manipulate the recycler (and other items) into the position you want.
     
  9. @redBDGR Nice work on the plugin! I would love to see a lesser permission set that allows for players to spawn the recyclers for themselves at their feet, but it limits the number they can have and comes with a cost.
     
  10. How can we remove a recycler?
     
  11. just set up my own server and don't have a whole lot of knowledge of how things work... all I want to do is double the rate of yield for the recycler on my server. Where exactly do I make this change? I have this plugin downloaded and with the rest of my plugins, but there is no json file. please respond like you are talking to a kindergartener, I won't understand otherwise.
     
  12. Wulf

    Wulf Community Admin

    Check your oxide/logs directory in the oxide log file for errors to make sure it was loaded. The configuration file is generated/created automatically when the plugin is actually loaded.
     
  13. It says:
    21:29 [Info] RecycleManager was compiled successfully in 3645ms
    21:29 [Info] Loaded plugin Recycle Manager v1.0.10 by redBDGR
    does that mean it was loaded?
     
  14. Wulf

    Wulf Community Admin

    Yes, where are you looking for the configuration file?
     
  15. Oxide/config

    I dont know what I did but the json file just showed up in the place where it hadn’t been before = oxide/config. Problem solved, but don’t ask me how!
     
    Last edited by a moderator: Apr 12, 2018
  16. 13:38 [Error] Failed to initialize plugin 'RecycleManager v1.0.10' (NullReferenceException: Object reference not set to an instance of an object)
    at Oxide.Plugins.RecycleManager.RefreshIngredientList () [0x00000] in <3e8a41ceb2d74b969827b9c8a262117b>:0
    at Oxide.Plugins.RecycleManager.Init () [0x00048] in <3e8a41ceb2d74b969827b9c8a262117b>:0
    at Oxide.Plugins.RecycleManager.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0012b] in <3e8a41ceb2d74b969827b9c8a262117b>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <db8eacac902a4df4bfeb92f0619ac1c8>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0
    at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00043] in <bfa4e457157d4e089ab91719c5b1288b>:0
    13:38 [Info] Unloaded plugin Recycle Manager v1.0.10 by redBDGR
    13:38 [Info] No previous version to rollback plugin: RecycleManager




    I have this on my oxide log can you help and it won't reload the plugin
     
  17. little wish
    1. prohibit to place Recycle in range of another Tool cupboard
    2. limit the number of Recycle per player
    Безымянный.png