Skip to content

Commit 4b53f20

Browse files
committed
Fix formatting and links in client/token text table
1 parent d4a722c commit 4b53f20

File tree

1 file changed

+52
-43
lines changed

1 file changed

+52
-43
lines changed

docs/client/token-text-table.md

Lines changed: 52 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,81 @@
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
24
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).
46

57
## File Format
68

79
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
911
is not stored in [Unicode](https://en.wikipedia.org/wiki/Unicode) or [UTF-8](https://en.wikipedia.org/wiki/UTF-8).
1012

1113
The amount of columns is fixed for each file, that uses this file format. Rows are either limited by available memory or
1214
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
1517
either a new line or a non-spacing character.
1618

1719
### Examples
1820

1921
1-column table (CardPostfixNameTable)
2022

21-
4039#
22-
4041#
23-
4042#
24-
4046#
25-
4050#
23+
```
24+
4039#
25+
4041#
26+
4042#
27+
4046#
28+
4050#
29+
```
2630

2731
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+
```
3641

3742
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+
```
4248

4349
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+
```
6067

6168
### Comments
6269

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
6471
of that line. Trailing comments (not starting at beginning of a line) will not work. Example:
6572

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+
```
7079

7180
### Known Row Limits
7281

0 commit comments

Comments
 (0)