..
Posted: Tue Mar 30, 2010 9:35 am
Thanks A_C ... will play around with that.
For information and discussion about Oolite.
https://bb.oolite.space/
Errrm....another_commander wrote:Use the JavaScript Date object. In the example below, whenever the player launches, the current date (starting from 21 Mar 3125) appears on the screen. 21 Mar 3125 corresponds to 2084004 and the date is calculated based on days passed since. I'll leave the mission screens part to you.Lestradae wrote:Would it be possible via java script to create an entry on the missions page giving the datum as "1st of January 3125" or so for the Oolite "Galactic Mean Time" start date and then upgrade that, so that the datum is visible also?
I think it should be possible, not sure if I'd try to have a go at it.
The year in the example is a random number and does not have anything to do with any timeline. Consider me lucky for being only 16 years off. Whoever decides to use this example can make sure that the year shown corresponds toCommander McLane wrote:Sorry to be picky on this one, but Oolite isn't set in 3125. Elite is set in 3125. Oolite, however, is not exactly the same, time-wise. It has new technologies, like fuel injection etc. Therefore it must be a little later. Selezen in his timeline sets it an arbitrary 16 years later (he gives a reason why he choses this number, please read for yourself). So Oolite starts in 3141, not 3125.
Well ... if this is done as a little oxp, perhaps "canonical" could be defined by it. So either Selezen could alter his timeline accordingly or the oxp could simply set the "1st January 3141" as the Oolite start date.Commander McLane wrote:... Elite is set in 3125. Oolite, however, is not exactly the same, time-wise. It has new technologies, like fuel injection etc. Therefore it must be a little later. Selezen in his timeline sets it an arbitrary 16 years later (he gives a reason why he choses this number, please read for yourself). So Oolite starts in 3141, not 3125. ... there is a lapse of thinking in his reasoning for 3125 as the Elite-date. But as this date has become practically canonical, probably it won't be possible to change it again.)
Personally I am perfectly fine with 2084004, so I wouldn't want to convert that into some year AD. So I can't promise anything. Perhaps, if I get some time (I am not using the display_reputation as well, anyway )...Lestradae wrote:What about you, McLane - you could do the oxp, similar to the reputation ones, no? Since you are basically the canonicals guy here, I'd say.
And makes no sense in the ooniverse, what is a day (Earth day?) month or year? These are useful for Earth dwellers because they relate to our orbit and rotation, but make no sense for space travellers. I think it is deliberate that the dates in oolite are not cleanly mapped to the Gregorian calendar. Feel free to do so if you wish, but I dont think it will ever be meaningful.Ahruman wrote:The canonical starting date for Oolite is 2084004. The relationship between this date and the Gregorian or any other calendar is not addressed in canon. </Word of Demigod>
For JavaScript, you can find a large number of tutorials for various level of competencies, as well as references on the web. For Oolite specific stuff, like properties and handlers that are available, you can download the source code and have a look inside the src/Core/Scripting folder, where all the game's JS classes, their properties and methods are defined. I would recommend that you concentrate on JavaScript for scripting. The legacy scripting system is basically for compatibility with older OXPs these days and JS is far more powerful, faster and overall better.SiriusCG wrote:Other than the wiki, which appears to be down for an unknown length of time, is there somewhere else one can find the specs for the scripting language(s) in Oolite?
Fixed the link for you.Ahruman wrote:
So, is Ahruman now Demigod or Dante?Commander McLane wrote:Fixed the link for you.Ahruman wrote: