Difference between revisions of "The Dark Side"
From Elite Wiki
Cholmondely (talk | contribs) (→Links: Added more) |
Cholmondely (talk | contribs) (Added more links) |
||
Line 1: | Line 1: | ||
[[File:2560px-Two women operating ENIAC (full resolution).jpg|800px]] | [[File:2560px-Two women operating ENIAC (full resolution).jpg|800px]] | ||
<br><br><br><br><br><br><br><br><br> | <br><br><br><br><br><br><br><br><br> | ||
− | "Modding" or tweaking and writing OXPs - and eventually maybe even the [[Vanilla game]] code if you get to be good enough! | + | "Modding" or tweaking and writing OXPs - and eventually maybe even tampering with the [[Vanilla game]] code if you get to be good enough! |
− | Sneak a peek at [[How to tweak OXZ's]] ... and see where it leads you! | + | Sneak a peek at [[How to tweak OXZ's]] ... and see where it leads you! One of [[Giles Williams|Aegidian/Giles]]'s desires was to use Oolite to teach people how to code. |
− | Just for shock effect, the older OXPs are written in legacy | + | Just for shock effect, the older OXPs are written in '''legacy scripting''' - either XML or OpenStep. '''Javascript''' was slowly introduced after 2006 as an option, and then as the best way of writing OXPs (one can do so much more with it). |
− | Oolite is currently written in Objective-C (72.5%), C (19%), JavaScript (7%) | + | Oolite itself (the Vanilla game code, not the oxp's) is currently written in Objective-C (72.5%), C (19%), and JavaScript (7%) with fragments in other stuff. |
Line 46: | Line 46: | ||
*[[Oolite Javascript basics]] - an introductory essay by [[User:Massively Locked|Massively Locked]] | *[[Oolite Javascript basics]] - an introductory essay by [[User:Massively Locked|Massively Locked]] | ||
*[[Scripting Oolite with JavaScript]] - contains a note about what your computer does with the JavaScript, followed by a long essay about Oolite's version of Javascript | *[[Scripting Oolite with JavaScript]] - contains a note about what your computer does with the JavaScript, followed by a long essay about Oolite's version of Javascript | ||
+ | *Phkb has a helpful intro to mission.oxp javascript [http://www.aegidian.org/bb/viewtopic.php?p=277713#p277713 here] with a commentary [http://www.aegidian.org/bb/viewtopic.php?p=278061#p278061 here] (2021) | ||
== Reference == | == Reference == |
Revision as of 10:47, 29 November 2022
"Modding" or tweaking and writing OXPs - and eventually maybe even tampering with the Vanilla game code if you get to be good enough!
Sneak a peek at How to tweak OXZ's ... and see where it leads you! One of Aegidian/Giles's desires was to use Oolite to teach people how to code.
Just for shock effect, the older OXPs are written in legacy scripting - either XML or OpenStep. Javascript was slowly introduced after 2006 as an option, and then as the best way of writing OXPs (one can do so much more with it).
Oolite itself (the Vanilla game code, not the oxp's) is currently written in Objective-C (72.5%), C (19%), and JavaScript (7%) with fragments in other stuff.
Understanding what really goes on
So I'm on my way to Erlaza, I decide to fly in along the main route and see what I can pick up along the way and the first thing I meet is a Boa with four escorts. Now it strikes me that if I join them I might see a bit more action but at the same time I wouldn't have to deal with it entirely on my own. Sure enough, within minutes there's a Fer-de-Lance shooting at us. Erm... did I say us? I'm a Python in formation with a Boa and four escourts and he's completely ignoring the others and has locked on to me. What's more, when I turn to deal with him, what to the others do? They go on their own sweet way leaving me to deal with him on my own. B*****ds! The Fer-de-Lance suffered the consequences and having picked up the ton of luxuries that he left me in his will, I'm following the Boa back to the space station. I'm wondering whether to rejoin them and give them an energy bomb as a token of thanks for their assistance when one of the escorts breaks formation and heads off at 11 o'clock. The others soon follow and I realise that they are under attack from a Python and a couple of smaller ships. The next thing I know, the Boa is on the radio asking for help! Yeah. Right. Count the fingers mate. ("AndySlater", 2006)
Spoiler (why what happened made sense and how the game programmes it)---->
Links
- See The Embrace of the Dark Side in the Applied Theology section on the page for the Church of Giles the Creator
- What "can" be changed without re-compiling? (2010-date) - for what oxp's cannot do see the 2021-2 posts
- if (player.ship.dockedStation.isMainStation) - major discussion on a line of code (2012)
- Oolite Javascript basics - an introductory essay by Massively Locked
- Scripting Oolite with JavaScript - contains a note about what your computer does with the JavaScript, followed by a long essay about Oolite's version of Javascript
- Phkb has a helpful intro to mission.oxp javascript here with a commentary here (2021)
Reference
- Category:Oolite scripting
- Property list - a good place to start - try tweaking the description.plist in Famous Planets and see if it works when you look at the F7 screen!