Jump to content

Creation kit se, compile errors with SexLabFramework Property SexLab Auto (solved)


Recommended Posts

Posted (edited)

First of all please excuse my bad englisch i am not a native speaker.

 

Context:

I am using creation kit with mo2.

I am trying to create a simpel mod where when you speak to a specific Npc you get a dialoge option to initiate sex. I have the Npc and dialog set up but when i try to compile my script i get multipel eroors.

 

Here is the script i am trying to compile: 

Spoiler

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 2
Scriptname Testscript1 Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_1
Function Fragment_1(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
Sexlab.Quickstart(PlayerRef, AkSpeaker)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

 SexLabFramework Property SexLab Auto
Actor Property PlayerRef Auto

 

and here is the eroor message i get:

Spoiler

Starting 1 compile threads for 1 files...
Compiling "Testscript1"...
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(94,3): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(94,18): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(110,3): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(110,18): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(138,4): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(138,19): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(149,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(149,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(187,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(187,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(241,5): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(241,20): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(253,3): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(253,18): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(263,4): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(263,19): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(86,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(86,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(97,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(97,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(111,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(111,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(194,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(194,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(198,3): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(198,18): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(201,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(201,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(222,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(222,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(226,3): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(226,18): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(229,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(229,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(928,13): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(928,28): none is not a known user-defined type
No output generated for Testscript1, compilation failed.

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

 

The problem seems to be that the variable "MfgConsoleFunc is not defined and the fix for that is most likly very simpel but i am just not abel to find it on my own.

 

 

When I try to only compile the script with the line "SexLabFramework Property SexLab Auto" to set the property I get the same eroor.

Spoiler

Script:

 

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 2
Scriptname Testscript1 Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_1
Function Fragment_1(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
;
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

 SexLabFramework Property SexLab Auto

 

 

Eroor:

 

Starting 1 compile threads for 1 files...
Compiling "Testscript1"...
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(94,3): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(94,18): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(110,3): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(110,18): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(138,4): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(138,19): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(149,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(149,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(187,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(187,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(241,5): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(241,20): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(253,3): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(253,18): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(263,4): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseExpression.psc(263,19): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(86,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(86,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(97,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(97,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(111,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(111,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(194,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(194,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(198,3): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(198,18): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(201,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(201,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(222,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(222,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(226,3): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(226,18): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(229,2): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslBaseVoice.psc(229,17): none is not a known user-defined type
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(928,13): variable MfgConsoleFunc is undefined
D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\sslSystemConfig.psc(928,28): none is not a known user-defined type
No output generated for Testscript1, compilation failed.

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


 

 

Here are some screenshots which might or might not help:

Spoiler

 

 

1741302928_Screenshot(249).png.62f906f05521b347fbeb2525b4332dcd.png856227796_Screenshot(247).png.91a32446934138df367762db0ab49f9c.png

 

Note: It is possibel for me to compile the script if i remove: "SexLabFramework Property SexLab Auto" and "Sexlab.Quickstart(PlayerRef, AkSpeaker)"

 

I would be very gratefull for help since this littel error seems so infuriatingly simpel to me.

Edited by noj125
Posted
1 hour ago, noj125 said:

with mo2.

 

I would copy and paste scripts folder from sexlab mod into data folder. MO has hard time seeing somethings whilst in ck. At least on my end with MO1. MO users starts with no scripts folder in data, You can add a scripts folder to data folder no problem. I would copy and paste scripts folders from SL, skse, and Racemenu into data folder and this will clear some errors up for you. MFG console is built into Sl, just adding the SL scripts to data and you should be good. 

 

Here is the deal, if you already have a scripts folder in data, then back it up someplace safe, if you dont have 1 already then add 1, it can be removed later safely if you really wanted to, myself I just keep that script folder in my data nowadays there is no problem with it. 

Posted (edited)
1 hour ago, noj125 said:

The problem seems to be that the variable "MfgConsoleFunc is not defined and the fix for that is most likly very simpel but i am just not abel to find it on my own.

 

You are missing source code.  Copy this to Data\source\scripts:

 

MfgConsoleFunc.psc

 

Edit: 

 

Many mods use the LE convention for script source code, i.e. distributing it in Data\scripts\Source.  SE, however, looks for it in Data\source\scripts. 

 

When SE came out and people switched over many authors, instead of changing their mods, simply adjusted the CK to look in the old location.  You now have a mix, with some mods using the LE directory structure, and some using the SE setup.  The easiest fix is to copy the contents of Data\scripts\Source to Data\source\scripts, telling Windows "yes" when it asks if you want to overwrite.

 

Edited by aurreth
Posted (edited)
28 minutes ago, aurreth said:

 

You are missing source code.  Copy this to Data\source\scripts:

 

MfgConsoleFunc.psc 1.31 kB · 1 download

 

Edit: 

 

Many mods use the LE convention for script source code, i.e. distributing it in Data\scripts\Source.  SE, however, looks for it in Data\source\scripts. 

 

When SE came out and people switched over many authors, instead of changing their mods, simply adjusted the CK to look in the old location.  You now have a mix, with some mods using the LE directory structure, and some using the SE setup.  The easiest fix is to copy the contents of Data\scripts\Source to Data\source\scripts, telling Windows "yes" when it asks if you want to overwrite.

 

My script now compiled sucsesfully  in mo2 and outside from it but where did you get that psc file from because i thought that i did copy all the scripts from sexlab and skse.

 

I am gonna play test it now.

Edited by noj125
Posted
1 minute ago, noj125 said:

My script now compiled sucsesfully  in mo2 and outside from it but where did you get that psc file from because i thought that i did copy all the scripts from sexlab and skse.

 

I am gonna play test it now.

 

It's from Mfg Fix.

Posted
50 minutes ago, aurreth said:

, i.e. distributing it in Data\scripts\Source.  SE, however, looks for it in Data\source\scripts. 

 

SE side is different with .psc files folder structure. So weird to me. On SE in ck you guys only see the source if under that file structure? 

 

 

 

Posted (edited)
33 minutes ago, Heroine HoneyCrotch said:

 

SE side is different with .psc files folder structure. So weird to me. On SE in ck you guys only see the source if under that file structure? 

 

 

 

I have my sources in Skyrim Special Edition/Data/Source/Scripts

and copied the scripts from Sexlab and skse into that folder

 

Edited by noj125
Posted

Evrything seems to work now thanks a lot for the quick help i dont know why i didnt stumbel over the Nexus fix myself.

 

Schould I close this Thread now or keep it open for oather peopel with the same problem?

Posted
15 minutes ago, Heroine HoneyCrotch said:

SE side is different with .psc files folder structure. So weird to me. On SE in ck you guys only see the source if under that file structure? 

 

Yes, in the CK for SE the location of psc files was changed.  You can change it by adding a line for sScriptSourceFolder under [Papyrus] in CreationKit.ini

 

 [Papyrus]
 sScriptSourceFolder = ".\Data\Scripts\Source"

 

I don't know if you can have multiple directories listed there though.  If not, you run into issues where some mod authors use the original pathing scheme, Data\Scripts\Source, and some use the SE path, Data\Source\Scripts.  The SE CK itself, when unzipping source files during install, will place everything in Source\Scripts.  On a *nix system you could just link directories so that the file system saw them both as the same location, but we're working with Windows here so it's not that simple.

 

  • 1 year later...
Posted

I was able to get the same issue resolved running the GOG AE version of the game with MO2 by editing each of the mod's zip files and adding a "scripts/Source/" directory, then copying all the .psc files into it and adding the modified zip as a mod to MO2. MfgFix, RaceMenu's Modder's Package (NiOverride), and FNIS Creature Pack all had their .psc files in "source/scripts/', which the game didn't mind, but Creation Kit couldn't find.

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