-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Changing keyboard up/down/left/right buttons to w/s/a/d in Spectator Mode #253
Comments
I think you can do this by simply changing the settings when you launch a vizdoom game, and the changes will persist (haven't checked). You can also add game arguments to bind the buttons you want. If |
Hi @Miffyli I have tried to add that line to spectator.py https://github.com/mwydmuch/ViZDoom/blob/a3367d9dd59b47493a14606e19752e9ade639ba0/examples/python/spectator.py instead of line 36 and it didn't work. Any suggestions on how I can debug it ? I am using latest vizdoom with anaconda3 |
Hmm with that setup it works for me (Windows 10, Python 3.5, VizDoom 1.1.0). I don't think change in version should have an effect here as this is zdoom level stuff. Here are the lines 33-44 I used just in case. Other than that I do not know what to say to debug this :( # Enables freelook in engine
game.add_game_args('+"bind w +forward" +"bind s +back" +"bind a +left" +"bind d +right"')
game.set_screen_resolution(ScreenResolution.RES_640X480)
# Enables spectator mode, so you can play. Sounds strange but it is the agent who is supposed to watch not you.
game.set_window_visible(True)
game.set_mode(Mode.SPECTATOR)
game.init() |
Hello @emansim, You can save it in some better location and load using this function: |
I modified |
Hi,
First of all thanks for the great framework.
I am wondering whether it is possible to change the assignment of keys up/down/left/right to w/s/a/d in spectator mode ? Thanks.
The text was updated successfully, but these errors were encountered: