Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consumed something that was not food, drink or medicine/drugs error while opening the Eat menu #40506

Closed
DillonSimeone opened this issue May 13, 2020 · 4 comments · Fixed by #40508

Comments

@DillonSimeone
Copy link
Contributor

Describe the bug

If you're surrounded by mountains of loots and try to open the eat menu... The game thinks that you're trying to eat everything around you, and may crash! The more items you're surrounded with, the more likely it is for a crash to occur!

Debug message that's thrown for EACH items around you while opening the eat menu.

 DEBUG    : Consumed something that was not food, drink or medicine/drugs

 FUNCTION : time_duration Character::get_consume_time(const item&)
 FILE     : src/consumption.cpp
 LINE     : 1668

(I commented this on this issue, thinking that it was related. Might be a whole different thing by itself! #40268 (comment) )

Steps To Reproduce

  1. Load up my game, ignore all error messages.
  2. Press E inside my car.
  3. Despair at the flood of error messages, and possibly a crash!

Expected behavior

I'm not trying to eat everything! I'm just opening the eat menu, so... Instead of pretending that I ate everything around me, show me foods that I want to eat!

Screenshots

image

Versions and configuration

  • OS: Windows
    • OS Version: 10.0 1903
  • Game Version: 0.E-2123-g10dbb76 [64-bit]
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Aftershock [aftershock],
    C.R.I.T Expansion Mod [crt_expansion],
    Magiclysm [magiclysm],
    XEAS [XEAS],
    DinoMod [DinoMod],
    Crazy Cataclysm [crazy_cataclysm],
    More City Locations [cityside],
    No Rail Stations [No_Rail_Stations],
    sees-player icon, retrodays [sees_player_retro],
    Stats Through Kills [stats_through_kills],
    SpeedyDex [speedydex],
    Arcana and Magic Items [Arcana],
    Graphical Overmap [Graphical_Overmap],
    Advanced Gear [adv_gear],
    Blaze Industries [blazeindustries]
    ]

Additional context

Save:
Palmer Heights.zip

Mods:
mods.zip

@DillonSimeone
Copy link
Contributor Author

DillonSimeone commented May 13, 2020

Bad news! I just updated to Build 10659.

The first thing I did on game load? Pressed E in my car, and...

image

Save and mods are still the same as up above. Crash and debug log attached to the end of this comment.

  • OS: Windows
    • OS Version: 10.0 1903
  • Game Version: 0.E-2131-g3ac02c5 [64-bit]
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Aftershock [aftershock],
    C.R.I.T Expansion Mod [crt_expansion],
    Magiclysm [magiclysm],
    XEAS [XEAS],
    DinoMod [DinoMod],
    Crazy Cataclysm [crazy_cataclysm],
    More City Locations [cityside],
    No Rail Stations [No_Rail_Stations],
    sees-player icon, retrodays [sees_player_retro],
    Stats Through Kills [stats_through_kills],
    SpeedyDex [speedydex],
    Arcana and Magic Items [Arcana],
    Graphical Overmap [Graphical_Overmap],
    Advanced Gear [adv_gear],
    Blaze Industries [blazeindustries]
    ]

crash.log
debug.log

@Ramza13
Copy link
Contributor

Ramza13 commented May 13, 2020

It's not showing the message anymore right? I think there were two separate things happening in this issue. The first was the the messages which I hope I have fixed. Looking at your crash.log the last bits are:

05:21:55.110 ERROR : src/mapgen.cpp:324 [void mapgen_factory::check_consistency()] Mapgen house is not used by anything!
05:21:58.174 ERROR : src/item_factory.cpp:1352 [const itype* Item_factory::find_template(const itype_id&) const] Missing item definition: shot_pump
05:22:03.342 ERROR : src/item_contents.cpp:87 [void item_contents::combine(const item_contents&)] error: tried to put an item into a pocket that can't fit into it while loading. err: No success
05:22:07.058 ERROR : src/item_factory.cpp:1352 [const itype* Item_factory::find_template(const itype_id&) const] Missing item definition: shot_buck
05:22:07.058 ERROR : src/item_factory.cpp:1352 [const itype* Item_factory::find_template(const itype_id&) const] Missing item definition: pistol_casing
05:22:07.066 ERROR : src/item_factory.cpp:1352 [const itype* Item_factory::find_template(const itype_id&) const] Missing item definition: pistol_ball
05:22:07.066 ERROR : src/item_factory.cpp:1352 [const itype* Item_factory::find_template(const itype_id&) const] Missing item definition: pistol_medium
05:22:07.074 ERROR : src/item_factory.cpp:1352 [const itype* Item_factory::find_template(const itype_id&) const] Missing item definition: tiny_pistol_jhp
05:22:07.074 ERROR : src/item_factory.cpp:1352 [const itype* Item_factory::find_template(const itype_id&) const] Missing item definition: pistol_tiny_target

This looks like pocket related data issues. I am guessing some of your json mod or normal is wrong and causing issues. It might be worth opening this as a new bug with the attached logs, or ask Korg to see if its a simple json fix in your save.

@DillonSimeone
Copy link
Contributor Author

Oh, you're right, I ought clean those up. I've had those in my game for a few days, been ignoring it instead of cleaning my save file.

I'll clean those out of my file, and see if this error still occur. I'll be surprised if that's the fix since it wasn't an issue until now!

@DillonSimeone
Copy link
Contributor Author

DillonSimeone commented May 14, 2020

crash.log
debug.log

I went though my save files and cleaned them all up. The crash is still occurring in my car. Strange. This what appears at the end of my debug.log now.

02:30:31.128 INFO : Loaded tileset: UNDEAD_PEOPLE
02:30:37.765 ERROR : src/item_contents.cpp:87 [void item_contents::combine(const item_contents&)] error: tried to put an item into a pocket that can't fit into it while loading.  err: No success

I tried removing the old mod, AdvancedGear-CDDA-Mod-master from my save. Crash is still happening when I eat in my vehicle. Hmm.

Making a new issue on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants