Skip to content

Add optional auto-configure to the Configuration tab - #10585

Open
zubSero wants to merge 9 commits into
PathOfBuildingCommunity:devfrom
zubSero:auto-configure
Open

zubSero wants to merge 9 commits into
PathOfBuildingCommunity:devfrom
zubSero:auto-configure

Conversation

@zubSero

@zubSero zubSero commented Nov 26, 2026 •

Copy link
Copy Markdown

Description of the problem being solved:

Knowing what to tick in the Configuration tab is the hard part of PoB for a lot of people. This adds a row at the top of the tab: pick "Fighting one boss" or "Clearing maps", click "Set up my build", and PoB fills in the settings from your gear, gems and passives.

Each activity gets its own config set, so your manual set isn't touched and you can switch back whenever you want. "Details..." shows what PoB found and which choices it couldn't make for you.

If you don't want it, "Show build setup in Configuration" in Options turns it off completely. Builds without a generated set don't run any of the scanning and save exactly as they do on dev.

Other fixes in this PR

These came up while working on it. They don't depend on the feature, so each one is also up as its own PR. This branch still contains them until those are merged, and I'll rebase after that.

The related charge calculation changes are in #10354 (#10143).

Steps taken to verify a working solution:

  • Tests for the feature are in spec/System/TestConfigAuto_spec.lua, and each of the fixes above is covered by a test.
  • With the feature unused, all outputs of the bundled test builds are the same as on dev, and a manual build with two config sets saves the same Config XML as on dev.
  • Checked the Configuration tab in the real client with a manual set and with a generated one.

Try it

Download this branch, extract it to a separate folder and run the PoB executable in runtime. Import a build, open Configuration and try both activities.

Screenshot

The Mapping settings with the Setup details open

A read-only scan of the build proposes Configuration values from real
item, passive and skill evidence. A compact setup row sits above the
unchanged native form; inline markers show which settings match the
scan, are invalid for PoB, or need confirmation. Applying is a single
undo step. Generated config sets per activity (boss / maps) keep manual
edits as overrides and do not regenerate on load. The automatic marker
scan waits for the build to settle and is spread over frames.

Native fixes found along the way:
- Chills from your Hits always reduce Action Speed by at least X% parse
  as ChillMinimum, like the shock floor.
- Corrupting Blood stack options accept 0 without a -1 stage multiplier;
  zero-capable options (Cruelty, Heralds) apply and save an entered 0.
- Minion-granted buffs no longer apply their LIST modifiers twice
  (Reaper Consume).
- WrapString wraps before the word that overflows the width.
- Config undo is per config set and restores placeholders; saved
  placeholder strings and inactive-set values are no longer lost.
Keep explicit false overrides during refresh and Details checks. Apply native enemy presets to the isolated scan config and save quest evidence only for builds with generated sets. Verify explicit zero overrides for Banner, Cruelty and Herald of Ash.
Use the persisted overrides as the baseline for comparisons after loading so saving a temporary edit cannot bring it back on the next regeneration.
ConfigTab:NewConfigSet already adds the new set to configSetOrderList, and
the setup added it again. The set then showed twice in the set dropdown,
was saved twice, and deleting it left an entry behind that Draw indexed.

A build saved with the duplicate entry loads with each set listed once.
Options gets "Show build setup in Configuration". Turned off, the setup
row takes no space, no marker is shown and nothing is scanned or
regenerated; generated sets stay ordinary config sets. "Show scan
indicators" keeps its meaning under its own setting.

The background marker check only runs for an active generated setup. It
used to scan every build shown in Configuration, with one full calculation
per probe. A manual set is scanned when the player asks for it.

Build:OnFrame calls the setup once per frame. The second call after a
rebuild could never regenerate (a rebuilt frame is not settled), so its
extra BuildOutput was dead code, and the stat list refresh is back where
it was. A setup also waits for a pending rebuild before it regenerates.

A stepped scan that is suspended anywhere but at one of its own steps is
given up with the real calculation cache back in place.
The option column, edit boxes and dropdowns are back at PoB's own
position and widths. Only a dropdown reaches the edge of its section, so
it gives up 10 pixels while a scan marker is actually shown beside it, and
names a selection it then cuts off in its tooltip.
The six options that apply an entered zero (Corrupting Cry and
Bloodsoaked Banner stacks, Cruelty, Virulence, Herald of Ash overkill and
Otherworldly Pressure) use the existing countAllowZero type instead of a
second allowZero flag. Like the other options of that type they accept a
minus sign, so their values are floored at zero.

An entered zero is saved where it is a value of its own (countAllowZero)
and in generated sets, which are compared with a fresh setup after a
reload. Elsewhere zero equals the empty field and is left out, as before.
The freeze and non-damaging ailment estimates and the independent ailment
source that auto-configure reads are computed when the scan asks for them
(env.ailmentEstimates), not in every calculation. The source check is a
module function instead of two closures per ailment per calculation.

The build's own outputs are the same as before the feature, without the
extra keys.
The hash saved with a generated set was taken from the build as it was
when saving. A setup that was not active while the build changed is not
regenerated, yet it was saved as current, and after a reload switching to
it kept the outdated values without a scan. The saved hash is now that of
the sources the set's values were generated from.
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.

1 participant