Closed Illajoh closed 9 months ago
Hey @Illajoh. Thanks for the report. However, I'm not confident that the issue is with custom-raid-times. The issue looks like it happens during bot generation. Try removing one mod at a time until the issue goes away--That way you'll know exactly which mod is causing the issue.
Yeah I thought so too and thought that the custom timing and/or scripting about how many bots etc somehow messed up on Reserve, but it seems that [Duc's Case Framework] was at fault. It probably encountered some errors when it tries to randomly put the cases from the mod onto Gluhar's crew or Raiders. I removed that mod and can confirm that I get bots on Reserve now. Thanks :)
Discord Username
No response
What happened?
A bug happened!
I started a regular SPT-AKI game on Reserve but I didn't encounter any bots. There wasn't gunfire or anything.
SPT-AKI server prompt as follows, everything after the first line is in red:
[Client Request] /client/game/bot/generate TypeError: Cannot read properties of undefined (reading 'item') TypeError: Cannot read properties of undefined (reading 'item') at WeightedRandomHelper.getWeightedValue (C:\snapshot\project\src\helpers\WeightedRandomHelper.ts:27:27) at BotInventoryGenerator.generateEquipment (C:\snapshot\project\src\generators\BotInventoryGenerator.ts:212:64) at BotInventoryGenerator.generateAndAddEquipmentToBot (C:\snapshot\project\src\generators\BotInventoryGenerator.ts:168:18) at BotInventoryGenerator.generateInventory (C:\snapshot\project\src\generators\BotInventoryGenerator.ts:70:14) at BotGenerator.generateBot (C:\snapshot\project\src\generators\BotGenerator.ts:177:52) at BotGenerator.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) TypeError: Cannot read properties of undefined (reading 'item') TypeError: Cannot read properties of undefined (reading 'item') at WeightedRandomHelper.getWeightedValue (C:\snapshot\project\src\helpers\WeightedRandomHelper.ts:27:27) at BotInventoryGenerator.generateEquipment (C:\snapshot\project\src\generators\BotInventoryGenerator.ts:212:64) at BotInventoryGenerator.generateAndAddEquipmentToBot (C:\snapshot\project\src\generators\BotInventoryGenerator.ts:168:18) at BotInventoryGenerator.generateInventory (C:\snapshot\project\src\generators\BotInventoryGenerator.ts:70:14) at BotGenerator.generateBot (C:\snapshot\project\src\generators\BotGenerator.ts:177:52) at BotGenerator.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) //
SPT Version
3.6.1
Server Log