SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Silent Hunter 4: Wolves of the Pacific (https://www.subsim.com/radioroom/forumdisplay.php?f=202)
-   -   Coordinates Conversion in Missions (https://www.subsim.com/radioroom/showthread.php?t=242698)

skirich 10-02-19 07:15 PM

Coordinates Conversion in Missions
 
Anyone know the conversion formula to change whats written in the .MIS files into real Long/Lat?


It appears the files are saving a long float number, and the game changes it to real long/lat.


The mission editor has the coordinates on the bottom of the screen in both game version and long/lat. I cant see a correlation and the normal ways to convert various coordinate types dosent seem to fit here so I assume these numbers are custom to the game.
game versions example ...

Long=13819427.000000
Lat=723967.375000

Pyryck 10-04-19 09:53 PM

Hopefully someone in the know will provide a definitive answer.

I recently tried to circumvent the notorious save game TC corruption by "moving" my sub from Luzon Straights down to Fremantle so I could save the awesomely long list of sunk ships without having to journey 4000nm with only 256 TC. Didn't work and all I got for my effort was a CTD.

I'll figure out a way to get past the corruption in the save game files one of these days. :wah:

ETR3(SS) 10-05-19 12:46 AM

It's a measurement in meters from the equator and prime meridian.

propbeanie 10-05-19 01:37 AM

:hmmm: ... I thought I had posted here, but "ditto" what ETR3(SS) said... If you go east from Prime Meridian, the "highest" number is 21600000 (???), but if you go west, you only get to 21599998 - I think... can't find my notes from yesterday now... but anyway, the game can't "share" the coordinates, so you've got 180°00'E, and then the 179°59'59"W, or as SH4 says, -179.999283 or some-such... I also had the usable latitude (for what that's worth), which is short of 90°, but I can't find my notes. Don't forget that the SH4 "world" is flat... er - sort of... more like a cylinder that you can only go around one and a half times... I don't know what kind of formula you could use... Minutes of longitude are roughly a nautical mile, 2025 yards, or 1842 meters, correct?... er-TILT! math is not my strong suit :salute:

Pyryck 10-05-19 03:09 AM

Quote:

Originally Posted by ETR3(SS) (Post 2630840)
It's a measurement in meters from the equator and prime meridian.

Damn, in the Pacific we're a long ways away from Greenwich in England. At least we're fairly close to the equator for most activities in game.

Time to find a global map overlayed with meters...or just stick some pins in the map of the Pacific and record the coords that way.

break...

Propbeanie - FYI, that measurement of longitude applies only at the equator. The further north or south you go, distance between lines of longitude shrinks. So always measure distance on the side of a chart around the center of the latitude entries since distances between lines of latitude don't change.

dayum, 34yrs since QM "A" school in Orlando and I still remember a little!

propbeanie 10-05-19 09:45 AM

Exactly... unless you're using the SH4 map and its version of the Mercator Projection... :har:

Pisces 10-07-19 11:36 AM

Quote:

Originally Posted by ETR3(SS) (Post 2630840)
It's a measurement in meters from the equator and prime meridian.

On the map each degree in longitude or latitude is 120km, or 120,000. meters. Divide that by 1852 to get in nautical miles.

Check the coordinates on the map of any clear protruding peninsula near pole-circle areas (or any meridian far from Greenwich) and you'll find that those match up pretty nicely with degree-coordinates in Google Earth/Maps. As far as the resolution goes anyway.


All times are GMT -5. The time now is 09:34 PM.

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.