Compiling error of any script

Post » Mon Jun 18, 2012 2:36 am

Starting 1 compile threads for 1 files...Compiling "newscript"...(0,0): Unable to find flags file: TESV_Papyrus_Flags.flgd:\program files\steam\steamapps\common\skyrim\Data\Scripts\Source\newscript.psc(0,0): unable to locate script ObjectReferenceNo output generated for newscript, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on newscript


CreationKit everytime showing this error when I try to compile any script. How can I fix it?
User avatar
Sarah Bishop
 
Posts: 3387
Joined: Wed Oct 04, 2006 9:59 pm

Post » Mon Jun 18, 2012 6:50 am

Can you paste the code?
User avatar
Emily Rose
 
Posts: 3482
Joined: Sat Feb 17, 2007 5:56 pm

Post » Mon Jun 18, 2012 5:27 am

Does your steam\steamapps\common\skyrim\data\scripts\source directory contain roughly 10 000 .psc-files? And among them a file called ObjectReference.psc?
User avatar
Doniesha World
 
Posts: 3437
Joined: Sun Jan 07, 2007 5:12 pm

Post » Sun Jun 17, 2012 3:34 pm

Can you paste the code?
The error code that I have given above occurs when I try to create a new script (not edited yet).


Does your steam\steamapps\common\skyrim\data\scripts\source directory contain roughly 10 000 .psc-files? And among them a file called ObjectReference.psc?
At first I tried to create a script with an empty folder "scripts". The "scripts\source" is contain only my script's source file. Then I tried to unpack the "Misc.bsa" archive for "ObjectReference", but the error remained.
User avatar
Joe Bonney
 
Posts: 3466
Joined: Tue Jul 17, 2007 12:00 pm

Post » Sun Jun 17, 2012 6:57 pm

The scripts are supposed to be included with the CK. Try validating your tool cache in steam.
User avatar
Fiori Pra
 
Posts: 3446
Joined: Thu Mar 15, 2007 12:30 pm

Post » Sun Jun 17, 2012 4:26 pm

Your "data\scripts\source\" directory should have 1000s of PSC files including ObjectReference.PSC and another text file called TESV_Papyrus_Flags.flg needed for compilation. These should be installed with the CK. I would try verifying the CK's game files or reinstalling (or whatever its called in Steam lingo). If you are running from a non-standard or non-steam game path this may be an issue as well.
User avatar
Monika Fiolek
 
Posts: 3472
Joined: Tue Jun 20, 2006 6:57 pm

Post » Sun Jun 17, 2012 6:05 pm

Thank you very much for help. After reinstall of CreationKit this files have appeared. I have no idea why they were not appeared after the first setup, but now everything works.
User avatar
Jessica Lloyd
 
Posts: 3481
Joined: Fri Aug 25, 2006 2:11 pm


Return to V - Skyrim