Rosa15 Posted October 4, 2017 Share Posted October 4, 2017 Hello, I would be very grateful if anybody could advise me what to do. I have never tried any scripting before and I wanted to try to make a summon spell following one tutorial. When trying to add a new script, it goes immediately to compiling and fails.At first the error the CK gave me was missing TESV_Papyrus_Flag.flg. I followed the advice on the wiki to unpack the Scripts.rar, then reinstalled SKSE. Still the same error. I downloaded the TESV_Papyrus_Flag.flg off Nexus and put it in the Source folder. Then I noticed I probably unpacked the Scripts into a wrong folder at first, rectified it. Now it gives me a long list of errors and I don't know what to do. I'm scared of reinstalling the SKSE again at this point, I don't want to mess it up any more than I already did. Can anybody please tell me what's wrong and how I can repair it? Thank you so much! Here is the error message: Starting 1 compile threads for 1 files...Compiling "MODRtestSummon"...C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Keyword.psc(4,33): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(27,49): unknown type globalvariableC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(28,34): globalvariable is not a known user-defined typeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(28,1): type mismatch on parameter 1 (did you forget a cast?)C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ActorBase.psc(4,15): unknown type classC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(12,66): unknown type globalvariableC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(13,12): globalvariable is not a known user-defined typeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(18,34): globalvariable is not a known user-defined typeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(18,40): cannot compare a none to a float (cast missing or types unrelated)C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(18,40): cannot relatively compare variables to NoneC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(18,90): globalvariable is not a known user-defined typeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(18,96): cannot compare a none to a float (cast missing or types unrelated)C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(18,96): cannot relatively compare variables to NoneC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(135,58): unknown type globalvariableC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(140,10): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(144,10): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(148,10): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(155,10): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(158,62): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(159,10): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(169,31): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(173,10): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(176,33): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(179,36): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(185,28): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(200,71): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(205,10): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(208,57): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(229,10): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(232,48): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(236,33): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Quest.psc(241,10): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\LeveledItem.psc(13,24): unknown type globalvariableC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\LeveledItem.psc(14,40): unknown type globalvariableC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(48,15): unknown type lightC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(49,24): unknown type lightC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(51,22): unknown type effectshaderC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(52,35): unknown type effectshaderC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(54,22): unknown type effectshaderC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(55,39): unknown type effectshaderC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(57,20): unknown type projectileC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(58,34): unknown type projectileC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(60,19): unknown type explosionC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(61,32): unknown type explosionC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(72,23): unknown type impactdatasetC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(73,40): unknown type impactdatasetC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(78,28): unknown type imagespacemodifierC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MagicEffect.psc(79,45): unknown type imagespacemodifierC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Race.psc(20,19): unknown type voicetypeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Race.psc(23,52): unknown type voicetypeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ActorBase.psc(55,24): unknown type classC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ActorBase.psc(104,19): unknown type voicetypeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ActorBase.psc(105,32): unknown type voicetypeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Shout.psc(4,21): unknown type wordofpowerC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Shout.psc(8,46): unknown type wordofpowerC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(179,17): unknown type packageC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Ammo.psc(9,20): unknown type projectileC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Weapon.psc(54,16): unknown type staticC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Weapon.psc(55,33): unknown type staticC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(293,45): unknown type associationtypeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(454,28): unknown type idleC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(457,38): unknown type idleC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(721,32): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(721,51): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(733,29): unknown type packageC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(737,30): unknown type packageC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Actor.psc(741,27): unknown type packageC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Game.psc(176,41): unknown type wordofpowerC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Game.psc(251,57): unknown type imagespacemodifierC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Game.psc(257,31): unknown type wordofpowerC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Game.psc(263,32): unknown type wordofpowerC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(86,33): location is not a known user-defined typeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(86,77): location is not a known user-defined typeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(110,5): unknown type keyC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(112,5): type mismatch on parameter 1 (did you forget a cast?)C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(112,29): cannot compare a none to a int (cast missing or types unrelated)C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(113,3): type mismatch on parameter 1 (did you forget a cast?)C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(242,18): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(245,15): unknown type sceneC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(251,18): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(269,13): unknown type keyC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(368,19): unknown type voicetypeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(374,20): unknown type worldspaceC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(388,41): unknown type locationreftypeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(465,90): unknown type encounterzoneC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(477,45): unknown type impactdatasetC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(517,19): unknown type topicC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(598,36): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(600,10): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(604,20): location is not a known user-defined typeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(665,67): unknown type projectileC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(822,24): unknown type referencealiasC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(834,26): unknown type referencealias[]C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\Keyword.psc(8,45): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ActiveMagicEffect.psc(188,67): unknown type projectileC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ActiveMagicEffect.psc(308,32): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ActiveMagicEffect.psc(308,51): unknown type locationC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ActiveMagicEffect.psc(320,29): unknown type packageC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ActiveMagicEffect.psc(324,30): unknown type packageC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\ActiveMagicEffect.psc(328,27): unknown type packageNo output generated for MODRtestSummon, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on MODRtestSummon Link to comment Share on other sites More sharing options...
IsharaMeradin Posted October 4, 2017 Share Posted October 4, 2017 1. Since you have resolved the TESV_Papyrus_Flag.flg issue, make sure that your PSC files are in the exact same folder. Confirm that all these files are in the location that the Creation Kit is using. To check this look in SkyrimEditor.ini file under [Papyrus] and look for sScriptSourceFolder= 2. The CK's compiler can only handle a single source folder. Therefore you have to carefully merge all your source scripts that you need to work with into a single folder (same order as load order). Either make it the default folder or change the entry in SkyrimEditor.ini accordingly. 3. If you wish to rule out any syntax errors as the cause, post the corresponding script that caused the posted compiler error. Link to comment Share on other sites More sharing options...
Rosa15 Posted October 4, 2017 Author Share Posted October 4, 2017 (edited) 1. Since you have resolved the TESV_Papyrus_Flag.flg issue, make sure that your PSC files are in the exact same folder. Confirm that all these files are in the location that the Creation Kit is using. To check this look in SkyrimEditor.ini file under [Papyrus] and look for sScriptSourceFolder= 2. The CK's compiler can only handle a single source folder. Therefore you have to carefully merge all your source scripts that you need to work with into a single folder (same order as load order). Either make it the default folder or change the entry in SkyrimEditor.ini accordingly. 3. If you wish to rule out any syntax errors as the cause, post the corresponding script that caused the posted compiler error.Dear Ishara, thanks a lot for replying!I'm looking at your 1st and 2nd suggestion (the third possibly does not apply, since it does not allow me to paste any code at all, it immediately compiles as soon as I write the name of the new script), thanks a lot once more. Edited October 4, 2017 by Rosa15 Link to comment Share on other sites More sharing options...
Rosa15 Posted October 4, 2017 Author Share Posted October 4, 2017 Ok, so the psc should all now be in the Data\Scripts\Source as is written in the SkyrimEditor.ini. The TESV_Papyrus_Flag.flg is there too. I tested it out - and now the script can be added to the magic effect! I don't know if it works beyond that, will have to try out the tutorial and see what happens, but thanks a bunch! Can you tell me please if you think it safe to reinstall SKSE now? Sorry, I really don't want to mess it up now that it seems to be okay... Link to comment Share on other sites More sharing options...
IsharaMeradin Posted October 4, 2017 Share Posted October 4, 2017 Yes, you can re-install SKSE. If you plan on making mods that rely on SKSE functions, you'll need to manually install (or re-pack so that a mod manager can install) the PSC files as the auto-installers only provide what is needed for the game and not the Creation Kit. Link to comment Share on other sites More sharing options...
Rosa15 Posted October 4, 2017 Author Share Posted October 4, 2017 Thanks so much, Ishara! That's a relief. I'll be doing a manual re-installation of SKSE, so hopefully that will be ok for the future, if ever I do gather enough knowledge for SKSE-reliant mods? Not sure I understand you entirely, sorry... :) Link to comment Share on other sites More sharing options...
Recommended Posts