Jump to content

Recommended Posts

I can not compile the script. I constantly see a mistake. I tried everything I could. Skse is all updated. He still gives an error. I apologize if I repeat.

 

I see this error:

 

"D:\Steam\steamapps\common\skyrim\Papyrus Compiler\PapyrusCompiler.exe" "DW_s1.psc" -f="TESV_Papyrus_Flags.flg" -i="D:\Steam\steamapps\common\skyrim\Data\Scripts\Source" -o="D:\Steam\steamapps\common\skyrim\Data\Scripts"
Starting 1 compile threads for 1 files...
Compiling "DW_s1"...
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(20,17): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(21,8): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(21,33): a property cannot be used directly on a type, it must be used on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslThreadSlots.psc(5,25): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslThreadController.psc(365,1): the parameter defaults of function centeroncoords in state animating on script sslthreadcontroller do not match the parent script sslthreadmodel
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslThreadSlots.psc(16,11): cannot call the member function GetState alone or on a type, must call it on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslSystemConfig.psc(7,25): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslSystemConfig.psc(19,16): a property cannot be used directly on a type, it must be used on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(37,17): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(38,5): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(41,15): cannot call the member function StartSex alone or on a type, must call it on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(45,17): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(46,5): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(49,15): cannot call the member function NewThread alone or on a type, must call it on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(53,17): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(54,5): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(57,15): cannot call the member function QuickStart alone or on a type, must call it on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(2951,16): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(2986,23): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3016,1): the parameter defaults of function newthread in state disabled on script sexlabframework does not match the empty state
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3029,5): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3029,25): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3038,5): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3038,25): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\DW_s1.psc(16,25): cannot name a variable or property the same as a known type or script
No output generated for DW_s1.psc, compilation failed.

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

 

 

 

Very much I ask to help or assist me.

Link to comment

Here's the code:

 

 

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

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
actor[] sexActors = new actor[2]
sexActors[0] = SexLab.PlayerRef
sexActors[1] = akSpeaker
SexLab.StartSex(sexActors, anims)
;END CODE
EndFunction
;END FRAGMENT

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

SexLabFramework property SexLab auto

 

Link to comment

With that SL function call you need to specify an array of animations to be played. 

 

A simpler way would be,

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

SexLabFramework property SexLab auto

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
SexLab.QuickStart(Actor1 = SexLab.PlayerRef, Actor2 = akSpeaker, Victim = SexLab.PlayerRef, AnimationTags = "")
;END CODE
EndFunction
;END FRAGMENT
;END FRAGMENT CODE - Do not edit anything between this and the begin comment

If you want to limit/control what animations can be played, you might want to specify some tags there. You can find tags in SL MCM under each animation selection. 

Link to comment

I inserted this code and get the following errors:

 

 

"D:\Steam\steamapps\common\skyrim\Papyrus Compiler\PapyrusCompiler.exe" "DW_s1.psc" -f="TESV_Papyrus_Flags.flg" -i="D:\Steam\steamapps\common\skyrim\Data\Scripts\Source" -o="D:\Steam\steamapps\common\skyrim\Data\Scripts"
Starting 1 compile threads for 1 files...
Compiling "DW_s1"...
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(20,17): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(21,8): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(21,33): a property cannot be used directly on a type, it must be used on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslThreadSlots.psc(5,25): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslThreadController.psc(365,1): the parameter defaults of function centeroncoords in state animating on script sslthreadcontroller do not match the parent script sslthreadmodel
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslThreadSlots.psc(16,11): cannot call the member function GetState alone or on a type, must call it on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslSystemConfig.psc(7,25): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslSystemConfig.psc(19,16): a property cannot be used directly on a type, it must be used on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(37,17): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(38,5): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(41,15): cannot call the member function StartSex alone or on a type, must call it on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(45,17): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(46,5): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(49,15): cannot call the member function NewThread alone or on a type, must call it on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(53,17): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(54,5): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(57,15): cannot call the member function QuickStart alone or on a type, must call it on a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(2951,16): cannot name a variable or property the same as a known type or script
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(2986,23): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3016,1): the parameter defaults of function newthread in state disabled on script sexlabframework does not match the empty state
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3029,5): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3029,25): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3038,5): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3038,25): SexLab is not a variable
D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\DW_s1.psc(16,25): cannot name a variable or property the same as a known type or script
No output generated for DW_s1.psc, compilation failed.

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

 

 

Papyrus Compiler does not want to be compiled. With standard functions there are no problems, they are compiled. And when you try to compile the script from SexLab, it produces an error.

Link to comment

Last error in your log:

D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\DW_s1.psc(16,25): cannot name a variable or property the same as a known type or script

This implies you've been messing around with SexLab framework script files when you shouldn't have, which would also explain all the other errors you're getting from framework scripts. Delete all the scripts you've created (you should NOT have a SexLab.psc, only a SexLabFramework.psc), then reinstall the framework and leave the scripts alone. Your script code is already correct: you have a variable of type SexLabFramework, with a local name of SexLab, so assuming nothing else is wrong with your files, your script should compile.

Link to comment

Last error in your log:

D:\Steam\steamapps\common\skyrim\Data\Scripts\Source\DW_s1.psc(16,25): cannot name a variable or property the same as a known type or script

This implies you've been messing around with SexLab framework script files when you shouldn't have, which would also explain all the other errors you're getting from framework scripts. Delete all the scripts you've created (you should NOT have a SexLab.psc, only a SexLabFramework.psc), then reinstall the framework and leave the scripts alone. Your script code is already correct: you have a variable of type SexLabFramework, with a local name of SexLab, so assuming nothing else is wrong with your files, your script should compile.

 

Wait, the script is correct already?  :huh:

 

What about the variable 'anims' from

SexLab.StartSex(sexActors, anims)

?

 

That is not defined anywhere in the script.  No, that script will not compile. 

Link to comment

 

Wait, the script is correct already?  :huh:

 

What about the variable 'anims' from

SexLab.StartSex(sexActors, anims)

?

 

That is not defined anywhere in the script.  No, that script will not compile. 

 

 

OP already said he replaced his code with yours, which is correct as far as I know. So yes, it should compile. The compile errors highlight another unrelated issue, which is what my response is tailored to.

Link to comment

 

Wait, the script is correct already?  :huh:

 

What about the variable 'anims' from

SexLab.StartSex(sexActors, anims)
?

 

That is not defined anywhere in the script.  No, that script will not compile.

 

 

OP already said he replaced his code with yours, which is correct as far as I know. So yes, it should compile. The compile errors highlight another unrelated issue, which is what my response is tailored to.

 

 

Now I am confused.  :-/ 

 

In your reply post you were addressing @dwayk8 and said "...Your script code is already correct: ..." and then "...your script should compile...". But you meant my code? That doesn't make any sense.   :wacko:

Link to comment

Archived

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

  • 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