Script will not compile.

Post » Sat Apr 04, 2015 3:37 am

I'm not sure what is wrong with my script. I suspect that the Creation Kit (lauched via Mod Organizer) cannot find the SKSE scripts, but I am not really sure.

Spoiler

Scriptname ZarephethsLevellingLightsInstall extends Quest  {Install Script for Zarepheth's Levelling Light Spells.}Perk property LevellingLights auto{Perk to be automatically added to player when this mod is installed.}Function Init()    ; Zarepheth's Levelling Lights Install Code    actor player = Game.GetPlayer()    player.AddPerk(LevellingLights)    debug.Notification("Zarepheth's Levelling Lights Added/Updated.")EndFunction



When I attempt to compile the above script, I get the following error messages:

Spoiler

Starting 1 compile threads for 1 files...Compiling "ZarephethsLevellingLightsInstall"...(0,0): Unable to find flags file: TESV_Papyrus_Flags.flgD:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(1,0): Unknown user flag HiddenD:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Perk.psc(1,0): Unknown user flag HiddenD:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Game.psc(1,0): Unknown user flag HiddenD:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Game.psc(1,0): Unknown user flag HiddenD:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Game.psc(1,0): Unknown user flag HiddenD:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(1,0): Unknown user flag HiddenD:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(1,0): Unknown user flag HiddenD:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(1,0): Unknown user flag HiddenD:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ZarephethsLevellingLightsInstall.psc(11,1): variable debug is undefinedD:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ZarephethsLevellingLightsInstall.psc(11,7): none is not a known user-defined typeNo output generated for ZarephethsLevellingLightsInstall, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on ZarephethsLevellingLightsInstall

Does anyone have any idea what I am doing wrong - with either my script, the creation kit, or mod organizer?

User avatar
joseluis perez
 
Posts: 3507
Joined: Thu Nov 22, 2007 7:51 am

Post » Sat Apr 04, 2015 9:21 am

You are missing the flags file that the compiler needs in order to compile your script. It should be located here:

\Data\Scripts\Source\TESV_Papyrus_Flags.flg

Some people have mentioned that the new creation kit update bundles all scripts into a rar archive, so it might need to be unpacked from there if you recently updated the CK (but I'm not certain, I haven't upgraded my CK yet). If you do unpack the rar file, you will need to reinstall SKSE script files afterward (because the files in the rar will overwrite SKSE modifications with the original vanilla stuff). See http://www.gamesas.com/topic/1515697-ck-updated-and-near-to-10000-scripts-files-are-gone/ for more info about the CK upgrade and new file structure.

User avatar
Miss K
 
Posts: 3458
Joined: Sat Jan 20, 2007 2:33 pm


Return to V - Skyrim