You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got reward with several "Sealed box" items and one "Contraband box" item.
Actual Result
Server throw a exception and cause client softlock.
Steps To Reproduce
Get "Opened case" item (tpl: 674078c4a9c9adf0450d59f9)
Unpack
Exception happens
Server Log
TypeError: Cannot read properties of undefined (reading 'item')
TypeError: Cannot read properties of undefined (reading 'item')
at WeightedRandomHelper.getWeightedValue (C:\snapshot\src\helpers\WeightedRandomHelper.ts:16:27)
at LootGenerator.pickRewardItem (C:\snapshot\src\generators\LootGenerator.ts:627:46)
at LootGenerator.getRandomLootContainerLoot (C:\snapshot\src\generators\LootGenerator.ts:599:46)
at InventoryController.openRandomLootContainer (C:\snapshot\src\controllers\InventoryController.ts:825:52)
at InventoryCallbacks.openRandomLootContainer (C:\snapshot\src\callbacks\InventoryCallbacks.ts:201:34)
at InventoryItemEventRouter.handleItemEvent (C:\snapshot\src\routers\item_events\InventoryItemEventRouter.ts:89:48)
at ItemEventRouter.handleEvents (C:\snapshot\src\routers\ItemEventRouter.ts:36:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ItemEventCallbacks.handleEvents (C:\snapshot\src\callbacks\ItemEventCallbacks.ts:22:31)
BepinEx Log
None
Client Log
None
Player Profile
No response
Screenshots
In commit 3662767, "Opened case" has been added and have rewards, however the "Opened case" item use the wrong value:
SPT Version
3.10
Project Type
Server
Expected Result
Got reward with several "Sealed box" items and one "Contraband box" item.
Actual Result
Server throw a exception and cause client softlock.
Steps To Reproduce
Server Log
BepinEx Log
None
Client Log
None
Player Profile
No response
Screenshots
In commit 3662767, "Opened case" has been added and have rewards, however the "Opened case" item use the wrong value:
server/project/assets/configs/inventory.json
Line 1414 in 531dca5
Fixes:
The text was updated successfully, but these errors were encountered: