-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFile Formats.txt
242 lines (199 loc) · 5.79 KB
/
File Formats.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
Tibia Time Machine .ttm:
[2 bytes] Tibia version (>= 700)
[1 bytes] Server name lenght (< 128)
> 0: OpenTibia server
[x bytes] Server name (a-z, 0-9, [.-_])
[2 bytes] Port (> 0)
[4 bytes] Recording time
Loop:
[2 bytes] Packet size (> 0)
[x bytes] Packet data
[1 bytes] Next packet type
0: Normal packet
[2 bytes] Delay to next packet
1: New game session (fixed delay of 1000ms)
EOF: End of recording
---------------------------------------------------------------------
TibiCAM .rec:
[1 bytes] TibiCAM version (3: < 7.70, 4: < 7.72, 5: < 8.00 or 6: < 8.30)
[1 bytes] Format version
1: Unencrypted (Tibia version < 730 or generated by TTM)
[4 bytes] Number of chunks
For:
[4 bytes] Received size
[4 bytes] Received time
[x bytes] Received data
2: Encrypted (Tibia version < 830)
[4 bytes] Number of packets + 57
For:
[2 bytes] Encrypted data size
[4 bytes] Received time
[x bytes] Encrypted data (Inside: 2 bytes of packet size + data) (Versions 5 and 6 include AES256)
[4 bytes] Checksum (Adler32 of encrypted data)
End of recording
---------------------------------------------------------------------
TibiaMovie .tmv:
GZip compressed data:
[2 bytes] Format version (2 on 0.3.3)
[2 bytes] Tibia version (<= 760)
[4 bytes] Recording time
Loop:
[1 bytes] Data type
0: Received data chunk
[4 bytes] Delay from previous chunk
[2 bytes] Received size
0: End of recording
[x bytes] Received data
1: Play marker
---------------------------------------------------------------------
TibiaCam .cam:
[32 bytes] Hash?
[4 bytes] Tibia version (X.YZ is 0X 0Y 0Z 00)
[4 bytes] Metadata size
[x bytes] Metadata
[4 bytes] LZMA Compressed data size
[5 bytes] LZMA Parameters
[8 bytes] LZMA Decompressed data size
LZMA Compressed data:
[1 bytes] Fake TibiCAM version (6)
[1 bytes] Fake TibiCAM format version (2)
[4 bytes] Number of packets + 57
For:
[2 bytes] Packet size + 2
[4 bytes] Received time
[2 bytes] Packet size
[x bytes] Packet data
[4 bytes] Undefined (Size again, CRC32 of packet data or random trash)
End of recording
---------------------------------------------------------------------
TCam .tcam:
GZip compressed data:
Loop:
[1 bytes] Data type
48: XTEA Key
[2 bytes] Data size (16)
[16 bytes] XTEA key
49: Battlelist entry
[2 bytes] Data size (160 on 8.22)
[x bytes] Battlelist entry (copied from memory)
Tibia 8.22 Battlelist entry:
[4 bytes] Creature ID
[32 bytes] Creature name
[12 bytes] Creature position
[4 bytes] Screen offset H
[4 bytes] Screen offset V
[4 bytes] Time to move again straight
[4 bytes] Time to move again diagonal
[4 bytes] Last Moved H
[4 bytes] Last Moved V
[4 bytes] Ground speed
[4 bytes] Creature walking status
[4 bytes] Direction
[4 bytes] Last walked direction
[8 bytes] Unknown
[4 bytes] Creature outfit
[4 bytes] Head color
[4 bytes] Body color
[4 bytes] Legs color
[4 bytes] Feet color
[4 bytes] Addon
[4 bytes] Light level
[4 bytes] Light color
[4 bytes] Black square
[4 bytes] Time to hide black square
[4 bytes] HP bar
[4 bytes] Walking speed
[4 bytes] Visibility
[4 bytes] Skull
[4 bytes] Party
[4 bytes] Guild war
50: Delay
[2 bytes] Data size (4)
[4 bytes] Delay
51: Video header
[2 bytes] Data size (>= 34)
[2 bytes] Tibia version (822)
[4 bytes] Recording time
[1 bytes] Player name size
[x bytes] Player name
[1 bytes] Player Vocation (0 for unknown)
[2 bytes] Player level
[1 bytes] Player magic level
[2 bytes] Player level again
[1 bytes] Player fist fighting skill
[1 bytes] Player club fighting skill
[1 bytes] Player sword fighting skill
[1 bytes] Player axe fighting skill
[1 bytes] Player distance fighting skill
[1 bytes] Player shielding skill
[1 bytes] Player fishing skill
[4 bytes] Monsters seen during recording (0 for uncalculated)
[4 bytes] Monsters killed during recording (0 for uncalculated)
[2 bytes] Players seen during recording (0 for uncalculated)
[2 bytes] Players killed during recording (0 for uncalculated)
64: Received data
[2 bytes] Data size
[x bytes] Received data
EOF: End of recording
[4 bytes] Uncompressed data size
---------------------------------------------------------------------
BynaCam .byn:
GZip compressed data:
Loop:
[1 bytes] Data type
99: Recorded time
[4 bytes] Recorded time
End of recording
100: Tibia version
[4 bytes] Tibia version (08 05 04 00)
101: Delay
[4 bytes] Delay
102: Packet
[4 bytes] Packet size
[x bytes] Packet data
---------------------------------------------------------------------
TibiaCast .recording:
[1 bytes] TibiaCast version
[1 bytes] Tibia version
21: 1036
22: 1038
23: 1038
24: 1041
30: 1079
DEFLATE compressed data:
if version > 4 || version == 4 && tibia > 4
[4 bytes] Unknown
if tibia > 8
[1 bytes] Unknown
Loop:
[4 bytes] Received time
[4 bytes] Data size
0: End of recording
[x bytes] Data
[1 bytes] Data type
6: Close shop window
[1 bytes] Constant (1)
7: Battlelist + First packets
if tibia > 9
[1 bytes] Unknown
[2 bytes] Number of creatures
For:
A valid Tibia 0x61 (Add unknown creature) packet, depends on protocol version
Used to replace packets 0x62 (Add known creature) and 0x63 (Turn creature) if unkwnown
[2 bytes] Number of packets
For:
[2 bytes] Packet size
[x bytes] Packet data
8: Packets
[2 bytes] Number of packets
For:
[2 bytes] Packet size
[x bytes] Packet data
9: Message
[2 bytes] Title size
[x bytes] Title
[2 bytes] Message size
[x bytes] Message data
---------------------------------------------------------------------
Tibia XCAM .xcam:
---------------------------------------------------------------------