Muse3 Posted January 3, 2022 Posted January 3, 2022 I'm trying to compile a script, and i get the error "GetQuest is not a function or does not exist", but the sorce script containg it (Quest) is in the Source folder... Full error log: Spoiler Starting 1 compile threads for 1 files... Compiling "slowMotionOnPlayerDeath"... C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(28,21): GetQuest is not a function or does not exist C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(28,21): cannot call the member function GetQuest alone or on a type, must call it on a variable C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(28,56): cannot cast a none to a pde_mcmscript, types are incompatible C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(62,1): variable ConsoleUtil is undefined C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(62,13): none is not a known user-defined type C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(108,1): variable ConsoleUtil is undefined C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(108,13): none is not a known user-defined type C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(111,1): variable ConsoleUtil is undefined C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(111,13): none is not a known user-defined type C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(199,52): GetName is not a function or does not exist C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(247,9): variable StringUtil is undefined C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(247,20): none is not a known user-defined type C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(247,42): cannot compare a none to a int (cast missing or types unrelated) C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(247,42): cannot relatively compare variables to None C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(329,39): GetEquippedObject is not a function or does not exist C:\Games\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(336,39): GetEquippedObject is not a function or does not exist No output generated for slowMotionOnPlayerDeath, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on slowMotionOnPlayerDeath I am launching CK from the game's directory and i put the source scripts in Data/Scripts/Source When i start CK, i set "Data" to only include Skyrim. Any tips? Why is this happening?
aurreth Posted January 3, 2022 Posted January 3, 2022 "variable ConsoleUtil is undefined" You are missing the source code file for ConsoleUtil, so any functions or variables declared there are missing. Add this to your source directory. For LE it should be Data/scripts/Source. ConsoleUtil.psc
Muse3 Posted January 3, 2022 Author Posted January 3, 2022 28 minutes ago, aurreth said: "variable ConsoleUtil is undefined" You are missing the source code file for ConsoleUtil, so any functions or variables declared there are missing. Add this to your source directory. For LE it should be Data/scripts/Source. ConsoleUtil.psc 629 B · 0 downloads Thx! It did some progress, no more consoleUtil errors, but the other ones remain... Spoiler C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(28,21): GetQuest is not a function or does not exist C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(28,21): cannot call the member function GetQuest alone or on a type, must call it on a variable C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(28,56): cannot cast a none to a pde_mcmscript, types are incompatible C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(199,52): GetName is not a function or does not exist C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(247,9): variable StringUtil is undefined C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(247,20): none is not a known user-defined type C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(247,42): cannot compare a none to a int (cast missing or types unrelated) C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(247,42): cannot relatively compare variables to None C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(329,39): GetEquippedObject is not a function or does not exist C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V Skyrim - Legendary Edition\Data\Scripts\Source\slowMotionOnPlayerDeath.psc(336,39): GetEquippedObject is not a function or does not exist No output generated for slowMotionOnPlayerDeath, compilation failed.
aurreth Posted January 3, 2022 Posted January 3, 2022 "cannot cast a none to a pde_mcmscript" You are missing the source code for SkyUI (which contains MCM). Get the 5.1 SDK from here.
Muse3 Posted January 3, 2022 Author Posted January 3, 2022 @aurrethI have them already in my directories, i got them from that very link Althogh in the archive they put to download i notice that there are 4 .pex files and only 2 .psc source files. Could that be the problem?
aurreth Posted January 3, 2022 Posted January 3, 2022 1 hour ago, smusini said: @aurrethI have them already in my directories, i got them from that very link Althogh in the archive they put to download i notice that there are 4 .pex files and only 2 .psc source files. Could that be the problem? Nope, that's what you are supposed to have. Put the pex files in /Scripts, and the psc files in Scripts/Source.
aurreth Posted January 3, 2022 Posted January 3, 2022 "variable StringUtil is undefined" You need the source for PapyrusUtil. Think you get it from Nexus.
Muse3 Posted January 3, 2022 Author Posted January 3, 2022 @aurreth i have both the source code for SKYUI and PapyrusUtil and StringUtil. How can it not see them?
aurreth Posted January 3, 2022 Posted January 3, 2022 Hmm, LE right? Ok, this is going to sound stupid, but it's what I have to do for SE. 1. Copy everything in Data/Scripts/Source to Data/Source/Scripts. Tell it "yes" to overwrite. 2. Now do it the other way, copy everything in Data/Source/Scripts to Data/Scripts/Source. You don't have to overwrite this time. That makes sure that all the installed source files are in both places that the CK might look for them. It also makes sure that if a mod installed source files to the wrong one of those two folders they end up in the right place for you to use.
Muse3 Posted January 3, 2022 Author Posted January 3, 2022 @aurreth Yes, LE, i didn't have a Source/Scropts so i created one and filled it with the ones from Scripts/Source, but the results are the same... It seems that you know CK more than me, so in case you wanna look at it or try if you get the same results, this is the full mod from where i edited the "slowMotionOnPlayerDeath" script, the one i want to compile (here is already edited). SkyrimRealisticDth.zip The edit was super simple, i changed a value into a random one at line 128. I really don't know what to try next :\
aurreth Posted January 3, 2022 Posted January 3, 2022 I use SE, so anything I do with that won't work for you, sorry. I've just gone through the whole "now CK wants the source for this thing" dance a few times.
Muse3 Posted January 3, 2022 Author Posted January 3, 2022 Ok a added FileAccess Interface source scripts which were needed (and i forgot...), set CK to run as administrator, and i installed PapyrusUtil stuff directly in the game's folder... i don't know what od those things did it, but it worked! Thanks for your support @aurreth, sorry for waisting your time with my ramblings and have a nice one
aurreth Posted January 3, 2022 Posted January 3, 2022 35 minutes ago, smusini said: Ok a added FileAccess Interface source scripts which were needed (and i forgot...), set CK to run as administrator, and i installed PapyrusUtil stuff directly in the game's folder... i don't know what od those things did it, but it worked! Thanks for your support @aurreth, sorry for waisting your time with my ramblings and have a nice one Oh no problem at all Glad you got it fixed.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.