Jump to content

HOWTO: Retrospectively update the height data of a map.


djf01

Recommended Posts

I'm writing this mother of all scenarios and start to play test it, where I realise I've used the wrong height scaling factor  :-(.

I have to either start again from scratch, and spend another 2 days putting in the towns, territories and 150 odd events ... or ... the following hack:

- Obtain a HEX editor.  I used XVI32 from http://www.chmaas.handshake.de

- Backup your MAP/MP2 file !!!

- Create a new map from your original PCX image, using the same dimension are your target map, this time using the correct scaling factor.

- Open the new map (with just the height data in it) in the hex editor and identify the start of the map data.  It's immediately at the end of the map data, identifiable by the the 10 byte repeating pattern.  If you are lucky and your map is coastal, ocean data *may* look like FF FE or FF FF (representing an altitude of -2 or -1).

- Delete all the data before the height data.  Delete all the data after the height data.  SaveAs the file something line "newdata.bin"

- Open your target Map file (the one you've done all the work on with the wrong heights).

- Identify the map data and delete it.  Insert the contents of the file "newdata.bin" you created in it's place.  Save the map.

- If it hasn't worked, restore your backup and start again :-).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...