Redirecting Compiler to non C: drive (Flags File Not Found)

Post » Thu Oct 22, 2015 7:27 pm

Hello All,

So I've been having a little bit of difficulty working on my Skyrim mod since I swapped over the MOD files to my new development machine. For some reason I can't seem to compile any of my scripts. Upon doing some reading, I found several posts discussing this issue, namely the following two posts on the Nexus forums:

http://forums.nexusmods.com/index.php?/topic/629975-tesv-papyrus-flagsflg-is-missing/
http://forums.nexusmods.com/index.php?/topic/2907794-tesv-papyrus-flagsflg-file-not-found/
For clarity, this is an example of the output I get when trying to compile a script:
Starting 1 compile threads for 1 files...Compiling "MOD1RestorationLogScript"...(0,0): Unable to find flags file: TESV_Papyrus_Flags.flgE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(0,0): unable to locate script ObjectReferenceE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(3,25): unknown type objectreferenceE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(5,25): unknown type objectreferenceE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(10,16): variable Motion_Keyframed is undefinedE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(10,2): SetMotionType is not a function or does not existE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(13,33): unknown type objectreferenceE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(14,15): variable Game is undefinedE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(14,20): none is not a known user-defined typeE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(14,35): IsActivationBlocked is not a function or does not existE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(17,1): variable Utility is undefinedE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(17,9): none is not a known user-defined typeE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(20,41): unknown type objectreferenceE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(20,71): unknown type objectreferenceE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(21,22): variable Game is undefinedE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(21,27): none is not a known user-defined typeE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(22,1): variable Debug is undefinedE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(22,7): none is not a known user-defined typeE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(23,1): variable Game is undefinedE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(23,6): none is not a known user-defined typeE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(23,18): none is not a known user-defined typeE:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\MOD1RestorationLogScript.psc(24,1): MoveTo is not a function or does not existNo output generated for MOD1RestorationLogScript, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on MOD1RestorationLogScript

From these posts and some reading, I have discovered that I did not have a TES_Papyrus_Flags file, so I downloaded one from the nexus. I put this file where it should go (in the Steam/.../Skyrim/Papyrus Compiler/) directory.

After I added this... nothing changed. I got the same input as above.

After that I read somewhere about editing the "scriptcompiler.bat" I edited the ScriptCompile.bat in the Papyrus Compiler folder to look something like this:

ScriptCompile.bat

"E:\Program Files (x86)\Steam\steamapps\common\Skyrim\Papyrus Compiler\PapyrusCompiler.exe" %1 -f="E:\Program Files (x86)\Steam\steamapps\common\Skyrim\Papyrus Compiler\TESV_Papyrus_Flags.flg" -i="E:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source" -o="E:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts"pause

I was fairly sure that this would work, because I am confident that my issue rests in the fact that before I was developing my mod purely on machines with a single hard drive. I have always had Skyrim installed in the default installation directory (on the C: drive), but on my new machine, I have Skyrim installed on my secondary HDD (known to windows as drive E:\.

I was wondering if anyone knows where I may have gone wrong, or how to properly point the ScriptCompile.bat to the correct location who could possibly help me. Or tell me that I have it all wrong and that the root cause is something else.

I'd really appreciate some help on this. Thanks all

User avatar
elliot mudd
 
Posts: 3426
Joined: Wed May 09, 2007 8:56 am

Post » Thu Oct 22, 2015 4:25 pm

How are you running the compiler? From Creation Kit or an external text editor? CK passes four arguments to the compiler (name of the script that needs to be compiled, the flag file, the input folder, and the output folder). The flag file should be in one of the input folders, which in most cases means that the file should be in \Skyrim\Data\Scripts\source.

User avatar
Lisa Robb
 
Posts: 3542
Joined: Mon Nov 27, 2006 9:13 pm

Post » Thu Oct 22, 2015 11:40 am


Also check http://forums.nexusmods.com/index.php?/topic/2711734-the-extends-script-does-not-exist/?p=25978189 to make sure all of your vanilla source scripts are in the correct location just substitute C:\ for the drive you are using.
User avatar
Talitha Kukk
 
Posts: 3477
Joined: Sun Oct 08, 2006 1:14 am

Post » Thu Oct 22, 2015 12:42 pm

Have a look through here, this should cover most bases:

http://www.gamesas.com/topic/1538110-unknown-flag-problem-had-this-issue-for-a-month/

User avatar
natalie mccormick
 
Posts: 3415
Joined: Fri Aug 18, 2006 8:36 am

Post » Thu Oct 22, 2015 2:24 pm

Wow guys, thanks for the help. Works instantly.

It was a combo solution:

I was getting this error:

(0,0): Unable to find flags file: TESV_Papyrus_Flags.flg

This was fixed by moving the TESV_Papyrus_Flags.flg file to the /data/scripts/source directory (which makes sense considering that this directory provides input files to the compiler)

The rest of the errors were all due to missing scripts which were all contained within the scripts.rar file. I didn't actually need to redirect the compiler at all. I was just missing files. So I followed johng's link and had no problem. Thanks guys.

Also, I've seen several people mention compiling Papyrus outside of the Creation Kit (like in notepad++). How are you guys doing that? Are you just calling the compiler on the CLi with the inputs? or is there an easier way?

User avatar
Ashley Hill
 
Posts: 3516
Joined: Tue Jul 04, 2006 5:27 am


Return to V - Skyrim