You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm starting to hate this project.
The markers are now even more accurate but, they're still not 100%.
I'm starting to think that it's beyond my capabilities.
Copy file name to clipboardexpand all lines: js/src/utils.1.js
+29-5
Original file line number
Diff line number
Diff line change
@@ -23,18 +23,42 @@ function normalize(value, min, max) {
23
23
returnMath.abs((value-min)/(max-min));
24
24
}
25
25
26
-
vargame_1_x=-4300.00;
27
-
vargame_1_y=8660.00;
28
26
29
-
vargame_2_x=5000.0;
30
-
vargame_2_y=-5700.0;
27
+
// :thinking: This seems to improve the accuracy. I think what the problem is, if that the images I'm using doesn't correlate 1:1 to the map I'm using as a reference
28
+
// Reference image (for those who care): https://drive.google.com/file/d/0B-zvE86DVcv2MXhVSHZnc01QWm8/view
29
+
// I'm pretty sure that the + and -'s account for the differences. So, maybe fine-tuning them will increase accuracy of the map.
30
+
31
+
// Top left corner of the GTA Map
32
+
vargame_1_x=-4000.00-230;
33
+
vargame_1_y=8000.00+420;
34
+
35
+
// Around this location: https://tgrhavoc.me/fuck_you/retard/MGoWO6nCymLmFC3M98bXbXL7C.png.
36
+
37
+
// It's the middle of the map and one tile up (in leaflet). You can find it's location on leaflet by running the line below in console
38
+
// var m = new L.Marker(Map.unproject([1024,1024*2],0)); m.addTo(Map);
39
+
vargame_2_x=400.00-30;
40
+
vargame_2_y=-300.0-340.00;
41
+
42
+
// Some information. I've spent too long looking at this to clearly see a patten
43
+
// 0 0 for leaflet = -4000 8000 for GTA
44
+
// mapWidth mapHeight for leaflet = 7000 -4000 for GTA
45
+
// 2048 3072 = 7000 -4000
46
+
// 4096 6144 = 7000 -4000
47
+
48
+
// Leaflet assumes tileSize = 1024
49
+
//
50
+
// tile 1 in game = tile 1 in leaflet: gta delta leaflet delta:
0 commit comments