Cornucopia

The horn of plenty! Spawn extra crates, barrels, nodes, animals, etc. randomly on the map

Total Downloads: 6,716 - First Release: Jul 28, 2015 - Last Update: Jun 1, 2017

5/5, 26 likes
  1. Code:
    {
      "Animals": [
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/chicken.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/horse.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/boar.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/stag.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/wolf.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/bear.prefab"
      }
      ],
      "ApplyLootFix": true,
      "Loots": [
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/loot_barrel_1.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/loot_barrel_2.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/oil_barrel.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/loot_trash.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/loot/trash-pile-1.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/crate_normal.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/crate_normal_2.prefab"
      }
      ],
      "Ores": [
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/ores/stone-ore.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/ores/metal-ore.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/ores/sulfur-ore.prefab"
      }
      ],
      "RefreshMinutes": 15,
      "RefreshOnStart": false
    }
    So look my config :D
     
    Last edited by a moderator: Jan 26, 2017
  2. Thats the default config mate, it does about nothing... What are you looking to do?
     
  3. I want that animals spawn faster and more
     
  4. To increase the animal spawns, you need to change the "-1" number to something higher. Depending on the size of your server.. Maybe try setting them all to 50 and see how you like it.
     
  5. Increase the "min" value to higher than what comes out of /cdump and you could also change the refresh timer for shorter.
     
  6. Hello !

    I would like to combine this plugin with ZoneManager or ZoneCommand to pop some wolves/bears when a player is entering a zone (ZoneCommand) or if it's not possible atm just add more dangerous animals in specific zones.

    What can you tell me about this idea ?
     
  7. The plugin does not have any code pertaining to specific positions or locations or zones. It could be done but I'm taking a break from Rust right now so don't wait on me.
     
  8. Hi there, I am unsure if anyone else has had this problem, so I will ask.

    I have recently installed cornucopia, and all I have done is changed the number of animals (boars and bears mainly) but there are no more than 300 animals on the server. I also increased the oil barrels to about 60 total... It appears that since I have installed cornucopia, every once in a while (daily without rhyme or reason, the server will cause a "hiccup" and time every connected user out. Any idea why? Is this just a coincidence?
     
  9. Please post your settings but also a copy of what is output in rcon or oxide logs when the hickup occurs.

    I have a feeling you have one of these that has both a min and a max set and the plugin is working uselessly.
     
  10. Oh, I shouldn't have a min and a max set? Just a max? There is no specific error message or anything... Cornucopia will occasionally do something, and within 30 seconds, the hiccup happens and everyone times out.
     
  11. No point in having both a min and a max, the plugin basically makes sure both limits are enforced so theoretically the max will never be hit if the min is the target and vise versa. If you happen to have a min that is higher than the max, it will spawn stuff and delete it right afterwards and this can cause big delays.

    Show me your config and rcon/oxide logs so we can see what's up.
     
  12. Code:
    {
      "Animals": [
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": 0,
      "Min": 0,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/chicken.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": 50,
      "Min": 20,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/horse.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": 200,
      "Min": 150,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/boar.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": 0,
      "Min": 0,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/stag.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": 75,
      "Min": 50,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/wolf.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": 80,
      "Min": 50,
      "Prefab": "assets/bundled/prefabs/autospawn/animals/bear.prefab"
      }
      ],
      "ApplyLootFix": true,
      "Loots": [
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/loot_barrel_1.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/loot_barrel_2.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": 40,
      "Min": 100,
      "Prefab": "assets/bundled/prefabs/radtown/oil_barrel.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/loot_trash.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/loot/trash-pile-1.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/crate_normal.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/radtown/crate_normal_2.prefab"
      }
      ],
      "Ores": [
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/ores/stone-ore.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/ores/metal-ore.prefab"
      },
      {
      "DeleteEmtpy": false,
      "IgnoreIrridiated": true,
      "Max": -1,
      "Min": -1,
      "Prefab": "assets/bundled/prefabs/autospawn/resource/ores/sulfur-ore.prefab"
      }
      ],
      "RefreshMinutes": 15,
      "RefreshOnStart": false
    }
     
    Last edited by a moderator: Jan 26, 2017
  13. The oil barrel one is the problem here.. minimum 100 maximum, it spawns a bunch and despawns them right after. Like I said earlier, either set a maximum if you want to reduce the stock amount of put a minimum to increase the stock amount, don't ever use both (leave them at -1).

    All that said, even the oil barrel issue here should not crash the server AFAIK... could lag it out for a second or two but it shouldn't disconnect peeps.
     
  14. Whats up, Decide666ra. First, thank you for the plugin and all the work you do to keep it updated and the help you give to those of us that need it. I have an opinion question for you. I would like barrels and crates all over the map as to make it easier for the guests on my server to acquire items. Not overwhelmingly all over the place, but maybe run into 1 barrel/crate every few minutes while farting around. What value would you suggest could help me accomplish what I am looking for? I believe my current values are set at 500.
     
  15. You have to look at the normal/default value and it depends on a lot of factors. I would just disable them in Cornucopia (put the values at -1 for all barrel types) , restart the server to clear existing barrels and then just wait 30 min or so to get the "natural" population of each type. You can then go from there.

    Please note that using this plugin make it so road-side and cave-side barrels are rarer. Barrels that are spawned randomly take up the spots of road side ones so they tend to be much less present when Cornucopia is controlling them.
     
  16. wow amazing plugin. thanks man!

    btw can we add tree ?
     
  17. I didn't include trees because of performance issues. Just counting the number of trees on the server hangs it so unless I find a better way of getting that information, I'd rather not.
     
  18. i see thanks man :)

    its a great plugin :)
     
  19. What is the default amount of animals/ores? Is Max: -1 the rust-limit?
     
  20. The max varies depending on seed and size. To find out set all to -1, restart server and wait 30ish min for the natural populations to spawn. You can then use /cdump to see the numbers and go from there.