RandomSpawner

Randomly spawn a specific amount of an entity on the map

Total Downloads: 1,856 - First Release: Nov 14, 2015 - Last Update: Apr 14, 2017

5/5, 4 likes
  1. there is no config files ?

    > getprefabs
    Command not found
     
  2. [Oxide] 16:47 [Error] RandomSpawner plugin failed to compile!
    [Oxide] 16:47 [Error] RandomSpawner.cs(106,24): error CS1501: No overload for method `Spawn' takes `1' arguments
     
  3. Hello,

    I like the sound of this plugin and my server is desperate for a respawn of resources but I get the following error, Please could you help.

    [Oxide] 15:36 [Error] Error while compiling RandomSpawner.cs(106,24): error CS1501: No overload for method `Spawn' takes `1' arguments

    This happened when i typed "oxide.reload RandomSpawner" to load the plugin after install.

    I even tried a server restart but unfortunately, same error.

    Respectfully,
     
  4. Will fix that once I am at home.
     
  5. Thank you! +100000 for service!!! :)
     
  6. LaserHydra? Know what? YOU ARE AWSOME! Thanks you very much, that really did help me a lot!
     
  7. LaserHydra updated Random Spawner with a new update entry:

    1.0.1

     
  8. I keep getting:
    [Oxide] 23:44 [Warning] Missing plugin name prefix 'randomspawner.' for permission 'rspawn.getprefabs' (by plugin 'Random Spawner')
    [Oxide] 23:44 [Warning] Missing plugin name prefix 'randomspawner.' for permission 'rspawn.use' (by plugin 'Random Spawner')

    Am I missing something? Very new to all of this. Thanks for any infor!
     
  9. Thats just a warning which says that I as the plugin author will have to change the permission name. You did nothing wrong.
     
  10. UPDATE: Disregard this, I figured it out XD had to use the chat command, if I may make a suggestion though, could you implement some kind of notification when things worked properly? A bit of my confusion came from no ingame feedback, just the lucky chance to come upon an animal XD. Great plugin btw, such a relief because our map was so barren

    Hey, it's me again, still having myself some trouble, noob admin here lol:
    I tried to spawn some boars because for some reason our server is incredibly dead wildlife wise and got this error in the console

    [Error] Failed to call hook 'ccmdSpawnRandom' on plugin 'RandomSpawner v1.0.1' (NullReferenceException: Object reference not set to an instance of an object)

    I'm running the console command as:
    rspawn 25 assets/bundled/prefabs/autospawn/animals/boar.prefab

    and getting that error.
    Edit: Clarification I'm getting that error running the console command through RustAdmin, but when I run it through the ingame console, I get no error, not even in the RustAdmin logs, I also get no notification that the spawn happened, so I'm not sure if it's working or not.
     
    Last edited by a moderator: Jan 6, 2017
  11. Error while compiling RandomSpawner.cs(182,28): error CS1061: Type `ConsoleSystem.Command' does not contain a definition for `name' and no extension method `name' of type`ConsoleSystem.Command' could be found. Are you missing an assembly reference?
     
  12. Wulf

    Wulf Community Admin

    Wulf updated Random Spawner with a new update entry:

    1.2.0

     
  13. But downloadable version is still 1.0.1 and it's not worked.
     
  14. yupp it seems the download is not updating :(
    [DOUBLEPOST=1487426242][/DOUBLEPOST]
    Managed to sort of fix it, capitalise"Connection" ( search and replace ) and Name
    comment out the teleportation bit
    /* commenting out this bit */ like this
     
  15. Wulf

    Wulf Community Admin

    Must have uploaded the wrong one, fixing. :p
     
  16. Wulf

    Wulf Community Admin

    Wulf updated Random Spawner with a new update entry:

    1.2.0

     
  17. good job :)
     
    Last edited by a moderator: Mar 6, 2017
  18. trying to run console command within rustadmin
    (15:26:23) | [RCON][xxxxxxxxxxxxxx] rspawn 10 "assets/bundled/prefabs/autospawn/animals/bear.prefab"
    (15:26:23) | Failed to call hook 'ccmdSpawnRandom' on plugin 'RandomSpawner v1.2.0' (NullReferenceException: Object reference not set to an instance of an object)

    error log:
    Code:
    12:26 [Error] Failed to call hook 'ccmdSpawnRandom' on plugin 'RandomSpawner v1.2.0' (NullReferenceException: Object reference not set to an instance of an object)
    12:26 [Stacktrace]   at Oxide.Plugins.RandomSpawner.RunAsChatCommand (.Arg arg, System.Action`3 command) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RandomSpawner.ccmdSpawnRandom (.Arg arg) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RandomSpawner.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
     
    Last edited by a moderator: Apr 14, 2017
  19. Failed to call hook 'ccmdSpawnRandom' on plugin 'RandomSpawner v1.2.0' (NullReferenceException: Object reference not set to an instance of an object)

    I also get:

    FileSystem.LoadPrefab - should start with assets/ - bear
    [BUNDLE] Not found: bear
    Couldn't find prefab "bear"
     
  20. 18:06 [Error] Error while compiling: RandomSpawner.cs(42,65): error CS0117: `GameManifest' does not contain a definition for `Get'

    Plugin might be broken