TRS: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
To avoid having duplicates of all-water minimaps and thus wasting space, minimap textures have been stored using an md5 hash of their content as filename. To map from map tile to minimap file, <tt>textures/minimap/md5translate.trs</tt> exists. The file contains blocks of tile → filename mappings per map in text form. | |||
== | block_header := "dir: " map_basename "\n" | ||
block_entry := map_basename "\map" x "_" y ".blp\t" actual_filename "\n" | |||
block := block_header block_entry+ | |||
file := block+ | |||
* <code>map_basename</code> as found in [[DB/Map|MapRec]] | |||
* <code>x</code> and <code>y</code> as in ADT tile coordinates. It appears that x is non-zero-padded but y is zero-padded to two digits. (<code>"map_%d_%02d.blp"</code>) | |||
* <code>actual_filename</code> is given relative to <code>textures/minimap/</code> | |||
* note: an earlier version of this page has <code>block_entry := actual_filename "\t" map_basename "\map" x "_" y ".blp\n"</code> | |||
[[Category:Format]] | [[Category:Format]] |
Revision as of 20:01, 4 July 2016
To avoid having duplicates of all-water minimaps and thus wasting space, minimap textures have been stored using an md5 hash of their content as filename. To map from map tile to minimap file, textures/minimap/md5translate.trs exists. The file contains blocks of tile → filename mappings per map in text form.
block_header := "dir: " map_basename "\n" block_entry := map_basename "\map" x "_" y ".blp\t" actual_filename "\n" block := block_header block_entry+ file := block+
map_basename
as found in MapRecx
andy
as in ADT tile coordinates. It appears that x is non-zero-padded but y is zero-padded to two digits. ("map_%d_%02d.blp"
)actual_filename
is given relative totextures/minimap/
- note: an earlier version of this page has
block_entry := actual_filename "\t" map_basename "\map" x "_" y ".blp\n"