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

Cannot record games on linux #513

Open
hughperkins opened this issue Jul 22, 2022 · 0 comments
Open

Cannot record games on linux #513

hughperkins opened this issue Jul 22, 2022 · 0 comments

Comments

@hughperkins
Copy link

Questions, features suggestions and requests

If you have a question, features suggestions or requests, do not hesitate to ask.
However, you can check FAQ section and already existing issues with "question" tag (is:issue label:question) first.

Issues

If you encountered an issue, please post the following things:

  • description of an issue,

If I try running the example script https://github.com/mwydmuch/ViZDoom/blob/master/examples/python/record_episodes.py on linux, then no replay files are recorded. If I run game.send_game_command('stop') every step, then a replay file is created, but with basically no gameplay in, i.e. hexdump -C ends with something like:

00000660  53 75 70 65 72 53 68 6f  74 67 75 6e 00 57 65 61  |SuperShotgun.Wea|
00000670  70 6f 6e 00 57 65 61 70  6f 6e 47 69 76 65 72 00  |pon.WeaponGiver.|
00000680  5a 6f 72 63 68 50 72 6f  70 75 6c 73 6f 72 00 00  |ZorchPropulsor..|
00000690  43 4f 4d 50 00 00 00 04  00 00 00 00 42 4f 44 59  |COMP........BODY|
000006a0  00 00 00 14 02 3f 20 38  02 02 02 02 02 02 02 02  |.....? 8........|
000006b0  02 01 11 80 08 18 00 07                           |........|
000006b8

If I run this command when `.is_episode_finished() returns True, then it is already too late: no replay file gets recorded.

I could predict when the episode is just about to finish, by looking at timeout, or if health is low, but that seems unreliable.

Looking for a reliable way to record games on a linux instance please.

  • ViZDoom version you are using,

1.1.13

  • information about your OS platform, distribution and environment (GCC, Python, Java, Lua versions etc.),

Ubuntu 22.04
python 3.10.4

  • if you have a problem with installation/building, post pip, CMake and Make output etc.,
  • if you encountered a crash, post vizdoom-crash.log that should be created in your working directory,
  • if you encountered a crash or bug, provide information about scenarios you are using and configuration of the ViZDoom environment,
  • any additional information, configuration, code or data that might be helpful.

To reproduce the bug:

  • on linux, install a python 3.10 env, with vizdoom in
  • run the script from the repository, `python examples/python/record_episodes.py
  • the script will crash, because of missing replay
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

No branches or pull requests

1 participant