papyrus-lang icon indicating copy to clipboard operation
papyrus-lang copied to clipboard

Skyrim LE project cannot be built

Open blu3mania opened this issue 3 years ago • 0 comments

Describe the bug Newly generated Skyrim LE project cannot be built by pyro.

To Reproduce Steps to reproduce the behavior:

  1. Generate a new Skyrim LE project file.
  2. Fix Import paths as mentioned in #146.
  3. Add source file(s) to be built.
  4. Build the project.

pyro would fail with:

2021-01-31 10:09:52,610 [WARN] Using working directory: "C:\Program Files (x86)\Steam\SteamApps\Common\Skyrim\Data"
2021-01-31 10:09:52,610 [WARN] Using input path: "C:\Program Files (x86)\Steam\SteamApps\Common\Skyrim\Data\skyrimle.ppj"
2021-01-31 10:09:52,611 [ERRO] Failed to validate XML Schema.
        Element '{PapyrusProject.xsd}PapyrusProject', attribute 'Game': [facet 'pattern'] The value 'tesv' is not accepted by the pattern '[fF][oO]4'., line 8
The terminal process "c:\Users\xxxxx\.vscode\extensions\joelday.papyrus-lang-vscode-2.23.1\pyro\pyro.exe '--input-path', 'skyrimle.ppj', '--game-path', 'C:\Program Files (x86)\Steam\SteamApps\Common\Skyrim'" failed to launch (exit code: 1).

Check "Game" attribute of PapyrusProject element in the project, it is "tesv" which should be correct. Apparently this was a bug in old pyro code: https://github.com/fireundubh/pyro/issues/7. It was fixed on May 15, 2020: https://github.com/fireundubh/pyro/releases/tag/1589570428

Recommend to grab the latest pyro source code.

blu3mania avatar Jan 31 '21 15:01 blu3mania