Cataclysm-dda: Unloading sewing kit creates a "none" item

Created on 5 May 2020  Â·  8Comments  Â·  Source: CleverRaven/Cataclysm-DDA

Describe the bug

Unloading sewing kit creates a "none" item

Steps To Reproduce

  1. Debug spawn sewing kit
  2. Unload your sewing kit (50/200)
  3. Get a debug message (see below)
  4. Open inventory and witness 2 items: sewing kit (0/200) and none

Expected behavior

thread not losing identity

Versions and configuration

  • OS: Linux

    • OS Version: Ubuntu 20.04

  • Game Version: 0.E-1745-gce33f39cfd-dirty [64-bit]
  • Graphics Version: Curses
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Magiclysm [magiclysm]
    ]

Additional context

02:01:22.096 ERROR : (error message will follow backtrace)
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(_Z21debug_write_backtraceRSo+0x23) [0x1bcc763]
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(_Z8DebugLog10DebugLevel10DebugClass+0x106) [0x1bcc1b6]
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(_Z12realDebugmsgPKcS0_S0_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x49) [0x1bcbcc9]
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(_Z12realDebugmsgIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvPKcS7_S7_S7_DpOT_+0x43) [0x19085e3]
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(_ZNK6player16item_reload_costERK4itemS2_i+0x388) [0x248e528]
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(_ZN6player6unloadER4item+0xc35) [0x248fc85]
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(_ZN13avatar_action6unloadER6avatar+0x139) [0x19fefa9]
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(_ZN4game13handle_actionEv+0xe33) [0x1d9bd73]
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(_ZN4game7do_turnEv+0x578) [0x1cfa858]
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(main+0xc82) [0x202ff72]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7ffff7a2b0b3]
    /mnt/Data/code/git/Cataclysm-DDA/cataclysm(_start+0x2e) [0x189f89e]

    Attempting to repeat stack trace using debug symbols…
    debug_write_backtrace(std::ostream&)
    …/src/debug.cpp:777
    DebugLog(DebugLevel, DebugClass)
    …/src/debug.cpp:943
    realDebugmsg(char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
    …/src/debug.cpp:115
    void realDebugmsg<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(char const*, char const*, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)
    …/src/debug.h:?
    player::item_reload_cost(item const&, item const&, int) const
    …/src/player.cpp:?
    player::unload(item&)
    …/src/player.cpp:3238
    avatar_action::unload(avatar&)
    …/src/avatar_action.cpp:1292
    game::handle_action()
    …/src/handle_action.cpp:2022
    game::do_turn()
    …/src/game.cpp:1515
    main
    …/src/main.cpp:697
    __libc_start_main
    ??:?
    _start
    ??:?
Backtrace emission took 6 seconds.
src/player.cpp:2894 [int player::item_reload_cost(const item &, const item &, int) const] cannot determine reload cost as none is neither ammo or magazine
<Bug> Containers Magazines

All 8 comments

Related to #40125

Related to #40134

Same thing happens with bone needle - reloading bone needle with thread leaves it at zero charges, but uses the thread.

Ditto for wood needle.

This really needs to get moved to the top of the queue. It breaks the game.

Ditto for wood needle.

This really needs to get moved to the top of the queue. It breaks the game.

There is no queue.

Agree totally. Hard to play past too far with nothing being reloadable.

Sent from Outlook Mobilehttps://aka.ms/blhgte


From: ZhilkinSerg notifications@github.com
Sent: Thursday, May 21, 2020 7:22:07 PM
To: CleverRaven/Cataclysm-DDA Cataclysm-DDA@noreply.github.com
Cc: morthein mordicon@hotmail.com; Manual manual@noreply.github.com
Subject: Re: [CleverRaven/Cataclysm-DDA] Unloading sewing kit creates a "none" item (#40158)

Ditto for wood needle.

This really needs to get moved to the top of the queue. It breaks the game.

There is no queue.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/CleverRaven/Cataclysm-DDA/issues/40158#issuecomment-632394385, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMD5VLCGMOPSC5BYSLQMGKDRSWZR7ANCNFSM4MZE3OBQ.

Ditto for wood needle.
This really needs to get moved to the top of the queue. It breaks the game.

There is no queue.

Then it needs to move to the top of everyone's queue.

Ditto for wood needle.
This really needs to get moved to the top of the queue. It breaks the game.

There is no queue.

Then it needs to move to the top of everyone's queue.

Nope.

Was this page helpful?
0 / 5 - 0 ratings