CleverRaven / CleverRaven/Cataclysm-DDA

Cannot store .50 BMG in tactical backpack beyond a limited quantity

Open
#44,484 5 comments 0 reactions 0 assignees View on GitHub
[C++] <Bug> Items: Containers
Dominant language
C++
Stars
13.1k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
200

Description

# Describe the bug

While there's room in the huge tactical backpack to store the bullets and the bullets only and the advanced inventory system says you can store in it up to 1500 of them you can only put maybe 300 and if you force insert them via menu the game delivers the following error

` DEBUG : tried to put an item (50bmg) count (3863) in a container (backpack_tactical_large) that cannot contain it: pockets unacceptable because item is too heavy

FUNCTION : ret_val item::put_in(const item&, item_pocket::pocket_type)
FILE : src/item.cpp
LINE : 1102
`

# Steps To Reproduce

1.- Try and put .50 bmg rounds in your tactical backpack
2.- Get error message

# Expected behavior

# Screenshots

# Versions and configuration

OS: Windows
OS Version: 10.0 1903
Game Version: 0.E-6185-ge9f4d04 [64-bit]
Graphics Version: Tiles
Game Language: English [en]
Mods loaded: [
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Blaze Industries [blazeindustries],
C.R.I.T Expansion Mod [crt_expansion],
Aftershock [aftershock],
Mining Mod [Mining_Mod],
More Survivor Stuff [more_survivor_stuff],
Caches [P_Caches],
Dorf Life [Dorf_Life]
]

# Additional context

Contributor guide

Open the contributing guide

Research direction

Start in src/item.cpp at item::put_in around line 1102 and reproduce the reported behavior with .50 BMG rounds in the tactical backpack. Check how the backpack’s stated capacity relates to the item’s weight and the pocket rejection; done means the intended quantity can be stored without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.