View Single Post
06/14/19, 05:01 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,964
You are able to get the texture paths from your link and put them into an excel, then use excel formulas to build a lua table from it. It should look like this:

Lua Code:
  1. local mapTexturesOrig = {
  2. [1] = "/art/maps/map1.dds",
  3. [2] =...
  4.  
  5. }

And built another one with the replacement textures, or use the same folder structure in your addon's folder, inside a subfolder "textures" e.g.,so you can dynamically use it for a replacement from your addon folder.
ReshadeMap/textures/art/maps/vvardenfell...

With a loop over the table you can do the replacement then.

Lua Code:
  1. for index, textureNameOrig in ipairs(mapTexturesOrig) do
  2.    RedirectTexture(textureNameOrig, ReshadeMap.appName.. "/textures".. textureNameOrig)
  3. end

Last edited by Baertram : 06/14/19 at 05:07 AM.
  Reply With Quote