Jump to content

Equipped Outfit not updating properly


Recommended Posts

Posted

Hello all, I am having an issue with my own mod, as I am trying to update it. This is a problem I'm starting to have with quite a few of my outfits. I'm at my wits end...

 

Whenever the body updates in-game (due to any body modifying mod (ex. Estrus Chaurus, SexLab Hormones, Corruption, etc)), the outfit stays in its previous state but also creates a duplicate of itself in the new updated size. Here's what I mean: The breast were bigger, but then when they got smaller the outfit is shown twice.

Spoiler

outfit_problem.jpg.74da1f34aea913968158ce967f383b71.jpg

Any ideas would be helpful as to why this is happening or a known way to fix it. Thank you.

Posted
6 hours ago, dragongodmod117 said:

Hello all, I am having an issue with my own mod, as I am trying to update it. This is a problem I'm starting to have with quite a few of my outfits. I'm at my wits end...

 

Whenever the body updates in-game (due to any body modifying mod (ex. Estrus Chaurus, SexLab Hormones, Corruption, etc)), the outfit stays in its previous state but also creates a duplicate of itself in the new updated size. Here's what I mean: The breast were bigger, but then when they got smaller the outfit is shown twice.

  Reveal hidden contents

outfit_problem.jpg.74da1f34aea913968158ce967f383b71.jpg

Any ideas would be helpful as to why this is happening or a known way to fix it. Thank you.

I don't have the exact parameter in my head right now, but you can find your answer in NioOverride.ini in the Data\SKSE\Plugins directory.

Posted
11 hours ago, Andy14 said:

I don't have the exact parameter in my head right now, but you can find your answer in NioOverride.ini in the Data\SKSE\Plugins directory.

Thank you for the response. What am I looking for inside the NiOverride.ini file? I see bParallelMorphing (set to 0) and bEnableAutoTransforms (set to 1) that seem to deal with body edits in-game.

Posted
9 minutes ago, dragongodmod117 said:

Thank you for the response. What am I looking for inside the NiOverride.ini file? I see bParallelMorphing (set to 0) and bEnableAutoTransforms (set to 1) that seem to deal with body edits in-game.

This is my ini.
I hope it's really just a "problem" of rendering and the "armor" isn't really there twice.

nioverride.ini

 

Posted
1 minute ago, dragongodmod117 said:

Thank you for the suggestion and your ini file, but it doesn't seem to be doing anything differently.

If it's not double armor (in real) then it definitely has to do with it. I had the same problem (a few years ago). Unfortunately I don't remember how I solved it. The ini was my first approach. It's a shame - but it's never easy, right?

Posted
11 hours ago, Andy14 said:

If it's not double armor (in real) then it definitely has to do with it. I had the same problem (a few years ago). Unfortunately I don't remember how I solved it. The ini was my first approach. It's a shame - but it's never easy, right?

Well I will say that it's not like the game is duplicating the armor and equipping the second outfit. It's just showing both body shapes of the outfit. No, it never is easy... lol

Posted
2 hours ago, dragongodmod117 said:

Well I will say that it's not like the game is duplicating the armor and equipping the second outfit. It's just showing both body shapes of the outfit. No, it never is easy... lol

I checked my mod again because I'm using Nioverride.

If the error is corrected in RaceMenu, then the following function is missing in the mods you mentioned above.

 

 

Quote

; Updates the weight data post morph value
; only to be used on actors who have morph values set
Function UpdateModelWeight(ObjectReference ref) native global

 

Posted
9 hours ago, Andy14 said:

I checked my mod again because I'm using Nioverride.

If the error is corrected in RaceMenu, then the following function is missing in the mods you mentioned above.

 

 

 

Where would I be applying this? Is this a Racemenu script I need to attach to the armor?

Posted
30 minutes ago, dragongodmod117 said:

Where would I be applying this? Is this a Racemenu script I need to attach to the armor?

 

Actually, the function should be used in the mods that do any morphs with Nioverride. ;)

 

