ViZDoom icon indicating copy to clipboard operation
ViZDoom copied to clipboard

ITEMCOUNT not in use

Open caozhenxiang-kouji opened this issue 6 years ago • 4 comments

I added game variable ITEMCOUNT in cig, I found that whether I picked the health pick or ammo the value of the variable didn't change. Does anybody have any idea?

caozhenxiang-kouji avatar Apr 14 '19 05:04 caozhenxiang-kouji

Can confirm: Testing in deathmatch.wad with ViZDoom versions 1.1.5 (Python 3.5) and 1.1.7 (Python 3.7) on Windows, and tracking ITEMCOUNT. Ammos and medkits do not increase ITEMCOUNT, but smaller "overheal healing vials" and armour pickups do increase ITEMCOUNT.

Miffyli avatar Apr 14 '19 10:04 Miffyli

I met similar issues too. When I use cig.cfg or multi-deathmatch.cfg scenarios, ITEMCOUNT never increases even though ARMOR increases.

So what exactly is the condition of the event that ITEMCOUNT increases, as well as SECRETCOUNT.

JackieTseng avatar Apr 18 '19 04:04 JackieTseng

ITEMCOUNT is a variable that should work correctly only in singleplayer mode. I will check why it doesn't work for all items in deathmatch.wad.

mwydmuch avatar Apr 18 '19 12:04 mwydmuch

@mwydmuch Are there any alternative methods to count the found and picked items in multi-player mode, like SECRETCOUNT and ITEMCOUNT in single-player mode? THX.

JackieTseng avatar Apr 19 '19 03:04 JackieTseng