Help:Replacing textures: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Linktlh
(Possibly terrible tutorial But who knows may be helpful.)
 
(→‎Replacing The Textures: Extra clarification)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
When replacing textures, the process is fairly similar on both Wii u/Cemu and Switch. The main difference is the presence of Tex1 and Tex2 which are combined as a single Tex file on the switch.
When replacing textures, the process is fairly similar on both Wii U/Cemu and Switch. The main difference is the presence of Tex1 and Tex2 which are combined as a single Tex file on the switch.


== Prerequisites ==
== Prerequisites ==
* [[Help:Tools/Switch_Toolbox|Switch_Toolbox]]
 
* [[Help:Tools/Switch Toolbox|Switch Toolbox]]


== Replacing The Textures ==
== Replacing The Textures ==
#Open Switch Toolbox and find the texture you're looking for. Use [https://github.com/MrCheeze/botw-tools/blob/master/botw_names.json IDs List] to find the bfres name.
 
#Drag the Tex1 (or Tex if Switch) into Switch Toolbox
# Open Switch Toolbox and find the texture you're looking for. Use [https://github.com/MrCheeze/botw-tools/blob/master/botw_names.json IDs List] to find the bfres name.
#Click the + icon next to the file, and then on textures folder.
# Drag the Tex1 (or Tex if Switch) into Switch Toolbox. These can mostly be found in <code>content/Model</code>, though some are in <code>content/Pack/TitleBG.pack//Model</code>. If Wii U, make sure the Tex2 is in the same directory as the Tex1 (so that Switch Toolbox can load/save its contents properly)
#Find the texture you're looking to replace and right-click, replace. Please note when replacing textures sometimes SRGB won't be automatically selected, if it's Alb, then it will glow in-game without SRGB.
# Click the + icon next to the file, and then on textures folder.
#Save the file, if you're on Wii u it will ask where to save the Tex2, save it in the same spot Tex2 would belong for that model.
# Find the texture you're looking to replace and right-click, replace. Please note when replacing textures sometimes sRGB won't be automatically selected. If it's an albedo (_Alb), then it will glow in-game without sRGB.
#If the file size increased it's recommended that you [[Help:Updating_the_RSTB | update the rstb entry]]
# Save the file and say Yes to yaz0-compression if it asks. If you're on Wii U, it will ask where to save the Tex2: save it in the same spot the Tex2 would belong for that model (probably in the same place as the Tex1) and yaz0-compress it as well.
# If the file size increased it's recommended that you [[Help:Tools/BCML| install with BCML]] to handle metadata files.
 
Congratulations! You replaced the texture! If you're on CEMU, create a graphics pack and try it out, otherwise follow the normal steps for mods on Switch / Wii U to see it in action.
Congratulations! You replaced the texture! If you're on CEMU, create a graphics pack and try it out, otherwise follow the normal steps for mods on Switch / Wii U to see it in action.
== Troubleshooting ==
=== Patchwork/color-splotchy textures ===
# Make sure your texture formats match the originals that you're replacing. With the texture selected, the format is listed on the right side. It'll be something like <code>T_BC1_SRGB</code>
# Make sure your mipmaps were generated correctly. If toolbox throws an error when you try to use the Mip Level selector above the texture preview, or it claims there are not X mip levels (where the size of the longer side of your texture is 2^X, for example 256 is 2^8 so a 256x256 texture should have 8 mip levels) then the mipmaps were not generated correctly. If you imported a PNG, delete it from the bfres, save, close toolbox, open toolbox, and try reimporting it again. If you imported a DDS, then it likely didn't have any mip levels stored in it, and you would need to export the file from your texture editor with mipmaps baked in.
=== Red texture ===
The game cannot find the texture it expects with the name it expects. Make sure your texture has the same name as the texture you replaced. If it is the same name, see Patchwork/color-splotchy textures.
=== Game crashing ===
The game cannot gracefully handle too many resources loaded at once, so too many large textures will cause the game to be unable to allocate memory for a resource, return a null pointer, and crash. Only replace textures with new textures of the same size or smaller unless the loss of detail is unacceptable.
[[Category:Guides]]

Latest revision as of 01:43, 9 August 2021

When replacing textures, the process is fairly similar on both Wii U/Cemu and Switch. The main difference is the presence of Tex1 and Tex2 which are combined as a single Tex file on the switch.

Prerequisites

Replacing The Textures

  1. Open Switch Toolbox and find the texture you're looking for. Use IDs List to find the bfres name.
  2. Drag the Tex1 (or Tex if Switch) into Switch Toolbox. These can mostly be found in content/Model, though some are in content/Pack/TitleBG.pack//Model. If Wii U, make sure the Tex2 is in the same directory as the Tex1 (so that Switch Toolbox can load/save its contents properly)
  3. Click the + icon next to the file, and then on textures folder.
  4. Find the texture you're looking to replace and right-click, replace. Please note when replacing textures sometimes sRGB won't be automatically selected. If it's an albedo (_Alb), then it will glow in-game without sRGB.
  5. Save the file and say Yes to yaz0-compression if it asks. If you're on Wii U, it will ask where to save the Tex2: save it in the same spot the Tex2 would belong for that model (probably in the same place as the Tex1) and yaz0-compress it as well.
  6. If the file size increased it's recommended that you install with BCML to handle metadata files.

Congratulations! You replaced the texture! If you're on CEMU, create a graphics pack and try it out, otherwise follow the normal steps for mods on Switch / Wii U to see it in action.

Troubleshooting

Patchwork/color-splotchy textures

  1. Make sure your texture formats match the originals that you're replacing. With the texture selected, the format is listed on the right side. It'll be something like T_BC1_SRGB
  2. Make sure your mipmaps were generated correctly. If toolbox throws an error when you try to use the Mip Level selector above the texture preview, or it claims there are not X mip levels (where the size of the longer side of your texture is 2^X, for example 256 is 2^8 so a 256x256 texture should have 8 mip levels) then the mipmaps were not generated correctly. If you imported a PNG, delete it from the bfres, save, close toolbox, open toolbox, and try reimporting it again. If you imported a DDS, then it likely didn't have any mip levels stored in it, and you would need to export the file from your texture editor with mipmaps baked in.

Red texture

The game cannot find the texture it expects with the name it expects. Make sure your texture has the same name as the texture you replaced. If it is the same name, see Patchwork/color-splotchy textures.

Game crashing

The game cannot gracefully handle too many resources loaded at once, so too many large textures will cause the game to be unable to allocate memory for a resource, return a null pointer, and crash. Only replace textures with new textures of the same size or smaller unless the loss of detail is unacceptable.