Difference between revisions of "How to fix hard-coded texture paths in NIF files"
m (New domain name for the web site)
|Line 34:||Line 34:|
Source: [http://./forum/viewtopic.php?f=40&t=87 LHammonds Oblivion Mods Site]
Revision as of 10:38, 9 May 2011
This tutorial will demonstrate how to correct hard-coded texture paths in .NIF files using NIFSkope.
About 20 to 30% of the mods I've run across have the paths hard-coded to C: but that's mainly due to the fact that some authoring programs default the full path. New modders don't know to change it into a relative path in order for it to work for all versions of Oblivion. Why does this matter? Because the mod will not work for anyone who doesn't install Oblivion to the exact same location. Many people install to different locations such as C:\Games\Oblivion or D:\Oblivion\
It is very simple to change the texture paths in the .NIF files. If you don't already have NIFSkope, it is extremely helpful and can fix this problem quickly. Look in the Tools section to find the download for NIFSkope.
Once installed, NIFSkope will associate itself with .NIF files. Go to your mesh folder that has the .NIF files and double-click on one to have NIFSkope open the mesh.
NOTE: It is recommended that you use backslashes (\) instead of forward slashes (/) in paths. If the .NIF is ever packaged inside a .BSA file, the textures using forward slashes will not work as if they cannot be found.
Saving in NifSkope
With NifSkope versions below 0.9.6, the save feature is quirky since it remembers the filename and path of the last saved .NIF file rather than the file it currently has open. If you work in different directories this can bug you quite a bit and you have to be careful to notice which file you're actually trying to save and not accidentally overwrite the last file you saved with the current. I accidentally saved a foot mesh on top of a helmet mesh once. It wasn't pretty and it sucked having to restore the helmet mesh. I highly recommend using the latest version.
- Double-click on a .NIF file to open with NIFSkope.
- If the 3D model doesn't show the texture, don't worry. It doesn't matter but if you prefer, you can set the path to the Data folder that holds the Texture sub-folder by clicking Spells on the menu, then Textures, Folders.
- To make finding the incorrect paths easier, it's best if you set the Block List view to List rather than Hierarchy. From the menu, click View, Block List Options, List.
- It should now be easy to scroll through the list on the left-side and find the hard-coded texture paths. The Texture Path lines also have a purple flower icon just to the left.
- Look for something like C:\Program Files\Bethesda Softworks\Oblivion\Data\Textures\Armor\MyMod\M\Cuirass.dds, change it by double-clicking on the path to go into Edit mode and place the cursor to the left of T where the word Textures\ begins and delete everything to the left and press ENTER. (See Exhibit 1)
- Scrolling down and make sure all other paths are not hard-coded.
- Click File, Save and select the file you opened.
- Rinse, lather and repeat.
C:/Program Files/Bethesda Softworks/Oblivion/Data/Textures/Armor/MyMod/M/Cuirass.dds
Source: LHammonds Oblivion Mods Site