A command line conversion tool written in Javascript with Node.js to convert binary .map files used in Lego Rock Raiders to a JSON format usable by Raiders.
Warning: map2json
is in progress and will be available on npm very soon. For the time being please use map2json-cpp
To build map2json
, please use the following commands:
git clone https://github.com/marcbizal/map2json.git
cd map2json
npm install # Installs dependencies.
npm run compile # Runs babel on 'src/' and outputs to 'lib/'.
npm link # Creates a globally-installed symbolic link to map2json.
Usage: map2json <folder> [options]
Options:
-h, --help output usage information
-V, --version output the version number
-o, --output [file] name of output json file
-a, --all finds all subfolders and attempts to convert them
-c, --cfg [file] path to game configuration file
If the --output
flag is not provided map2json
will generate a file based on the folder name (i.e. Level05.json
).