#[SV Auto Story] Titan Battles not recognized

58 messages · Page 1 of 1 (latest)

fallow smelt
#

I've been using auto story in SV and it works nearly flawlessly, except for the Titan Battles.
Titan battles get into a loop where the titan battle is not recognized and the game resets to the previous checkpoint indefinitely.
I will collect the Program Output while it runs and will share it here.
I am using an ESP32-S3 with a Switch 2 on a Windows 11 PC.
Please let me know if you need any additional info.

Thank you.

scarlet warren
#

!screenshots

uneven lanternBOT
#
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.
scarlet warren
#

@solemn haven

solemn haven
#

Which Titan battle?

#

I will need logs

scarlet warren
#

!programlogs

uneven lanternBOT
#

To help the developers understand the automation problem you're facing, please find the log file and upload it to the help channel.

Where are the logs?

The logs are created in a file called "SerialPrograms.log".
On Windows, it is in the folder where you launch the program. On macOS, it is at /Users/<your_username>/Library/Application Support/SerialPrograms/.

Whenever the log file reaches about 50MB its content will move to SerialPrograms-<timestamp>.log. Depending on how recent the problem is you may need to look for logs in older log files.

You can send the whole log file (which may be large!) or isolate the lines that illustrate the problem you are facing.

Each line in the file has a time and date stamp. Use that to find the portion of the logs where the problem occurred. You can edit the file with any text editor.

If the text editor is too slow to work on large files, choose a modern high-performance text editor like the free Sublime Text Editor.

fallow smelt
#

