View Single Post
06/14/19, 01:00 PM   #9
LordBob
Join Date: May 2019
Posts: 8
Originally Posted by Wheels View Post
Does the function ReshadeMap.OnAddOnLoaded actually exist? That would appear to be the problem.
Of course, thank you.

Is there anything else that I should add, so it doesn't cause any issues?

Lua Code:
  1. ReshadeMap = {}
  2. ReshadeMap.appName = "ReshadeMap"
  3.  
  4. local mapTexturesOrig = {
  5.  
  6.     [1] = "/art/maps/vvardenfell/balmora_base_0.dds",
  7.     [2] = "/art/maps/vvardenfell/balmora_base_1.dds",
  8.     [3] = "/art/maps/vvardenfell/balmora_base_2.dds",
  9.     [4] = "/art/maps/vvardenfell/balmora_base_3.dds",
  10.     [5] = "/art/maps/vvardenfell/balmora_base_4.dds",
  11.     [6] = "/art/maps/vvardenfell/balmora_base_5.dds",
  12.     [7] = "/art/maps/vvardenfell/other_map_1.dds",
  13.     [8] = "/art/maps/vvardenfell/other_map_2.dds"
  14.  
  15. }
  16.  
  17. for index, textureNameOrig in ipairs(mapTexturesOrig) do
  18.    RedirectTexture(textureNameOrig, ReshadeMap.appName.. "/textures".. textureNameOrig)
  19. end
  20.      
  21. EVENT_MANAGER:RegisterForEvent(ReshadeMap.appName)

Edit: The ESO textures List is incomplete. Does anyone know a good tool I could use to copy the texture paths myself?

Edit2: As soon as I add a second map, the added map does not show anymore. Sorry for asking so many questions. Do I have to split the "local mapTexturesOrig" function?

Last edited by LordBob : 06/14/19 at 03:16 PM.
  Reply With Quote