-
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
Adding Hooks to the game for automatic Build Order advancement #6
Comments
Hello, I really like the fact that it's possible to customize the build orders. Can you please add a pixel search to detect the civilization/population of the player to keep track of the build order and have it go to the next step by population count? All that would be required is an initial pixel search to get the civilization, then a pixel search waiting for the next population increase. The steps would than go like this: |
Hey thanks for you input. This isn't a small feature unfortunately, it requires 4 parts:
|
@inthesky2 I have done some pixel searching in my previous project (old version.), image is available here. Executable files are no longer on the server. Anyway, I wouldn't recommend it. Firstly, reading pixels is slow. Secondly, it can get buggy so the taken screenshot is black (blank). Thirdly, people utilize mods, and changing font may lead to errors. Fourthly, it parsed only resources, so you need to code your own script. :) Nevertheless, the principle of image processing is really easy to code. Some hard stuff such as Neural Networks is NOT required :)
I parsed also civilization there. I noticed that each civilization has specific bottom frame design. So I just took bottom left pixels, it was a tiny square. I guess it was 16px x 16px and I compared the value of this list to saved value :) Stupid, simple, but it worked... |
I know it is possible to add some sort of automatic advancement. (i.e. when there are 3 villagers are on wood highlight the Boar lure task.)
This does require hooking into the game. For single player I guess this would be okay, but I don't think it would be easy to disable it for multiplayer where this becomes more problematic and could (should?) lead to bans.
Question remains if this is a good idea.
The text was updated successfully, but these errors were encountered: