View Single Post
06/12/19, 12:51 PM   #3
LordBob
Join Date: May 2019
Posts: 8
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:
  1. ReshadeMap = {}
  2. ReshadeMap.appName = ReshadeMap
  3.  
  4. local ADDON_VERSION = 1.0
  5.  
  6. local function ReplaceMapTextures(mapId, ReshadeMap/art/maps/vvardenfell/balmora_base_%d_reshademap.dds)
  7.     local numX, numY = GetMapNumTilesForMapId(1290)
  8.     local totalTiles = numX * numY
  9.     for i = 1, totalTiles do
  10.         RedirectTexture(GetMapTileTextureForMapId(1290, i), ReshadeMap/art/maps/vvardenfell/balmora_base_%d_reshademap.dds:format(i))
  11.     end
  12. end
  13.  
  14. 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?
  Reply With Quote