SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   DW Mission Designers' Forum (https://www.subsim.com/radioroom/forumdisplay.php?f=191)
-   -   Writing map lines in a mission in text format? (https://www.subsim.com/radioroom/showthread.php?t=229671)

Stewy1 02-12-17 05:21 AM

Writing map lines in a mission in text format?
 
Hi guys,

Just a quick question - I've been slaving away on my Virgina Capes Map - it's coming along - but I've only completed the northern ranges so far...

http://img.photobucket.com/albums/v3...pstdtklj88.png

Looking at the mission file in notepad, it has the lines described as:

Quote:

LINE 205.879395 393.489410 178.682770 394.860596
LINE 70.727631 393.757446 57.436459 393.175690
LINE 57.436459 393.175690 72.495316 360.976318
LINE 72.495316 360.976318 72.858589 360.702179
While they're clearly coordinates, they don't match up with the lat/long coordinates in the map.

Question is, do you recognise the coordinates above? Is there a way to convert them to lat/long?

If there is, the map will be hyper-accurate and much, much quicker to make!

Cheers guys
Stew

p7p8 02-12-17 11:34 AM

Map lines/objects are related only to "main coordinates"

VERSION 3
OWNALLIANCE 0
DIFFICULTY 1
TOTALNUMSIDES 0
NUMDRIVEABLES 0
MONTH 1
WORLDGRID 2 <- map size. 2 is default but you can try 3 or even 4 (~1500x1500 nmi)
LATLONG 51.727554 159.503586 <- "main coordinates" for terrain map
;
SEASTATE 3
MDR 0 0 0
BOTTOMTYPE 0
TIMEOFDAY 12
WEATHER 0
CLOUDHEIGHT 4500
SSP 0

MAPLINES
LINE 193.638031 346.712830 318.119354 216.911774
END

If you add 2 to red marked values (LATLONG 53.727554 161.503586), map lines coordinates stay the same but terrain map will be moved.

http://i.imgur.com/HRepmBI.gif

Pirate 02-12-17 03:08 PM

Quote:

Originally Posted by p7p8 (Post 2465437)
WORLDGRID 2 <- map size. 2 is default but you can try 3 or even 4

Wow that's awesome, would love some maps with WORLDGRID 4 (max allowed size for a theater of operations in DW) and many random platforms and groups also on random locations, including biologics and icebergs(if suitable for the location)!!! :D

p7p8 02-12-17 05:01 PM

WORLDGRID 4 could be interesting option for missions with controlable SSBN's

FPSchazly 02-12-17 05:11 PM

So the standard map size is 600 nmi x 600 nmi. The coordinates correspond to miles from the TOP LEFT corner of the map in the mission editor.

So, this line:
Quote:

LINE 70.727631 393.757446 57.436459 393.175690
goes from (70.72, 393.76) to (57.436, 393.1757)

(70.72, 393.76) means 70.72 miles east of the top left corner, 393.76 miles south of the top left corner, etc. etc.

(0,0) is the top left, (600,0) is the top right, (600,600) is the bottom right, (0,600) is the bottom left.


So, to translate these "map coordinates" into latitude and longitude is not a trivial endeavor. A friend and I made a program a while back to triangulate buoy contacts for you, and it could be modified to do this process of converting LAT/LON to Dangerous Waters "map coordinates".

This website here could help you out, I used it to develop my program: http://www.movable-type.co.uk/scripts/latlong.html

Stewy1 02-13-17 01:28 AM

Thanks Chazly - and all - great answers!

I think my Maths knowledge is not up to doing those conversions though...

I remember a guy once who programed a scientific calculator to convert 1:25000 grid coordinates on a map (to 8 and 10 figures - very accurate) to lat/long coordinates on the globe (is that WGS 84? I can't remember!)

He was a very clever guy though...my head hurts just thinking about it!

Any help or explanations appreciated - but I realise I might just have to put the lines on by hand and 'mark one eyeball' ;)

Cheers guys
Stew

FPSchazly 02-13-17 10:19 PM

I'm going to try and make a small program that will convert latitude/longitude into map coordinates. I think it could definitely be useful to the community based on what you've shown here and what I've seen before.

Stewy1 02-14-17 12:49 AM

Thanks Chazly for your help - I know you have a great deal of skill in Mathematics.

I last passed Math when I was 15!:doh:

I'd be very keen to try your program, when it's released mate!

Stew


All times are GMT -5. The time now is 04:36 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.