How to get buttons in Player mode?

17 views
Skip to first unread message

Lina

unread,
Mar 17, 2019, 8:17:41 AM3/17/19
to Visual Doom AI Users
Hello everyone,
I am new to VizDoom and still trying to understand how it works. Righ now I am not interested in game simulations but instead want real players to play the game. I already managed to change the mode to "player". When reading out the current actions and rewards for each state I noticed that get_buttons / get_last_action both don't return my actual button press but the randomly chosen action from make_action. Since the given reward corresponds to my keyboard input and not to the random action choice I am pretty sure that my button press is coded somewhere. How can I access it? How can I get make_action() to chose the action by actual keyboard input instead of a random choice?

Hope anyone can help.


Wojciech Jaśkowski

unread,
Mar 17, 2019, 8:48:41 AM3/17/19
to Lina, Visual Doom AI Users
The mode names are not best. "Player" means basically "the algorithm controls the agent". You should use "Spectator" (the algorithm is a spectator).

Michał Kempka

unread,
Mar 17, 2019, 9:33:29 AM3/17/19
to Visual Doom AI Users
As Wojciech metnioned, it's spectaor mode you are interested in. Plese see this example: https://github.com/mwydmuch/ViZDoom/blob/master/examples/python/spectator.py
Reply all
Reply to author
Forward
0 new messages