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

Example Not working! #17

Open
osoblanco opened this issue Jun 22, 2020 · 5 comments
Open

Example Not working! #17

osoblanco opened this issue Jun 22, 2020 · 5 comments

Comments

@osoblanco
Copy link

After installing DeepRts I cannot run the code as it is either missing dependencies or smth. like that.

AttributeError: 'DeepRTS.Engine.Config' object has no attribute 'set_start_wood'
@perara
Copy link
Member

perara commented Jun 22, 2020

I assume you ran the code in the README.md.
This is probably outdated, how much, I don't know. See the examples in the coding directory :)

@osoblanco
Copy link
Author

Oh ok. Also After starting the rendering should the window turn grey after a while ?
Screenshot from 2020-06-25 14-13-14

@perara
Copy link
Member

perara commented Jun 25, 2020

Does it render stuff at all, or just the first picture?
If it doesn't render at all it means that you have to explicitly call the render function to draw the pixel buffer onto your screen :)

If I've deactivated that by default it is because it boosts the speed significantly

@osoblanco
Copy link
Author

AAA ok. It does render everything for several seconds and then suddenly goes grayscale while still rendering all the actions. How exactly can I do rendering completely?

@carlosgmartin
Copy link

Can the top-level README example be updated (or perhaps moved entirely to the coding directory, with a link to the file), since the main.py example in the coding directory lacks illustration of certain features like rendering and configuration? I fixed two errors so far, changing set_start_wood to set_start_lumber and GoldThousand to GoldCollectOnePlayerFifteen. However, I still get

Traceback (most recent call last):
  File "example.py", line 42, in <module>
    env = scenario.GoldCollectOnePlayerFifteen(game)
  File "/usr/local/lib/python3.8/site-packages/DeepRTS/python/scenario/envs.py", line 10, in __init__
    engconf = config["engine"] if "engine" in config else {}
TypeError: argument of type 'Game' is not iterable

(relevant code here) as well as TypeError: step() got an unexpected keyword argument 'render' (relevant code here).

This game environment looks very promising, so a fully working example would be very helpful for new users.

Side question: Are there plans to add fog-of-war soon, as mentioned in the paper?

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

No branches or pull requests

3 participants