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

DEBUG : cannot determine reload cost as Swiss Army knife is neither ammo or magazine #28118

Open
moxian opened this Issue Feb 7, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@moxian
Copy link
Contributor

moxian commented Feb 7, 2019

To Reproduce
Steps to reproduce the behavior:

  1. load save: Dallas-reload-bottle.zip
  2. press reload -> k (for plastic bottle in the inventory)
  3. get the error
 DEBUG    : cannot determine reload cost as Swiss Army knife is neither ammo or magazine
 
 FUNCTION : int player::item_reload_cost(const item&, const item&, long int) const
 FILE     : src/player.cpp
 LINE     : 8219

followed by

 DEBUG    : Tried to reload liquid container with non-liquid.
 
 FUNCTION : bool item::reload(player&, item_location, long int)
 FILE     : src/item.cpp
 LINE     : 5747
  1. i don't get asked what I want to reaload the bottle with, and it never gets reloaded.

Versions and configuration(please complete the following information):

  • OS: Win 7
  • Game Version 0.c-37270-g86ec372
  • Graphics version Tiles
  • Mods loaded: all default

p.s.: there's a backtrace in debug.log but it's entirely non-helpful as I see it:

05:35:48.093 ERROR : (error message will follow backtrace)
	(@0x5e8d6e[cataclysm-tiles.exe+0x1e8d6e]), 
	(@0x5e934a[cataclysm-tiles.exe+0x1e934a]), 
	(@0x5eafe3[cataclysm-tiles.exe+0x1eafe3]), 
	(IMG_LoadWEBP_RW+0x1118fc@0x10a768c[cataclysm-tiles.exe+0xca768c]), 
	(@0xbae422[cataclysm-tiles.exe+0x7ae422]), 
	(@0x78f7ad[cataclysm-tiles.exe+0x38f7ad]), 
	(@0x6c368e[cataclysm-tiles.exe+0x2c368e]), 
	(@0x6c3ec1[cataclysm-tiles.exe+0x2c3ec1]), 
	(@0x71b938[cataclysm-tiles.exe+0x31b938]), 
	(@0x6fe626[cataclysm-tiles.exe+0x2fe626]), 
	(IMG_LoadWEBP_RW+0x4e3c09@0x1479999[cataclysm-tiles.exe+0x1079999]), 
	(@0x4013ed[cataclysm-tiles.exe+0x13ed]), 
	(@0x4014fb[cataclysm-tiles.exe+0x14fb]), 
	(BaseThreadInitThunk+0xd@0x76bf59cd[kernel32.dll+0x159cd]), 
	(RtlUserThreadStart+0x1d@0x76e5385d[ntdll.dll+0x5385d]), 
Backtrace emission took 0 seconds.
src/player.cpp:8219 [int player::item_reload_cost(const item&, const item&, long int) const] cannot determine reload cost as Swiss Army knife is neither ammo or magazine
05:36:17.675 ERROR : src/item.cpp:5747 [bool item::reload(player&, item_location, long int)] Tried to reload liquid container with non-liquid.
@Night-Pryanik

This comment has been minimized.

Copy link
Member

Night-Pryanik commented Feb 7, 2019

I'm pretty confident we encountered such errors before.

Tested your save. Dropping Swiss Army knife and picking it back removes the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment