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. Temp fix change line 243 to
    Code:
    var currentCount = SpawnHandler.Instance.GetCurrentCount(spawnPopulations, spawnDistributions);
     
    Last edited by a moderator: Sep 5, 2017
  2. Nogrod updated SpawnConfig with a new update entry:

    1.0.14

     
  3. Been trying unsuccessfully for an hour to have it NOT spawn any ore nodes. The overview of this plugin literally has no info on how filter works either.

    I've played with the filter and cant get it, i've used "Nothing" in some, "Everything", etc.

    Code:
        "ores": {
          "TargetDensity": 0.0,
          "SpawnRate": 0.0,
          "ClusterSizeMin": 0,
          "ClusterSizeMax": 0,
          "ClusterDithering": 0,
          "EnforcePopulationLimits": true,
          "ScaleWithSpawnFilter": false,
          "ScaleWithServerPopulation": false,
          "AlignToNormal": true,
          "Prefabs": [],
          "Filter": {
            "BiomeType": "Everything",
            "SplatType": "Everything",
            "TopologyAll": "Everything",
            "TopologyAny": "Everything",
            "TopologyNot": "Everything"
          }
        },
     
  4. spawn.dump error:

    Code:
    15:48 [Error] Failed to call hook 'cmdSpawnDump' on plugin 'SpawnConfig v1.0.14' (NullReferenceException: Object reference not set to an instance of an object)
    15:48 [Stacktrace]   at Oxide.Plugins.SpawnConfig.SpawnDump () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.SpawnConfig.cmdSpawnDump (.Arg arg) [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
    
    Editing the SpawnConfig file (TargetDensity) of barrels and reloading the plugin 'LootConfig' gives another error - Spamming ~100x:

    Code:
    15:51 [Info] [LootConfig] No spawngroup data found: unkown
    
     
  5. does not work at all
     
  6. What is "at all" in this case? does not laod, compile, etc? :p
     
  7. it does not change anything. i set it up do spawn more stone and less sulfur. nothing happend. then i tried 0 sulfur. but the map is still full with sulfure. i even pick it to see if it respawns and yes it does.
     
  8. It does not change "instant", it does change by normal despawn of other stuff first. The SpawnHandler does obey the new settings instant, but he does not force to kill any old stuff and to respawn all in that case.
     
  9. as i said i did manual pick sulfure ore and set sulfure to zero so there shoult no sulfur respawn but it did why?
     
  10. H
    Ok, I'm just starting up a PVE server and wanted more animals and possibly scientists at the missile factory. I've been reading all the comments and I'm just confused(I know it doesn't take a lot). Can anybody point me in the right direction?
     
  11. a lot of people are using this plugin
    BotSpawn for Rust | Oxide
     
  12. Thanks for that tomhud just need to sort the animals out now
     
  13. Is it just me or is there no config (.json file)?
     
  14. Yeah i am also not getting a config file for this also. Wish the Dev would explain more on their plugin.
     
  15. Error while compiling: SpawnConfig.cs(254,27): error CS0117: `ConVar.Server' does not contain a definition for `Log'

    stuck for what to do
     
  16. Same problem as born again sniper
     
  17. open SpawnConfig.cs and edit at line 253
    from ConVar.Server.Log("oxide/logs/spawns.txt", stringBuilder.ToString());
    to LogToFile("SpawnConfig", stringBuilder.ToString(), this);
     
  18. Wulf

    Wulf Community Admin

    Wulf updated SpawnConfig with a new update entry:

    1.0.15

     
  19. Getting this error now:
    System.NullReferenceException: Object reference not set to an instance of an object
    at SpawnPopulation.UpdateWeights (.SpawnDistribution distribution, Int32 targetCount) [0x00000] in <filename unknown>:0
    at SpawnHandler.Spawn (.SpawnPopulation population, .SpawnDistribution distribution, Int32 targetCount, Int32 numToFill, Int32 numToTry) [0x00000] in <filename unknown>:0
    at SpawnHandler.SpawnRepeating (.SpawnPopulation population, .SpawnDistribution distribution) [0x00000] in <filename unknown>:0
    at SpawnHandler+<SpawnTick>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0

    Its much longer to load server now and output_log.txt is 7.5GB and I can't ready it due to size.
     
  20. Upon starting a new map after a wipe, I got a "NullReferenceException: Object reference not set to an instance of an object" just after I get a "Couldn't load server...{...}... file doesn't exist" message. I think this plugin is causing the exception by trying to load the .sav file before it is even created. I haven't narrowed it down to this plugin specifically, but I think it's the cause.