Jump to content

Pregnancy Normalmap Swapper


Recommended Posts

Posted (edited)

<EDIT > removed the fix mod because of the possibility of problems for those who use other than CBBE family.

 

 

 

How to repair a corrupted preset in Racemenu.

 

image.png.f3a2a0e807ce5c9adf7130c75eab6881.png

 

 

On 5/2/2023 at 9:37 AM, LewderAnnieMay said:


Got any advice on how to clean racemenu presets from this?

EDIT: Nevermind, I managed to figure out a workaround.
If anyone else wants to salvage their racemenu presets from this bug, follow these steps.

As a reminder, this fix is if you've removed the mod and the glowy skin bug persists.
 

First, you'll need to locate your preset file. It's located under SKSE/Plugins/Chargen/Presets.
 

If you're using Mod Organizer 2, you can access the Data tab underneath the executables drop-down menu. https://i.imgur.com/P4HvKQq.png
If not, then... I dunno, in your Skyrim folder?

 

Next you'll want to locate the infected preset. It will have the same name as the one you use through Racemenu, and end with the suffix .jslot
Open the preset file with notepad or a similar program (I used SublimeText, but notepad++ or maybe even regular notepad should work.)


CTRL +F and search for "PNS." You'll find a string of code looking like this. https://i.imgur.com/ujyjwMt.png

Highlight everything shown in the screenshot, from "skinOverrides" to the last "]," bit and delete it. Save the file, and that should be your preset fixed.

 

Edited by handroid
Posted

Hello.

After using this MOD for a long time, I realized that I wanted a feature that would allow me to distribute different NormalMap to characters of the same race.

 

This MOD has a wonderful feature that allows you to create a folder according to the race and apply a unique NormalMap to that race.
However, for example, if you create a PregNomalMap for a character with large breasts, the shadow of the breasts will be too dark and unnatural for a character with small breasts of the same race.
In cases like this, I felt that it would be better if there was a function to apply any NormalMap to any character in the game using magic or power.

 

This is my personal opinion and can be ignored, but if it is possible, I would like you to consider it.

Posted
On 4/18/2024 at 5:05 AM, handroid said:

Yes, you need femalebody_1_msn_p0.dds, femalebody_2_msn_p0.dds, and so on.

 

This issue has been solved because the method has been changed and the dummy equipment no longer needs to be equiped/unequiped.

 

 

This mod only works when the Morph of the Actor being operated on is changed, so it has little effect on performance under normal circumstances.
However, the morph manipulation itself is a heavy process in its own right, and the additional processing makes the instantaneous impossibility greater.

 

If you want to pregnant males, then there is no need to edit the script. Replace FEMALE with MALE in the introduction.
Don't forget to add M to the gender part of the DISTR.

And If you want to apply the effect to female npc, but the player is male, set EnablePlayer=0 in config.json and distribute PNSSpell to females in the DISTR.

In any case, there is no need to rewrite the script.

 

→I tried it. The implementation of the function itself is not so difficult, but the normal map is changed twice every time the slot 32 armor is changed (when the equipment is changed, the original normal map is returned once due to the NiOverride specification, and then the normal map is replaced by PNS), making it quite clumsy.
We decided not to implement it this time.
Please refer to CBBE Muscle Solution (https://www.nexusmods.com/skyrimspecialedition/mods/38877?). You should be more satisfied with the result.

 

 

 

 →done.(implemeted in the next version)

 

Time-based update checks will be implemented in the next version.

This issue has been solved because the method has been changed and the dummy equipment no longer needs to be equiped/unequiped.

 

 

 

→EDIT: It was very simple. Just execute QueueNiNodeUpdate(). I laughed at my own stupidity.

 

 

Partial response.
As a condition, the normal map changes will continue to apply to the modified Race. (except for Werewolf and Vampire Lord).
For example, if you are applying this mod to HumanRace (non BeastRace) only, and you change the race from Nord to Khajiit in the middle of the game, the incorrect normal map will be applied.
To counter this, you must either be careful not to change Race to BeastRace, or you must also create a normal map for BeastRace.
The reason for this unfriendly specification is that it is very tedious (both in terms of workload and performance impact) to implement the same level of application conditions as SPID.
I may fully support this in the future when the opportunity arises, but please do not hold out much hope.

 

 

→I cast from float type to int type when evaluating. Maybe it will be fixed. maybe.

 

→This bug will be fixed in the next version.

 

→Time-based update checks will be implemented in the next version.

If you want to deal with it strictly, you will need to check the script for that mod and perhaps rewrite it somewhat.

 

New method uses AddNodeOverrideString() instead of AddSkinOverrideString().

There is no manual for NiOverride, so everyone who creates this kind of mod is forced to implement it by hand. I did not know how to use AddNodeOverrideString() when I started this mod. That's all there is to it.

 

→Edit:Specifications.
Due to the NiOverride specification, equipping and  unequipping equipment always returns to the default normal map, resulting in this behavior.

 

This is a TODO for myself. 

Check for compatibility for other mods:

・Skill Based Muscle

・Fertility Mode+ - Immersive Effects

・SynthEBD

about my problem with this mod it can be mod "cold nipples"?

Posted
Just now, torr123 said:

about my problem with this mod it can be mod "cold nipples"?

i had "puffy pussy"  for 3ba but its already disabled

Posted
On 4/17/2024 at 9:38 AM, oppressor110 said:

I realized that this mod is not compatible with SoulGem Oven 4: Integration Fork 1.7.9.2 , It works in versions prior to 1.7.9.1

In order for PNS and SGO4IF to coexist, the normal map change effect of SGO4IF must be disabled.
Make sure that Gems>"Replace normal maps?" in MCM is unchecked.
If it still occurs, it would be helpful if you could comment again.

Posted (edited)

By the way, if FM+ (Fertility Mode+ - Immersive Effects) has the same functionality as PNS, why would you install PNS?
I have never used FertilityMode so I am not sure.

 

EDIT: More specifically, each of the recent pregnancy mods has the ability to change the normal map.
So, is there no longer a place for PNS?🥺

Edited by handroid
Posted

Hey, I uploaded version beta 2.0.

The functions used have changed and I have rewritten various scripts, so I think there are new bugs.
Please do not use them in serious play. This is not a humble or joking kind of warning, but a serious warning.

 

And all the TODOs are not finished yet. I'm tired, to be frank. But I will upload it as it stands for now.

 

Sorry to those who had problems with 1.2.2, but it is not possible to clean it completely in one shot. This is a complete design error. I apologies.
However, we have included a process in this version that allows cleaning, so please give it a try.
Well, New Game is the fastest way.

At least this time, PNS will keep track of all NPCs to which we apply effects in Faction, so that we can use them when the need arises.

Posted
On 4/20/2024 at 11:14 PM, skknnnn said:

Hello.

After using this MOD for a long time, I realized that I wanted a feature that would allow me to distribute different NormalMap to characters of the same race.

 

This MOD has a wonderful feature that allows you to create a folder according to the race and apply a unique NormalMap to that race.
However, for example, if you create a PregNomalMap for a character with large breasts, the shadow of the breasts will be too dark and unnatural for a character with small breasts of the same race.
In cases like this, I felt that it would be better if there was a function to apply any NormalMap to any character in the game using magic or power.

 

This is my personal opinion and can be ignored, but if it is possible, I would like you to consider it.

I will try. later.
How about assigning it in Faction?
Assign a specific FactionRank to any Actor in SPID, and PNS will apply the normal map tied to it according to that FactionRank. I'm thinking something like this.

That way the magic list will not be tainted.

 

 

On 4/21/2024 at 4:10 PM, torr123 said:

about my problem with this mod it can be mod "cold nipples"?

What is your problem? Cold Nipples Is this? 

Can you try b2.0?

Posted
9 hours ago, handroid said:

In order for PNS and SGO4IF to coexist, the normal map change effect of SGO4IF must be disabled.
Make sure that Gems>"Replace normal maps?" in MCM is unchecked.
If it still occurs, it would be helpful if you could comment again.

Yes, I disabled this feature and it still doesn't work. It only has no effect in versions after 1.7.9.2.

Posted

Hello @handroid! Thanks for the updates.

 

I will definitely check it out in my next playthrough.

 

Happy to see you noticed that the API Skill-Based Muscle uses may be better for this purpose.

 

Please also let me know if you manage to implement compatibility between these two plugins (if it is possible).

 

In my own changes to the plugins I simply modified both plugins such that only one would try to control the skin texture at a time. And yes, this involved making modifications to both plugins.

Posted

question, if one is using a custom "player" not race but like with my mod "NoSameRace" i use separate textures for all races and a separate texture folder for the player. how would this mod fare?

Posted (edited)

I forgot to include _SBM_MCM.pex, so I will re-upload it.

If the new version does not seem to work at all, please re-download it.

Sorry for the inconvenience.

Edited by handroid
Posted

Glad to see you back and trying to fix this mod. I'm still using it even though there are obvious bugs as already mentioned in this thread.

I don't think this bug only affects me, but with 3BA body, the vagina and anus have a separate mesh and get the wrong texture applied when the body texture is switched by this mod. Hopefully you'll be able to fix this in a future update.

Posted (edited)
8 hours ago, oppressor110 said:

Yes, I disabled this feature and it still doesn't work. It only has no effect in versions after 1.7.9.2.

Ok, I'll check it. thx for your reply.

 

10 hours ago, Martin1313 said:

It's great that you updated this mod! Tell me, what about the problems with the textures of hands and pussy in the new version?

That has been completely resolved.

 

8 hours ago, leakim said:

Hello @handroid! Thanks for the updates.

 

I will definitely check it out in my next playthrough.

 

Happy to see you noticed that the API Skill-Based Muscle uses may be better for this purpose.

 

Please also let me know if you manage to implement compatibility between these two plugins (if it is possible).

 

In my own changes to the plugins I simply modified both plugins such that only one would try to control the skin texture at a time. And yes, this involved making modifications to both plugins.

I will try to make an effort. If I upload his script here, I will need his permission.
I am basically not good at sending private messages, so I would like to do something about it, preferably by changing the PNS only.

EDIT: Perhaps if the SBM normal map is removed, only the PNS could be applied.

Since SBM will not touch the normal map if there is no corresponding file.

 

2 hours ago, Psycho_Bill said:

question, if one is using a custom "player" not race but like with my mod "NoSameRace" i use separate textures for all races and a separate texture folder for the player. how would this mod fare?

Under the current specification, race is the only way to change the normal map assigned in the PNS.
Your NoSameRace assigns different skin textures to different players in the same race? (Please point out if I am wrong.)

I did not envision such a case. I will try to address this in a future version.

 

40 minutes ago, Laethas said:

Glad to see you back and trying to fix this mod. I'm still using it even though there are obvious bugs as already mentioned in this thread.

I don't think this bug only affects me, but with 3BA body, the vagina and anus have a separate mesh and get the wrong texture applied when the body texture is switched by this mod. Hopefully you'll be able to fix this in a future update.

 That problem will be resolved in the beta 2.0.

 

Edited by handroid
Posted (edited)

 

On 4/23/2024 at 12:04 AM, oppressor110 said:

Yes, I disabled this feature and it still doesn't work. It only has no effect in versions after 1.7.9.2.

 

It seems difficult to support SGO4 Integration Fork 1.7.9.2 inside PNS, so I created a patch.

On your Mod Manager, overwrite the SGO4 Integration Fork with the attached file.

Enable the normal map option in MCM. (In past versions we have had it disabled, but this time it is enabled.)

 

The change is simple: detect the presence or absence of the PNS in ActorUpdateNormals(), and if it is installed, send an event to the PNS and cancel the normal map on the SGO side.

 

EDIT: There was a problem with the patch that was previously released. We have uploaded a patch that fixes it and you can overwrite it. You can use the saved data as is.

Lesson learned: GetModByName() method to check for plugins cannot be used for espFE. Use IsPluginInstalled() instead.

 

 

PNS-SGO4IF Patch (Fix).zip

Edited by handroid
Posted
16 hours ago, handroid said:

 

 

It seems difficult to support SGO4 Integration Fork 1.7.9.2 inside PNS, so I created a patch.

On your Mod Manager, overwrite the SGO4 Integration Fork with the attached file.

Enable the normal map option in MCM. (In past versions we have had it disabled, but this time it is enabled.)

 

The change is simple: detect the presence or absence of the PNS in ActorUpdateNormals(), and if it is installed, send an event to the PNS and cancel the normal map on the SGO side.

PNS_SGO4IF patch.zip 24.42 kB · 2 downloads

Thank you, this patch works great!

Posted

Version beta2.1 has been uploaded. At the same time, a patch for SGO4 IF too.
The fixes this time are few, but it was probably a bug that we see frequently.
I made an elementary mistake of forgetting to increment the index in the while loop. I am ashamed of myself.😭

Posted
1 hour ago, Unknown22923 said:

Seems like Loverslab having trouble with downloads, it says it cant find your recent file, ill try again later :D

 

Yep having the same error as well seems like there is some issues with the site atm.

Posted

Might have to re-upload the file as i can download pretty much everything else but this new file, i can even DL the older 2.0 version instantly with no issues, Loverslab did have a maintainace very close to your update so maybe it got borked.

Posted
20 hours ago, handroid said:

Reuploaded.

Thanks for letting me know!

Download works again! :] 

 

Using SBM version of PNS and looks like its working pretty well now, haven't had any issues besides the bit of flicker on the normal maps when updating it example taking armor off etc. but that's totally fine considering you haven't messed with other mod files.

 

Its awesome, thank you for sharing this! ❤️

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
×
×
  • Create New...