Jump to content

How does Sexlab detect compatible creatures?


Recommended Posts

Posted

Pretty much this. I want to know how to add certain creatures added by other mods to the sexlab library of compatible creatures. If you have Immersive Creatures for example, there are goblins. Goblins use the falmer skeleton and animations but are not recognized by sexlab. Is it simply because they are not part of the "FalmerRace"? What exactly would one need to do to make sexlab recognize that the goblins are just reskinned falmer?

Posted

Current creature animation support in SexLab is kinda sloppy, so there's not a good clean way to do it right now, but it can be done.

 

Here's a quick function I threw together that would do it, no guarantees it'll work, I haven't even tried compiling it, but I see no reason why it wouldn't:

function AddCustomRace(Race DefaultRace, Race CustomRace)

	; // Get the creature animations registry script, which holds all the creature animations
	sslCreatureAnimationSlots CreatureSlots = (Quest.GetQuest("SexLabQuestCreatureAnimationSlots") as sslCreatureAnimationSlots)

	; // Add the CustomRace to the registry cache, which SexLab uses to quickly determine if
	; // creature has animation without resorting to slowly searching individual animations
	CreatureSlots.AddRace(CustomRace)

	; // Get the list of animations that belong to DefaultRace
	sslBaseAnimations[] Anims = CreatureSlots.GetByRace(DefaultRace)

	; // Loop through the animations and add CustomRace to it.
	int i = Anims.Length
	while i
		i -= 1
		Anims[i].AddRace(CustomRace)
	endWhile

endFunction


; // EXAMPLE USAGE
; // FalmerRace = vanilla Skyrim Falmer
; // FalmerImmerseriveCreaturesRace = the custom falmer race you want to add to FalmerRace's animations
AddCustomRace(FalmerRace, FalmerImmerseriveCreaturesRace)

Rethinking and completely overhauling creature support is one of my primary goals of the next major update. So this function breaking horribly next update is very likely. Consider it hacked together bandage for now.

Guest kimbale
Posted

I am sure I've seen a mod that does add support for the MoreMonsterMod here, but i can't seem to find it...

Posted

Current creature animation support in SexLab is kinda sloppy, so there's not a good clean way to do it right now, but it can be done.

 

Here's a quick function I threw together that would do it, no guarantees it'll work, I haven't even tried compiling it, but I see no reason why it wouldn't:

function AddCustomRace(Race DefaultRace, Race CustomRace)

	; // Get the creature animations registry script, which holds all the creature animations
	sslCreatureAnimationSlots CreatureSlots = (Quest.GetQuest("SexLabQuestCreatureAnimationSlots") as sslCreatureAnimationSlots)

	; // Add the CustomRace to the registry cache, which SexLab uses to quickly determine if
	; // creature has animation without resorting to slowly searching individual animations
	CreatureSlots.AddRace(CustomRace)

	; // Get the list of animations that belong to DefaultRace
	sslBaseAnimations[] Anims = CreatureSlots.GetByRace(DefaultRace)

	; // Loop through the animations and add CustomRace to it.
	int i = Anims.Length
	while i
		i -= 1
		Anims[i].AddRace(CustomRace)
	endWhile

endFunction


; // EXAMPLE USAGE
; // FalmerRace = vanilla Skyrim Falmer
; // FalmerImmerseriveCreaturesRace = the custom falmer race you want to add to FalmerRace's animations
AddCustomRace(FalmerRace, FalmerImmerseriveCreaturesRace)

Rethinking and completely overhauling creature support is one of my primary goals of the next major update. So this function breaking horribly next update is very likely. Consider it hacked together bandage for now.

 

This is interesting because I have always used SIC and the custom SIC Falmers always work for me.

Posted

No idea if they do or not, it's just an example. I don't use SIC and even if I did I don't actually play Skyrim enough that I would ever notice.

Posted

No idea if they do or not, it's just an example. I don't use SIC and even if I did I don't actually play Skyrim enough that I would ever notice.

 

Yet another Ashal quote that blows my mind.... 

Posted

Rethinking and completely overhauling creature support is one of my primary goals of the next major update. So this function breaking horribly next update is very likely. Consider it hacked together bandage for now.

 

Thank you, but I have no idea how to implement these things. I have no clue about scripting, sadly. But the new SL version is taking a few more months, right?

 

 

I am sure I've seen a mod that does add support for the MoreMonsterMod here, but i can't seem to find it...

 

Yeah, but the Skyrim Monster Mod is a shit. Some monsters do look nice, but some are just resized and recolored vanilla creatures that look horrible. And they're totally unbalanced, the creatures are just health sponges.

 

 

 

 

This is interesting because I have always used SIC and the custom SIC Falmers always work for me.

 

 

Maybe because the falmer added by SIC use "FalmerRace0x"? Would be interesting to change the GoblinRace into "FalmerRace001" or something like that. I'd rather make SIC compatible with SexLab and not the other way around.

Posted

Indeed. I've used SIC a lot more than SkyMoMod. SIC seems to decently work well enough with SL. I wish someone would post a "eureka" post of getting

 

SIC

SkyMoMod

SL

 

All with bestiality extras, SexLabNudeCreatures

 

working and how they did it. But that is i'm afraid a real fantasy...

Posted

Well adding genitalia to the creatures is an easy task, either slap the penis on with nifskope or create an armoraddon in the CK. I'd do the former, though. Editing the meshes directly isn't much of a problem. Getting SexLab to recognize the custom creatures is another story though and I don't really know what the Race entry in the CK does, i.e. I am afraid of breaking some features when I change the Goblins from the Goblin- to the FalmerRace.

Posted

You sound really familiar with the tools. I'm actually on the other side of things - more comfortable with scripting, but I do want to learn Nifscope. I consider my CK skills at the Padawan level - I can do basic things so far.

Posted

Well I can say that the SIC Falmer don't work with SL on my end. But jeez, there are so many entries that would need to be changed froom xyzRace to a vanilla race.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...