|
1 |
| -# \`resnametable.txt\` |
| 1 | +# resnametable.txt |
2 | 2 |
|
3 | 3 | The **resource name table** or resnametable, is responsible for creating pathname aliases for client-side files,
|
4 |
| -regardless of whether inside or outside a [GRF](GRF "wikilink") archive. The server can also read this file when [using |
5 |
| -GRFs for map data](:Category:Configuration#Overriding_map-cache "wikilink"), as well. It is stored in |
| 4 | +regardless of whether inside or outside a [GRF](./grf.md) archive. The server can also read this file when |
| 5 | +[using GRFs for map data](../setup/configuration.md#overriding-map-cache), as well. It is stored in |
6 | 6 | `data\resnametable.txt`, typically inside the archive.
|
7 | 7 |
|
8 | 8 | ## Usage
|
9 | 9 |
|
10 | 10 | This file is used whenever a resource (file) is required to be known under different name, while maintaining the same
|
11 | 11 | data, mostly used for duplicating maps, but available for any kind of file. It is preferred to use this mechanism, as it
|
12 | 12 | avoids the need to copy files physically, thus saves space and improves system's cache performance. The path, to which
|
13 |
| -pathnames relate to, appears to depend on the pathname's file extension, see [table |
14 |
| -below](#Known_Base_Paths "wikilink"). |
| 13 | +pathnames relate to, appears to depend on the pathname's file extension, see |
| 14 | +[table below](#known-base-paths). |
15 | 15 |
|
16 | 16 | ## Format
|
17 | 17 |
|
18 |
| -In use is a single-line 2-column [token text table](Token_Text_Table "wikilink") format, whose 1st column holds the |
| 18 | +In use is a single-line 2-column [token text table](./token-text-table.md) format, whose 1st column holds the |
19 | 19 | alias pathname and the 2nd column contains the pathname of the actual file.
|
20 | 20 |
|
21 | 21 | `alias pathname#real pathname#`
|
22 | 22 |
|
23 | 23 | ## Example
|
24 | 24 |
|
25 |
| -`nguild_pay.rsw#payg_cas01.rsw#` |
26 |
| -`nguild_pay.gat#payg_cas01.gat#` |
27 |
| -`nguild_pay.gnd#payg_cas01.gnd#` |
28 |
| -`유저인터페이스\map\nguild_pay.bmp#유저인터페이스\map\payg_cas01.bmp#` |
| 25 | +``` |
| 26 | +nguild_pay.rsw#payg_cas01.rsw# |
| 27 | +nguild_pay.gat#payg_cas01.gat# |
| 28 | +nguild_pay.gnd#payg_cas01.gnd# |
| 29 | +유저인터페이스\map\nguild_pay.bmp#유저인터페이스\map\payg_cas01.bmp# |
| 30 | +``` |
29 | 31 |
|
30 |
| -This virtually copies the map payg_cas01 to nguild_pay(so you won't need extra map files for nguild_pay). |
| 32 | +This virtually copies the map `payg_cas01` to `nguild_pay` (so you won't need extra map files for `nguild_pay`). |
31 | 33 |
|
32 | 34 | ## Known Base Paths
|
33 | 35 |
|
34 | 36 | | Extension | Path |
|
35 | 37 | |-----------|----------------|
|
36 |
| -| bmp | data\texture\\ | |
37 |
| -| gat | data\\ | |
38 |
| -| gnd | data\\ | |
39 |
| -| rsw | data\\ | |
| 38 | +| bmp | data\texture\ | |
| 39 | +| gat | data\ | |
| 40 | +| gnd | data\ | |
| 41 | +| rsw | data\ | |
40 | 42 |
|
41 | 43 | [Category:Client Configuration](Category:Client_Configuration "wikilink")
|
0 commit comments