ANN: Backport Project for JS API
Posted: 07 Mar 2012, 16:33
Hi All,
I've been working on a little project with the aim of making cross-version JS API scripting a bit easier for us Javascript developers. It's called Backport and you can find it here:
https://warzone.atlassian.net/wiki/display/backportjs
For example, you can backport the Warzone 3.2 orderDroid() function all the way back to Warzone 3.1 Beta 1 (link). Or you can fix that little pickStructLocation() tile-offset bug in Warzone 3.1 (link).
There's loads of ready made backports and also an API for easily creating your own.
It's still at various stages of testing so don't unleash it on the general public yet, but I'd appreciate any feedback you might have if you use it in your scripts.
The idea is that Backport will become increasinly useful over time as more and more versions of Warzone (and it's JS API) are released to the public. Backport will help your scripts use more of the latest (and even future) JS API features, without worrying so much about what version of the API the end-user has. Backports are designed to be seamless so you can avoid adding cruft to your code to deal with different API scenarios.
Hope it helps,
Guy
I've been working on a little project with the aim of making cross-version JS API scripting a bit easier for us Javascript developers. It's called Backport and you can find it here:
https://warzone.atlassian.net/wiki/display/backportjs
For example, you can backport the Warzone 3.2 orderDroid() function all the way back to Warzone 3.1 Beta 1 (link). Or you can fix that little pickStructLocation() tile-offset bug in Warzone 3.1 (link).
There's loads of ready made backports and also an API for easily creating your own.
It's still at various stages of testing so don't unleash it on the general public yet, but I'd appreciate any feedback you might have if you use it in your scripts.
The idea is that Backport will become increasinly useful over time as more and more versions of Warzone (and it's JS API) are released to the public. Backport will help your scripts use more of the latest (and even future) JS API features, without worrying so much about what version of the API the end-user has. Backports are designed to be seamless so you can avoid adding cruft to your code to deal with different API scenarios.
Hope it helps,
Guy