Suggested updates to Wiki JS info.
Posted: Sun Aug 07, 2011 7:40 am
Morning,
Do peeps think it's about time to update the scripting section of the Wiki?
I'm thinking that on http://wiki.alioth.net/index.php/OXP_how to the A preview of things to come section is misleading for someone new to Oolite/OXPing as JS is now the preferred and main scripting method, and this page needs updating to make that clear.
Also do you think a relatively non-technical beginners/laymans guide to JS scripting in Oolite would be useful? Linked to from http://wiki.alioth.net/index.php/Script ... JavaScript
I'm thinking of a single page that explains the different kinds of script (world, ship and activated equipment), and the basic structure of a script as a serious of event-handler or self defined functions, an overview of the different variable types, when it is appropriate to use/not use them, and naming issues, plus a brief guide to JS syntax and some of the common JS commands, loops, switches etc.
I'd be happy to do an initial draft having been in a totally clueless beginner's shoes not so long ago.
I think the event handler pages should be either recombined, but with 3 sections or split into 3 - worldscript event handlers only, world and shipscript event handlers and shipscript only event handlers.
Finally some of the event handlers and properties/methods on the objects pages could do with more examples of their use.
Do peeps think it's about time to update the scripting section of the Wiki?
I'm thinking that on http://wiki.alioth.net/index.php/OXP_how to the A preview of things to come section is misleading for someone new to Oolite/OXPing as JS is now the preferred and main scripting method, and this page needs updating to make that clear.
Also do you think a relatively non-technical beginners/laymans guide to JS scripting in Oolite would be useful? Linked to from http://wiki.alioth.net/index.php/Script ... JavaScript
I'm thinking of a single page that explains the different kinds of script (world, ship and activated equipment), and the basic structure of a script as a serious of event-handler or self defined functions, an overview of the different variable types, when it is appropriate to use/not use them, and naming issues, plus a brief guide to JS syntax and some of the common JS commands, loops, switches etc.
I'd be happy to do an initial draft having been in a totally clueless beginner's shoes not so long ago.
I think the event handler pages should be either recombined, but with 3 sections or split into 3 - worldscript event handlers only, world and shipscript event handlers and shipscript only event handlers.
Finally some of the event handlers and properties/methods on the objects pages could do with more examples of their use.