Daggerfall Mod talk:WOODS.WLD format
World Units to Map PixelsEdit
There conversion factor between World Units and Map Pixels doesn't seem to be quite perfect, so it looks like I'll need to whip up a character with max running and swimming skills and go explore the four corners. Grrr. I hate doing the grunt-work, but what is one to do? In the MapTable.* files the Domain of longitude and latitude appear to be (47104, 32385024) and (36865, 16328705) respectively, but in MapPItem I find (51200, 32389120) and (40961, 16332801), so that's a real bummer. I'll know which is authoritative by going to a known location and saving in a town or two. Uniblab (talk) 01:11, 30 November 2020 (UTC)
- So I roll up a new toon, head over to Arkmoth Borough (because it borders a map edge), save, whip up a quick program to check my position and compare it to the position in the MapPItem file. MapPItem record says {X=32387072,Y=8761345}. My character is at the SW corner of the borough, and savetree.dat reads {X=32387080,Y=8761347}. So we can peg this at the penultimate (second-to-last) pixel, because the last pixel is off-map.
- Now to go to very map edge and give things another go. Based on those coordinates I should be able to provide the correct formula for World Units to Map Pixels. Uniblab (talk) 02:50, 30 November 2020 (UTC)
-
- So I do have north-south extents worked out. The map extends as far south as 16384, to as far north as 16367616, both given in World Units. When we normalize this to 16351232 spread over 2500 subpixels, or 500 map pixels, we find each pixel is on the order of 32702.464 World Units. I suspect we will find similar for longitude as well. Sadly Longitude is a bit more of a hassle to verify w/o maxxing out endurance, speed, running, and swimming. Uniblab (talk) 04:46, 30 November 2020 (UTC)