Jump to content
IGNORED

Cant compile a simple script change


Recommended Posts

So I've been enjoying this mod called Pet Collar, but I found the line "X needs your service" a bit lacking, so I thought to spice it up a little by editting the notifications in the script or something.

Well, I didn't have much experience with actual creating mods or writing scripts, but I had messed around in the creation kit before so I loaded up the plugin, found the script, right clicked it to edit, but was met with only one line.

Scriptname PetCollarFucktoyScript extends activemagiceffect  
 

Now I have also tried a lot of other ways, like opening the psc file and editting those lines, which was easy enough to do. I found the lines and changed them appropiately, only editting the parts in quotations, not touching the actual code.

Now I got the right psc file, apparently it's time to compile it into a .pex file. This is where the problems start.

I've tried all sorts of papyrus compilers, but they failed compiling it. I tried pasting the psc code into the creation kit line from before, then build it, which also failed.

Apparently it can't find TESV_Papyrus_Flags.flg even though that is located in my data/scripts/source folder. And after that   fixed the flag issue by renaming scripts to source and source to scripts, which i previously also did the other way around or something. I don't know, confusing stuff. I thought the source folder was supposed to be in the scripts folder.

 

Anyway, the core issue isn't resolved which is that a lot of references apparently aren't found or defined. Skyrim Script Compiler goes nuts with a lot of "Unknown user flag hidden or "Unknown user flag conditional", or "RegisterForSingleUpdate is not a function or does not exist".

 

Trying to compile in CK likewise fails and I get

Spoiler

Starting 1 compile threads for 1 files...
Compiling "PetCollarFucktoyScript"...
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(3,31): unknown type petcollarconfigscript
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(17,19): unknown type sslbaseanimation[]
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(23,21): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(26,44): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(26,4): type mismatch on parameter 1 (did you forget a cast?)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(30,127): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(32,52): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(32,12): type mismatch on parameter 1 (did you forget a cast?)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(35,83): cannot convert to unknown type petcollarfollowerssearchscript
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(35,83): cannot cast a quest to a petcollarfollowerssearchscript, types are incompatible
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(35,39): unknown type petcollarfollowerssearchscript
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(36,42): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(37,25): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(38,28): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(40,56): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(40,16): type mismatch on parameter 1 (did you forget a cast?)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(43,32): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(43,62): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(43,72): cannot get the length of ::nonevar as it isn't an array
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(44,45): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(45,37): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(45,68): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(46,35): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(46,55): cannot compare a none to a int (cast missing or types unrelated)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(47,62): cannot convert to unknown type petcollararousedactorssearchscript
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(47,62): cannot cast a quest to a petcollararousedactorssearchscript, types are incompatible
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(47,101): petcollararousedactorssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(48,39): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(48,59): cannot compare a none to a int (cast missing or types unrelated)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(50,65): cannot convert to unknown type petcollararousedactorssearchscript
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(50,65): cannot cast a quest to a petcollararousedactorssearchscript, types are incompatible
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(50,104): petcollararousedactorssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(52,67): cannot convert to unknown type petcollararousedactorssearchscript
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(52,67): cannot cast a quest to a petcollararousedactorssearchscript, types are incompatible
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(52,106): petcollararousedactorssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(54,39): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(54,59): cannot compare a none to a int (cast missing or types unrelated)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(56,65): cannot convert to unknown type petcollararousedactorssearchscript
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(56,65): cannot cast a quest to a petcollararousedactorssearchscript, types are incompatible
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(56,104): petcollararousedactorssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(58,67): cannot convert to unknown type petcollararousedactorssearchscript
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(58,67): cannot cast a quest to a petcollararousedactorssearchscript, types are incompatible
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(58,106): petcollararousedactorssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(60,39): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(60,59): cannot compare a none to a int (cast missing or types unrelated)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(61,61): cannot convert to unknown type petcollararousedactorssearchscript
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(61,61): cannot cast a quest to a petcollararousedactorssearchscript, types are incompatible
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(61,100): petcollararousedactorssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(62,39): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(62,59): cannot compare a none to a int (cast missing or types unrelated)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(63,63): cannot convert to unknown type petcollararousedactorssearchscript
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(63,63): cannot cast a quest to a petcollararousedactorssearchscript, types are incompatible
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(63,102): petcollararousedactorssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(70,33): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(83,36): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(84,39): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(86,56): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(98,58): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(103,74): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(107,104): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(107,114): none is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(123,30): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(123,40): none is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(124,63): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(125,64): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(125,24): type mismatch on parameter 1 (did you forget a cast?)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(129,30): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(129,40): none is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(129,63): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(129,73): none is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(130,31): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(130,62): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(130,41): none is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(135,39): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(138,26): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(138,89): cannot compare a none to a int (cast missing or types unrelated)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(138,89): cannot relatively compare variables to None
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(142,60): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(142,20): type mismatch on parameter 1 (did you forget a cast?)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(145,35): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(145,78): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(146,40): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(152,56): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(152,16): type mismatch on parameter 1 (did you forget a cast?)
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(155,47): petcollarfollowerssearchscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(161,84): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(161,26): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(180,35): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(181,38): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(187,39): sexlabframework is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(208,23): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(219,48): petcollarconfigscript is not a known user-defined type
C:\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\PetCollarFucktoyScript.psc(219,8): type mismatch on parameter 1 (did you forget a cast?)
No output generated for PetCollarFucktoyScript, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on PetCollarFucktoyScript
 

So yeah, it can't find these things or something.

I am running creation kit through MO2 (v2.2.2.1). I have also done the scripts.zip into data folder thing, which didnt really do anything really, might try it again. (yes i know to reinstall skse after again.

 

Thx for reading

Link to comment

Yeah I don't know, running the CK through MO should expose those source scripts needed but that does not seem to be the case here.

If everything fails, copy the source psc scripts of SexLab and PetCollar and whatever else it complaims about and paste them into your Skyrim source folder directly.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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