SpawnConfig

Change SpawnHandler behaviour of SpawnPopulations

Total Downloads: 4,589 - First Release: Sep 18, 2015 - Last Update: Nov 26, 2017

5/5, 14 likes
  1. Hi, my problem. animals respawn very slow. on startup is ok but after 5-6h.... emty
    sry, my english is very bad....
    Can you find the instructions to complete German . with translator I do not understand it anyway...
    can someone give me useful values so that there is always enough animals?


    "WorldSize": 4000,

    "SpawnPopulations": {
    "animals": {
    "TargetDensity": 800.0,
    "SpawnRate": 2.0,
    "ClusterSizeMin": 1,
    "ClusterSizeMax": 2,
    "ClusterDithering": 1,
    "EnforcePopulationLimits": true,
    "ScaleWithServerPopulation": false,
    "AlignToNormal": false,
    "Prefabs": [
    {
    "Prefab": "assets/bundled/prefabs/autospawn/animals/bear.prefab",
    "Weight": 1
    },
    {
    "Prefab": "assets/bundled/prefabs/autospawn/animals/boar.prefab",
    "Weight": 8
    },
    {
    "Prefab": "assets/bundled/prefabs/autospawn/animals/chicken.prefab",
    "Weight": 3
    },
    {
    "Prefab": "assets/bundled/prefabs/autospawn/animals/horse.prefab",
    "Weight": 5
    },
    {
    "Prefab": "assets/bundled/prefabs/autospawn/animals/stag.prefab",
    "Weight": 2
    },
    {
    "Prefab": "assets/bundled/prefabs/autospawn/animals/wolf.prefab",
    "Weight": 1
    }
    ],
     
  2. Any way to see if it works? Like some command to count the trees and ores?
     
  3. spawn.dump will create a spawns.txt in the logs folder
     
  4. i got a 6000 map and set the ores to 2000. you think thats ok? did the same with trees but it looks like nothing is really spawning.
    in the spawn.log is no change after 30 mins
     
    Last edited by a moderator: Dec 24, 2015
  5. As there's no time value for animals, is there an automation to how they respawn?
     
  6. Last two updates has resulted in this error and empty crates/barrels.

    Code:
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_barrel_spawner_x-246y38z694 SpawnPoint 1
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_barrel_spawner_x-246y38z694 SpawnPoint 2
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_barrel_spawner_x-246y38z694 SpawnPoint 3
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_barrel_spawner_x-246y38z694 SpawnPoint 4
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_barrel_spawner_x-246y38z694 SpawnPoint 5
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_barrel_spawner_x-246y38z694 SpawnPoint 6
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_barrel_spawner_x-246y38z694 SpawnPoint 7
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_crate_spawner_x-246y38z694 SpawnPoint 1
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_crate_spawner_x-246y38z694 SpawnPoint 3
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_crate_spawner_x-246y38z694 SpawnPoint 4
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_crate_spawner_x-246y38z694 SpawnPoint 5
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_crate_spawner_x-246y38z694 SpawnPoint 6
    (23:15:05) | [Oxide] 11:19 PM [Info] [SpawnConfig] spawnpoint data not found: sphere_tank_crate_spawner_x-246y38z694 SpawnPoint 7
     
  7. Nogrod updated SpawnConfig with a new update entry:

    1.0.6

     
  8. Would it possible to add the ability to spawn loots everywhere on the map with maybe a boolean in the config where you can set it on/off ?
     
  9. rust update, not working
    Code:
    [04/08/2016 06:24:03] [Oxide] 06:24 [Error] Failed to call hook 'OnTerrainInitialized' on plugin 'SpawnConfig v1.0.6' (ArgumentException: The requested value 'Clutter' was not found.)
    [04/08/2016 06:24:07] [Oxide] 06:24 [Error] Failed to call hook 'OnServerInitialized' on plugin 'SpawnConfig v1.0.6' (ArgumentException: The requested value 'Clutter' was not found.)
    
     
  10. Code:
    [Oxide] 23:31 [Error] Failed to call hook 'OnServerInitialized' on plugin 'SpawnConfig v1.0.6' (ArgumentException: The requested value 'Clutter' was not found.)
    [Oxide] 23:31 [Debug]   at System.Enum.Parse (System.Type enumType, System.String value, Boolean ignoreCase) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Utilities.EnumUtils.ParseEnumName (System.String enumText, Boolean isNullable, System.Type t) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue, Newtonsoft.Json.JsonSeriali
    
    Same here.
     
    Last edited by a moderator: Apr 7, 2016
  11. Same problem as above
     
  12. Nogrod updated SpawnConfig with a new update entry:

    1.0.7

     
  13. Tank You.
     
  14. Does everything go back to default if I just remove the plugin? Or there something else I have to do?
     
  15. help solve the problem. The animals appear wherever they want after the latest updates.
     
    Last edited by a moderator: Apr 9, 2016
  16. and I have the map size 3800
    [DOUBLEPOST=1460170219][/DOUBLEPOST]Deleted the plugin and the server FPS was much higher. The problem with your plugin. Animals are spawned infinitely
     
  17. the plugin does nothing at runtime, it exports the rust defaults to config and you can change them, at server start the plugin just imports your settings
     
  18. deleted the plugin animals have less to spawn , but again in different places outside the map.
    [DOUBLEPOST=1460170800][/DOUBLEPOST]This is a problem of developers again?
     
  19. dunno what you've actually setup in your config, but i can't reproduce your issue, plugin unloading will not help, you need to remove the plugin and restart the server
     
  20. Getting this here when i reload my plugins

    Code:
    [Oxide] 00:36 [Info] Loaded plugin SpawnConfig v1.0.7 by Nogrod
    [Oxide] 00:36 [Info] [SpawnConfig] Incorrect config version(0/0[0, 0])
    [Oxide] 00:36 [Info] [SpawnConfig] Created new config
    [Oxide] 00:36 [Info] [SpawnConfig] Loaded 20 SpawnPopulations and 24 SpawnGroups.
    [Oxide] 00:36 [Warning] CallHook 'OnServerInitialized' on plugin 'SpawnConfig v1.0.7' took: 971ms