Jump to content

Custom Spawn Odd message and/or no spawn

Pending 2.1.2

Hi Steenamaroo,

I'm having a weird issue I hope you can help with.

I'm trying to spawn bots on a custom monument I bought from another creator on codefling, the Nuclear submarine monument by RobJ.

Thing is when I attempt to set bots on it automatically I get the message about not finding a spawnpoint and skipping one bot. If it try with custom spawns enabled but non stationary I get this:

Failed to run a 1.00 timer in 'BotSpawn v2.1.2' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index)

at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in :0

at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in :0

at Oxide.Plugins.BotSpawn+c__AnonStorey2.<>m__0 () [0x00308] in :0

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

I don't understand enough to know what that means so I assumed it was a lack of navmesh thing and made them stationary. I then get no messages in console but no bots spawn either. Config is correct I believe because I've removed the Profile a few times and made few changes to test plus other custom profiles are spawning just fine. Only aiming to spawn default scientists.

If I just spawn a scientist via the console it seems to work fine. When testing it with RustEdit NPC spawners they were able to stand on the monument although only some moved so I know I'd probably have to make them stationary anyway if I could get them to spawn.

In total I have 134 bots so as far as I understand that shouldnt be too much to handle.

What do you think mate? Can I give you any more detail that might help at all?

Kind Regards

BaronVonFinchus

 

Share this comment


Link to comment

Hi,
I'm not sure why it's throwing that error.
It should be set up to tell you, politely, if there's no navmesh or no custom spawn points or whatever.
Throwing an 'index out of range' exception is no good.

 

I don't have the code open right now but I think I put a navmesh check in when spawn points are added,
so you should be able to know then and there if a point wont work and just remove it.

I'll take a look tomorrow and see if I can figure out why it's able to throw errors.

Share this comment


Link to comment

Okay mate, if its relevant at all this is set over water, pretty deep water. If you don't have the prefab I'm happy to privately share it with you for testing purposes but I believe the surfaces are primarily made out of Cargoship Fin/rudder thing just in case that it also relevant somehow.

As I say if I can provide anything at all that might help (aside from coding advice! 😅) then please let me know.

Thanks for all the work you do and for getting back to me so quickly!

Share this comment


Link to comment

Is there a more detailed error in the logs? Usually it gives you a trace - The name  of the method.
I expect it's "AdjustPopulation()" but if you can confirm that'd help.

Share this comment


Link to comment

23:33 [Error] Failed to run a 1.00 timer in 'BotSpawn v2.1.2' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index)
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Oxide.Plugins.BotSpawn+<AdjustPopulation>c__AnonStorey2.<>m__0 () [0x00308] in <e57c00e03e05443cacc0f4629c400398>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0 

 

This is in my oxide log, I hope that helps? If not then please let me know and I'll get you whatever is helpful.

 

 

Edited by Finchy911

Share this comment


Link to comment

AdjustPopulation - Thought that might be the case.
I'll get it sorted but, for now, just try to make sure each custom spawn point you place is definitely on navmesh.
Not sure why they aren't spawning with Stationary: true - I'll look into that too.

Thanks.

Share this comment


Link to comment

Hey man,

I just wanted to update you. I rebooted my server and it actually fixed the issue. I also needed to update Umod I suspect because I woke up to some extreme console spam saying:

UpdateNetworkGroup: Missing parent entity 361584 <--- it wasn't actually this number though.

So I shutdown my server, updated Umod and now bots are spawning.

Just wanted to let you know so you're not chasing issues that don't exist any more. Sorry for any time you might have spent on this so far.

Thanks for your time mate.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.1k

Files Sold

Total number of files sold.

1.6m

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.