CleverRaven / CleverRaven/Cataclysm-DDA
The ability to create a yeast culture and then switching to the CHEM crafting tab results in error in RC.
- Dominant language
- C++
- Stars
- 13.2k
- Forks
- 4.6k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 205
Description
### Describe the bug
The ability to create a yeast culture and then switching to the CHEM crafting tab results in the error.
> DEBUG : Tried to set charges for item yeast that could not have them!
>
> FUNCTION : item::item(const itype*, time_point, int)
> FILE : src/item.cpp
> LINE : 313
> VERSION : 293c761
### Attach save file
[Fompton-trimmed.tar.gz](https://github.com/user-attachments/files/17042484/Fompton-trimmed.tar.gz)
### Steps to reproduce
1. Load save and attempt to craft at workbench.
2. Switch to CHEM tab
3. dbug error
### Expected behavior
I expect the game not to debug error when switching crafting categories.
### Screenshots
_No response_
### Versions and configuration
- OS: Linux
- OS Version: LSB Version: n/a; Distributor ID: cachyos; Description: CachyOS; Release: rolling; Codename: n/a;
- Game Version: 293c761 [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Portal Storms Ignore NPCs [personal_portal_storms],
Slowdown Fungal Growth [no_fungal_growth],
Bionic Professions [package_bionic_professions],
Alternative Map Key [alt_map_key],
Crazy Cataclysm [crazy_cataclysm],
sees-player icon, HitButton_iso [sees_player_hitbutton],
sees-player, run, crouch, bleed icons, retrodays [sees_player_retro]
]
### Additional context
_No response_
Contributor guide
Research direction
Reproduce the issue with the attached save by crafting yeast and switching to the CHEM tab. Start at the item construction reported in src/item.cpp line 313 and trace why yeast is assigned charges during category switching. Done means the same steps no longer produce the debug 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
- 35/100