Marianas New 'Detailed Island Map' Problem
Posted: Thu 29 Nov 2007 1:56 am
~S~
Currently there is the whole sector (a HUGE map) and a handful of islands views. The whole sector, everything is tiny. In the detailed island views, you get higher resolution of that island.
We have decided to add a new level of detail to the Marianas Campaign in between these two variations. Something that balances a good amount of water, but allows a somewhat higher resolution of the islands, or part of an island. (reasoning, long story will provide later if needed)
Okay, the concept in MP is fairly straight forward. I have copied a php file and replaced the values in it. I have made a screen shot of the area I have defined. I have checked and double checked EVERY value and they are spot on.
My problem is that units are being displayed in the wrong position.
Here is the new php file details:
$CampaignMap="Marianas";
$pageTitle="Scorched Earth Mission HQ"; //Title bar text
$pageName="Marianas Saipan NW"; //Title in top left corner of page
$GeographicMapImage="Marianas-SaipanNorthWest.jpg"; //Bitmap of geographic area
$maxpX=1147; //Size of map image in pixels in x direction
$mincX=50000; //Min longitude of image in FB coords
$maxcX=150000; //Max longitude of image in FB coords
$maxpY=803; // Size of map image in pixels in y direction
$mincY=230000; //Min latitude of image in FB coords
$maxcY=300000; //Max latitude of image in FB coords
$mapOffsetX=0.0; //FB longitude offset of map origin
$mapdivoffsetX=250; //Pixel offset of left edge of map image DIV
$mapOffsetY=0.0; //FB latitude offset of map origin
$mapdivoffsetY=0; //Pixel offset of top edge of map image DIV
$ShowRoads=false; //Turns on display of pre-defined road routes
$ShowRoadWP=false; //Turns on display of pre-defined road route waypoints
$ShowRailways=false; //Turns on display of pre-defined rail routes
$ShowRailwayWP=false; //Turns on display of pre-defined rail route waypoints
To test this I have a resupply_point setup and a tank at an airfield. Both of which are located spot on grid points.
Resupply Point:
'0', 'Marianas', 'r', 'Air_Supply', 60000, 290000, 2500
The tank is defined as
2_Static vehicles.artillery.Artillery$PzV_II 2 140000.00 235000.00 360.00 0.0 0
You can see that both the 'items' are within the boundaries of the map. But they don't display in the correct locations. And they aren't equal, they error seems to be greater on the lower right than the upper left.
In the upper left, the supply point is only off by 7 pixels (1-2km) in the up down (no error left to right). However, the tank in the lower right is off by much more and in both directions (it should be close the the south east side of the airfield, but it's actually in the ocean north west of the field.
I've checked everything, even the picture I've looked over time and time again. The dimensions are correct, Cropped EXACTLY on grid lines: I even looked at the other pics and noticed they are 71dpi, so I converted my JPG frm 72 to 71 dpi. (that actually made it worse. )
This is in preliminary to creating a whole new campaign, not in SE.
I'd like to know what I'm overlooking.
Best regards,
Raven
PS I can provide pictures and files if needed, just let me know and I will setup an FTP or email them.
Mission Planner v4.360
Currently there is the whole sector (a HUGE map) and a handful of islands views. The whole sector, everything is tiny. In the detailed island views, you get higher resolution of that island.
We have decided to add a new level of detail to the Marianas Campaign in between these two variations. Something that balances a good amount of water, but allows a somewhat higher resolution of the islands, or part of an island. (reasoning, long story will provide later if needed)
Okay, the concept in MP is fairly straight forward. I have copied a php file and replaced the values in it. I have made a screen shot of the area I have defined. I have checked and double checked EVERY value and they are spot on.
My problem is that units are being displayed in the wrong position.
Here is the new php file details:
$CampaignMap="Marianas";
$pageTitle="Scorched Earth Mission HQ"; //Title bar text
$pageName="Marianas Saipan NW"; //Title in top left corner of page
$GeographicMapImage="Marianas-SaipanNorthWest.jpg"; //Bitmap of geographic area
$maxpX=1147; //Size of map image in pixels in x direction
$mincX=50000; //Min longitude of image in FB coords
$maxcX=150000; //Max longitude of image in FB coords
$maxpY=803; // Size of map image in pixels in y direction
$mincY=230000; //Min latitude of image in FB coords
$maxcY=300000; //Max latitude of image in FB coords
$mapOffsetX=0.0; //FB longitude offset of map origin
$mapdivoffsetX=250; //Pixel offset of left edge of map image DIV
$mapOffsetY=0.0; //FB latitude offset of map origin
$mapdivoffsetY=0; //Pixel offset of top edge of map image DIV
$ShowRoads=false; //Turns on display of pre-defined road routes
$ShowRoadWP=false; //Turns on display of pre-defined road route waypoints
$ShowRailways=false; //Turns on display of pre-defined rail routes
$ShowRailwayWP=false; //Turns on display of pre-defined rail route waypoints
To test this I have a resupply_point setup and a tank at an airfield. Both of which are located spot on grid points.
Resupply Point:
'0', 'Marianas', 'r', 'Air_Supply', 60000, 290000, 2500
The tank is defined as
2_Static vehicles.artillery.Artillery$PzV_II 2 140000.00 235000.00 360.00 0.0 0
You can see that both the 'items' are within the boundaries of the map. But they don't display in the correct locations. And they aren't equal, they error seems to be greater on the lower right than the upper left.
In the upper left, the supply point is only off by 7 pixels (1-2km) in the up down (no error left to right). However, the tank in the lower right is off by much more and in both directions (it should be close the the south east side of the airfield, but it's actually in the ocean north west of the field.
I've checked everything, even the picture I've looked over time and time again. The dimensions are correct, Cropped EXACTLY on grid lines: I even looked at the other pics and noticed they are 71dpi, so I converted my JPG frm 72 to 71 dpi. (that actually made it worse. )
This is in preliminary to creating a whole new campaign, not in SE.
I'd like to know what I'm overlooking.
Best regards,
Raven
PS I can provide pictures and files if needed, just let me know and I will setup an FTP or email them.
Mission Planner v4.360