Page 1 of 1

XML maps from TOAW III

Posted: Sun Mar 01, 2020 2:34 am
by lion_of_judah
unable to load XML maps from TOAW III, when I try the game crashes back to desktop. I do have the latest patch. I'am able to load a scenario from TOAW III and go from there.

RE: XML maps from TOAW III

Posted: Sun Mar 01, 2020 3:29 am
by cathar1244
ORIGINAL: lion_of_judah

unable to load XML maps from TOAW III, when I try the game crashes back to desktop. I do have the latest patch. I'am able to load a scenario from TOAW III and go from there.

Can you zip one of the XML files you are trying to load into TOAW IV, and post it here as an upload? I would like to take a look at the XML file. Thanks.

Cheers

RE: XML maps from TOAW III

Posted: Sun Mar 01, 2020 9:12 am
by Lobster
ORIGINAL: lion_of_judah

unable to load XML maps from TOAW III, when I try the game crashes back to desktop. I do have the latest patch. I'am able to load a scenario from TOAW III and go from there.

If you can load a scenario from TOAWIII into the editor for TOAWIV and save it then reload the saved scenario into the editor for TOAWIV and try to save the map from there.

RE: XML maps from TOAW III

Posted: Sat Mar 07, 2020 2:58 am
by lion_of_judah
Here is a XML map that i saved from TOAW III, and tried to open it in TOAW IV, but the game CTD again. Thanks

RE: XML maps from TOAW III

Posted: Sat Mar 07, 2020 3:40 am
by cathar1244
ORIGINAL: lion_of_judah

Here is a XML map that i saved from TOAW III, and tried to open it in TOAW IV, but the game CTD again. Thanks

Looking at the file with a hex editor. There are three extra bytes up front, but removing them did no good. Something is corrupt with the file. I'll look at it to see if I can determine why it is crashing when loaded into the map editor.

Cheers

RE: XML maps from TOAW III

Posted: Sat Mar 07, 2020 4:36 am
by cathar1244
Okay, it appears to be a file format issue.

The .MML file you are trying to load describes terrain with 47 fields.

.MML files in TOAW IV describe terrain with 48 fields.

How to fix. If you have TOAW III installed, load the .MML file into TOAW III and save as a scenario file. Then load that scenario file into TOAW IV. If you don't have TOAW III, I do, and will be able to do this in a day or two.

Cheers

RE: XML maps from TOAW III

Posted: Sat Mar 07, 2020 4:56 am
by cathar1244
I was able to add the extra field using Notepad [X(]

File is attached. Change the file type from ".zip" to ".mml" This one loads in TOAW IV.

Now, there is a problem with the data shown in the file for a lot of locations. They appear to be off-map locations and the names are all jumbled up on the margins of the map. You probably want to get rid of those. You may be able to do it in the map editor, but if not, use Notepad on the .mml file and get rid of all locations that show coordinates with negative numbers.

Cheers

RE: XML maps from TOAW III

Posted: Sat Mar 07, 2020 12:27 pm
by Curtis Lemay
We go to extreme lengths to make .sce files backward compatible (it's a mess, believe me). No such effort is wasted on making xml files do so. When the game is updated, xml files need to be regenerated. To transfer a scenario from III to IV needs to be done via the .sce file.

RE: XML maps from TOAW III

Posted: Sat Mar 07, 2020 3:50 pm
by cathar1244
Bob, I would certainly agree that is the easiest way to generate the .MML file for TOAW IV.

Cheers