Skip to content

Fix headless path helpers for relative data loads#9507

Open
tinycrops wants to merge 1 commit intoPathOfBuildingCommunity:devfrom
tinycrops:fix/headless-script-path
Open

Fix headless path helpers for relative data loads#9507
tinycrops wants to merge 1 commit intoPathOfBuildingCommunity:devfrom
tinycrops:fix/headless-script-path

Conversation

@tinycrops
Copy link
Contributor

Summary

  • make GetScriptPath() return the actual headless working directory instead of an empty string
  • derive GetRuntimePath() and GetUserPath() from that resolved path
  • fix headless imports that load data files relative to the script root

Repro

  • run headless PoB with loadBuildFromJSON(...) on a character that has a timeless jewel allocated
  • Modules/DataLegionLookUpTableHelper.lua builds lookup-table paths from GetScriptPath()
  • in headless mode the wrapper currently returns "", so those paths resolve to /Data/TimelessJewelData/... instead of the mounted PoB checkout
  • this causes timeless-jewel imports to fail even though the data files are present

Result

  • headless JSON imports can now resolve timeless jewel data from src/Data/TimelessJewelData
  • this unblocks headless stat extraction for builds that allocate timeless jewels
@tinycrops tinycrops force-pushed the fix/headless-script-path branch from 32fe6e0 to 0743b74 Compare March 2, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant