Jump to content

Map format changed


sanderd17
 Share

Recommended Posts

Today, the map format changed to allow bigger mountains.

Game versions from now on won't be able to read old maps, and older game versions won't be able to read new maps.

To convert from A18 maps to A19 maps, you should just run the python script here: http://trac.wildfiregames.com/browser/ps/trunk/source/tools/mapcompatibility/a18_to_a19.py?format=txt (can also be found under source/tools/mapcompatibility/a18_to_a19.py if you have the SVN version). There are more complete instructions per OS below.

Converting from A19 maps back to A18 is also possible, however, this will create bad results when your hills are actually bigger than the A18 limit.

If you have any problems, please drop by on the chat: https://kiwiirc.com/client/irc.quakenet.org/0ad-dev

Instructions for Windows

First make a backup of your existing map files. We're not responsible for lost maps.

Install python 3.x for your OS: https://www.python.org/downloads/windows/

Open the command prompt, and go to the python installation directory. For example:

cd "C:\Python34"

Then run the script (depends on where you stored the maps and the script):

python "C:\Users\UserName\0AD\source\tools\mapcompatibility\a18_to_a19.py" "C:\Users\UserName\0AD\binaries\data\mods\public\maps\scenarios\mapName.xml"

Now you should be able to open your maps with Atlas again, and it should look just the same as before, but give you the ability to make higher mountains.

Instructions for Linux

Install python 3 as usual on your OS. Then open the shell and go to the directory of the script. For example (depends on where you put the script):

cd "~/0ad/trunk/source/tools/mapcompatibility/"

And run the script with python3. For example (depends on where you stored the map):

python3 a18_to_a19.py "~/0ad/trunk/binaries/data/mods/public/maps/scenarios/mapName.xml"

Now you should be able to open your maps with Atlas again, and it should look just the same as before, but give you the ability to make higher mountains.

Edited by sanderd17
Add platform specific instructions
  • Like 6
Link to comment
Share on other sites

Today, the map format changed to allow bigger mountains.

Game versions from now on won't be able to read old maps, and older game versions won't be able to read new maps.

To convert from A18 maps to A19 maps, you should just run the python script here: http://trac.wildfiregames.com/browser/ps/trunk/source/tools/mapcompatibility/a18_to_a19.py?format=txt (can also be found under source/tools/mapcompatibility/a18_to_a19.py if you have the SVN version).

Similar to this

python3 a18_to_a19.py path/to/the/maps/mymap.xml

Converting from A19 maps back to A18 is also possible, however, this will create bad results when your hills are actually bigger than the A18 limit.

If you have any problems, please drop by on the chat: https://kiwiirc.com/client/irc.quakenet.org/0ad-dev

Instructions unclear, computer on fire.

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.

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.

 Share

×
×
  • Create New...