HOW TO MERGE ONE MAP INTO ANOTHER USING MAP EXPORT

Post discussions and advice on TOAW scenario design here.

Moderators: ralphtricky, JAMiAM

Post Reply
User avatar
Curtis Lemay
Posts: 14493
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

HOW TO MERGE ONE MAP INTO ANOTHER USING MAP EXPORT

Post by Curtis Lemay »

In the “What’s New” under “v3.1.0.9 February 27, 2007”, item 17 says:

“Simple Map Import/Export (partial maps). You can edit the file to change the “Offset”, being defined as the offset from min of the starting position of the map that's being imported. It’s recommended to use even steps (2,4,6,8) for the X and Y axes to avoid artifacts. Min and max define the map size of the area to import.”

That’s probably not clear enough for most people. To clarify it, I’ve provided a “How to…” example as follows:
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 14493
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Step One

Post by Curtis Lemay »

Step One: Load the scenario with the map to merge (CFNA in this example) and export its map to an XML file using the “Save Map(XML) As…” option located on the “File” pulldown:

Image
Attachments
exportpulldown.gif
exportpulldown.gif (16.58 KiB) Viewed 588 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 14493
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Step Two

Post by Curtis Lemay »

Step Two: Open the exported XML file into an XML editor (Note that item 7 in this same section of the “What’s New” has a link to a free editor called XMLPad.):

On the highlighted line, note the values “offsetx”, “offsety”, “minx”, “miny”, “maxx”, and “maxy”.

offsetx is the horizontal distance into the target map that the merged map will start from.
offsety is the vertical distance down into the target map that the merged map will start from.
minx is the first horizontal location on the merged map that will be used.
miny is the first vertical location down the merged map that will be used.
maxx is the last horizontal location on the merged map that will be used.
maxy is the last vertical location down the merged map that will be used.


Image
Attachments
CFNAmapstart.gif
CFNAmapstart.gif (68.19 KiB) Viewed 589 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 14493
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Step Three

Post by Curtis Lemay »

Step Three: Edit those six parameters as desired and save the edited version.

Here I’ve set them so that the NW corner of the merged map will be offset to hex 40,40 in the target map, and hex columns 208 through 223 and hex rows 98 through 109 of the merged map will be used:


Image
Attachments
CFNAmapcropped.gif
CFNAmapcropped.gif (68.56 KiB) Viewed 591 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 14493
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

Step Four

Post by Curtis Lemay »

Step Four: Open the scenario with the target map (“France 1944 D-Day” in this example) and import the edited XML file using the “Open Map(XML)” option located on the “File” pulldown:

Image
Attachments
importpulldown.gif
importpulldown.gif (20.59 KiB) Viewed 589 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 14493
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Step Four

Post by Curtis Lemay »

The cropped map (columns 208-223 & rows 98-109) will be merged into the target map (at hex 40,40) as shown:

(Note that there is a bug with the placenames – they aren’t being merged and the target map’s placenames are being retained. That was once fixed, and will hopefully be fixed again down the line.)


Image
Attachments
CFNAmapmerged.gif
CFNAmapmerged.gif (218.01 KiB) Viewed 589 times
My TOAW web site:

Bob Cross's TOAW Site
User avatar
Curtis Lemay
Posts: 14493
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Step Four

Post by Curtis Lemay »

Here’s another view using the micromap. Clearly, part of the CFNA map around El Alamein has been inserted into the France 1944 map, starting at hex 40,40.

Image
Attachments
CFNAmicromapmerged.gif
CFNAmicromapmerged.gif (8.97 KiB) Viewed 592 times
My TOAW web site:

Bob Cross's TOAW Site
ColinWright
Posts: 2604
Joined: Thu Oct 13, 2005 6:28 pm

RE: Step Four

Post by ColinWright »

Note that 'Le Harve' is actually 'Le Havre.'

More substantially, thanks for posting the procedure.
I am not Charlie Hebdo
User avatar
Curtis Lemay
Posts: 14493
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Step Four

Post by Curtis Lemay »

ORIGINAL: ColinWright

Note that 'Le Harve' is actually 'Le Havre.'

Hmm. So it is. Unlikely to be another France 1944 update for a bit, so I suggest that Le Havre change its name instead.

Someone notify them, please.
My TOAW web site:

Bob Cross's TOAW Site
Post Reply

Return to “Scenario Design”