-
Notifications
You must be signed in to change notification settings - Fork 6
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
Documentation #1
Comments
Hello, yes it is ready for use, hovewer im bot done with documentation. Ill finish it up tomorrow for you! Have a pleasant christmas! |
Cool, thanks! No hurries though, no need to overwork on Christmas (: |
Okay, ive done some work tidying a few things up on master branch. Run games fine, but does not have the capability of labeling states automatically. |
Thanks, I was able to install and run a few games fine. However, I seem to have a problem when a game requires a key to be held down. For example, a jump that has its duration defined by how long you hold the jump key. This type of jump just never happens. I checked the code for the pyVNC and saw the it releases the key automatically on |
Ill see if i can make an api for this feature in early 2018 ;). Have a nice new year! |
Cool, thanks. I could try it myself as well. Do you know where I should look to fix it? Have a nice new year you too! |
Just so you know, I had tried both pressing the button myself on the keyboard, and also implementing the methods:
in the pyVNC Client and using them in the on_frame loop, but neither worked. |
Are you sure it does not work?
i use the "duration" argument myself, and it seems to work for me. By splitting these like you illustrated should work.hmmm |
When I set the time.sleep() duration to a higher value, the game just hung (frozen) for that amount of time, so I couldn't tell if it was working or not. When experimenting with the split versions I pasted above, It seems to me that between each frame the state of the key might be reset (?) so that even though down=0 was never set, the press only lasted 1 frame (and the sleep duration didn't change that because, as I mentioned above, it was freezing on a single frame). Now, all this might have been an issue of the game I tried (robot unicorn attack), I'm not sure. |
Okay, so I've kinda figured this out. So, first, I realized that the problem wasn't the the keys weren't being released, but that actually what was happening was that, after the first time a key was pressed, it was never being released again (and so couldn't be pressed again). So I modified the
And I also added the same 2 lines into the I am not sure why |
Forgot to mention, for all of this to work, I had also modified the |
Could you pull request this? Seems like something that is excellent to work on 👍 |
Sure, I'll make a pull request both here and on pyVNC for the respective parts |
Related to the documentation discussion: Are there any training loop examples? The mujaffa example always displays the game screen and runs only one thread. Are there any examples that run without displaying the screen, run multiple games, etc? |
No not currently. I only have outdated examples. I'll see if I can update those |
I'm finishing up my Master thesis today and was thinking of doing some new examples for FlashRL. Do you have any suggestions on flash games / envrionments that could be a good candidate? |
I think you might want to take a look here: https://github.com/openai/universe/blob/master/universe/__init__.py#L319 There's a list of games OpenAI (supposedly) already gave some thought to, to include into their framework, so it might be a good starting point. To name a few, some good examples off the top of my head: the DuskDriver car driving game they cite in the front page for the project, FlappyBird and the derivatives they have there (FlappyX) and N (called N0OfficialWebVersion in the file), which is of higher complexity. |
Hi, I was looking into possibly using this for a personal project involving building an agent to play a Flash game. So I was wondering, is this project functional already? If so, is there any documentation or tutorial to guide usage?
Thanks
The text was updated successfully, but these errors were encountered: