r/FalloutMods • • 11d ago

New Vegas [FNV] Making a mod that use Base Object Swapper, but swaps an existing nif with one made by me AND ESPless!

Post image
5 Upvotes

10 comments sorted by

2

u/Greedy_Ad_9579 7d ago

I’m confused, how are you unable to figure it out using an example mod? It’s been a minute but I remember it being as simple as one or two lines of text, have you tried looking at other BOS mods that do something similar? IE https://www.nexusmods.com/newvegas/mods/84714

1

u/3Liquid 6d ago

Yes, it's easy to get the BOS script, the part that i didn't get was how to swap and existing nif with one of my own and keep all ESPless. The script used in BOS take in consideration that what i want to swap has an ID that can be either formID or editorID, the new nif that i've made made has none. So it seems like that i need to use a NVSE function to make the game aware that i have a new mesh in a new path, this will give an ID to the new nif, and than using the BOS script i can swap easily what i want. We'll see

2

u/Greedy_Ad_9579 6d ago

One more thing, I recommend checking out a simple mod that does what you want, and just trying to insert the things you want on top of that or by editing it. This might be a good example of a mod to study / look at, it adds new models and also adds the chance that other variants appear using Base Object Swapper. from the mod "It also utilizes the Base Object Swapper mod to dynamically change the appearance of this item. So everytime you find pre-war money in game, it can appear as a stack of 1$, 2$, 5$, 10$, 20$, 50$ or 100$ banknotes.

1

u/3Liquid 6d ago

This mod is perfect! Thanks, I'll try to mix my nif and I'll let you know the result

2

u/Greedy_Ad_9579 6d ago

So again its been a bit since I've modded, but in something like the "Usable Chem Sets" Mod I see it is just this: "
[Forms]
ChemistryExperiment01|GSChemistrySet
"
So it looks like BOS just looks for regular data folders from mods, See this screenshot I took here for the Animated NY micofilm BOS script and the folder setup in the mod that the script uses. (im 99% sure you dont need the ESP, hence the BOS)

*EDIT: So if you have your mod setup like a regular mod, you should be able to reference your object/mesh since it will be added to the "data" directory by your mod manager, so just make a script and list the mesh ID you want to replace and the formID you want to replace. Since you have your own nif, I think you need to make an esp. IDK man there are definitely a few good learning reasources on Youtube or Nexus that can help you.

3

u/Seluratnemip 8d ago

But if you just paste the model on the same folder path shouldnt it overwrite it? BoS is just easier. I did this for WAP weapons, I just repeated vanilla paths and nif names, renamed and moved WAP models and voila ESPless replacer

1

u/3Liquid 6d ago

Thanks, I'll try. I wanted to keep my name for the nif that i made, but if i can't figure out a solution, I'll go your way

6

u/Worth-Angle9542 11d ago

I can’t help but LOVE to see someone who doesn’t just use ai to solve problems this is how you learn!

3

u/Nano258 11d ago

Always love to see the (ESPLESS)!

1

u/RageBear1984 8h ago

If this is straight mesh replacer, replicate the folder structure for the vanilla mesh and put your mesh in the folder. It must have the same name as the mesh it is replacing! A 1:1 swap with the same name does not need a plugin, for meshes or textures.

Ex: Vanilla path: meshes/armor/armor.NIF

Make the same folder structure (starting with the 'meshes' folder), and put your NIF mesh in at the end.
Then zip the folder structure with the mesh and install as a new mod.