Jump to content

Papyrus compiler: file/script name does not match issue


thousande

Recommended Posts

Hi

 

I am trying to use the Papyrus compiler from the command line. After some fiddling (new to Windows) I have found using my variant of ScriptCompile.bat (copy from the Papyrus Compiler directory) to almost work.

 

The issue is that the compiler tells me that the script/filename 'does not match script name'

 

I understand that the script file and name must match.

The output is:

 

> filename does not match script name: "zz_testscript" expected: "User:ZZ_TestScript"

 

So I see the compiler expects a User namespace(?) thing (and of-course the case insensitivity adds confusion)

 

My custom script compile bat file

 

"C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Papyrus Compiler\PapyrusCompiler.exe" %1 -f="C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\Base\Institute_Papyrus_Flags.flg" -i="C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts\Source" -o="C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts"
pause

 

The script compiles without errors from inside the CK

 

I guess the problem here is the User namespace(?) thing. Is there something else I need to add to the setup?

 

Thank you in advance!

 

Best regards

T

Link to comment
Share on other sites

Solved!

 

I had to set each -import directory instead of just generously setting the parent.

 

Eg.:

 

-i="C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\User;C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\Base"
Edited by thousande
Link to comment
Share on other sites

  • 2 years later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...