Screenshots being captured and will be shared later (I've manually fought the titans and started at next checkpoint)

#

It failed for all titans fought so far, Bombirdier, Klawf and Iron Threads

#

First occurrence is at 2026-01-16 12:05:50.547263 - [Console 0]: Unable to confirm Titan battle. Wait 2 seconds and re-try.

#

I don't have screenshots but I was streaming this and I have it recorded - does it help?

fallow smelt
inland terrace
#

I found this line buried in there twice, if it's meaningful:


2026-01-16 12:28:13.871332 - [Console 0]: UserSetupError: Black border detected! Please set your screen size to 100% in the TV Settings on your Nintendo Switch.
fallow smelt
#

Oh, that happened because I tried to start the program during a black loading screen 🙂

inland terrace
#

There's also the ~800 times it failed to OCR the date

2026-01-16 01:41:46.862098 - [Console 0]: issue_system_scroll(): left, delay = 24ms, hold = 48ms, cooldown = 24ms
...
<repeat 5 times>
...
2026-01-16 01:41:46.871875 - [Console 0]: issue_system_scroll(): right, delay = 24ms, hold = 48ms, cooldown = 24ms
2026-01-16 01:41:46.873552 - [Console 0]: issue_system_scroll(): right, delay = 24ms, hold = 48ms, cooldown = 24ms
2026-01-16 01:41:46.873572 - [Console 0]: Failed to read year. Will not adjust.
2026-01-16 01:41:46.875138 - [Console 0]: issue_system_scroll(): right, delay = 24ms, hold = 48ms, cooldown = 24ms
...
<repeat 3 times>
...
2026-01-16 01:41:46.880089 - [Console 0]: wait_for_all()
2026-01-16 01:41:46.883357 - [Console 0]: Waiting for all requests to finish...
2026-01-16 01:41:47.465978 - [Console 0]: Attempting to read US date...
2026-01-16 01:41:47.470584 - [Console 0]: OCR Text: "U1" -> "1" -> 1
2026-01-16 01:41:47.475975 - [Console 0]: OCR Text: "U1" -> "1" -> 1
2026-01-16 01:41:47.486248 - [Console 0]: OCR Text: "2U26" -> "226" -> 226
2026-01-16 01:41:47.491983 - [Console 0]: OCR Text: "45" -> "45" -> 45
2026-01-16 01:41:47.497031 - [Console 0]: OCR Text: "U5" -> "5" -> 5
2026-01-16 01:41:47.505371 - [Console 0]: OCR Text: "a.m." -> "am" -> AM
2026-01-16 01:41:47.505842 - [Console 0]: Compiling Error Report...
2026-01-16 01:41:47.730374 - [Console 0]: Saving Error Report...
2026-01-16 01:41:47.823102 - [Global]: Found 781 unsent error reports.
#

could very well be unrelated but every bit of context could help

#

@fallow smelt Your capture card (NZXT Signal 4k30) supports HDR passthrough and seemingly tonemaps it to SDR by default. Do you have HDR disabled on your console?

fallow smelt
#

Yes, HDR is disabled

solemn haven
#

Also. What CC version are you using?

fallow smelt
#

you mean the computer control version?

#

Latest that it prompted me to download 0.61.4

solemn haven
#

Do you have screenshots of the Titan?

inland terrace
# fallow smelt Yes, HDR is disabled

Just to be sure, you turned off the bottom setting for HDR, not just the top one right? The top setting only controls the buit-in display's HDR, the bottom setting controls it globally.

fallow smelt
#

Yes, the bottom one is off as well

inland terrace
#

Much appreciated bearing with me on the simple stuff.

fallow smelt
scarlet warren
solemn haven
#

I want the screenshot that looks like this:

fallow smelt
#

I can extract the frame myself, just a sec

solemn haven
#

In particular, it's trying to detect the green HP bar.

inland terrace
inland terrace
# inland terrace

this is from the video above, cris may be able to get a clearer/more accurate screenshot direct.

fallow smelt
#

This is from Iron Threads - where I did have boxes on

#

For Bombirdier boxes were off

inland terrace
#

at least the health bar is almost completely unobscured on the treads

solemn haven
#

I have a fix that fixes detection on the above screenshots. It should hopefully be in the next release.

compact spoke
#

What was the issue?

solemn haven
#

My green bar had slightly less red and blue than the above screenshots.

#

[stdout]: Compute imageStats: avg {65.631653, 240.141977, 81.218842} (sum 386.992) stddev {2.639696, 8.000636, 10.325919} (sum 20.9663) count 22715
2026-01-16 12:40:17.159491 - [stdout]: is_solid(): stddev sum 20.9663 vs max 30
2026-01-16 12:40:17.159577 - [stdout]: is_solid(): average: {0.169594, 0.620534, 0.209872} vs {0.088235, 0.750000, 0.161765}, distance 0.160297 vs max 0.2

#

So, I just relaxed the max_euclidean_distance from 0.15 to 0.25.

#

0.20 works for the above screenshots. but I decided to be less strict and set it to 0.25.

fallow smelt
#

You guys are too fast 😄

#

Any additional setting that I could change on my side that could help it run as is?

inland terrace
#

i knew the colors were slightly off somehow!

#

that's why i thought HDR lol

solemn haven
solemn haven
#

The new beta release should fix the issue. Please try it when you get the chance!

fallow smelt
#

Just a final feedback as the program finished running last night - I had a high number of resets on orthworm, but the program was able to complete it after some tries, everything else ran smoothly, including the elite 4 and area zero battles, no other issues were observed and there was no other blocks in here. I'll run the program again when the new release is here. Thank you!

solemn haven
#

How many resets for orthworm?

solemn haven
fallow smelt
#

Around 30 or so. The problem was getting to him, I was getting unlucky with the amount of wild battles and the character was getting out of route/alignment

#

So it would run into a wall and cause a reset

fresh basin
#

Hey I am new to all this so I apologize if I am not technical enough or potentially experiencing user error but I have the exact same problem.

For the Auto Story function it seems to work perfectly except for when it needs to handle the Titian battles. It will find the Titian but then reset instead of completing the battle so then it'll be in a loop of approaching the Titian, start encounter, reset.
I think that it's not realizing the Titian encounter has begun and it thinks that it's stuck bc it's not walking.

My current work around has been to let it get to the titian then I fight it manually and once it's defeated I start the program at that point.
Lmk if I am doing something wrong or anything I am not technical at all so user error wouldn't be surprising.

(Besides that it works fantastic so far)

solemn haven
#

it's fixed in the recent beta.

#

if you don't have access to the beta, you'll have to wait for the next release.