This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 778
Small Update to Serpent #212
Open
Martyn0324
wants to merge
69
commits into
SerpentAI:dev
Choose a base branch
from
Martyn0324:dev
base: dev
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List of modules currently being used. The version of these modules MUST BE RESPECTED as many parts of SerpentAI's code has been created using those versions (specially keras, which won't work when using versions after 1.2.2)
Some files in site-packages need to be modified in order to work approperly with SerpentAI. For more details, see **Issues**
To the point that the flaws it has are just minor inconveniences, obstacles waiting to be transpassed.
Create a game plugin called Jigoku_kisetsukan in Serpent, then copy+paste these files into that folder since GitHub simply deletes the init.py files
So RainbowDQNAgent gets able to use continuous commands, like moving the mouse arrow.
...so it will install a keras compatible version
In order to increase OCR accuracy.
Now, showing only the modules that have to be modified after the setup (especially "serpent setup ocr" and "serpent setup ml")
Now, showing only the modules that have to be modified after the setup (especially "serpent setup ocr" and "serpent setup ml") Those are the modules I've been using and they're working just fine.
Fixing RunTimeError. Check (#3) item 4 for more details.
This is exactly why I created this fork.
Now, with only a simple, light and efficient list comprehension, we can make our AI move the mouse cursor to any point of our scren.
Now, with only a simple, light list comprehension, we can make our AI move the mouse cursor to any point of our screen.
So our dear AIs can see the colors of _virtual_ life.
so our dear AIs can see the colors of our many virtual lifes
So our AIs can see the colors of our virtual life.
It depends on which CUDA version you want to use.
I've also added a new improvement: now, it's possible to use mouse inputs. You'll be able to play a point-and-click game without any problem(maybe you'll have some problems with response time if your GPU isn't that good...or if you updated your windows to windows 11...damn Microsoft). |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I got really excited to put some Reinforcement Learning in practice with my favorite games thanks to SerpentAI. However, I've ran into some problems while trying to make Serpent work (sorry for the emails, Nicholas Brochu).
In order to prevent anyone else to have to deal with those problems, I've opened a fork and added some modified files, mixing the old Serpent codes with the new ones from 2020 version. I also modified some codes in keras that were generating compability errors(since the code was still for keras < 2.0 and tensorflow V1).
I was also having some problems with window controller, since pywin32 wasn't extracting the correct size of my game's window. I added an
import pyautogui
to fix this problem.