planet numbers for missions
Moderators: winston, another_commander
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: planet numbers for missions
Just added more to the above, in case you missed it.
Commander Smivs, the friendliest Gourd this side of Riedquat.
- Staer9
- ---- E L I T E ----
- Posts: 570
- Joined: Fri Feb 18, 2011 4:53 pm
- Location: Hatfield, Hertfordshire (poor industrial)
Re: planet numbers for missions
in your post you called world scripts the 'world-scripts.plist' and the 'worldscripts.plist' which is correct?
Re: planet numbers for missions
There are two basic ways to get this type of javascript script (an "always running" background script, as opposed to a script associated with an NPC ship), both of which have been mentioned above.
The first is to call the file script.js and to put it in the config folder of the OXP. That's the simplest way, but you can obviously only have one such file per OXP.
The second is to call the file whatever you want (but with the suffix .js) and place it in a folder called "scripts" in the OXP. There can be as many scripts there as you want, and can be a mix of such world scripts and also ship-related ships. But by default the OXP will not see these, so you need the other file (worldScripts.plist) which is basically a list of the scripts in the scripts folder that should be run as world scripts by the OXP. All it is is essentially an array listing the script names.
Hope that's a little clearer.
The first is to call the file script.js and to put it in the config folder of the OXP. That's the simplest way, but you can obviously only have one such file per OXP.
The second is to call the file whatever you want (but with the suffix .js) and place it in a folder called "scripts" in the OXP. There can be as many scripts there as you want, and can be a mix of such world scripts and also ship-related ships. But by default the OXP will not see these, so you need the other file (worldScripts.plist) which is basically a list of the scripts in the scripts folder that should be run as world scripts by the OXP. All it is is essentially an array listing the script names.
Hope that's a little clearer.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: planet numbers for missions
Apart from using js, (system.ID will always tell you the id number of the system you're at), the wiki has got quite a lot of other info too: for example, you can always look up the various planets' names & IDs (& quite a lot more besides) if you have a look here:
[wiki]Oolite_planet_list[/wiki]
[wiki]Oolite_planet_list[/wiki]
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)