fun-bots icon indicating copy to clipboard operation
fun-bots copied to clipboard

ERROR: CreateSoldier failed

Open GHDavor opened this issue 8 months ago • 24 comments

Scope

Core

What happened?

Console keeps spamming this error and bots don't respawn

What was expected?

They should respawn and the console shouldn't throw this error

How can we reproduce and test it?

it happens by it's own

Version of fun-bots and VU?

fun-bots-3.0.0-dev3. VU 20079

I have checked the following... (if applicable)

GHDavor avatar May 01 '25 19:05 GHDavor

Hi, can you send me some more context? What map with how many bots and what settings are you running? Does this also happen on default settings? Any way to reproduce this error quickly?

Thanks a lot for your help and sorry for the late response! Joe

Joe91 avatar May 14 '25 18:05 Joe91

Hi, can you send me some more context? What map with how many bots and what settings are you running? Does this also happen on default settings? Any way to reproduce this error quickly?

Thanks a lot for your help and sorry for the late response! Joe

Sure no problem. It happens on every map and any gamemode, although it happens more often in conquest. Settings are default. Either 16 or 32 bots which is the amount i usually run. After the bots die there's a chance they get stuck dead and the console spams the error. I'm currently away from my house but tomorrow if i have time I'll record a video.

GHDavor avatar May 15 '25 14:05 GHDavor

Damn, i marked complete by accident

GHDavor avatar May 15 '25 14:05 GHDavor

If there's a chance you could reopen it

GHDavor avatar May 15 '25 14:05 GHDavor

Just opend it again. Yeah, a viedo could help. Can you also tell me what other mods you run, if any? I would like to reproduce this on my own, but was not able yet...

Joe91 avatar May 15 '25 14:05 Joe91

Just opend it again. Yeah, a viedo could help. Can you also tell me what other mods you run, if any? I would like to reproduce this on my own, but was not able yet...

Sure ModList.txt These are the mods that are enabled and running. i'm recording the video as i'm writing this btw

GHDavor avatar May 16 '25 17:05 GHDavor

Just opend it again. Yeah, a viedo could help. Can you also tell me what other mods you run, if any? I would like to reproduce this on my own, but was not able yet...

i uploaded the video on youtube because for some reason github doesn't want to: https://www.youtube.com/watch?v=85dGQTO7tkk

the error gets spammed every exact second

GHDavor avatar May 16 '25 17:05 GHDavor

Thanks a lot for the video! Since there is no other error before the Create-soldier failed, i suspect an incompatibility with another mod...

Can you please try if it also happens, if you only use fun-bots and no other mod? If it then doesn't happen anymore we must narrow down what exact other mod causes these issues. But it might also be something completely different. I'm still not able to reproduce this, so any clue on how to reproduce it here for me is welcome...

As a brief addition to this: I only call an engine-method from VU to create the soldier. So I don't habe any control over the outcome, but maybe the input is somehow corrupted...

Joe91 avatar May 16 '25 18:05 Joe91

Thanks a lot for the video! Since there is no other error before the Create-soldier failed, i suspect an incompatibility with another mod...

Can you please try if it also happens, if you only use fun-bots and no other mod? If it then doesn't happen anymore we must narrow down what exact other mod causes these issues. But it might also be something completely different. I'm still not able to reproduce this, so any clue on how to reproduce it here for me is welcome...

As a brief addition to this: I only call an engine-method from VU to create the soldier. So I don't habe any control over the outcome, but maybe the input is somehow corrupted...

i'll try with no mods, if it still happens, i'll reinstall funbots just in case

GHDavor avatar May 16 '25 20:05 GHDavor

Welp, it is still doing it even with no mods, so instead i'm gonna download the latest update you published and let you know

GHDavor avatar May 16 '25 21:05 GHDavor

@Joe91 so, after loading in with dev4 and no mods, the error still happened as seen in the screenshot, but, at least on my team, the bots did actually spawn again, like my team still had the 9 bots it should have and i counted them everytime i saw a kill in the feed

i actually have no idea, i'll load in with my mods too and let you know

Image

GHDavor avatar May 16 '25 21:05 GHDavor

btw after i left, the bots left too, no ghosts or anything

GHDavor avatar May 16 '25 21:05 GHDavor

ok, so i changed the amount of bots to spawn to 24, and it started doing it again, it's like it has a space limit??? it's pretty strange because what happens is if a lot of bots start dying, the game just throws the error and only spawns in some of the ones that died, usually there's around 10 people alive and the rest are dead, it's a really strange thing.

GHDavor avatar May 16 '25 21:05 GHDavor

i'm going to try one of the old versions like 2.9.0 and let you know, because this is a pretty strange error

GHDavor avatar May 16 '25 21:05 GHDavor

welp, i just tried 2.9.0 and the error doesn't happen, there is one error that say !!! is nil !!! but it doesn't affect the spawn rate of bots, so i really have no idea

GHDavor avatar May 16 '25 22:05 GHDavor

Can you provide me your server-config-file (please without the password ;-) ).

Joe91 avatar May 17 '25 06:05 Joe91

Can you provide me your server-config-file (please without the password ;-) ).

can you specify what that is?

GHDavor avatar May 17 '25 18:05 GHDavor

Sorry for the late response: I mean the Startup.txt in the Amin folder of the server. Then I should be able recreate your server...

Joe91 avatar May 19 '25 19:05 Joe91

Sorry for the late response: I mean the Startup.txt in the Amin folder of the server. Then I should be able recreate your server...

Sorry i'm late, the week was kinda busy

Startup.txt

here you go

GHDavor avatar May 23 '25 22:05 GHDavor

Sorry for the late response: I mean the Startup.txt in the Amin folder of the server. Then I should be able recreate your server...

Sorry i'm late, the week was kinda busy

Startup.txt

here you go

I'm not sure if it's related to vars.playerRespawnTime, but after multiple tests, the error doesn't occur as long as I restore the original value of 100.

MikoMeowo avatar May 31 '25 16:05 MikoMeowo

That's interesting and a good hint. Thanks! I played two rounds with your settings, but was not able to reproduce it yet on my system. Well try with different values then.

Joe91 avatar May 31 '25 18:05 Joe91

That's interesting and a good hint. Thanks! I played two rounds with your settings, but was not able to reproduce it yet on my system. Well try with different values then.

The test map is Talah Market, Assault Large, with 28 players. vars.playerRespawnTime 5

MikoMeowo avatar Jun 01 '25 01:06 MikoMeowo

welp, i just tried 2.9.0 and the error doesn't happen, there is one error that say !!! is nil !!! but it doesn't affect the spawn rate of bots, so i really have no idea

This isn't an error, is just a forgotten print (guessing Joe forgot about it while debugging the Node traces module)

MatiasPastori avatar Jul 08 '25 19:07 MatiasPastori

That's interesting and a good hint. Thanks! I played two rounds with your settings, but was not able to reproduce it yet on my system. Well try with different values then.

The test map is Talah Market, Assault Large, with 28 players. vars.playerRespawnTime 5

Pretty similar to the value that some bots have to delay their spawn on vehicles I believe. Might be related. @Joe91

MatiasPastori avatar Jul 08 '25 19:07 MatiasPastori