Jump to content

Creation Kit Sexlab compilation error; "not known" types!


Recommended Posts

EDIT: ISSUE IS SOLVED, I will leave this thread up if people eventually encounter a similar problem. 

 

The context; I am making an expansion mod for Sexist Guards by JimmyJimJim, but I am using Sarevok's SE conversion of the mod, I'm doing this for personal use. I made my mod a separate esp and I use Wyrebash to treat Sexist Guards SE like the master mod to mine. One Sexist Guards feature I like is "Rape Comments" which instigates scene dialogue during player rape, and looking through the scripts I found out that quite a few scenes were being left unused. The papyrus script run by the player quest alias controls which scenes get run and which don't. 

 

So BEFORE CHANGING ANYTHING about the original control script, I try to compile the script, and the compilation fails! Here's the error log: 

 

Spoiler

Starting 1 compile threads for 1 files...
Compiling "_SexistGuardsPlayerRapeCommentControl"...
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(12,8): sexlabframework is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(31,37): sexlabframework is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(31,21): unknown type sslthreadcontroller
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(32,37): sslthreadcontroller is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(32,18): unknown type sslbaseanimation
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(35,24): sslthreadcontroller is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(35,49): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(36,20): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(37,23): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(38,20): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(39,23): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(40,23): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(42,37): sslthreadcontroller is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(42,17): unknown type sslactoralias[]
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(43,16): sslthreadcontroller is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(43,5): type mismatch while assigning to a int (cast missing or types unrelated)
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(45,11): sslthreadcontroller is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(53,29): sslactoralias is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(104,37): sexlabframework is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(104,21): unknown type sslthreadcontroller
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(105,37): sslthreadcontroller is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(105,18): unknown type sslbaseanimation
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(108,24): sslthreadcontroller is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(108,49): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(109,20): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(110,23): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(111,20): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(112,23): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(113,23): sslbaseanimation is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(115,37): sslthreadcontroller is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(115,17): unknown type sslactoralias[]
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(116,16): sslthreadcontroller is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(116,5): type mismatch while assigning to a int (cast missing or types unrelated)
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(118,11): sslthreadcontroller is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(124,29): sslactoralias is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\_sexistguardsplayerrapecommentcontrol.psc(166,25): unknown type sexlabframework
No output generated for _SexistGuardsPlayerRapeCommentControl, compilation failed.

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

 

 

I'm not super familiar with Sexlab's code, but from the error log it looks like the script can't find any of the types related to Sexlab. Since Sexlab is a master to Sexist Guards, Sexlab Framework is always loaded into CK. So I don't understand why CK can't find those types. It's also weird considering through playtesting I know that the Rape Comments feature is fully functional. The only changes I made to that specific quest are some debug notifications so I know when each scene is being fired, I also added a couple of my own dialogue options which shouldn't affect much. The debug notifications work too, it's what helped me narrow down which scenes are being used. I am pretty sure I have all the prerequisites for Sexist Guards, I have sexlab framework, sky ui (for mcm), and SKSE all where Creation Kit runs from.

 

Since I didn't actually write the code that's causing the errors, I'm completely lost. My best guess is that Sexlab SE uses different types / functions compared to Sexlab for Oldrim, and the conversion didn't take that into account, which is why the code still works but can't compile using the new Skyrim SE CK. That's just a guess though. What am I missing? 

 

I've actually been working on this mod for quite a while, but mostly not touching the rape comments, instead I've been adding to NPC dialogue and adding my own phases to player comments. Through some trial and error I've got all of that working fine in-game, I'm not a very experienced modder but I was able to manage so far without any help. The reason I want to edit this rapecomments script is because currently some animation tag specific scenes are not running meaning the player might say "you are making me cum" while sucking a bandit dick. Even if I can't get this working I still have enough content to make a complete mod, but I'd really like to make this change because this is for personal use after all. 

 

I copied the script causing the error into a text file that I will attach to this post. Any help is greatly appreciated.

 

 

 

 

 

rapecomments.txt

Link to comment
1 hour ago, Seijin8 said:

Are the Sexlab ".psc" scripts in your Data/Scripts/Source folder?

Update, I made some more progress but the issue isn't solved yet. I did some more trial and error, and turns out I have a Scripts/Source folder AND a Source/Scripts folder. By putting the sexlab scripts into the source/scripts folder and compile I get a different error log. I noticed the error log included somethings about FNIS, so I installed all the FNIS scripts and compiled again. This time I still got errors but they are less and none of the errors.

 

Spoiler

Starting 1 compile threads for 1 files...
Compiling "_SexistGuardsPlayerRapeCommentControl"...
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(353,31): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(353,42): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(354,19): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(354,30): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(359,5): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(359,16): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(360,5): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(360,16): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(793,31): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(793,42): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(794,5): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(794,16): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(776,61): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(776,72): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(776,91): cannot compare a none to a int (cast missing or types unrelated)
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(776,91): cannot relatively compare variables to None
No output generated for _SexistGuardsPlayerRapeCommentControl, compilation failed.
 


Starting 1 compile threads for 1 files...
Compiling "_SexistGuardsPlayerRapeCommentControl"...
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(353,31): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(353,42): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(354,19): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(354,30): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(359,5): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(359,16): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(360,5): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(360,16): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(793,31): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(793,42): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(794,5): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslActorAlias.psc(794,16): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(776,61): variable NiOverride is undefined
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(776,72): none is not a known user-defined type
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(776,91): cannot compare a none to a int (cast missing or types unrelated)
F:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(776,91): cannot relatively compare variables to None
No output generated for _SexistGuardsPlayerRapeCommentControl, compilation failed.

 

It seems all the remaining errors are coming from two sexlab scripts, sslActorAlias and sslSystemConfig. Most of the errors mention net immerse override. I don't think nioverride has a standalone SE port, but I think it's included with racemenu, so let me drag everything from racemenu into my creation kit and I will do another update after that is done. 

Link to comment
13 minutes ago, Seijin8 said:

Okay, are you able to compile other scripts not related to Sexlab or this mod?

Yes I am, I can actually compile scripts related to sexist guards that don't use sexlab variables. This is the only script I can't compile. 

 

EDIT: Update, race menu didn't fix the nioverride error, not even when I enable both esps in CK as data.

Link to comment
15 minutes ago, ScrollSerrayt said:

Yes I am, I can actually compile scripts related to sexist guards that don't use sexlab variables. This is the only script I can't compile. 

 

EDIT: Update, race menu didn't fix the nioverride error, not even when I enable both esps in CK as data.

Best guess at this point is either:

 

1) Not all scripts needing reference are present in your scripts/source directory.  Regardless of mod manager, that is the one place where a "clean" directory is not desirable (at least if you do scripting/compiling).

 

2) There is a key difference in the way those scripts are being accessed that didn't make the jump between LE and SE or whatever adjustments were made to the scripts for SKSE64.  Can't help with that one.

Link to comment
1 minute ago, Seijin8 said:

Best guess at this point is either:

 

1) Not all scripts needing reference are present in your scripts/source directory.  Regardless of mod manager, that is the one place where a "clean" directory is not desirable (at least if you do scripting/compiling).

 

2) There is a key difference in the way those scripts are being accessed that didn't make the jump between LE and SE or whatever adjustments were made to the scripts for SKSE64.  Can't help with that one.

1) It's possible that I am missing a script because I am not aware of the scripts the original mod author utilized. I install most mods through MO2 and then I copy any mods that I am using to script with directly in the Skyrim SE install location which is also where CK is installed. That way when I save a plugin I can test it immediately. 

 

2) That would suck, I guess I will try editing sexlab files trying to remove any mentions of NiOverride and see if that works. 

Link to comment
14 hours ago, Seijin8 said:

This might just be your configuration, but the errors are saying


\Data\Source\Scripts\temp\

... why "temp"?  If it is trying to link to other scripts, I would think a correct file path would be needed.

 

I don't know what that temp folder is about.

 

That said, I MIGHT HAVE SOLVED IT. Removing all of Sexlab code that calls NiOverride actually does let me compile the Rape comments script without errors. I'm really surprised that worked? I'm just worried that I might have broke something else in the process. So I'm not going to mark this thread solved until I 1) playtest sexlab to make sure it doesn't crash, and 2) successfully implement the first edit to the rape comments script that I plan to make. 

 

I'm glad you replied though because I probably wouldn't have noticed that I had my sexlab scripts in the wrong source folder if you didn't make me double check, so thanks for the help.

 

Starting 1 compile threads for 1 files...
Compiling "_SexistGuardsPlayerRapeCommentControl"...
Starting assembly of _SexistGuardsPlayerRapeCommentControl
0 error(s), 0 warning(s)
Assembly succeeded

Compilation succeeded.

 

UPDATE: It works after playtesting, and my edits to the script also work as intended. Problem Solved! :)

Link to comment
  • 1 year later...

Hi -
I know this is an old topic but wanted to make sure I follow what was done because I might be having the same problem.

 

1> You originally could not compile anything related to Skyrim.

2> You put all the SexLab and FNIS scripts in the source/scripts folder.

3>  You removed any reference to NiOverride from sslActorAlias and sslSystemConfig files.

4> You could then compile the code or amy I missing something?

 

Thank you

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use