Jump to content

Unable to auto spawn bots

Pending 2.1.1

Hey,

As the title says, I'm unable to auto-spawn bots after setting autospawn=true. I get the following message in my console:

 

Failed to run a 1.00 timer in 'BotSpawn v2.1.1' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.BotSpawn.AddProfile (System.String name, Oxide.Plugins.BotSpawn+ConfigProfile monument, UnityEngine.Vector3 pos) [0x0001a] in <c47c8495443945238d69e53449638a81>:0

at Oxide.Plugins.BotSpawn.CheckMonuments (System.Boolean add) [0x00180] in <c47c8495443945238d69e53449638a81>:0

at Oxide.Plugins.BotSpawn.SetupProfiles () [0x00000] in <c47c8495443945238d69e53449638a81>:0

at Oxide.Plugins.BotSpawn.<OnServerInitialized>m__0 () [0x001be] in <c47c8495443945238d69e53449638a81>:0

at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <ec05e0208c9149bba43236ca58fea105>:0

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

 

One thing I've been able to do, I can set custom profiles and manually spawn bots. The json file in the data folder is updated; however, when the plugin is reloaded and I try to spawn bots using the same custom profile, it says "There is no profile by that name in default or custom profiles jsons."

Any help is much appreciated, thank you!

Share this comment


Link to comment

Hi,

I think it has to be some kind of mistake in one of the data files that isn't getting caught.
Would you mind attaching the -DefaultProfiles and -CustomProfiles json files for your current prefix?

Thanks.

Share this comment


Link to comment

Yeah, not sure how it's happened but the contents of 'default-DefaultProfiles.json' is null.

Delete that file and reload BotSpawn and you should get a new file to work with.

  • Love 1

Share this comment


Link to comment

It worked, thanks so much for the speedy reply. Idk how that file ended up null but I feel a little braindead not seeing that haha glad it's working now. Thank you!

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.5k

Customers

Total customers served.

78.6k

Files Sold

Total number of files sold.

1.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.