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. I think i might buy it. Thats quite annoying so much work.
     
  2. Does this addon interfere with cornucopia at all? or anything? Thanks
     
  3. is there an update on this plugin?
     
  4. What kind of update? It works fine.
     
  5. im using HapisIsland world size 4000 what are the #'s I need to change in the cfg to make more spawning of animals? here is my current config?
    Code:
    "animals": {
      "TargetDensity": 60.0,
      "SpawnRate": 3.0,
      "ClusterSizeMin": 1,
      "ClusterSizeMax": 2,
      "ClusterDithering": 1,
      "EnforcePopulationLimits": true,
      "ScaleWithServerPopulation": false,
      "AlignToNormal": false,
      "Prefabs": [
      {
      "Prefab": "assets/bundled/prefabs/autospawn/animals/bear.prefab",
      "Weight": 3
      },
      {
      "Prefab": "assets/bundled/prefabs/autospawn/animals/boar.prefab",
      "Weight": 5
      },
      {
      "Prefab": "assets/bundled/prefabs/autospawn/animals/chicken.prefab",
      "Weight": 2
      },
      {
      "Prefab": "assets/bundled/prefabs/autospawn/animals/horse.prefab",
      "Weight": 2
      },
      {
      "Prefab": "assets/bundled/prefabs/autospawn/animals/stag.prefab",
      "Weight": 5
      },
      {
      "Prefab": "assets/bundled/prefabs/autospawn/animals/wolf.prefab",
      "Weight": 3
      }
      ],
      "Filter": {
      "BiomeType": "Everything",
      "SplatType": "Everything",
      "TopologyAll": "Nothing",
      "TopologyAny": "Forest",
      "TopologyNot": "Cliff, Summit, Ocean, Decor, Monument, Road, Bridge, River, Lake, Offshore, Runway, Building, Cliffside, Mountain, Clutter"
     
    Last edited by a moderator: Mar 8, 2017
  6. And this type of config do nothing? You don't see an animal on every m2?
     
  7. I see very few animals I would like to increase the population a little more if my map can handle it. I would like to see more bears, bores etc. I see 2 horses near my place but don't see any bears, bores.
     
  8. Weight values under prefab means how often you will see that type of animal. If you will set all weight values to 5, then horse would be common exactly as stag for example. If you want mooooore animals, then set TargetDensity at least to 100 and ClusterSizeMax at least to 4.
     
  9. Thanks so much for your help Para!!!
     
  10. SpawnConfig is now throwing new errors since the the update this morning from Punchface. Can anyone tell me whats wrong?
     

    Attached Files:

  11. Anyone can you help me with these SpawnConfig Errors?
     
  12. Please see my quoted reply above.

    There are no errors in your attached file.
     
    Last edited by a moderator: Mar 13, 2017

  13. This is not an error?

    03:48 [Info] [SpawnConfig] Loaded 20 SpawnPopulations and 167 SpawnGroups.
    03:48 [Warning] Calling 'OnTerrainInitialized' on 'SpawnConfig v1.0.10' took 1169ms [GARBAGE COLLECT]
     
  14. Those are all normal. If the plugin stopped working, it will be because you didn't change the new config after the last update.
     
  15. Error while compiling: SpawnConfig.cs(287,33): error CS0200: Property or indexer `SpawnPopulation.TargetDensity' cannot be assigned to (it is read-only)
     
  16. Rust Update, bug repot.
    Code:
    Error while compiling: SpawnConfig.cs(287,33): error CS0200: Property or indexer `SpawnPopulation.TargetDensity' cannot be assigned to (it is read-only)
     
  17. Nogrod updated SpawnConfig with a new update entry:

    1.0.13

     
  18. Wondering if anybody can help me with this?
    SpawnConfig.json is empty {} after fresh install. Have I done something wrong here? How would I generate the config file properly?
    Code:
    09:33 [Info] [SpawnConfig] Incorrect config version(0/0[0, 0])
    09:33 [Error] Failed to call hook 'OnTerrainInitialized' on plugin 'SpawnConfig v1.0.13' (TargetException: Non-static field requires a target)
    09:33 [Stacktrace]  at System.Reflection.MonoField.GetValue (System.Object obj) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SpawnConfig.CreateDefaultConfig () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SpawnConfig.CheckConfig () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SpawnConfig.OnTerrainInitialized () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SpawnConfig.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    EDIT: forgot to clarify, deleting the config file and reloading plugin just generates this empty config file.
     
    Last edited by a moderator: Apr 17, 2017
  19. I've never seen this problem but are you on linux? Does the plugin have permission to write that file to the directory?