CleverRaven / CleverRaven/Cataclysm-DDA
Error causes crash to desktop.
- Dominant language
- C++
- Stars
- 13.2k
- Forks
- 4.6k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 205
Description
### Describe the bug
While in my camp, this error occurs and after ignoring it, the game crashes to desktop.
DEBUG : Can't calculate crafting speed multiplier of non-craft 'small storage battery'
FUNCTION : crafting_speed_multiplier
FILE : D:\a\Cataclysm-DDA\Cataclysm-DDA\src\crafting.cpp
LINE : 282
VERSION : 10ebc06
### Attach save file
[Light's End-trimmed.tar.gz](https://github.com/CleverRaven/Cataclysm-DDA/files/10906185/Light.s.End-trimmed.tar.gz)
### Steps to reproduce
Load the save file. It happens upon any interaction.
### Expected behavior
Not crash?
### Screenshots
_No response_
### Versions and configuration
- OS: Windows
- OS Version: 10.0.19044.2604 (21H2)
- Game Version: 10ebc06 [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
No Fungal Growth [no_fungal_growth],
Bionic Professions [package_bionic_professions],
Blaze Industries [blazeindustries],
Magiclysm [magiclysm],
Stats Through Kills [stats_through_kills]
]
### Additional context
_No response_
Contributor guide
Research direction
Load the attached Light's End-trimmed.tar.gz save and reproduce the crash by interacting in camp. Start at src/crafting.cpp line 282 and inspect the crafting_speed_multiplier path for the reported non-craft "small storage battery". Done means the save no longer crashes during interaction and the reported error is handled safely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100