SpawnConfig

Change SpawnHandler behaviour of SpawnPopulations

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

5/5, 14 likes
  1. So after a bunch of fiddling, I figured out the plugin and it works very well. The only issue i'm currently having is with junk piles. They never seem to spawn and reach the max population that I've set. They seem to always hover around 175, when my max is about 512. It seems they spawn better with the default server config.

    I'm sure it's just a problem with the game itself and how it handles spawns, or pools, or just my config, but if anyone has any insight, I'd be happy to listen.
     
  2. Been getting the error:

    "failed to call hook 'OnTerrainInitialized' on plugin 'SpawnConfig v1.0.10' (NullReferenceException: Object reference not set to an instance of an object)

    on server startup and the plugin doesn't seem to be working for me.
     
  3. There isn't anything else. That line is the only error that is displayed. Should there be more?
     
  4. Wulf

    Wulf Community Admin

    Try updating to the latest Oxide snapshot build.
     
  5. I'm using build 2.0.3024. Is that not the latest?
     
  6. I am using the lastest

    EDIT: actually woopsi looks like not. i will test it out
     
  7. Wulf

    Wulf Community Admin

    3029 is the latest snapshot, just no changeling posted yet.
     
  8. 3029 appears to have fixed the problem. Thanks Wulf!!!
     
  9. I need help. When the plugin is loaded it says here

    [SpawnConfig] No spawngroup data found: cave_medium_medium_ore_lootspawner_x-115
    3y18z1218
    [SpawnConfig] No spawngroup data found: cave_small_hard_ore_lootspawner_x990y25z
    -1344
    [SpawnConfig] No spawngroup data found: cave_medium_easy_ore_lootspawner_x-117y2
    7z82
    [SpawnConfig] No spawngroup data found: cave_large_sewers_hard_ore_lootspawner_x
    -276y23z-861
    [SpawnConfig] No spawngroup data found: cave_small_easy_ore_lootspawner_x1407y22
    z-1162
    [SpawnConfig] No spawngroup data found: cave_small_easy_ore_lootspawner_x-195y43
    z795
    [SpawnConfig] No spawngroup data found: cave_medium_medium_ore_lootspawner_x1290
    y11z632
    [SpawnConfig] No spawngroup data found: cave_medium_hard_ore_lootspawner_x-1125y
    16z667
    [SpawnConfig] No spawngroup data found: cave_large_medium_ore_lootspawner_x191y2
    2z1226
    [SpawnConfig] No spawngroup data found: cave_medium_hard_ore_lootspawner_x310y17
    z604
    [SpawnConfig] No spawngroup data found: cave_medium_easy_ore_lootspawner_x-486y1
    8z1095
    [SpawnConfig] No spawngroup data found: cave_small_medium_ore_lootspawner_x-1392
    awngroup data found: lighthouse_barrel_spawner_x932y0z1

    [SpawnConfig] Loaded 20 SpawnPopulations and 0 SpawnGroups.
     
  10. Try deleting your SpawnConfig.json in the config folder and reloading the plugin.
     
  11. Delete the config and do a clean server-restart
     
  12. hello
    i have 5k map i set
    "animals": {
    "TargetDensity": 60.0,
    "SpawnRate": 4.0,
    "ClusterSizeMin": 1,
    "ClusterSizeMax": 1,
    "ClusterDithering": 1,
    "EnforcePopulationLimits": true,
    "ScaleWithServerPopulation": false,
    "AlignToNormal": false,
    "Prefabs": [

    not too much, not server lag?
     
  13. Maybe that SpawnRate is to much... 2 should be fine and use ClusterSizeMax with 2 instead.
     
  14. Thanks, one more question.

    i set
    Code:
      "trainyard_1_door_barricade_a_spawner_x-299y39z1089_3": {
          "MaxPopulation": 0,
          "NumToSpawnPerTickMin": 1,
          "NumToSpawnPerTickMax": 2,
          "RespawnDelayMin": 10.0,
          "RespawnDelayMax": 20.0,
          "Prefabs": [
            {
              "Prefab": "assets/prefabs/deployable/door barricades/door_barricade_a.prefab",
              "Weight": 1,
              "Mobile": false
    for all barricade andi still have stacking barricade
     
  15. Try to delete all lines which has something to do with the doors...
     
    Last edited by a moderator: Feb 19, 2017
  16. How do i make it so trashpiles and barrels are not spawning? Is this correct?
    Code:
      "SpawnPopulations": {
        "loot": {
          "TargetDensity": 25.0,
          "SpawnRate": 0,
          "ClusterSizeMin": 1,
          "ClusterSizeMax": 1,
          "ClusterDithering": 1,
          "EnforcePopulationLimits": true,
          "ScaleWithServerPopulation": false,
          "AlignToNormal": true,
          "Prefabs": [
            {
              "Prefab": "assets/bundled/prefabs/autospawn/resource/loot/Loot-Barrel-1.prefab",
              "Weight": 0
            },
            {
              "Prefab": "assets/bundled/prefabs/autospawn/resource/loot/Loot-Barrel-2.prefab",
              "Weight": 0
            },
            {
              "Prefab": "assets/bundled/prefabs/autospawn/resource/loot/Trash-Pile-1.prefab",
              "Weight": 0
     
  17. If you are doing this, then set everything to zero, so the server will not be confused about that and you can also delete all the prefabs with weights. It will look like this: "Prefabs": []
     
    Last edited by a moderator: Feb 24, 2017
  18. The plugin keeps making a Spawnconfig.json.old everytime I change the items in it. what do i do?
     
  19. Each server update this plugin makes a new config file and saves a copy of the old one. You have to manually change the values in the new config file to match the changes you have in the old. There is no way around this and must be done each server update. I use a compare tool to see the differences and manually change them. That's just the way this plugin works.
    [DOUBLEPOST=1488062995][/DOUBLEPOST]Also, Fujikura has a paid plugin on the chaos code site that doesn't require you to manually change it each update. I haven't tried it yet but it looks great.