RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 10:24 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Automatic XML Generator (map locations)
PostPosted: Thu Sep 04, 2014 10:29 pm 
Offline
Newbie

Joined: Wed Dec 05, 2012 3:00 pm
Posts: 94
All,

I stumbled upon a tool that may prove very useful for people who actually know what they are doing here. Someone wrote a utility that generates XML code for every map within a ROM. I'll just quote what was written on the other forum (this is from like 2007):

Quote:
Here is a utility that will generate Enginuity format map definitions in xml from the raw bin file. It uses the map lookup table located at the start of the map section of ECU memory (usually h'28000)

bin2xml.zip

I've tried it on the new ZX-6, and PetriK K5 busa bin. It worked on both.

You will still need to enter the romid tags that id the make, year, model, etc. by hand at the top of the xml.

This utility is very old school. You can't use long windows filenames, it has to be in the same directory as your files, doesn't support paths in the filename etc. But it gets the job done.

All the maps are named using their address such as "Map 0x00028F8C"

They are group category wise by their dimensions. I figure maps with similar dimensions will have similar function. 2D map categories are like "x17" while 3D categories are "x30y50 for example.

The rest of the definition is very generic. A lot of unknown etc.

Here is an example of an autogenerated file of the ZX-6. It has 229 maps, 151 2D, and 78 3D. I'm pretty sure it took me less time to write the converter than it would have to type in all the maps.

zx6_001.xml


BTW you should check the very last entry of the generated file. The program runs till it encounters a non standard type code. It worked fine on the ZX-6 but on the busa it added one additional map with bogus data. Just delete it before posting the output into your xml file.



Here is the source code for anyone who wants to improve on it.

bin2xml.txt


The links are all dead, but I managed to save a copy of the generator before the website went down.

Let me know if this is useful or not!

https://www.dropbox.com/s/70keiglwylfad2o/BIN2XML.zip?dl=0

Updated: https://www.dropbox.com/s/s2tq2dbim5xzkry/BIN2XML.zip?dl=0


Last edited by ilarson007 on Sat Dec 06, 2014 9:37 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Automatic XML Generator (map locations)
PostPosted: Sat Dec 06, 2014 9:26 pm 
Offline
Newbie

Joined: Sun Nov 02, 2014 7:13 pm
Posts: 5
Location: Savannah, GA
The link is 404.


Top
 Profile  
 
 Post subject: Re: Automatic XML Generator (map locations)
PostPosted: Sat Dec 06, 2014 9:38 pm 
Offline
Newbie

Joined: Wed Dec 05, 2012 3:00 pm
Posts: 94
Dirk Gently wrote:
The link is 404.


Sorry, I changed the name of a folder in my Dropbox and it killed the original link. I updated with a new one!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl