Originally Posted by Wheels
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:
ReshadeMap = {}
ReshadeMap.appName = "ReshadeMap"
local mapTexturesOrig = {
[1] = "/art/maps/vvardenfell/balmora_base_0.dds",
[2] = "/art/maps/vvardenfell/balmora_base_1.dds",
[3] = "/art/maps/vvardenfell/balmora_base_2.dds",
[4] = "/art/maps/vvardenfell/balmora_base_3.dds",
[5] = "/art/maps/vvardenfell/balmora_base_4.dds",
[6] = "/art/maps/vvardenfell/balmora_base_5.dds",
[7] = "/art/maps/vvardenfell/other_map_1.dds",
[8] = "/art/maps/vvardenfell/other_map_2.dds"
}
for index, textureNameOrig in ipairs(mapTexturesOrig) do
RedirectTexture(textureNameOrig, ReshadeMap.appName.. "/textures".. textureNameOrig)
end
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?