Thank you for the quick reply
I managed to extract all map files and used XnConvert to batch-edit the city Balmora map for testing.
Now I got the .dds files in ReshadeMap\art\maps\vvardenfell\balmora_base_0.dds...balmora_base_24.dds.
Then I renamed them to balmora_base_0_reshademap.dds...balmora_base_24_reshademap.dds in case it makes a difference?
After setting up a .txt and .lua file according to
Writing your first addon, I inserted your suggested code so it looks like the following for now:
Lua Code:
ReshadeMap = {}
ReshadeMap.appName = ReshadeMap
local ADDON_VERSION = 1.0
local function ReplaceMapTextures(mapId, ReshadeMap/art/maps/vvardenfell/balmora_base_%d_reshademap.dds)
local numX, numY = GetMapNumTilesForMapId(1290)
local totalTiles = numX * numY
for i = 1, totalTiles do
RedirectTexture(GetMapTileTextureForMapId(1290, i), ReshadeMap/art/maps/vvardenfell/balmora_base_%d_reshademap.dds:format(i))
end
end
EVENT_MANAGER:RegisterForEvent(ReshadeMap.appName, EVENT_ADD_ON_LOADED, ReshadeMap.OnAddOnLoaded)
Balmoras map Id=1290
It still does not work but I have no idea what I am doing wrong.
ESO complains as well:
user:/AddOns/ReshadeMap/ReshadeMap.lua:6: ) expected near '/'
I guess there is no other method of exchanging the maps without having to get each map-Id?