Solarint / SAIN

Full EFT AI Replacement
57 stars 18 forks source link

Zryachiy + Followers & BTR not found in Bot Dictionary #121

Closed XAAAM closed 1 month ago

XAAAM commented 1 month ago

Ran in to this issue when trying to play on Lighthouse, but discovered it had the same bug on the BTR on Streets.

Just starting the map floods the debugger with this error (Lighthouse):

[Error  :      SAIN] [SAIN.Components.BotController.BotSpawnController] : [[PatchPrefix().GetSAIN().GetSAIN()]:] : [[Bot17] not found in SAIN Bot Dictionary. Comparing names manually to find the bot...
[Bot17] Still not found in SAIN Bot Dictionary. Comparing Profile Id instead...
[Bot17] not found in SAIN Bot Dictionary. Getting Component Manually...
[Bot17] could not be retrieved from SAIN Bots. WildSpawnType: [bossZryachiy] Returning Null

[Error  :      SAIN] [SAIN.Components.BotController.BotSpawnController] : [[GetSAIN().GetSAIN().GetSAIN()]:] : [[Bot17] not found in SAIN Bot Dictionary. Comparing names manually to find the bot...
[Bot17] Still not found in SAIN Bot Dictionary. Comparing Profile Id instead...
[Bot17] not found in SAIN Bot Dictionary. Getting Component Manually...
[Bot17] could not be retrieved from SAIN Bots. WildSpawnType: [bossZryachiy] Returning Null

It also spams the same message but for followerZryachiy.

Same with the BTR on Streets:

[Error  :      SAIN] [SAIN.Components.BotController.BotSpawnController] : [[PatchPrefix().GetSAIN().GetSAIN()]:] : [[Bot15] not found in SAIN Bot Dictionary. Comparing names manually to find the bot...
[Bot15] Still not found in SAIN Bot Dictionary. Comparing Profile Id instead...
[Bot15] not found in SAIN Bot Dictionary. Getting Component Manually...
[Bot15] could not be retrieved from SAIN Bots. WildSpawnType: [shooterBTR] Returning Null

[Error  :      SAIN] [SAIN.Components.BotController.BotSpawnController] : [[GetSAIN().GetSAIN().GetSAIN()]:] : [[Bot15] not found in SAIN Bot Dictionary. Comparing names manually to find the bot...
[Bot15] Still not found in SAIN Bot Dictionary. Comparing Profile Id instead...
[Bot15] not found in SAIN Bot Dictionary. Getting Component Manually...
[Bot15] could not be retrieved from SAIN Bots. WildSpawnType: [shooterBTR] Returning Null

Zryachiy and his guards still spawn, same with the BTR. But the debug in-game gets flooded with these messages. Like 10+ a second. The Player.log in LocalLow\Battlestate Games\EscapeFromTarkov gets flooded too, and very big due to it.

Tested other bosses, and they seem to work fine. Didn't test all of them though.

This was tested with: Fika (currently MPT) + SAIN (2.2.2 Test 5) + BigBrain 0.4.0 + Waypoints 1.4.3

scottiedawg66 commented 1 month ago

I had the same bug using the same mods.

XAAAM commented 1 month ago

Inside BotController/Classes/BotSpawnController.cs

private static readonly WildSpawnType[] ExclusionList =
{
    WildSpawnType.bossZryachiy,
    WildSpawnType.followerZryachiy,
    WildSpawnType.peacefullZryachiyEvent,
    WildSpawnType.ravangeZryachiyEvent,
    WildSpawnType.shooterBTR
};

So these are excluded by choice. But it should probably stop searching for them when not found instead of spamming the backend with thousands of tries.

Cameronvg2 commented 1 month ago

Im trying to find the location of this Botcontroller as im having the same issue, but i cannot find it, do you think this is causing the issue and could disabling it help?

Solarint commented 1 month ago

I disabled the logging, it was only there to double check something and I forgot about it after