DayZ Navigator | Help Needed

Posts 1–9 of 9 · Page 1 of 1
DayZ Navigator | Help Needed
So, I've been looking into adding taviana support to Dayz Navigator.... and I have successfully managed to get Navi to load Taviana but the markers are not fitting too the map correctly, here is an example of what can be seen when you try to use navigator with origins at the moment (NOTE: the red markers are SUV's I've changed then for personal use)




So the markers are loading correctly, and if you look at the design of the map they would fit on the map right if the map was loading correctly...

I located the code for maps in Payload.h file, it looks like this:

It'd be easier to view this via Notepad++ so ive attached the download for Payload.h

My request is that if someone can fix the coding of this so that the markers fit too the map correctly, I will create the Origins Edition of Dayz Navigator, you will be credited for your help within the program aswell...

This is the key bit of code for taviana map:
Code:
else if(requestmap == \"taviana\") {\r\n    //alert(\"loading taviana\");\r\n    var mapTileCounts = {\r\n        2: {\r\n            x: 3,\r\n            y: 3\r\n        },\r\n        3: {\r\n            x: 7,\r\n            y: 6\r\n        },\r\n        4: {\r\n            x: 15,\r\n            y: 13\r\n        },\r\n        5: {\r\n            x: 31,\r\n            y: 26\r\n        },\r\n        6: {\r\n            x: 63,\r\n            y: 53\r\n        }\r\n    };\r\n    var mapOriginY=1.920978;\r\n    var mapOriginX=0.284574;\r\n    var mapWidthXY=14.524823;\r\n    var mapLatCorM=0.968807;\r\n    var mapLngCorM=0.968165;\r\n    var mapLatCorB=-3.03538;\r\n    var mapLngCorB=0.285877;\r\n    function ChernarusProjection() {\r\n        this.origin = new google.maps.LatLng(mapOriginY, mapOriginX);\r\n        this.size = mapWidthXY;\r\n        this.unitsPerDegree = 256 / this.size\r\n    }\r\n    ChernarusProjection.prototype.fromLatLngToPoint = function (a) {\r\n        var c = (a.lng() - this.origin.lng()) * this.unitsPerDegree,\r\n            a = (a.lat() - this.origin.lat()) * this.unitsPerDegree;\r\n        return new google.maps.Point(c, a)\r\n    };\r\n    ChernarusProjection.prototype.fromPointToLatLng = function (a, c) {\r\n        var b = a.x,\r\n            d = 0 > a.y ? 0 : a.y,\r\n            d = (256 < d ? 256 : d) / this.unitsPerDegree + this.origin.lat(),\r\n            b = b / this.unitsPerDegree + this.origin.lng();\r\n        return new google.maps.LatLng(d, b, c)\r\n    };\r\n    var dayzMapTypes = [new google.maps.ImageMapType({\r\n        getTileUrl: function (a, c) {\r\n            return 0 > a.x || 0 > a.y || a.x > mapTileCounts[c].x || a.y > mapTileCounts[c].y ? null : dayz_staticUrl + \"tiles/taviana/\" + c + \"/\" + a.x + \"_\" + a.y + \".png\"\r\n        },\r\n        tileSize: new google.maps.Size(256, 256),\r\n        minZoom: 2,\r\n        maxZoom: 6,\r\n        name: \"taviana\"\r\n    })],\r\n        dayzMapNames = [\"taviana\"],\r\n        dayzProjections = [new ChernarusProjection],\r\n        dayzProjection = dayzProjections[0],\r\n        dayzCenter = new google.maps.LatLng(mapOriginY+0.5*mapWidthXY, mapOriginX+0.5*mapWidthXY),\r\n        dayzMapId = 1;\r\n    var dayzMap, dayzQueuedSets = [],\r\n        dayzMarkers = [];
SKYPE ME IF YOU KNOW HOW TO FIX IT: ClickTunes




https://www.virustotal.com/en/file/3...is/1376182924/
Payload_mpgh.net.rar20 KB · 8 downloads Clean
Add virus scans next time, please....

Approved.
Quote Originally Posted by Hero View Post
Add virus scans next time, please....

Approved.
understood, didn't think it needed one as it's just a .h file
Quote Originally Posted by Scenic. View Post
understood, didn't think it needed one as it's just a .h file
I know im newb but could it be this?
x: 13-1,\r\n y: 13-1\r\n },\r\n 5: {\r\n x: 25-1,\r\n y: 25-1\r\n },\r\n 6: {\r\n x: 50-1,\r\n y: 50-1\r\n }\r\n };\r\n var mapOriginY=1.920978;\r\n var mapOriginX=0.284574;\r\n var mapWidthXY=14.524823;\r\n var mapLatCorM=1.09365;\r\n var mapLngCorM=1.092;\r\n var mapLatCorB=-3.68074;\r\n var mapLngCorB=0.283398;\r\n function ChernarusProjection() {\r\n
Completely a guess
Quote Originally Posted by `Rejected View Post


I know im newb but could it be this?

Completely a guess
Quite possibly, but what part of that :P

---------- Post added at 05:58 AM ---------- Previous post was at 05:57 AM ----------

mapWidthXY=14.524823 I think :P
Quote Originally Posted by Scenic. View Post
Quite possibly, but what part of that :P

---------- Post added at 05:58 AM ---------- Previous post was at 05:57 AM ----------

mapWidthXY=14.524823 I think :P

Yeah and what about this bit cause it says chernarus "r\n function ChernarusProjection() {\r\n"
Quote Originally Posted by `Rejected View Post



Yeah and what about this bit cause it says chernarus "r\n function ChernarusProjection() {\r\n"
Na I think that's just related to how it loads the map :P
Quote Originally Posted by Scenic. View Post
Na I think that's just related to how it loads the map :P
How are you going so far?
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us