Scripters cove
Moderators: winston, another_commander
Would someone be willing to tell me how to amend the YAH! scripts to allow it to spawn a specific station in places the regular YAH wouldn't?
I have an OOldi constore station built on the old shape, and want it to turn up in lower tech and less savoury systems than the usual YAH stations, but not conflict with them. (Don't want them spawning on top of the normal ones)
I have an OOldi constore station built on the old shape, and want it to turn up in lower tech and less savoury systems than the usual YAH stations, but not conflict with them. (Don't want them spawning on top of the normal ones)
Commander Monty, a Python Class Cruiser driver
Iron assed bulk haulers for the win!
Of the two trumbles which escaped today from Lave station, only 473 have been located....
Iron assed bulk haulers for the win!
Of the two trumbles which escaped today from Lave station, only 473 have been located....
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Ooldi.. nice idea! be sure to share it with us when you have the bugs ironed out..
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Re: ..
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.
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.
(Actually it's even worse. Long time ago I alerted Selezen that 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.)
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: ..
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.
- Lestradae
- ---- E L I T E ----
- Posts: 3095
- Joined: Tue Apr 17, 2007 10:30 pm
- Location: Vienna, Austria
Re: ..
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.)
For purely aesthetical reasons, I would find 3140 nicer, but there you go.
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.
If no one else does it at some point I'll probably try my hand, but there are many people who could do this better than myself.
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Re: ..
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.
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
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>
E-mail: [email protected]
- Cmdr James
- Commodore
- Posts: 1357
- Joined: Tue Jun 05, 2007 10:43 pm
- Location: Berlin
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>
I know its just a game, but then I dont see how earth dates make life easier or better for a player.
Greetings Commanders...
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?
I've been reading through the code in a few of the oxps that I've downloaded, but a more comprehensive document would be helpful.
Cheers and thanks.
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?
I've been reading through the code in a few of the oxps that I've downloaded, but a more comprehensive document would be helpful.
Cheers and thanks.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
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?
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact: