Skip to content

Port Unique updater script from PoB2 - #8700

Closed
Wires77 wants to merge 6 commits into
PathOfBuildingCommunity:devfrom
Wires77:unique_mods_script
Closed

Port Unique updater script from PoB2#8700
Wires77 wants to merge 6 commits into
PathOfBuildingCommunity:devfrom
Wires77:unique_mods_script

Conversation

@Wires77

Copy link
Copy Markdown
Member

@Wires77Wires77 added technical Hidden from release notes wip Unfinished and commited for discussion labels Jun 20, 2025
Comment threadsrc/Classes/Item.lua
Comment on lines 449 to 456
-- Jewel radius is variable and must be read from it's mods instead after they are parsed
deferJewelRadiusIndexAssignment = true
else
for index, data in pairs(data.jewelRadius) do
if specVal:match("^%a+") == data.label then
if specVal:match("^%[a ]+") == data.label then
self.jewelRadiusIndex = index
break
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space indents

@Nightblade

Copy link
Copy Markdown
Contributor

I noticed these too but couldn't work out how to review-comment on unchanged lines in vscode:

excluded vs exclude, this is just the first few, i think there's more of these

image

EtherealCarnivore added a commit to EtherealCarnivore/PathOfBuilding that referenced this pull request Feb 21, 2026
- Fix jewel radius regex: ^%[a ]+ is invalid Lua pattern syntax,
corrected to ^[%a ]+ (character class of letters and spaces).
This was breaking ALL jewel radius parsing, not just "Very Large".
Also fixed inconsistency where line 448 used a different pattern.
- Fix mod selection in uTextToMods.lua: split into two-pass approach
(type match first, unused fallback second) with break statements
to prevent non-type-matching mods from overwriting type matches.
- Fix greedy gsub {.+} to non-greedy {.-} in both export scripts
to prevent consuming too much text on lines with multiple brace
groups.
- Fix statOrder bounds in uModsToText.lua: guard against nil mod
or mismatched line counts between legacy and current descriptions.
Falls back to high order number to append at end.
- Make usedMods local and hoist ModTextMap load outside the item
type loop in uTextToMods.lua.
EtherealCarnivore added a commit to EtherealCarnivore/PathOfBuilding that referenced this pull request Feb 21, 2026
- Fix two blocks (lines ~103-116, ~130-143) where variable was declared
as 'local excluded' but then set/checked as 'exclude' (without 'd').
This created an accidental global that persisted across iterations.
- Convert space indentation to tabs in jewel radius block (lines 449-457)
to match codebase convention.
Addresses review feedback from Nightblade on PR PathOfBuildingCommunity#8700.
@Wires77

Copy link
Copy Markdown
MemberAuthor

Closing in favor of #9480

@Wires77Wires77 closed this Mar 2, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

technicalHidden from release noteswipUnfinished and commited for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Wires77@Nightblade@PJacek