Buff reader: canBlend OCR, cross-system border tolerance, glow support#47
Open
Techpure2013 wants to merge 1 commit into
Open
Buff reader: canBlend OCR, cross-system border tolerance, glow support#47Techpure2013 wants to merge 1 commit into
Techpure2013 wants to merge 1 commit into
Conversation
- Replaced pixel_8px_digits font with aa_8px_new (anti-aliased) and aa_8px_buff2 (secondary) - readArg rewritten to use Skillbert's readLine/readChar with canBlend - Added buffborder_alt, debuffborder_alt, buffborder_dim templates for border variants - Three-tier border matching: standard/alt (max=50), dim glow (max=60) - Consecutive-miss scanning to handle glowing buffs mid-bar - getCaptRect pads left by one gridsize to catch dim buffs before grid origin - countMatch/isolateBuffer use lum/sat instead of exact RGB for text pixel detection - Trailing-1 recovery with canBlend fallback for narrow "1" character - Decimal detection (X.Y debuff timers) with proper ordering vs trailing-1 - Stacked buff parens detection via font2 dp2 pattern and canBlend - "m" suffix via stroke groups with bright icon guard - "%" suffix via bright pixel density - oy-2 fallback for old UI text position
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
readArgto usereadLine/readCharwithcanBlendinstead of custom pixel-level detectionpixel_8px_digitsfont with anti-aliasedaa_8px_newand secondaryaa_8px_buff2fontsbuffborder_alt,debuffborder_alt, andbuffborder_dimborder templates for cross-system color variations and glow animation supportread()with consecutive-miss scanning to handle glowing buffs mid-barcountMatch/isolateBufferuse luminance/saturation instead of exact RGB for text pixel detectionKey changes
buffery + 25(was 23) for current game UI, withoy-2fallback for old UITest plan