Jump to content

Sexlab Animations not firing on scripts I compile


Recommended Posts

I couldn't get sexlab animations to fire off when I tried starting from scratch, so I tried an existing mod (that works), recompiled the scripts, and it stopped working.

 

Fragment I'm testing specifically:

 

debug.messagebox ("Hello world")


actor[] sexActors = new actor[2]
sexActors[0] = akSpeaker
sexActors[1] = Game.GetPlayer()
sslBaseAnimation[] anims
anims = SexLab.GetAnimationsByTag(2, "Oral")
SexLab.StartSex(sexActors, anims)


debug.messagebox ("Goodbye world")
As you can see I have even confirmed the script begins and ends.  I can initiate animations with no problem from Matchmaker at the same time.
 
What could be the cause of this?
Link to comment

Check your papyrus log. You should see all the SexLab debuggung traces.

Maybe here you can understand where your script is stopping.

 

If you see an error like: Cannot assign None to sslBaseAnimation[] did you forget to cast, then your getAnimByTags not providing a result.

 

Are you sure the variable SexLab is correctly assigned to SexLabFramework in the properties?

 

Link to comment

Here is the log, 

 

[02/24/2015 - 02:02:15PM] EditorPapyrus log opened (PC)
[02/24/2015 - 02:02:15PM] Memory page: 128 (min) 512 (max) 76800 (max total)
[02/24/2015 - 02:30:04PM] Cannot open store for class "slaInternalScr", missing file?
[02/24/2015 - 02:30:04PM] Cannot open store for class "slaNakedScript", missing file?
[02/24/2015 - 02:30:04PM] Cannot open store for class "slaConfigScr", missing file?
[02/24/2015 - 02:30:04PM] Cannot open store for class "slaMainScr", missing file?
[02/24/2015 - 02:30:04PM] Error: Unable to link type of variable "::slaMain_var" on object "slaFrameworkScr"
[02/24/2015 - 02:30:04PM] Error: Unable to link type of variable "::slaConfig_var" on object "slaFrameworkScr"
[02/24/2015 - 02:30:04PM] Error: Unable to link type of property "slaMain" on object "slaFrameworkScr"
[02/24/2015 - 02:30:04PM] Error: Unable to link type of property "slaConfig" on object "slaFrameworkScr"
[02/24/2015 - 02:30:04PM] Cannot open store for class "slaUtilScr", missing file?
[02/24/2015 - 02:30:04PM] Cannot open store for class "slaScanAllScript", missing file?
 
 
I'm guessing it's some missing files...
 
Although, those are all related to Sexlab Aroused, and I'm not sure how that would be affecting my scripting.
 
Link to comment

"slaXYZ" should be from SexLab Aroused. Not from SexLab itself.

All the code from SexLab starts with ssl. (Except the main framework interface that is named SexLabFramework)

 

So, let's do old-school debugging.

 

debug.messagebox ("Hello world")
actor[] sexActors = new actor[2]
sexActors[0] = akSpeaker
sexActors[1] = Game.GetPlayer()
sslBaseAnimation[] anims
anims = SexLab.GetAnimationsByTag(2, "Oral")

debug.messagebox ("Found " + anims.length + " animations")
int res = SexLab.StartSex(sexActors, anims)
debug.messagebox ("The SexLab Thread is " + res) ; If this is -1 then the animation did not start for some reason, ans SexLab does the logging in papyrus/console depending on the options.
debug.messagebox ("Goodbye world")
 
 
Let me know your results.
 
Link to comment

Replace the line to:
 

sslBaseAnimation[] anims = SexLab.GetAnimationsByTags(2, "Oral", RequireAll = True)

Important note: the function to be used has a "s" at the end. It is "GetAnimationsByTags" not "GetAnimationsByTag".

 

Link to comment

Still not finding any animations.  Could there just be some preliminary step that I missed?  Seems like it isn't hooking into the animation list.  At this point I'm definitely thinking I just missed something required to make it have access to that stuff.

 

Posting the entire script just to be sure nothing is missing there as well...

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname TIF__03000D65 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] = akSpeaker
sexActors[1] = Game.GetPlayer()
sslBaseAnimation[] anims = SexLab.GetAnimationsByTags(2, "Oral", RequireAll = True)
debug.messagebox ("Found " + anims.length + " animations")
int res = SexLab.StartSex(sexActors, anims)
debug.messagebox ("The SexLab Thread is " + res)
;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

May I ask you the Race of the akSpeaker? Is it a normal NPC or maybe it is a creature?

If the race is not supported by Sexlab you will not find any animation. If the akSpeaker is a dog/wolf/horse and you are searching for some MoreNastyCritters animations, then you can NOT find them by tags. (At least in the current SexLab version)

 

If the speaker is a normal NPC, then try to use a simple:

 

sslBaseAnimation[] anims = SexLab.GetAnimationsByTags(2, RequireAll = True)

 

If still zero anims will be found then try to replace SexLab.StartSex with SexLab.QuickStart(akSpeaker, Game.getPlayer())

 

Link to comment

Currently I'm testing it with Sigrid, and player is an Orc.  I'll try taking out the tags and then try quickstart.

 

If there is something where you would think "there's no way he forgot to do THAT, or else he's retarded", don't assume I'm not being retarded.  I can say that I definitely have sexlab.esm as a master.  I've also rebuilt my animations list in sexlab in the game.

Link to comment
actor[] sexActors = new actor[2]
sexActors[0] = akSpeaker
sexActors[1] = Game.GetPlayer()
sslBaseAnimation[] anims = SexLab.GetAnimationsByTags(2, RequireAll = True)
debug.messagebox ("Found " + anims.length + " animations")
int res = SexLab.StartSex(sexActors, anims)
debug.messagebox ("The SexLab Thread is " + res)

Leads to this error:

 

 

Starting 1 compile threads for 1 files...
Compiling "TIF__03000D65"...
C:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__03000D65.psc(12,34): argument tags is not specified and has no default value
No output generated for TIF__03000D65, compilation failed.
 
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__03000D65
 
Link to comment

Yep, I wrote a wrong advice. Try this:

 

sslBaseAnimation[] anims = SexLab.GetAnimationsByTags(2, Tags="", RequireAll = True)

 

 

And probably your SexLab is correctly in the properties because the function returns a value. (not the expected value but a value.)

 

Link to comment

WAIT... I've had similar issues when I forgot to SET THE PROPERTY of SexlabFrameWork Property SexLab Auto

 

Go to your script and click "Properties" and make sure it's set. It won't AutoFill. You need to set it.

 

 

Yep... that was it.

 

Thank you both for your help!  Now I can move onward to the mod I was thinking of making...

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