|
1 |
| -A text table format used for the [Ragnarok Online](Ragnarok_Online "wikilink") client. It is used for organizing text |
| 1 | +# Token Text Table |
| 2 | + |
| 3 | +A text table format used for the [Ragnarok Online](https://en.wikipedia.org/wiki/Ragnarok_Online) client. It is used for organizing text |
2 | 4 | data into columns and rows, mostly for id-description relations. It usually has the file extension **.txt** and can be
|
3 |
| -found inside and outside the [GRF](GRF "wikilink"). |
| 5 | +found inside and outside the [GRF](./grf.md). |
4 | 6 |
|
5 | 7 | ## File Format
|
6 | 8 |
|
7 | 9 | The files are plain text files, where rows and columns are separated by the token character
|
8 |
| -[\#](https://en.wikipedia.org/wiki/Hash_symbol). It can be edited with every text editor like Notepad. Make sure, that the file |
| 10 | +[#](https://en.wikipedia.org/wiki/Hash_symbol). It can be edited with every text editor like Notepad. Make sure, that the file |
9 | 11 | is not stored in [Unicode](https://en.wikipedia.org/wiki/Unicode) or [UTF-8](https://en.wikipedia.org/wiki/UTF-8).
|
10 | 12 |
|
11 | 13 | The amount of columns is fixed for each file, that uses this file format. Rows are either limited by available memory or
|
12 | 14 | by hard-coded limits, as seen below. Note that all of these limits can be lifted by hexing the client. Whether line
|
13 |
| -breaks are allowed within a cell or not depends on each file as well. Multi-line cells support using \# character inside |
14 |
| -the text, as long it is followed by a **space character**. Contrary to that, all other \# characters must be followed by |
| 15 | +breaks are allowed within a cell or not depends on each file as well. Multi-line cells support using `#` character inside |
| 16 | +the text, as long it is followed by a **space character**. Contrary to that, all other `#` characters must be followed by |
15 | 17 | either a new line or a non-spacing character.
|
16 | 18 |
|
17 | 19 | ### Examples
|
18 | 20 |
|
19 | 21 | 1-column table (CardPostfixNameTable)
|
20 | 22 |
|
21 |
| - 4039# |
22 |
| - 4041# |
23 |
| - 4042# |
24 |
| - 4046# |
25 |
| - 4050# |
| 23 | +``` |
| 24 | +4039# |
| 25 | +4041# |
| 26 | +4042# |
| 27 | +4046# |
| 28 | +4050# |
| 29 | +``` |
26 | 30 |
|
27 | 31 | 1-column table multi-line (TipOfTheDay)
|
28 |
| - |
29 |
| - /savechat : saves chat as text file. |
30 |
| - # |
31 |
| - You can select a type of mini-map using ctrl+[*],between transparency and opacity. |
32 |
| - # |
33 |
| - You can change the view of character with dragging a mouse while holding right button and pressing shift key. |
34 |
| - Double clicking right button on a mouse enables to return the view to default one. |
35 |
| - # |
| 32 | +``` |
| 33 | +/savechat : saves chat as text file. |
| 34 | +# |
| 35 | +You can select a type of mini-map using ctrl+[*],between transparency and opacity. |
| 36 | +# |
| 37 | +You can change the view of character with dragging a mouse while holding right button and pressing shift key. |
| 38 | + Double clicking right button on a mouse enables to return the view to default one. |
| 39 | +# |
| 40 | +``` |
36 | 41 |
|
37 | 42 | 2-column table (IdNum2ItemDisplayNameTable)
|
38 |
| - |
39 |
| - 512#Apple# |
40 |
| - 513#Banana# |
41 |
| - 514#Grape# |
| 43 | +``` |
| 44 | +512#Apple# |
| 45 | +513#Banana# |
| 46 | +514#Grape# |
| 47 | +``` |
42 | 48 |
|
43 | 49 | 2-column multi-line table (IdNum2ItemDescTable)
|
44 |
| - |
45 |
| - 1071# |
46 |
| - A test tube that contains some sort of unidentified fluid. |
47 |
| - ^ffffff_^000000 |
48 |
| - Weight :^777777 3^000000 |
49 |
| - # |
50 |
| - 1072# |
51 |
| - It's a personal letter written by Mahnsoo, chief of the Merchant Guild. |
52 |
| - ^ffffff_^000000 |
53 |
| - Weight :^777777 1^000000 |
54 |
| - # |
55 |
| - 1073# |
56 |
| - A delivery voucher with the serial number # 2485741 |
57 |
| - ^ffffff_^000000 |
58 |
| - Weight :^777777 1^000000 |
59 |
| - # |
| 50 | +``` |
| 51 | +1071# |
| 52 | +A test tube that contains some sort of unidentified fluid. |
| 53 | +^ffffff_^000000 |
| 54 | +Weight :^777777 3^000000 |
| 55 | +# |
| 56 | +1072# |
| 57 | +It's a personal letter written by Mahnsoo, chief of the Merchant Guild. |
| 58 | +^ffffff_^000000 |
| 59 | +Weight :^777777 1^000000 |
| 60 | +# |
| 61 | +1073# |
| 62 | +A delivery voucher with the serial number # 2485741 |
| 63 | +^ffffff_^000000 |
| 64 | +Weight :^777777 1^000000 |
| 65 | +# |
| 66 | +``` |
60 | 67 |
|
61 | 68 | ### Comments
|
62 | 69 |
|
63 |
| -You may insert comments inside the file by putting **//** at the beginning of a line. The comment then spans to the end |
| 70 | +You may insert comments inside the file by putting `//` at the beginning of a line. The comment then spans to the end |
64 | 71 | of that line. Trailing comments (not starting at beginning of a line) will not work. Example:
|
65 | 72 |
|
66 |
| - row1# |
67 |
| - // Disabled because it does not work |
68 |
| - // row2# |
69 |
| - row3# |
| 73 | +``` |
| 74 | +row1# |
| 75 | +// Disabled because it does not work |
| 76 | +// row2# |
| 77 | +row3# |
| 78 | +``` |
70 | 79 |
|
71 | 80 | ### Known Row Limits
|
72 | 81 |
|
|
0 commit comments