Cornucopia

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

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

5/5, 26 likes
  1. Yes Maarshue, no need to restart server, just do oxide.reload Cornucopia
     
  2. what means this -1 numbers?

    I updated my bears to 100 and wolves to 100, writtin in console oxide.reload Cornucopia but nowhere got answer about updating this plugin.
    Nowhere see any animals :s
    This numbers is pieces? 100 pieces of bears?
     
    Last edited by a moderator: Aug 20, 2015
  3. -1 tells the plugin not to remove or add the item in question.

    100 wolves and 100 bears might seem like a lot but on a 4K map, they'll still be scarce at that setting. I run 100 bears and 250 wolves on my server and they are pretty easy to find, but not all over the place.

    The plugin turns it's first cycle after 15 minutes with the default config, you can force the cycle by doing /cspawn (or cornu.spawn in console/rcon). You can use /cdump (or cornu.dump) to confirm they are there.

    And yes, 100 = 100 bears on the map
     
  4. [​IMG]
    Plugin complains regardless how long i wait
    map size is 1200
     
  5. Show me the output of /cdump as well as your config...
     
  6. Deicide666ra updated Cornucopia with a new update entry:

    1.1.0

     
  7. Deicide666ra updated Cornucopia with a new update entry:

    1.1.0

     
  8. Code:
    [8/24/2015 1:09:38 AM] [Oxide] 1:09 AM [Info] [Cornucopia] Could not find enough collectibles to complete the spawn cycle (this is normal after a server restart, it takes time!)
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] = COLLECTIBLES ================
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] hemp.prefab                                        50
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] stone-1.prefab                                     22
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] wood.prefab                                        13
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] metalore-2.prefab                                  14
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] sulfurore-3.prefab                                 15
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] mushroom-cluster-2.prefab                          2
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] mushroom-cluster-1.prefab                          4
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] mushroom-cluster-3.prefab                          1
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] mushroom-cluster-6.prefab                          1
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] = NODES =======================
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] stone-ore.prefab                                   7
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] metal-ore.prefab                                   6
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] sulfur-ore.prefab                                  5
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] = CONTAINERS ==================
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] supply_drop.prefab                                 2
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] crate_normal.prefab                                5
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] loot_barrel_2.prefab                               5
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] oil_barrel.prefab                                  2
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] loot_trash.prefab                                  6
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] loot_barrel_1.prefab                               3
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] crate_normal_2.prefab                              4
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] loot-barrel-1.prefab                               8
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] loot-barrel-2.prefab                               4
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] trash-pile-1.prefab                                2
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] = ANIMALS =====================
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] wolf.prefab                                        1
    [8/24/2015 1:09:42 AM] [Oxide] 1:09 AM [Info] [Cornucopia] bear.prefab                                        2  
     
  9. Yeah well Meep that's totally normal after a restart........ it takes time for Rust to respawn it's own stuff. Show me your config please.
     
  10. Hi there,

    i got a empty config on server restart. Could you provide the new config file please?. Thank you
    [DOUBLEPOST=1440422032][/DOUBLEPOST]Forget my last message ... just found the Cornu.json file. Thanks
     
  11. Howcome the new Cornucopia keeps deleting objects and then spawning the exact same ones in?

    Does this not mean that people on the server are going to keep having things just keep going away on them before they can gather it.

    Code:
    [8/24/2015 10:01:10 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Destroying 262X horse.prefab!
    [8/24/2015 10:01:10 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Destroying 214X boar.prefab!
    [8/24/2015 10:01:10 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Spawning 22X assets/bundled/prefabs/autospawn/animals/stag.prefab!
    [8/24/2015 10:01:10 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Destroying 18X wolf.prefab!
    [8/24/2015 10:01:10 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Destroying 39X bear.prefab!
    [8/24/2015 10:01:10 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Spawning 300X assets/bundled/prefabs/autospawn/animals/horse.prefab!
    [8/24/2015 10:01:10 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Spawning 250X assets/bundled/prefabs/autospawn/animals/boar.prefab!
    [8/24/2015 10:01:10 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Destroying 27X stag.prefab!
    [8/24/2015 10:01:10 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Spawning 20X assets/bundled/prefabs/autospawn/animals/wolf.prefab!
    [8/24/2015 10:01:10 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Spawning 50X assets/bundled/prefabs/autospawn/animals/bear.prefab!
    [8/24/2015 10:01:11 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Destroying 647X stone-ore.prefab!
    [8/24/2015 10:01:11 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Destroying 25X metal-ore.prefab!
    [8/24/2015 10:01:11 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Destroying 16X sulfur-ore.prefab!
    [8/24/2015 10:01:11 AM] [Oxide] 10:01 AM [Info] [Cornucopia] Spawning 650X assets/bundled/prefabs/autospawn/resource/ores/stone-ore.prefab!
     
    Last edited by a moderator: Aug 24, 2015
  12. Hey, dont know if you can help.

    Cant get things running, had it working before but now i get this message:
    Code:
    [Oxide] 6:46 PM [Error] Failed to initialize plugin 'Cornucopia v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 6:46 PM [Debug]   at Oxide.Plugins.Cornucopia.Loaded () [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    [Oxide] 6:46 PM [Info] Unloaded plugin Cornucopia v1.1.0 by Deicide666ra
    [Oxide] 6:46 PM [Info] No previous version to rollback plugin: Cornucopia
     
    Last edited by a moderator: Aug 26, 2015
  13. Xnaugt you do not have the latest version.

    Juicifer looks like a wrong config please post your config.
     
  14. This is installed via Multiplay's clanforge. I have sent them a copy of the latest version and hope it updates quickly.

    Awesome plugin! :) thanks
     
  15. @Deicide, I have tried both of the following and they don't seem to work, I have used this format for most things:

    Code:
        {
          "Prefab": "assets/bundled/prefabs/autospawn/animals/horse.prefab",
          "Min": 750,
          "Max": 750,
          "IgnoreIrridiated": true,
          "DeleteEmtpy": false
        },

    Code:
        {
          "Prefab": "assets/bundled/prefabs/autospawn/animals/horse.prefab",
          "Min": 1,
          "Max": 750,
          "IgnoreIrridiated": true,
          "DeleteEmtpy": false
        },
     
  16. Just leave the max at -1 if you do not need to cap a resource under what the game itself spawns. I'll review the code tonight, maybe there is something wrong with using the same value as min and max..
    [DOUBLEPOST=1440452264][/DOUBLEPOST]
    Yeah i updated it with the same version number like 20 mins after, maybe their auto update thing didn't pick it up since it was the same version number.

    Clanforge is the sux :)
     
  17. Is there a way for me to view the game's default max, is it based on map size?
     
  18. The easiest way to do this is to just start Cornucopia with all min/max set to -1, restart your server and then wait for about an hour or so. You can then use /cdump and see what Rust created by itself.

    I don't know what affects the numbers, I think map size is a good indicative but even on a same map size seeds can vary a lot in landmass. I don't know if landmass is a factor.

    As a general rule, at 500 things become very common... at 1000+ they are extremely easy to find.
     
  19. Hi there, I have had to modify the Cornucopia.cs in order to get it working with our system, as it seems the config directory was hard-coded and not pulling from oxide.root.json.

    If anyone else uses the /cfg directory this should work for you.

    Thanks, MF.
     
    Last edited by a moderator: Jan 26, 2017
  20. Its running now but I get this message.

    [Oxide] 11:12 AM [Info] [Cornucopia] Nothing to process, skipping MainSpawnCycle()

    Nothing is spawning on the server, any ideas?
     
    Last edited by a moderator: Aug 25, 2015