kboom Posted September 5, 2021 Posted September 5, 2021 Can anyone help me with this code? is it correct? Spoiler ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment ;NEXT FRAGMENT INDEX 1 Scriptname MY_GetAnal Extends TopicInfo Hidden SexLabFramework property SexLab auto ;BEGIN FRAGMENT Fragment_0 Function Fragment_0(ObjectReference akSpeakerRef) Actor akSpeaker = akSpeakerRef as Actor ;BEGIN CODE sslThreadController function QuickStart(Actor Actor1 = SexLab.PlayerRef, Actor Actor2 = akSpeaker, Actor Victim = SexLab.PlayerRef, string AnimationTags = "Anal") Actor[] Positions = SexLabUtil.MakeActorArray(Actor1, Actor2, Actor3, Actor4, Actor5) sslBaseAnimation[] Anims if AnimationTags != "Anal" Anims = AnimSlots.GetByTags(Positions.Length, AnimationTags, "Anal", false) endIf return ThreadSlots.GetController(StartSex(Positions, Anims, Victim, none, true, Hook)) ;END CODE EndFunction ;END FRAGMENT ;END FRAGMENT CODE - Do not edit anything between this and the begin comment because I have this error when compile it
Guest Posted September 5, 2021 Posted September 5, 2021 What were you trying to do? Compile a script you created? Where is the script from? Custom script? Associated to a dialogue fragment? A scene fragment? Please give us more information.
kboom Posted September 5, 2021 Author Posted September 5, 2021 9 minutes ago, CPU said: What were you trying to do? Compile a script you created? Where is the script from? Custom script? Associated to a dialogue fragment? A scene fragment? Please give us more information. I want I have simple dialog sex with 2 characters with animations tag I tried to use quick start scripts in sexlab framework and try to add it to dialog like this Spoiler
Guest Posted September 5, 2021 Posted September 5, 2021 OK, it is a dialogue fragment. But I do not see your code in the begin nor end segments. Where you placed your code? Usually you start by putting just a semicolon in one of the two, then add the property, then put the rest of the code. The semicolon will allow to generate the script and compile it. So you can add the property, and then you can paste the real code. Try to do the script again, then click on Edit and copy the whole script. And paste it here.
kboom Posted September 5, 2021 Author Posted September 5, 2021 7 minutes ago, CPU said: OK, it is a dialogue fragment. But I do not see your code in the begin nor end segments. Where you placed your code? Usually you start by putting just a semicolon in one of the two, then add the property, then put the rest of the code. The semicolon will allow to generate the script and compile it. So you can add the property, and then you can paste the real code. Try to do the script again, then click on Edit and copy the whole script. And paste it here. the thing is my CK get error when I add semicolon this is the 1st error Spoiler this is the error inside psc file when I try to add property Spoiler
kboom Posted September 5, 2021 Author Posted September 5, 2021 I'm using MO2 and this is my ScriptCompile.bat
Guest Posted September 5, 2021 Posted September 5, 2021 I fear that the compiler is not able to write in the location. I was always compiling from Notepad++ and not from CK when I was using MO. And the error looks clear, CK is not able to create the initial script for some reasons. Try to remove the script and dialogue. Recreate the dialogue, save, close it, re-open, add just the semicolon, and let's see the error.
kboom Posted September 5, 2021 Author Posted September 5, 2021 15 minutes ago, CPU said: I fear that the compiler is not able to write in the location. I was always compiling from Notepad++ and not from CK when I was using MO. And the error looks clear, CK is not able to create the initial script for some reasons. Try to remove the script and dialogue. Recreate the dialogue, save, close it, re-open, add just the semicolon, and let's see the error. I had this errors. Is there anyway to script outside CK? Spoiler
Guest Posted September 5, 2021 Posted September 5, 2021 Yeah, classic error when the compiler cannot find the newly created files. There is no easy solution, and I am not too much familiar with MO2 to be sure what I was doing years ago will still work. So, do a quick test. Run CK outside MO. Load your esp project. Do the initial creation of the script. Like before, just a semicolon. It should compile and generate a file. Copy both the psc and pex files in the right places of MO2. I think it should have an Overwrite folder liek MO. You need to place also all the required subfolders. Then start again CK from MO2 and give it a try by modifying the same script. I know it is a pain, but it will give me some clues of what is going on.
kboom Posted September 5, 2021 Author Posted September 5, 2021 56 minutes ago, CPU said: Yeah, classic error when the compiler cannot find the newly created files. There is no easy solution, and I am not too much familiar with MO2 to be sure what I was doing years ago will still work. So, do a quick test. Run CK outside MO. Load your esp project. Do the initial creation of the script. Like before, just a semicolon. It should compile and generate a file. Copy both the psc and pex files in the right places of MO2. I think it should have an Overwrite folder liek MO. You need to place also all the required subfolders. Then start again CK from MO2 and give it a try by modifying the same script. I know it is a pain, but it will give me some clues of what is going on. It's so clear now 1st I opened CK outside MO, created new MY mod and added semicolon then saved MY.esp (the esp and script files were still in Games\steamapps\common\Skyrim\Data\scripts\Source). Everything was fine. Spoiler 2nd I opened CK via MO, then MY.esp, created new dialog, added semicolon then blank compile bug appeared. But the script was normal, it didn't have any errors in it. But The PEX file was appeared in overwrite folder Spoiler 3rd I moved the MY.esp and the script to MO overwrite folder, the blank bug and errors appeared in the script file Spoiler
Guest Posted September 5, 2021 Posted September 5, 2021 I think you have to fully restart MO2 after the scripts are created/moved. Once they are there they can be updated. But MO was not detecting new files.
kboom Posted September 5, 2021 Author Posted September 5, 2021 6 minutes ago, CPU said: I think you have to fully restart MO2 after the scripts are created/moved. Once they are there they can be updated. But MO was not detecting new files. Do you know anyway to bypass this, only the scripting part. Because all other dependencies like sexlab are on MO2
Guest Posted September 5, 2021 Posted September 5, 2021 When I was doing mods, I was compiling using Notepad++ so it was able to find all the stuff inside MO folders. But to create new fragments in CK the only fast way I had was to create them, empty, outside MO, and then move all inside the mod folder and continue as usual.
kboom Posted September 5, 2021 Author Posted September 5, 2021 32 minutes ago, CPU said: When I was doing mods, I was compiling using Notepad++ so it was able to find all the stuff inside MO folders. But to create new fragments in CK the only fast way I had was to create them, empty, outside MO, and then move all inside the mod folder and continue as usual. Can you check out this code, is it ok for simple dialog sex? Spoiler ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment ;NEXT FRAGMENT INDEX 1 Scriptname MY_GetAnal Extends TopicInfo Hidden SexLabFramework property SexLab auto ;BEGIN FRAGMENT Fragment_0 Function Fragment_0(ObjectReference akSpeakerRef) Actor akSpeaker = akSpeakerRef as Actor ;BEGIN CODE sslThreadController function QuickStart(Actor Actor1 = SexLab.PlayerRef, Actor Actor2 = akSpeaker, Actor Victim = SexLab.PlayerRef, string AnimationTags = "Anal") Actor[] Positions = SexLabUtil.MakeActorArray(Actor1, Actor2, Actor3, Actor4, Actor5) sslBaseAnimation[] Anims if AnimationTags != "Anal" Anims = AnimSlots.GetByTags(Positions.Length, AnimationTags, "Anal", false) endIf return ThreadSlots.GetController(StartSex(Positions, Anims, Victim, none, true, Hook)) ;END CODE EndFunction ;END FRAGMENT ;END FRAGMENT CODE - Do not edit anything between this and the begin comment
Guest Posted September 5, 2021 Posted September 5, 2021 No, it is not really good. Are you trying to start an anim with two people where the "passive" role will be the player and the anim will be an Anal animation?
kboom Posted September 5, 2021 Author Posted September 5, 2021 1 minute ago, CPU said: No, it is not really good. Are you trying to start an anim with two people where the "passive" role will be the player and the anim will be an Anal animation? yep I am
Guest Posted September 5, 2021 Posted September 5, 2021 You just need this line of code: SexLab.QuickStart(SexLab.PlayerRef, akSpeaker, Victim = SexLab.PlayerRef, AnimationTags = "Anal")
kboom Posted September 5, 2021 Author Posted September 5, 2021 30 minutes ago, CPU said: You just need this line of code: SexLab.QuickStart(SexLab.PlayerRef, akSpeaker, Victim = SexLab.PlayerRef, AnimationTags = "Anal") I have this error
Guest Posted September 5, 2021 Posted September 5, 2021 Looks like you need some other source file. But here I cannot help much. It seems it is something required by FNIS.
kboom Posted September 5, 2021 Author Posted September 5, 2021 10 minutes ago, CPU said: Looks like you need some other source file. But here I cannot help much. It seems it is something required by FNIS. I fixed it. Thank you so much. I got the script running ? Can I use this code to have 3p 4p? SexLab.QuickStart(SexLab.PlayerRef, akSpeaker, akSpeaker , akSpeaker, Victim = SexLab.PlayerRef, AnimationTags = "Anal")
Guest Posted September 5, 2021 Posted September 5, 2021 No, you need to find other actors. In a dialogue you have only 2 known actors.
kboom Posted September 5, 2021 Author Posted September 5, 2021 3 minutes ago, CPU said: No, you need to find other actors. In a dialogue you have only 2 known actors. Can put specific name into the code ? like Macurio ? SexLab.QuickStart(SexLab.PlayerRef, akSpeaker, "Macurio" , akFollower, Victim = SexLab.PlayerRef, AnimationTags = "Anal")
Guest Posted September 5, 2021 Posted September 5, 2021 No, you need to add a property of type Actor, and give it a name. Fill the property with an actor, and then use it in the code. But the actor should be in the cell or you will have problems
Recommended Posts
Archived
This topic is now archived and is closed to further replies.