dwayk8 Posted July 13, 2017 Posted July 13, 2017 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 scriptD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(21,8): SexLab is not a variableD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslThreadSlots.psc(5,25): cannot name a variable or property the same as a known type or scriptD:\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 sslthreadmodelD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslSystemConfig.psc(7,25): cannot name a variable or property the same as a known type or scriptD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(37,17): cannot name a variable or property the same as a known type or scriptD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(38,5): SexLab is not a variableD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(45,17): cannot name a variable or property the same as a known type or scriptD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(46,5): SexLab is not a variableD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(53,17): cannot name a variable or property the same as a known type or scriptD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(54,5): SexLab is not a variableD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(2951,16): cannot name a variable or property the same as a known type or scriptD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(2986,23): SexLab is not a variableD:\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 stateD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3029,5): SexLab is not a variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3029,25): SexLab is not a variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3038,5): SexLab is not a variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3038,25): SexLab is not a variableD:\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 scriptNo 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.
dwayk8 Posted July 14, 2017 Author Posted July 14, 2017 Here's the code: ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname DW_s1 Extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEactor[] sexActors = new actor[2]sexActors[0] = SexLab.PlayerRefsexActors[1] = akSpeakerSexLab.StartSex(sexActors, anims);END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentSexLabFramework property SexLab auto
Inte Posted July 15, 2017 Posted July 15, 2017 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.
dwayk8 Posted July 16, 2017 Author Posted July 16, 2017 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 scriptD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(21,8): SexLab is not a variableD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslThreadSlots.psc(5,25): cannot name a variable or property the same as a known type or scriptD:\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 sslthreadmodelD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\sslSystemConfig.psc(7,25): cannot name a variable or property the same as a known type or scriptD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(37,17): cannot name a variable or property the same as a known type or scriptD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(38,5): SexLab is not a variableD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(45,17): cannot name a variable or property the same as a known type or scriptD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(46,5): SexLab is not a variableD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(53,17): cannot name a variable or property the same as a known type or scriptD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabUtil.psc(54,5): SexLab is not a variableD:\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 variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(2951,16): cannot name a variable or property the same as a known type or scriptD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(2986,23): SexLab is not a variableD:\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 stateD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3029,5): SexLab is not a variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3029,25): SexLab is not a variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3038,5): SexLab is not a variableD:\Steam\steamapps\common\skyrim\Data\Scripts\Source\SexLabFramework.psc(3038,25): SexLab is not a variableD:\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 scriptNo 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.
Inte Posted July 16, 2017 Posted July 16, 2017 Did you try my code above? Because it compiles fine on my machine.
Motorwind Posted July 16, 2017 Posted July 16, 2017 Papyrus is most certanly missing the source scripts from sexlab. If you are using Mod Organizer you should try papyrusplus: http://www.nexusmods.com/skyrim/mods/74672/? . It makes use of MO folder structure.
WraithSlayer Posted July 19, 2017 Posted July 19, 2017 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.
Inte Posted July 20, 2017 Posted July 20, 2017 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? What about the variable 'anims' from SexLab.StartSex(sexActors, anims) ? That is not defined anywhere in the script. No, that script will not compile.
WraithSlayer Posted July 20, 2017 Posted July 20, 2017 Wait, the script is correct already? 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.
Inte Posted July 20, 2017 Posted July 20, 2017 Wait, the script is correct already? 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.
dwayk8 Posted July 22, 2017 Author Posted July 22, 2017 I've tried everything, can it be that I did not properly set up the Creation Kit, or did not install something?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.