Jump to content

GetQuest is not a function or does not exist... BUT IT SHOULD


Muse3

Recommended Posts

Posted

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?

Posted

"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

Posted
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.

 

Posted

 

@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?

Posted
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.

Posted

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.

 

 

Posted

@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 :\

Posted

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.  :) 

Posted

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

Posted
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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...