papyrus-lang
papyrus-lang copied to clipboard
Skyrim LE project cannot be built
Describe the bug Newly generated Skyrim LE project cannot be built by pyro.
To Reproduce Steps to reproduce the behavior:
- Generate a new Skyrim LE project file.
- Fix Import paths as mentioned in #146.
- Add source file(s) to be built.
- 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.