Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

There's lots of useful information elsewhere on the intertubes...

 

The JS API guide that's provided by the development team is generated from comments in the game's source code. While it's more basic than the guide you'll find on this site, it will usually be more up-to-date so it's worth checking from time to time:

A huge thanks goes out to Per and Cybersphinx for their awesome work on maintaining and delivering the official JS API docs!!

I've compiled some information about how the JS API has changed over time that you may find useful: Version SniffingCompatibility Matrix

The scripting forum is the primary home of all things relating to Warzone scripting – almost everything on this site is based on discussions in that forum.

Per is the authority on the JS API, because he wrote most of it!

There's already a bunch of JS scripts out in the wild – you'll be able to learn all sorts of tips and tricks by reading through their code:

There's a bunch of files that contain references to features, structures and so on - you'll probably need to refer to them while scripting as some function parameters are based on them:

The following Warzone C++ source files are associated with the JS API – it's really useful to read through them to get an idea of what goes on "behind the scenes":

If, like me, you've not worked with C++ before or don't know how QtScript stuff works, I recommend reading through QtScriptValue documentation to get a better idea about what the source files are doing.

Div
classbox

If you're working on meaty scripts, here's some libraries that might make life a bit easier:

  • util.js – classic prototypal inheritance model, attach multiple event handlers to WZ events, and a bunch of other tasty wholesome goodness
  • Backports project – scripts that smooth over the cracks in the JS API
  • The NEXUS Project – task-driven scripting for Warzone 2100.
Div
classbox

Almost everything in Warzone can be modded:

Child pages (Children Display)
pagemod:Warzone Modding Guide
excerpttrue