Jump to content

OStim vs Sexlab


Recommended Posts

Posted

I am being asked by dozens of people to port Sex Slaves to OStim.  I looked at the two active mod pages for documentation and didn't find much.  However, one bit of documentation hinted that it was easy to write calls that would work for either.  I pretty much doubt this as papyrus does not have a #ifdef.

 

My Sexlab calls are generally non-trivial.  As an example, I might have 5 scenes running at the same time and I need to know when each ends, so I do this:

 

    RegisterForModEvent("AnimationEnd_Scene1Ends", "Scene1Ends")

;Start the scene

    RegisterForModEvent("AnimationEnd_Scene2Ends", "Scene2Ends")

 

Each Sexlab call will have many lines of code like this:

    sslBaseAnimation[] anims
    ;slBaseAnimation[] anims = SexLab.GetAnimationsByTag(2, "BlowJob", Tag2 = "Aggressive")

    if(Player.GetLeveledActorBase().GetSex() == 1)
        anims = SexLab.GetAnimationsByTag(2, "Lesbian", Tag2 = "Cunnilingus", RequireAll = false)
        if(anims == none || anims[0] == none)
            anims = new sslBaseAnimation[1]
            anims[0] = SexLab.GetAnimationByName("Arrok Lesbian")
        endif
    else
        anims = SexLab.GetAnimationsByTag(2, "BlowJob", "Standing", RequireAll = true)
        if(anims == none || anims[0] == none)
            debug.trace("Could find blowjob by tag")
            anims = new sslBaseAnimation[1]
            anims[0] =  SexLab.GetAnimationByName("Leito Blowjob")
        endif
    endif
    if(!anims || !anims[0])
        debug.notification("Could not find a suitable blowjob")
        return
    endif
    RegisterForModEvent("AnimationEnd_NewSlaveHappy", "NewSlaveFinished")
    int id = SexLab.StartSex(sexActors, anims, allowBed=false, hook="NewSlaveHappy")

 

 

The OStim documentation refers to Sexlab.QuickStart() and shows some example replacements.  That is nice and all, but I have never use QuickStart().  I do have a lot of 

Model.StartThread()

calls, but always with a lot of starting code to set the scene up.

 

 

Sexlab also has factions for each actor that is in a sex scene.  I use these factions in hundreds to thousands of lines of  dialogs to block certain lines if the actor is already having sex.  I could find nothing like that in OStim.

 

Similiarly, Sexlab has several keywords that I use and I found nothing similar in OStim.

 

Can anyone point me to some useful OStim documentation so I don't have to dig through all the OStim source?  I have read all the OStim API documentation and found it mostly useless.

 

One the other hand, lots and lots of users like it, so I guess that I have to eventually support it.

Posted (edited)
1 hour ago, fishburger67 said:

No  one?  Everyone is asking me to port to OStim.  Surely someone has some information that will help me do it.

Have you tried getting some assistance in the Official OStim Discord? Thats where the creators are usually at and they're pretty active. Maybe you can get in contact with them and they can help you out more personally. Here's the invite if you aren't already in there https://discord.gg/8S47bzSy

Edited by PR0FESS0R GRIMM
Grammar
Posted
5 hours ago, PR0FESS0R GRIMM said:

Have you tried getting some assistance in the Official OStim Discord? Thats where the creators are usually at and they're pretty active. Maybe you can get in contact with them and they can help you out more personally. Here's the invite if you aren't already in there https://discord.gg/8S47bzSy

Thanks for the reply sir.  Yes, I visited that already.  Read everything relevant there.  Like all discords though, it was mostly useless.  There is some limited documentation for the old OStim, but one thing I found out from the discord is that for the most recent OStim, the old documentation is VERY outdated and generally the wrong way to do things.  

 

So, I guess there is no real documentation.  What I was hoping for is a mod that uses OStim as I use Sexlab.  I use it at it's core.  I use many of it's functions.  For example, I monitor events (SexSart/end/change) frequently.  I make decisions from Sexlab functions about the actor order and the like.  In particular, Loverslab has functions to retrieve random animations from one or more tags.  The old OStim documentation sez to use a tedious looking ODictionary.   I am hoping that there is someone who uses OStim in the same way and I can look at their code to get an idea how to port my stuff to OStim.

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