Page 1 of 1

js: buildDroid() change

Posted: 07 Feb 2012, 23:57
by Per
The droid type parameter to buildDroid is no longer necessary in master. It remains as it used to be in 3.1, since I am no longer doing any more changes to the javascript code in the 3.1 branch. I recommend that more advanced javascript coding takes place against master snapshots instead. The reason for this is that some changes to the API will require larger changes under the hood (as in this case), and I do not want to make those in a stable branch. You can continue to pass a droid type parameter for compatibility with 3.1, or pass in 'null' (recommended for master, as this parameter may later be reused for something else).

I hope that we can settle on a good, stable javascript API in good time for 3.2. There is still much left to do, though.

Re: js: buildDroid() change

Posted: 08 Feb 2012, 00:01
by Emdek
Yeah, I would suppose new JS in 3.1 more like experimental API, to put it in the wild and check what can or should be changed.

Re: js: buildDroid() change

Posted: 08 Feb 2012, 06:24
by NoQ
Ok! Sounds like the first good reason to rely on version global (:

Re: js: buildDroid() change

Posted: 08 Feb 2012, 06:49
by aubergine
Tried that, however: viewtopic.php?f=35&t=8922

Re: js: buildDroid() change

Posted: 08 Feb 2012, 08:29
by NoQ
By the way, it means that i won't ever be able to produce engineer cyborgs via scripts in v3.1 (: