Closed drozdza closed 3 years ago
I also checked the list of other underwater places that I didnt know about (https://tibia.fandom.com/wiki/Underwater) f) Fiehonja - looks fine (but some places on path map looks narrow or disconected) g) Frozen Trench - yellow floor h) Drefia - some of the floor is yellow i) Krailos - yellow j) Seacrest Grounds - strange mix between #FAFAFA and yellow floor tiles
Calassa used to have the same issue (#61), I re-explored it when I found it out. Since the problem has not reappeared, I suspect it's due to some change on the colors at some point. They need fixing since they prevent map-clicking, but if they're also affecting how we count the explored tiles then there's another reason to fix them. That would explain the 3% we've been missing since forever which I never thought was realistic.
I did some tests and here's what I think happened:
My proposed solution then, is:
One open question here was to figure out which palette index (i.e. which byte) corresponds to #FF00FF
(magenta).
$ magick identify -verbose Minimap_WaypointCost_33792_31744_10.png
Image:
Filename: Minimap_WaypointCost_33792_31744_10.png
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: PseudoClass
Geometry: 256x256+0+0
Resolution: 37.8x37.8
Print size: 6.77249x6.77249
Units: PixelsPerCentimeter
Colorspace: sRGB
Type: Palette
Base type: Undefined
Endianness: Undefined
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Channel statistics:
Pixels: 65536
Red:
min: 100 (0.392157)
max: 255 (1)
mean: 253.562 (0.994362)
median: 255 (1)
standard deviation: 14.2412 (0.0558478)
kurtosis: 95.7575
skewness: -9.86276
entropy: 0.0375124
Green:
min: 0 (0)
max: 255 (1)
mean: 10.033 (0.0393449)
median: 0 (0)
standard deviation: 47.9171 (0.18791)
kurtosis: 21.0297
skewness: 4.7507
entropy: 0.111541
Blue:
min: 0 (0)
max: 255 (1)
mean: 244.753 (0.959816)
median: 255 (1)
standard deviation: 48.4382 (0.189954)
kurtosis: 20.0932
skewness: -4.65454
entropy: 0.111541
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 169.449 (0.664508)
median: 170 (0.666667)
standard deviation: 36.8655 (0.144571)
kurtosis: -1.50395
skewness: -0.695473
entropy: 0.0868651
Colors: 7
Histogram:
225: (100,100,100) #646464 srgb(100,100,100)
19: (110,110,110) #6E6E6E grey43
418: (120,120,120) #787878 grey47
1: (200,200,200) #C8C8C8 srgb(200,200,200)
21: (250,250,250) #FAFAFA grey98
62588: (255,0,255) #FF00FF magenta
2264: (255,255,0) #FFFF00 yellow
Colormap entries: 256
Colormap:
0: (0,0,0,1) #000000FF black
1: (1,1,1,1) #010101FF srgba(1,1,1,1)
2: (2,2,2,1) #020202FF srgba(2,2,2,1)
3: (3,3,3,1) #030303FF grey1
4: (4,4,4,1) #040404FF srgba(4,4,4,1)
5: (5,5,5,1) #050505FF grey2
6: (6,6,6,1) #060606FF srgba(6,6,6,1)
7: (7,7,7,1) #070707FF srgba(7,7,7,1)
8: (8,8,8,1) #080808FF grey3
9: (9,9,9,1) #090909FF srgba(9,9,9,1)
10: (10,10,10,1) #0A0A0AFF grey4
11: (11,11,11,1) #0B0B0BFF srgba(11,11,11,1)
12: (12,12,12,1) #0C0C0CFF srgba(12,12,12,1)
13: (13,13,13,1) #0D0D0DFF grey5
14: (14,14,14,1) #0E0E0EFF srgba(14,14,14,1)
15: (15,15,15,1) #0F0F0FFF grey6
16: (16,16,16,1) #101010FF srgba(16,16,16,1)
17: (17,17,17,1) #111111FF srgba(17,17,17,1)
18: (18,18,18,1) #121212FF grey7
19: (19,19,19,1) #131313FF srgba(19,19,19,1)
20: (20,20,20,1) #141414FF grey8
21: (21,21,21,1) #151515FF srgba(21,21,21,1)
22: (22,22,22,1) #161616FF srgba(22,22,22,1)
23: (23,23,23,1) #171717FF grey9
24: (24,24,24,1) #181818FF srgba(24,24,24,1)
25: (25,25,25,1) #191919FF srgba(25,25,25,1)
26: (26,26,26,1) #1A1A1AFF grey10
27: (27,27,27,1) #1B1B1BFF srgba(27,27,27,1)
28: (28,28,28,1) #1C1C1CFF grey11
29: (29,29,29,1) #1D1D1DFF srgba(29,29,29,1)
30: (30,30,30,1) #1E1E1EFF srgba(30,30,30,1)
31: (31,31,31,1) #1F1F1FFF grey12
32: (32,32,32,1) #202020FF srgba(32,32,32,1)
33: (33,33,33,1) #212121FF grey13
34: (34,34,34,1) #222222FF srgba(34,34,34,1)
35: (35,35,35,1) #232323FF srgba(35,35,35,1)
36: (36,36,36,1) #242424FF grey14
37: (37,37,37,1) #252525FF srgba(37,37,37,1)
38: (38,38,38,1) #262626FF grey15
39: (39,39,39,1) #272727FF srgba(39,39,39,1)
40: (40,40,40,1) #282828FF srgba(40,40,40,1)
41: (41,41,41,1) #292929FF grey16
42: (42,42,42,1) #2A2A2AFF srgba(42,42,42,1)
43: (43,43,43,1) #2B2B2BFF grey17
44: (44,44,44,1) #2C2C2CFF srgba(44,44,44,1)
45: (45,45,45,1) #2D2D2DFF srgba(45,45,45,1)
46: (46,46,46,1) #2E2E2EFF grey18
47: (47,47,47,1) #2F2F2FFF srgba(47,47,47,1)
48: (48,48,48,1) #303030FF grey19
49: (49,49,49,1) #313131FF srgba(49,49,49,1)
50: (50,50,50,1) #323232FF srgba(50,50,50,1)
51: (51,51,51,1) #333333FF grey20
52: (52,52,52,1) #343434FF srgba(52,52,52,1)
53: (53,53,53,1) #353535FF srgba(53,53,53,1)
54: (54,54,54,1) #363636FF grey21
55: (55,55,55,1) #373737FF srgba(55,55,55,1)
56: (56,56,56,1) #383838FF grey22
57: (57,57,57,1) #393939FF srgba(57,57,57,1)
58: (58,58,58,1) #3A3A3AFF srgba(58,58,58,1)
59: (59,59,59,1) #3B3B3BFF grey23
60: (60,60,60,1) #3C3C3CFF srgba(60,60,60,1)
61: (61,61,61,1) #3D3D3DFF grey24
62: (62,62,62,1) #3E3E3EFF srgba(62,62,62,1)
63: (63,63,63,1) #3F3F3FFF srgba(63,63,63,1)
64: (64,64,64,1) #404040FF grey25
65: (65,65,65,1) #414141FF srgba(65,65,65,1)
66: (66,66,66,1) #424242FF grey26
67: (67,67,67,1) #434343FF srgba(67,67,67,1)
68: (68,68,68,1) #444444FF srgba(68,68,68,1)
69: (69,69,69,1) #454545FF grey27
70: (70,70,70,1) #464646FF srgba(70,70,70,1)
71: (71,71,71,1) #474747FF grey28
72: (72,72,72,1) #484848FF srgba(72,72,72,1)
73: (73,73,73,1) #494949FF srgba(73,73,73,1)
74: (74,74,74,1) #4A4A4AFF grey29
75: (75,75,75,1) #4B4B4BFF srgba(75,75,75,1)
76: (76,76,76,1) #4C4C4CFF srgba(76,76,76,1)
77: (77,77,77,1) #4D4D4DFF grey30
78: (78,78,78,1) #4E4E4EFF srgba(78,78,78,1)
79: (79,79,79,1) #4F4F4FFF grey31
80: (80,80,80,1) #505050FF srgba(80,80,80,1)
81: (81,81,81,1) #515151FF srgba(81,81,81,1)
82: (82,82,82,1) #525252FF grey32
83: (83,83,83,1) #535353FF srgba(83,83,83,1)
84: (84,84,84,1) #545454FF grey33
85: (85,85,85,1) #555555FF srgba(85,85,85,1)
86: (86,86,86,1) #565656FF srgba(86,86,86,1)
87: (87,87,87,1) #575757FF grey34
88: (88,88,88,1) #585858FF srgba(88,88,88,1)
89: (89,89,89,1) #595959FF grey35
90: (90,90,90,1) #5A5A5AFF srgba(90,90,90,1)
91: (91,91,91,1) #5B5B5BFF srgba(91,91,91,1)
92: (92,92,92,1) #5C5C5CFF grey36
93: (93,93,93,1) #5D5D5DFF srgba(93,93,93,1)
94: (94,94,94,1) #5E5E5EFF grey37
95: (95,95,95,1) #5F5F5FFF srgba(95,95,95,1)
96: (96,96,96,1) #606060FF srgba(96,96,96,1)
97: (97,97,97,1) #616161FF grey38
98: (98,98,98,1) #626262FF srgba(98,98,98,1)
99: (99,99,99,1) #636363FF grey39
100: (100,100,100,1) #646464FF srgba(100,100,100,1)
101: (101,101,101,1) #656565FF srgba(101,101,101,1)
102: (102,102,102,1) #666666FF grey40
103: (103,103,103,1) #676767FF srgba(103,103,103,1)
104: (104,104,104,1) #686868FF srgba(104,104,104,1)
105: (105,105,105,1) #696969FF DimGray
106: (106,106,106,1) #6A6A6AFF srgba(106,106,106,1)
107: (107,107,107,1) #6B6B6BFF grey42
108: (108,108,108,1) #6C6C6CFF srgba(108,108,108,1)
109: (109,109,109,1) #6D6D6DFF srgba(109,109,109,1)
110: (110,110,110,1) #6E6E6EFF grey43
111: (111,111,111,1) #6F6F6FFF srgba(111,111,111,1)
112: (112,112,112,1) #707070FF grey44
113: (113,113,113,1) #717171FF srgba(113,113,113,1)
114: (114,114,114,1) #727272FF srgba(114,114,114,1)
115: (115,115,115,1) #737373FF grey45
116: (116,116,116,1) #747474FF srgba(116,116,116,1)
117: (117,117,117,1) #757575FF grey46
118: (118,118,118,1) #767676FF srgba(118,118,118,1)
119: (119,119,119,1) #777777FF srgba(119,119,119,1)
120: (120,120,120,1) #787878FF grey47
121: (121,121,121,1) #797979FF srgba(121,121,121,1)
122: (122,122,122,1) #7A7A7AFF grey48
123: (123,123,123,1) #7B7B7BFF srgba(123,123,123,1)
124: (124,124,124,1) #7C7C7CFF srgba(124,124,124,1)
125: (125,125,125,1) #7D7D7DFF grey49
126: (126,126,126,1) #7E7E7EFF gray
127: (127,127,127,1) #7F7F7FFF grey50
128: (128,128,128,1) #808080FF fractal
129: (129,129,129,1) #818181FF srgba(129,129,129,1)
130: (130,130,130,1) #828282FF grey51
131: (131,131,131,1) #838383FF srgba(131,131,131,1)
132: (132,132,132,1) #848484FF srgba(132,132,132,1)
133: (133,133,133,1) #858585FF grey52
134: (134,134,134,1) #868686FF srgba(134,134,134,1)
135: (135,135,135,1) #878787FF grey53
136: (136,136,136,1) #888888FF srgba(136,136,136,1)
137: (137,137,137,1) #898989FF srgba(137,137,137,1)
138: (138,138,138,1) #8A8A8AFF grey54
139: (139,139,139,1) #8B8B8BFF srgba(139,139,139,1)
140: (140,140,140,1) #8C8C8CFF grey55
141: (141,141,141,1) #8D8D8DFF srgba(141,141,141,1)
142: (142,142,142,1) #8E8E8EFF srgba(142,142,142,1)
143: (143,143,143,1) #8F8F8FFF grey56
144: (144,144,144,1) #909090FF srgba(144,144,144,1)
145: (145,145,145,1) #919191FF grey57
146: (146,146,146,1) #929292FF srgba(146,146,146,1)
147: (147,147,147,1) #939393FF srgba(147,147,147,1)
148: (148,148,148,1) #949494FF grey58
149: (149,149,149,1) #959595FF srgba(149,149,149,1)
150: (150,150,150,1) #969696FF grey59
151: (151,151,151,1) #979797FF srgba(151,151,151,1)
152: (152,152,152,1) #989898FF srgba(152,152,152,1)
153: (153,153,153,1) #999999FF grey60
154: (154,154,154,1) #9A9A9AFF srgba(154,154,154,1)
155: (155,155,155,1) #9B9B9BFF srgba(155,155,155,1)
156: (156,156,156,1) #9C9C9CFF grey61
157: (157,157,157,1) #9D9D9DFF srgba(157,157,157,1)
158: (158,158,158,1) #9E9E9EFF grey62
159: (159,159,159,1) #9F9F9FFF srgba(159,159,159,1)
160: (160,160,160,1) #A0A0A0FF srgba(160,160,160,1)
161: (161,161,161,1) #A1A1A1FF grey63
162: (162,162,162,1) #A2A2A2FF srgba(162,162,162,1)
163: (163,163,163,1) #A3A3A3FF grey64
164: (164,164,164,1) #A4A4A4FF srgba(164,164,164,1)
165: (165,165,165,1) #A5A5A5FF srgba(165,165,165,1)
166: (166,166,166,1) #A6A6A6FF grey65
167: (167,167,167,1) #A7A7A7FF srgba(167,167,167,1)
168: (168,168,168,1) #A8A8A8FF grey66
169: (169,169,169,1) #A9A9A9FF DarkGray
170: (170,170,170,1) #AAAAAAFF srgba(170,170,170,1)
171: (171,171,171,1) #ABABABFF grey67
172: (172,172,172,1) #ACACACFF srgba(172,172,172,1)
173: (173,173,173,1) #ADADADFF grey68
174: (174,174,174,1) #AEAEAEFF srgba(174,174,174,1)
175: (175,175,175,1) #AFAFAFFF srgba(175,175,175,1)
176: (176,176,176,1) #B0B0B0FF grey69
177: (177,177,177,1) #B1B1B1FF srgba(177,177,177,1)
178: (178,178,178,1) #B2B2B2FF srgba(178,178,178,1)
179: (179,179,179,1) #B3B3B3FF grey70
180: (180,180,180,1) #B4B4B4FF srgba(180,180,180,1)
181: (181,181,181,1) #B5B5B5FF grey71
182: (182,182,182,1) #B6B6B6FF srgba(182,182,182,1)
183: (183,183,183,1) #B7B7B7FF srgba(183,183,183,1)
184: (184,184,184,1) #B8B8B8FF grey72
185: (185,185,185,1) #B9B9B9FF srgba(185,185,185,1)
186: (186,186,186,1) #BABABAFF grey73
187: (187,187,187,1) #BBBBBBFF srgba(187,187,187,1)
188: (188,188,188,1) #BCBCBCFF srgba(188,188,188,1)
189: (189,189,189,1) #BDBDBDFF grey74
190: (190,190,190,1) #BEBEBEFF grey
191: (191,191,191,1) #BFBFBFFF grey75
192: (192,192,192,1) #C0C0C0FF silver
193: (193,193,193,1) #C1C1C1FF srgba(193,193,193,1)
194: (194,194,194,1) #C2C2C2FF grey76
195: (195,195,195,1) #C3C3C3FF srgba(195,195,195,1)
196: (196,196,196,1) #C4C4C4FF grey77
197: (197,197,197,1) #C5C5C5FF srgba(197,197,197,1)
198: (198,198,198,1) #C6C6C6FF srgba(198,198,198,1)
199: (199,199,199,1) #C7C7C7FF grey78
200: (200,200,200,1) #C8C8C8FF srgba(200,200,200,1)
201: (201,201,201,1) #C9C9C9FF grey79
202: (202,202,202,1) #CACACAFF srgba(202,202,202,1)
203: (203,203,203,1) #CBCBCBFF srgba(203,203,203,1)
204: (204,204,204,1) #CCCCCCFF grey80
205: (205,205,205,1) #CDCDCDFF srgba(205,205,205,1)
206: (206,206,206,1) #CECECEFF srgba(206,206,206,1)
207: (207,207,207,1) #CFCFCFFF grey81
208: (208,208,208,1) #D0D0D0FF srgba(208,208,208,1)
209: (209,209,209,1) #D1D1D1FF grey82
210: (210,210,210,1) #D2D2D2FF srgba(210,210,210,1)
211: (211,211,211,1) #D3D3D3FF LightGray
212: (212,212,212,1) #D4D4D4FF grey83
213: (213,213,213,1) #D5D5D5FF srgba(213,213,213,1)
214: (214,214,214,1) #D6D6D6FF grey84
215: (215,215,215,1) #D7D7D7FF srgba(215,215,215,1)
216: (216,216,216,1) #D8D8D8FF srgba(216,216,216,1)
217: (217,217,217,1) #D9D9D9FF grey85
218: (218,218,218,1) #DADADAFF srgba(218,218,218,1)
219: (219,219,219,1) #DBDBDBFF grey86
220: (220,220,220,1) #DCDCDCFF gainsboro
221: (221,221,221,1) #DDDDDDFF srgba(221,221,221,1)
222: (222,222,222,1) #DEDEDEFF grey87
223: (223,223,223,1) #DFDFDFFF srgba(223,223,223,1)
224: (224,224,224,1) #E0E0E0FF grey88
225: (225,225,225,1) #E1E1E1FF srgba(225,225,225,1)
226: (226,226,226,1) #E2E2E2FF srgba(226,226,226,1)
227: (227,227,227,1) #E3E3E3FF grey89
228: (228,228,228,1) #E4E4E4FF srgba(228,228,228,1)
229: (229,229,229,1) #E5E5E5FF grey90
230: (230,230,230,1) #E6E6E6FF srgba(230,230,230,1)
231: (231,231,231,1) #E7E7E7FF srgba(231,231,231,1)
232: (232,232,232,1) #E8E8E8FF grey91
233: (233,233,233,1) #E9E9E9FF srgba(233,233,233,1)
234: (234,234,234,1) #EAEAEAFF srgba(234,234,234,1)
235: (235,235,235,1) #EBEBEBFF grey92
236: (236,236,236,1) #ECECECFF srgba(236,236,236,1)
237: (237,237,237,1) #EDEDEDFF grey93
238: (238,238,238,1) #EEEEEEFF srgba(238,238,238,1)
239: (239,239,239,1) #EFEFEFFF srgba(239,239,239,1)
240: (240,240,240,1) #F0F0F0FF grey94
241: (241,241,241,1) #F1F1F1FF srgba(241,241,241,1)
242: (242,242,242,1) #F2F2F2FF grey95
243: (243,243,243,1) #F3F3F3FF srgba(243,243,243,1)
244: (244,244,244,1) #F4F4F4FF srgba(244,244,244,1)
245: (245,245,245,1) #F5F5F5FF grey96
246: (246,246,246,1) #F6F6F6FF srgba(246,246,246,1)
247: (247,247,247,1) #F7F7F7FF grey97
248: (248,248,248,1) #F8F8F8FF srgba(248,248,248,1)
249: (249,249,249,1) #F9F9F9FF srgba(249,249,249,1)
250: (250,250,250,1) #FAFAFAFF grey98
251: (255,0,0,1) #FF0000FF red
252: (255,0,0,1) #FF0000FF red
253: (255,0,0,1) #FF0000FF red
254: (255,0,255,1) #FF00FFFF magenta
255: (255,255,0,1) #FFFF00FF yellow
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 256x256+0+0
Dispose: Undefined
Iterations: 0
Compression: Zip
Orientation: Undefined
Convex hull: 0,0 74,0 74,24 70,29 42,44 25,44 0,42 0,0
Minimum bounding box: 74,0 74,44 0,44 0,0
Properties:
date:create: 2021-06-10T17:54:15+00:00
date:modify: 2021-06-09T19:37:38+00:00
minimum-bounding-box:_p: 0,0
minimum-bounding-box:_q: 74,0
minimum-bounding-box:_v: 42,44
minimum-bounding-box:angle: 0
minimum-bounding-box:area: 3256
minimum-bounding-box:height: 74
minimum-bounding-box:unrotate: -0
minimum-bounding-box:width: 44
png:IHDR.bit-depth-orig: 8
png:IHDR.bit_depth: 8
png:IHDR.color-type-orig: 3
png:IHDR.color_type: 3 (Indexed)
png:IHDR.interlace_method: 0 (Not interlaced)
png:IHDR.width,height: 256, 256
png:pHYs: x_res=3780, y_res=3780, units=1
png:PLTE.number_colors: 256
png:sRGB: intent=0 (Perceptual Intent)
signature: a428cc747e293d3474bc0eddafe73654918b5aace85cbb1dffcc2f5205ea061a
Artifacts:
verbose: true
Tainted: False
Filesize: 1737B
Number pixels: 65536
Pixels per second: 45.2629MP
User time: 0.000u
Elapsed time: 0:01.001
Version: ImageMagick 7.0.10-55 Q16 x86_64 2021-01-05 https://imagemagick.org
It looks like index 254, i.e. 0xFE
is the one!
254: (255,0,255,1) #FF00FFFF magenta
Updated https://tibiamaps.io/guides/minimap-file-format#pathfinding-data as well.
I think this is now addressed. Closing…
To be clear, we might still need to re-explore the affected areas, as Lee explained in his comment, but I don’t think we need to keep the issue open for that.
For future reference: #161 is where @LeeKunTibia contributed the re-explored map files.
According to this guide: https://tibiamaps.io/guides/minimap-file-format #FAFAFA color on the path map is reserved to "undexplored" tiles. In my input files (aka, what i found in local-app-data Tibia files) color for undexplored tiles is magenta. I dunno if its just me (I have Windows 10 and downloaded Tibia like 2 months ago). I dunno how it was before, but maybe you are translating magenta into #FAFAFA color? Also, why in ground lvl we have all unexplored tiles yellow not #FAFAFA?
Do you (in some cases) translate: a) magenta into #FAFAFA? b) #FAFAFA into yellow? If yes, is see the problem here.
What I see in my tibia files, is that #FAFAFA color is used to all ocean floors. Like that: (this is this area: https://tibiamaps.io/map#31924,31072,8:1) But in your path maps this regions are pure yellow. No walkable tiles there.
I checked some underwater locations and: a) Calassa - has #FAFAFA as ocean floor tile color b) Both Svargrond Sea Serpents: yellow floor c) Yalahar Quaras: yellow floor d) Libery Bay Quara cave (underwater part): yellow floor e) Port Hore Quara/Water Elemental cave (underwater part): yellow floor
As I see both #FAFAFA (almost obvious) and yellow (obvious) tile colors are not counted to your 3,602,917 explored walkable tiles number. Is I exclude both colors and count all grey tiles on your path maps I get exacly that number. But if i include #FAFAFA (what is Calassa walkable sea floor color on your map) I get number of 71,397,953 tiles that is a bit to optimistic ;)