[MODDED] Bots not spawning, "TypeError: Cannot read properties of undefined (reading 'isPmc')"

  • Server version
    3.7.1
    Game client version
    0.13.5.26535
    Client log file
    codepaste.sp-tarkov.com/?f977f…4YUhfNdCNuvfZoeKHLzhJojFD
    BepInEx log file
    codepaste.sp-tarkov.com/?c980d…48na7fLr38ciEdSXrf8V8LmZ1
    Server log file
    codepaste.sp-tarkov.com/?d6375…bq95GZp9suLVPXiLJzFW3M194
    Have you read the FAQ?
    Yes
    Where did you download your game from?
    EscapeFromTarkov.com / BSG
    List of used mods
    "AAAArtemTrader"
    "aaMFACSHOP"
    "aCivicPainter"
    "ACOG4Life-OpticRework"
    "aFannyPack"
    "AnyStand"
    "ArtemEquipment"
    "aSmallCases"
    "better-lasers"
    "BoopsQuestAPI-1.1.1"
    "CivicASS"
    "CivicBlackCore"
    "CivicGreenCore"
    "CivicMagLoader"
    "CivicMagTape"
    "CivicRedCore"
    "CivicSandCore"
    "CivicWhiteCore"
    "CNN-Container"
    "ColetteBlackpaw-drip"
    "DewardianDev-AlgorithmicLevelProgression"
    "EntryPointSelector"
    "Fontaine-FOV-Fix"
    "GildedKeyStorage"
    "GoblinKing"
    "gunsmith"
    "Hephaestus"
    "JoshMate-BetterBackpacks"
    "LOTW-LightsAutomaticArmbandAssistant"
    "MG28BLK"
    "MFACGuns"
    "MoreCheckmarksBackend"
    "NoConstructionTime"
    "NoHeadshots"
    "Priscilu"
    "PrisciluSpecialWeapons"
    "ProfileEditorHelper"
    "PunisherBoss"
    "PunisherGear"
    "PunisherHead"
    "RaiRaiTheRaichu-AmmoStats-3.0.0"
    "Realistic-Night-Vision-Goggles-1.1.5"
    "Realistic-Thermals-1.0.1"
    "revingly-lparedux-4.3.0"
    "revingly-micc-3.9.2"
    "ServerValueModifier"
    "shredder-StackableGrenades"
    "TacticalGearComponent"
    "Virtual\u0027sCustomQuestLoader"
    "zAT-GrenadeTrajectoryPredictionLine"
    "zSolarint-SAIN-ServerMod"
    "zzDrakiaXYZ-Waypoints"
    "zzPunisherVoice"
    "SWAG"

    Upon loading into a raid, i get the following error:


    TypeError: Cannot read properties of undefined (reading 'isPmc')

    TypeError: Cannot read properties of undefined (reading 'isPmc')

    at BotEquipmentFilterService.filterBotEquipment (C:\snapshot\project\src\services\BotEquipmentFilterService.ts:48:47)

    at customBotGen.generateBot (G:\SPT371\user\mods\ColetteBlackpaw-drip\src\customBotGen.js:75:44)

    at customBotGen.prepareAndGenerateBots (C:\snapshot\project\src\generators\BotGenerator.ts:118:24)

    at BotController.generate (C:\snapshot\project\src\controllers\BotController.ts:181:64)

    at BotCallbacks.generateBots (C:\snapshot\project\src\callbacks\BotCallbacks.ts:55:61)

    at RouteAction.action (C:\snapshot\project\src\routers\static\BotStaticRouter.ts:20:50)

    at BotStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61)

    at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62)

    at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)

    at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)

    TypeError: Cannot read properties of undefined (reading 'isPmc')

    TypeError: Cannot read properties of undefined (reading 'isPmc')

    at BotEquipmentFilterService.filterBotEquipment (C:\snapshot\project\src\services\BotEquipmentFilterService.ts:48:47)

    at customBotGen.generateBot (G:\SPT371\user\mods\ColetteBlackpaw-drip\src\customBotGen.js:75:44)

    at customBotGen.prepareAndGenerateBots (C:\snapshot\project\src\generators\BotGenerator.ts:118:24)

    at BotController.generate (C:\snapshot\project\src\controllers\BotController.ts:181:64)

    at BotCallbacks.generateBots (C:\snapshot\project\src\callbacks\BotCallbacks.ts:55:61)

    at RouteAction.action (C:\snapshot\project\src\routers\static\BotStaticRouter.ts:20:50)

    at BotStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61)

    at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62)

    at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)

    at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)


    and no bots spawn. any help would be great! I wasnt having any issues on 3.6.1, but now im having issues on 3.7.1. Thanks in advance!

  • chomp

    Changed the title of the thread from “Bots not spawning, "TypeError: Cannot read properties of undefined (reading 'isPmc')"” to “[MODDED] Bots not spawning, "TypeError: Cannot read properties of undefined (reading 'isPmc')"”.
  • If you'd like a temporary fix, I'm attaching some updated customBotGen files which seem to be what is causing the issue. To add the fix ontop of DRIP, just extract this to the root SPT-AKI folder.


    They're NOT in any way official nor a permanent fix, but it'll at least work for the time being. I've also put this in the support thread for the author to potentially use and piggy-back an official fix off. Happy modding!


    ColetteBlackpaw-drip.zip

  • I've been using this temp fix for a few days and have run into a few errors, I'm not too sure why its happening but the game will randomly freeze and stop responding during bot generate. The console says this,


    Required slot 'mod_reciever' on weapon_izhmeh_pm_treaded_9x18pm Holster was empty on crazyassaultevent

    Weapon 579204f224597773d619e051 was generated incorrectly, falling back to weapon preset see error above

    Required slot 'mod_reciever' on weapon_izhmeh_pm_treaded_9x18pm Holster was empty on crazyassaultevent

    Weapon 579204f224597773d619e051 was generated incorrectly, falling back to weapon preset see error above


    This is another error that causes this, so it must be something with the weapons on bots...


    Required slot unable to be filled, mod_handguard on reciever_ar15_aeroknox_ax15_upper 63f5ed14534b2c3d5479a677 for weapon: 5c07c60e0db834002330051f

    Required slot 'mod_handguard' on reciever_ar15_aeroknox_ax15_upper mod_reciever was empty on sptbear

    Weapon 5c07c60e0db834002330051f was generated incorrectly, falling back to weapon preset see error above


    Cheers

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!