#[PLZA] Error on the 'Donut Maker' Berry Selection Screen

27 messages · Page 1 of 1 (latest)

last canyon
#

After completing all Donut Maker settings and pressing Start, the program works normally up to moving to the hotel and opening the berry selection screen.
However, on the berry selection screen, the program stops with the following message:

“donut_maker(): Unable to detect white dialog, selection arrow or berry menu after talking to Ansha.”

How can this issue be resolved?

hot stump
#

!screenshots

frigid egretBOT
#
Help Developers Debug With Screenshots

To help the developers understand the visual detection problem you might be facing, please use the "Screenshot" button on the UI of SerialPrograms (next to "Load Profile" and "Save Profile", above Switch video stream viewport) to capture Switch video stream screenshots when the problem occurs and upload them to the help channel.

Do not use an OS built-in or external screenshot app, or your phone to take a screenshot. Developers need the screenshot to be exactly the shape and content as it is read from Switch via the capture card.

Example use cases for screenshots:

  • When a program fails to detect texts, icons or Pokémon on screen. Screenshot those texts, icons or Pokémon while they are visible.
  • When a program fails to detect a menu is opened/closed. Screenshot the menu before and after it's closed.
  • When a program fails to know it's back to the overworld. Screenshot the overworld screen.
hot stump
#

The screenshot seems extra bright. Did you enable hdr on switch?

#

Please disable hdr for the program to work

last canyon
#

I followed the method and link you provided and turned all HDR settings off.
After rebooting Switch 2 and running the program again, the same issue still occurs as before.

hot stump
#

Can you send a screenshot again please?

#

And what is the capture card you use?

last canyon
#

The capture card itself doesn’t have the product name written on it, so I’ll check the website where I purchased it.

last canyon
mighty mango
#

Can we check why it’s failing to read the screenshot? Ideally we make it work even if the colors aren’t perfect.

hot stump
#

is_solid(): stddev sum 11.4612 vs max 10

#

The stddev threshold for solid pink color is a bit lower than what this screenshot gives

#

I've fixed the threshold uwu

mighty mango
#

New error on latest beta that might be related: #1459805241259196518 message

hot stump
#

The current code works on this error image

#

So it's been fixed

mighty mango
#

hmm... That is 61.8 which was yesterday. None of the changes in the last day seem relevant. Thonk

hot stump
#

The log shows sth else is broken. The camera seems to be reset?

mighty mango
#

This happened to me as well.

It seems to finish the previous donut. Then it fails to detect the flavors. So it keeps pressing A over and over again back into the donut and spams 8 of the first berry.

#

It's a race condition here: https://github.com/PokemonAutomation/Arduino-Source/blob/main/SerialPrograms/Source/PokemonLZA/Programs/Farming/PokemonLZA_DonutMaker.cpp#L286

This repeating A press is not idempotent. So it misses the flavor screen even for a split second, the next A press will leave the flavor screen - thus it will never detect it. Then it proceeds to make the next donut with the first berry on the list.

GitHub

Contribute to PokemonAutomation/Arduino-Source development by creating an account on GitHub.

#

I'm not sure how to fix it because there is no button to progress the donut making that won't blow through the flavor screen.