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

new getRound function etc... #80

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

mirko93s
Copy link
Contributor

It reads the round value directly from the memory so it is 100% reliable unlike ocr which breaks often in some maps. I didn't test every possible scenario, but it was working fine (starting,/restarting games)

mirko93s added 2 commits July 14, 2023 18:20
It reads the round value directly from the memory so it is 100% reliable unlike ocr which breaks often in some maps.
I didn't test every possible scenario, but it was working fine (starting,/restarting games)
@linus-jansson
Copy link
Owner

Looking good 👀 why I didn’t implement something like this in the beginning I wonder. However, it is likely that it will break during the next update due to patches or maybe not.

Have you looked at pattern scanning and how that works in Python?

@mirko93s
Copy link
Contributor Author

Idk if it will break, but it is easy to update tho...

@mirko93s
Copy link
Contributor Author

I have some really old cheat engine tables (coded for v28) and they still read the round in the latest game version, so I hope that it won't break with future updates. Anyway you can get the memory addresses in a couple of minutes.

mirko93s and others added 7 commits July 17, 2023 20:06
this worked on 2 different computers
whi was it even changed back to Hard?
added "new" hero skins and updated insta-monkey screen
@mirko93s mirko93s changed the title new getRound function new getRound function etc... Jul 22, 2023
@mirko93s mirko93s closed this Jul 22, 2023
@mirko93s mirko93s deleted the main-linus branch July 22, 2023 01:28
@mirko93s mirko93s restored the main-linus branch July 22, 2023 01:30
@mirko93s mirko93s reopened this Jul 22, 2023
mirko93s added 4 commits July 22, 2023 08:49
Mouse cursor may end up covering important areas of the screen (i.e. insta-monkey end screen in chimps).
In that case the bot will fail to match the image from /assets and it will hang up.
To fix this we just move the mouse to the bottom right corner every time we are done clicking something.
- Check if game is open, if so focus its window automatically
- If game is not open try to launch it using steam
- Check if in game is in the "start" screen
TODO: check if game is installed on steam or epicgames and start it accordingly
renamed "easter" to "event" since there are many events during the year
@mirko93s
Copy link
Contributor Author

The failing check happens because pywin32 can't be installed on linux obviously, you should change the workflow to use windows since the bot currently runs only on windows

mirko93s added 7 commits July 22, 2023 09:52
this can also be used to check if the user got a legit copy of the game
TODO: epic games check
(optional) we can exit the program if the user is using a cracked copy of the game
added new "water park" map and new brickell skin
@mirko93s
Copy link
Contributor Author

latest game update broke the memory address I was using

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

Successfully merging this pull request may close these issues.

2 participants