• to support OXPs which have configuration settings, include a page in the Config screen for altering them.
The idea being to save newbies having to find the OXP's
/thingummy/doobrie/shipdata.plist
file and a non-Notepad editor and learn JScript.It would be necessary for OXPs to provide the flags they set, and their validation rules (even if as just text advice: "Between 0 to 255"), so once the core program changes, OXPs writers will be able to take advantage of the functionality if they wish.
So whereas at the moment Oolite sets values and OXPs over-write and/or add to them, this is the opposite of Oolite being able to over-write values set by OXPs. So the OXP provides the default values and informs Oolite of what variables can be configured, then the OXP needs to check Oolite's OXP_Variables.plist to see what the user has configured them to be.
The Explorers'_Club OXP would benefit greatly from this.Extra config screen wrote:OXP Settings
Armoury
Instant Death weapons enabled (1 = anyone can have them, 0 = nobody can)
0
auto_eject
Energy level (default 22, will eject when less)
44
Basic-Debug
Default port (1 to 65535, default 8563)
8563
Fuel Station
extraA (1 = satellites + stations, 0 = satellites)
1
extraB (1 = NPCs can use fuel stations, 0 = only you can)
1
Illegal Goods Tweak
Scan all ships (1 = 100% scanned, 0 = chance not scanned)
1
Target Autolock Plus
Lock range (0 to 25 km, recommend at least 3)
5
Lock time (seconds, default is 5)
60
Sensitivity (0.1 to 0.7, default 0.3, higher is more likely to lock)
0.6
Wasps
Appear in hyperspace (default = 1 for Yes, use 0 for no)
1