Matrix Games Forums

To End All Wars Releasing on Steam! Slitherine is recruiting: Programmers requiredPandora: Eclipse of Nashira gets release dateCommunity impressions of To End All WarsAgeod's To End All Wars is now availableTo End All Wars is now available!Deal of the Week: Field of GloryTo End All Wars: Video, AAR and Interview!Ageod's To End All Wars: Video, AAR and Interview!To End All Wars: Artillery
Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

HOW TO MERGE ONE MAP INTO ANOTHER USING MAP EXPORT

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [World War II] >> Norm Koger's The Operational Art Of War III >> Scenario Design >> HOW TO MERGE ONE MAP INTO ANOTHER USING MAP EXPORT Page: [1]
Login
Message << Older Topic   Newer Topic >>
HOW TO MERGE ONE MAP INTO ANOTHER USING MAP EXPORT - 5/6/2008 10:41:23 PM   
Curtis Lemay


Posts: 6928
Joined: 9/17/2004
From: Houston, TX
Status: online
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:
Post #: 1
Step One - 5/6/2008 10:42:33 PM   
Curtis Lemay


Posts: 6928
Joined: 9/17/2004
From: Houston, TX
Status: online
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:




Attachment (1)

(in reply to Curtis Lemay)
Post #: 2
Step Two - 5/6/2008 10:44:26 PM   
Curtis Lemay


Posts: 6928
Joined: 9/17/2004
From: Houston, TX
Status: online
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.





Attachment (1)

(in reply to Curtis Lemay)
Post #: 3
Step Three - 5/6/2008 10:46:16 PM   
Curtis Lemay


Posts: 6928
Joined: 9/17/2004
From: Houston, TX
Status: online
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:





Attachment (1)

(in reply to Curtis Lemay)
Post #: 4
Step Four - 5/6/2008 10:47:53 PM   
Curtis Lemay


Posts: 6928
Joined: 9/17/2004
From: Houston, TX
Status: online
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:




Attachment (1)

(in reply to Curtis Lemay)
Post #: 5
RE: Step Four - 5/6/2008 10:50:02 PM   
Curtis Lemay


Posts: 6928
Joined: 9/17/2004
From: Houston, TX
Status: online
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.)





Attachment (1)

(in reply to Curtis Lemay)
Post #: 6
RE: Step Four - 5/6/2008 10:51:33 PM   
Curtis Lemay


Posts: 6928
Joined: 9/17/2004
From: Houston, TX
Status: online
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.




Attachment (1)

(in reply to Curtis Lemay)
Post #: 7
RE: Step Four - 5/9/2008 7:58:26 AM   
ColinWright

 

Posts: 2600
Joined: 10/13/2005
Status: offline
Note that 'Le Harve' is actually 'Le Havre.'

More substantially, thanks for posting the procedure.

_____________________________

"...this country belongs to us, to the white man."

-- Israeli Interior Minister Eli Yishai, interview published on 6/3/2012. Interesting world.

(in reply to Curtis Lemay)
Post #: 8
RE: Step Four - 5/9/2008 6:31:01 PM   
Curtis Lemay


Posts: 6928
Joined: 9/17/2004
From: Houston, TX
Status: online

quote:

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.

(in reply to ColinWright)
Post #: 9
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [World War II] >> Norm Koger's The Operational Art Of War III >> Scenario Design >> HOW TO MERGE ONE MAP INTO ANOTHER USING MAP EXPORT Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.070