Jump to content

Sexlab creature scaling Chaurus


Recommended Posts

Posted

Hello everyone!

 

So I have struggled to get this fixed the last two weeks and I can't seem to get it right.

All of a sudden normal Chaurus seem to get the scaling of Chaurus Reaper at the start of a Sexlab scene. Now I havn't changed anything but add the latest SLAL Anim Pack of Anub.

Now two questions, what determines the scaling of actors in Sexlab, I have searched the forums but havn't been able to find an answer and of course could anyone of you have an Idea what could cause this sudden problem? I really want to understand what is happening here. So any advise how the scaling before animation starts is determined would be really appreciated!

I also tried to use the "Even Actors Height" option, but the result stays the same, anyway the Chaurus always switches scaling a few times before the start and then stays the size of a Reaper.

Deactivating the new anim pack and running fnis again also didn't fix it.

 

I also atteched my modlist if it helps. 

 

So I really hope someone can help me out here.

modlist_030223.txt

Posted (edited)

Right, lets try this gain. That last post of mine was nothign but confusion. Here's the scaling code:

float display = ActorRef.GetScale()
ActorRef.SetScale(1.0)
float base = ActorRef.GetScale()
ActorScale = ( display / base )
AnimScale  = ActorScale
if ActorScale > 0.0 && ActorScale != 1.0
    ActorRef.SetScale(ActorScale)
endIf
float FixNioScale = 1.0
if (Thread.ActorCount > 1 || BedStatus[1] >= 4) && Config.ScaleActors
    if Config.HasNiOverride && !IsCreature && NioScale > 0.0 && NioScale != 1.0
        FixNioScale = (FixNioScale / NioScale)
        NiOverride.AddNodeTransformScale(ActorRef, False, isRealFemale, "NPC", "SexLab.esm",FixNioScale)
        NiOverride.UpdateNodeTransform(ActorRef, False, isRealFemale, "NPC")
    endIf
    AnimScale = (1.0 / base)
endIf

 

The key part there is the 2nd to last line. Values for a Nord:

display = 1.03

base = 1.03

AnimScale = 1.0 / 1.03 = 0.97087...

 

So it normalizes all actors to an effective scale of 1.0.

 

Most likely why your Chaurus is growing to the size of a Reaper, is that it's actually a Reaper renamed to just "Chaurus".

Edited by traison
Posted
1 hour ago, traison said:

Right, lets try this gain. That last post of mine was nothign but confusion. Here's the scaling code:

float display = ActorRef.GetScale()
ActorRef.SetScale(1.0)
float base = ActorRef.GetScale()
ActorScale = ( display / base )
AnimScale  = ActorScale
if ActorScale > 0.0 && ActorScale != 1.0
    ActorRef.SetScale(ActorScale)
endIf
float FixNioScale = 1.0
if (Thread.ActorCount > 1 || BedStatus[1] >= 4) && Config.ScaleActors
    if Config.HasNiOverride && !IsCreature && NioScale > 0.0 && NioScale != 1.0
        FixNioScale = (FixNioScale / NioScale)
        NiOverride.AddNodeTransformScale(ActorRef, False, isRealFemale, "NPC", "SexLab.esm",FixNioScale)
        NiOverride.UpdateNodeTransform(ActorRef, False, isRealFemale, "NPC")
    endIf
    AnimScale = (1.0 / base)
endIf

 

The key part there is the 2nd to last line. Values for a Nord:

display = 1.03

base = 1.03

AnimScale = 1.0 / 1.03 = 0.97087...

 

So it normalizes all actors to an effective scale of 1.0.

 

Most likely why your Chaurus is growing to the size of a Reaper, is that it's actually a Reaper renamed to just "Chaurus".

Thanks for the quick reply. I tried spawning multible different Chaurus and also the Hentai Chaurus from Hentai Creatures. They all scale to the size of the Reaper and have only animations for normal Chaurus available.

Could you please tell me in which file I can find this actor code? Maybe I find something there.

Posted (edited)

sslActorAlias.psc:368 (offset may be off by a few lines, I've modified my SL files)

 

Edit: function PrepareActor in state Ready.

 

Edit again: You may have more luck inspecting the NPC_ records of the Chaurus you're having problems with. Note down its scale (or potentially height) value. Do the same for its RACE record. See what kind of numbers you find. Remember to load your loadorder as-is in xEdit when doing this, otherwise you won't know if some mod changes these values.

Edited by traison
Posted

Thank you for the advise looking at the RACE record in xedit. I found this:

 

image.png.68d32010a0a7349c9cc17788e305d0da.png

 

Turns out SexLab_Dialogues changed the scaling that was working from MNE to the defective one.

 

I put SL_Dia now higher in the loadorder and it works perfectly! Thank you so much!

  • 1 year later...
Posted
On 2/3/2023 at 3:33 PM, Witcher said:

Thank you for the advise looking at the RACE record in xedit. I found this:

 

image.png.68d32010a0a7349c9cc17788e305d0da.png

 

Turns out SexLab_Dialogues changed the scaling that was working from MNE to the defective one.

 

I put SL_Dia now higher in the loadorder and it works perfectly! Thank you so much!

 

Holy Jesus!!!!!!!

You are my fucking hero

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