Exporting data to XWS

By NorbyYT1300, in X-Wing Squad Builder

Hi there! Since it looks like export to XWS isn't included yet, I started a GitHub project that does just that:

https://github.com/danielElopez/X-Wing-Squad-JSON-Exporter

Try it live here: https://danielelopez.github.io/X-Wing-Squad-JSON-Exporter/

it's a work in progress; some of the upgrade names and ship names are different in between the XWS format (e.g., https://github.com/elistevens/xws-spec/blob/master/dist/xws_pilots.json ) and the schema used by FFG in their squad builder, but overall the code should be a helpful framework for folks who are interested in exporting their squads and uploading them into a tool like List Juggler! Any help or contributions are welcome!

If you want to try out this example, you can either try it out live (above) or download the web page as a single file: https://raw.githubusercontent.com/danielElopez/X-Wing-Squad-JSON-Exporter/master/index.htm and open it in a web browser, and you should be able to try it out! Right now, if you try to paste in the XWS that gets created into, say, meta-wing ( http://meta-wing.com/squad_visualizations/new ), the import may fail because the code isn't quite done (it works for simple squads of x- and y-wings, though!), but again, the example should show how this could be finished in the future, if I (or anyone who is interested) get around to it!

Edited by NorbyYT1300