The function belongs to Nioverride.
And Nioverride is part of RaceMenu. So actually (if there are problems with morphs) opening RaceMenu fixes the display error.

At the latest, however, when changing the weight in RaceMenu.
The prerequisite is of course that the armor in OS
was created with Morphs (Build Morphs checked).

 

If you want to use the script, you can just create a spell or a simple ring with enchantment.
A magic effect is used in both cases.

 

Here is an example script for magic effect:

 

Scriptname ExampleScript extends activemagiceffect 

 

import NiOverride

 

Event OnEffectStart(Actor akTarget, Actor akCaster)
    UpdateModelWeight(akTarget)
endEvent


 

Posted
On 6/24/2021 at 12:06 PM, Andy14 said:

 

Actually, the function should be used in the mods that do any morphs with Nioverride. ;)

 

The function belongs to Nioverride.
And Nioverride is part of RaceMenu. So actually (if there are problems with morphs) opening RaceMenu fixes the display error.

At the latest, however, when changing the weight in RaceMenu.
The prerequisite is of course that the armor in OS
was created with Morphs (Build Morphs checked).

 

If you want to use the script, you can just create a spell or a simple ring with enchantment.
A magic effect is used in both cases.

 

Here is an example script for magic effect:

 

Scriptname ExampleScript extends activemagiceffect 

 

import NiOverride

 

Event OnEffectStart(Actor akTarget, Actor akCaster)
    UpdateModelWeight(akTarget)
endEvent


 

I finally got around to adding this script to my mod... AND HOLY CRAP THANK YOU! It worked. Now I don't know much about scripts so I have a follow up question. Does having scripts attached to armors conflict with them being enchanted?

Posted
22 minutes ago, dragongodmod117 said:

I finally got around to adding this script to my mod... AND HOLY CRAP THANK YOU! It worked. Now I don't know much about scripts so I have a follow up question. Does having scripts attached to armors conflict with them being enchanted?

No, this script doesn't conflict with anything.
But if you are wondering whether there are conflicts with existing enchantments - here too the answer is no.
However, in order not to have to edit the existing enchantments, there is still the option of adding the script directly to the armor. And then the NioOverride Fuction in the OnEquipped event.
However, this event is not triggered if the armor is not equipped "normally" but via script.

That's why I didn't go into this possibility beforehand. ;)

 

Posted
4 hours ago, Andy14 said:

No, this script doesn't conflict with anything.
But if you are wondering whether there are conflicts with existing enchantments - here too the answer is no.
However, in order not to have to edit the existing enchantments, there is still the option of adding the script directly to the armor. And then the NioOverride Fuction in the OnEquipped event.
However, this event is not triggered if the armor is not equipped "normally" but via script.

That's why I didn't go into this possibility beforehand. ;)

 

Well again, thank you. This has helped more than you can imagine. ? I have already applied the script to the outfit and it works wonders. Now I can do the same with the rest of the problematic outfits. And for clarification, these outfits will only be equipped "normally" by the player. Lol.

 

EDIT. Ok now I feel dumb... It was working last night but now it is not... I only tried to update the rest of the outfits that were problematic...

Posted
4 hours ago, dragongodmod117 said:

Well again, thank you. This has helped more than you can imagine. ? I have already applied the script to the outfit and it works wonders. Now I can do the same with the rest of the problematic outfits. And for clarification, these outfits will only be equipped "normally" by the player. Lol.

 

EDIT. Ok now I feel dumb... It was working last night but now it is not... I only tried to update the rest of the outfits that were problematic...

As I said, actually the script should be integrated into the mods that change the morphs (breast size etc.).
The OnEquipped event is only triggered once. Only when you take off the armor and equip it again will the event be triggered.
And when the game starts / the save is loaded, the mods will update the morphs. This is why the OnEquipped Event doesn't really help at this point. The best thing is really to edit the mods that are responsible for the morphs.

Otherwise everything else will be an eternal construction site. ;)

 

Archived

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

  • Recently Browsing   0 members

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