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

Await round, toggle speed, bug fixes, playthroughs #25

Merged
merged 7 commits into from
Aug 3, 2024

Conversation

KendleMintJed
Copy link
Contributor

Actions

Await round:

Press shift during recording to add an await round action (prompts user for round)
The playthrough will then keep track of the round number and wait for the specified round upon the action

Toggle speed

Add this action in in post (speed slow or speed fast)
This changes the game speed after the command
I needed this to sell two dart monkeys before buying sauda in a run

Playthroughs

Glacial trail

Alternate bloons rounds - No MK, No LL w/ MK
Impoppable - No MK, No LL
Chimps

The Impoppable run also works for easy, medium & hard

Bugs

Ingame_paused screen not recognised

I believe this is due to the new 'accessibility' tab in the pause screen. I updated the screenshot in 1920x1080, but do not have the means to update 2560x1440

Round image area too small for "/100" gamemodes, but too large for the rest if changed

If the round image area is too large it will error, but if it is too small it will cut off the leading numbers. You may be able to fix this a better way, I did a patch job by adjusting the image area if the gamemode is detected as chimps or impoppable.
This was done by adding a gamemode parameter to getResolutionDependentData and is why you'll see segmentCoordinates = getResolutionDependentData(resolution, mapConfig['gamemode'])['segmentCoordinates'] in various places

Logic changes

custom_ocr now outputs a string

In order to include the '/' In the round output, custom_ocr now has a string return type

Various error checks for round recognition

Like cash, I added checks for errors in the round detection. The loop will be skipped if these checks fail and these checks are only active when the action is await_round

await_round action has no cost

The new await_round action has no cost attribute and so had to be added to all the checks relating to actions with no cost.

@KendleMintJed KendleMintJed marked this pull request as ready for review July 14, 2024 22:49
@ANRAR4
Copy link
Owner

ANRAR4 commented Aug 3, 2024

The changes seem to work, although my testing was somewhat limited
Thanks

@ANRAR4 ANRAR4 merged commit 1ed9a68 into ANRAR4:main Aug 3, 2024
ANRAR4 pushed a commit that referenced this pull request Aug 3, 2024
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