cold steel Posted April 24, 2016 Posted April 24, 2016 Hello everyone. I want to get a little help from codders here.I am working with changes on Ousinus WeightMorphs.pex script (http://www.nexusmods.com/skyrim/mods/70243/?) and I am trying to make it work with default skyrim weight slider. I added this strings to his WeightUpdate function: ActorBase pActorBase = Game.GetPlayer().GetActorBase() float newweight = weight * 100 If (newweight > 100) newweight = 100 EndIf If (newweight < 0.0) newweight = 0.0 EndIf pActorBase.SetWeight(newweight) Game.GetPlayer().UpdateWeight(newweight)The "weight" variable is float and contain numbers from "0.0" to "1.0". As I understand his WeightUpdate function running every second and make changes on character skeleton bones depending on the "weight". My additional weight changing work correctlyin the game and change my character body weight every second to the number in "weight" variable, but after 1 or 2 minuts in the game my character's body start to be invisible except head (even hands and feets are invisible) and after a few secons my game crash for some reason. This invisibility is not a mesh problem since my femalebody_0 and femalebody_1 compatible with weight slider.This issue I have only if I am adding my strings to the code. Here is script file with my modification in it WeightMorphs.pscWeightMorphs.pexPlease, if someone know why this issue happening write in comments. Thank you for your attention and sorry for my bad english.
ousnius Posted April 24, 2016 Posted April 24, 2016 That could be issues with the game engine itself or NiOverride. Setting the weight dynamically in-game is something that always messed with a lot of wrong things in the engine and caused issues.
cold steel Posted April 24, 2016 Author Posted April 24, 2016 That could be issues with the game engine itself or NiOverride. Setting the weight dynamically in-game is something that always messed with a lot of wrong things in the engine and caused issues. Thank you for answer. I will try to use time delay then.
skyrimpow Posted April 24, 2016 Posted April 24, 2016 Oh this is great, I really hope you get this working without to much trouble Cold Steel. Please share it with us if you do! Thanks! Weight Morphs one of my favorite mods as I use it alongside Devourment, It would be so amazing if it used the main weight slider that devourment adds weight on as well. Cheers and Good Luck!
cold steel Posted April 24, 2016 Author Posted April 24, 2016 Oh this is great, I really hope you get this working without to much trouble Cold Steel. Please share it with us if you do! Thanks! Weight Morphs one of my favorite mods as I use it alongside Devourment, It would be so amazing if it used the main weight slider that devourment adds weight on as well. Cheers and Good Luck! Wanted to use it with devourment too, but found that multiple vore script change belly bone scale instead of loading new belly mesh and if you are using weight slider position on 50% or bigger the belly look like an elongated cone .
spoonsinger Posted April 24, 2016 Posted April 24, 2016 Just passing but you could look at how pumping iron does it? (i.e. in pumpingironsleepscript.psc it does :- Game.GetPlayer().GetActorBase().SetWeight(newWeight) Game.GetPlayer().QueueNiNodeUpdate() Might be other things it does which might be helpful)
cold steel Posted April 24, 2016 Author Posted April 24, 2016 Just passing but you could look at how pumping iron does it? (i.e. in pumpingironsleepscript.psc it does :- Game.GetPlayer().GetActorBase().SetWeight(newWeight) Game.GetPlayer().QueueNiNodeUpdate() Might be other things it does which might be helpful ) Thank you for information. I have tried to use QueueNiNodeUpdate() function because it is in the description on wiki, but my character weight didn't change instantly in events with it. Will try it again a bit later.
spoonsinger Posted April 24, 2016 Posted April 24, 2016 Just passing but you could look at how pumping iron does it? (i.e. in pumpingironsleepscript.psc it does :- Game.GetPlayer().GetActorBase().SetWeight(newWeight) Game.GetPlayer().QueueNiNodeUpdate() Might be other things it does which might be helpful ) Thank you for information. I have tried to use QueueNiNodeUpdate() function because it is in the description on wiki, but my character weight didn't change instantly in events with it. Will try it again a bit later. No problem. Actually Sexlab Hormones also fiddles with weight, so you could see how it's done there as well.
skyrimpow Posted April 24, 2016 Posted April 24, 2016 Wanted to use it with devourment too, but found that multiple vore script change belly bone scale instead of loading new belly mesh and if you are using weight slider position on 50% or bigger the belly look like an elongated cone . Ah that's unfortunate. I'm still very interested in this though lol.
Jadyn Posted April 26, 2016 Posted April 26, 2016 I'm actually getting this issue when I simply adjust the weight on my character in RaceMenu too much. Does anyone know anything about how to deal with this besides completely removing nioverride.dll? I've already spent two days eliminating all other possible causes, but there are some mods I'd like to use eventually that I think I need it for (like BWA).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.