Tile
tile init [nooverrides]tile cnt {x} {y} [facet]tile get {x} {y} {n} [facet]- Sets
#TileCnt,#TileType,#TileZ,#TileName,#TileFlags
Also searchable as: Tile · map · terrain · statics
tile reads the client’s map files: what lies at a world position, layer by layer (ground, then statics).
| Form | What it does |
|---|---|
tile init [nooverrides] |
Loads the map files. Needed once before cnt and get. |
tile cnt {x} {y} [facet] |
Puts the number of tiles at x, y in #TileCnt. |
tile get {x} {y} {n} [facet] |
Reads tile n (from 1 to #TileCnt) at x, y into #TileType, #TileZ, #TileName and #TileFlags. |
Details
Section titled “Details”tile initreads the files from the attached client’s own folder.nooverridesskips the client’s map and statics patch files (mapdif*.mul,mapdifl*.mul,stadif*.mul,stadifl*.mulandstadifi*.mul) and reads only the base map files, for shards that do not use the patches. Withouttile init,cntgives 0 andgetreads nothing.facetis the facet number, as in#CursKind. Default: the facet you are on.- See
#TileFlagsfor what the flags mean.
Example
Section titled “Example”tile inittile cnt #CharPosX #CharPosYfor %n 1 #TileCnt{ tile get #CharPosX #CharPosY %n event sysmessage #TileName at height #TileZ}haltReforged notes
Section titled “Reforged notes”- Newer client installs ship the maps packed in
.uopfiles (map0LegacyMUL.uop, …) instead of the classicmap0.mul. EasyUO Reforged reads those directly, sotileworks on these installs without extracting the files to the old MUL format first. When both exist, the classic.mulfile is used. - Trammel (facet 1) is read from its own map files (
map1,staidx1.mulandstatics1.mul). EasyUO 1.5 read Felucca’s files for Trammel, which matched clients before Mondain’s Legacy but not current ones, where places such as New Haven differ. Installs without Trammel files still use Felucca’s. - Felucca and Trammel are 7168 tiles wide on current clients. EasyUO 1.5 stopped at x 6143, so
cntandgetgave nothing further east. The width now comes from the map files, so older 6144-wide installs work as before. - Ter Mur (facet 5) is read from the right place. EasyUO 1.5 computed the position in the map files wrongly there and returned tiles from elsewhere on the facet.
tile initworks when patch files are missing. Current installs no longer ship the map patch files, and EasyUO 1.5’stile initstopped the script with an error when Felucca’s or Trammel’s were not there, so onlytile init nooverridesworked. Now a facet’s patches are used only when all of their files are present (mapdiflandmapdiffor the map,stadifl,stadifiandstadiffor the statics), and are skipped otherwise.- Scripts that read Trammel, Ter Mur or the far east of Felucca can see different tiles than in EasyUO 1.5: those are the client’s real tiles.
See also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.