alphahpg.com

F1, Networking, Coding, Photography & Minitatures

Mekwars Planet Data Script October 19, 2017

Ok kids, I’ve managed to work out a way to script up a map for Mekwars.

There is still some work to do (factories and terrain), but I feel most of that should be manually entered anyways. (Thats not to say I WONT be attempting to correctly put them in, its just a low priority now.

The script is written in Node JS (http://www.nodejs.org). You will need a module called xmlbuilder (https://www.npmjs.com/package/xmlbuilder).

Basically the syntax is: node generatemap.js mapfile.csv > planets.xml

Please see the attached map.csv to see how it works.

generatemap map

 

No Comments on Mekwars Planet Data Script
Categories: Uncategorized