Difference between revisions of "Library OXP"
Cholmondely (talk | contribs) (Added details of Config for AddOns) |
Cholmondely (talk | contribs) (Added more detail on Demos, and on general OXP integration, tweaks) |
||
Line 2: | Line 2: | ||
[[Image:IconLib.png|100px|right]] | [[Image:IconLib.png|100px|right]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Image:Library (Config for AddOns Settings List).png|320px|thumb|Config for AddOns (List of OXPs with settings)]] | [[Image:Library (Config for AddOns Settings List).png|320px|thumb|Config for AddOns (List of OXPs with settings)]] | ||
[[Image:Library (BGS Config Flags).png|320px|thumb|Config for AddOns (example: BGS flags settings)<br>Flags are On/Off options, Values give a numerical range. (Old Hyperspace is added by Tsoj's newest version of BGS)]] | [[Image:Library (BGS Config Flags).png|320px|thumb|Config for AddOns (example: BGS flags settings)<br>Flags are On/Off options, Values give a numerical range. (Old Hyperspace is added by Tsoj's newest version of BGS)]] | ||
[[Image:Library (BGS Config Values).png|320px|thumb|Config for AddOns (example: BGS values settings)<br>'''Values''' ('''D''' is the default setting, '''R''' shows the range)]] | [[Image:Library (BGS Config Values).png|320px|thumb|Config for AddOns (example: BGS values settings)<br>'''Values''' ('''D''' is the default setting, '''R''' shows the range)]] | ||
+ | [[Image:Sv pad03.jpg|320px|thumb|right|PAD: GalCop (showing Galactic Navy integration)]] | ||
+ | [[Image:Lib_PAD01.png|320px|thumb|right|PAD: Persons (showing Vanilla game integration)]] | ||
+ | [[File:Sv pad08.jpg|320px|thumb|right|PAD: Player data]] | ||
+ | [[Image:Lib_Animator01.png|320px|thumb|right|Demos: Animator]] | ||
+ | [[Image:Lib_Starmap02.png|320px|thumb|right|Demos: Starmap]] | ||
+ | |||
==Overview== | ==Overview== | ||
Reinventing the wheel is not everybody's taste, so here comes a collection of useful snippets and helpers. | Reinventing the wheel is not everybody's taste, so here comes a collection of useful snippets and helpers. | ||
Its main purpose is to simplify or unify some common tasks used by OXPers. Library is the successor to [[CCL]], [[Hyperradio]] and [[OXPConfig]]. The library does not alter any native JS objects (like Array or String) to avoid clashes and does not clutter the global namespace. | Its main purpose is to simplify or unify some common tasks used by OXPers. Library is the successor to [[CCL]], [[Hyperradio]] and [[OXPConfig]]. The library does not alter any native JS objects (like Array or String) to avoid clashes and does not clutter the global namespace. | ||
− | This oxp also adds | + | This oxp also adds '''Config for AddOns''' & a '''PAD''' to the [[F4 page (ship and system interfaces)|F4 ship-station interface]] screen |
+ | |||
+ | === Config for AddOns === | ||
*'''Config for AddOns''' (AddOns category) - for tweaking OXPs (see [[BGS]] for an example). | *'''Config for AddOns''' (AddOns category) - for tweaking OXPs (see [[BGS]] for an example). | ||
− | *[[Lib PAD|PAD]] (Captain's Log category) - a | + | |
+ | === PAD (Personal Assistance Device) === | ||
+ | *[[Lib PAD|PAD]] (Captain's Log category) - a Personal Assistance Device with details of naval career, people met, ''etc''. | ||
:The P.A.D. (or Personal Assistance Device) ships functionality to display different sorts of data, sorted by categories. Every category may contain several pages (or subcategories) - which can also be implemented by AddOns. Currently there are categories for | :The P.A.D. (or Personal Assistance Device) ships functionality to display different sorts of data, sorted by categories. Every category may contain several pages (or subcategories) - which can also be implemented by AddOns. Currently there are categories for | ||
Line 47: | Line 52: | ||
* ''[[Lib_Starmap|Lib_Starmap.js]]'' - In-System-Maps in 3D (docked and inflight) (see [[#Demos|Demos]]). {{AV|1.7}} | * ''[[Lib_Starmap|Lib_Starmap.js]]'' - In-System-Maps in 3D (docked and inflight) (see [[#Demos|Demos]]). {{AV|1.7}} | ||
− | == | + | == Integration == |
− | + | === Config for AddOns === | |
− | + | Over 30 OXP's use Library's "Config for AddOns" option on the F4 screen to allow configuration. See [[File:IconLib.png|here]] for a partial list. | |
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == Music == | + | === Music === |
Library can introduce music (as well as sound effects). For a full list of all such OXP's see [[:Category:Sound Sets OXPs]]<br> | Library can introduce music (as well as sound effects). For a full list of all such OXP's see [[:Category:Sound Sets OXPs]]<br> | ||
Music for playing the game to (these three need Library to function): | Music for playing the game to (these three need Library to function): | ||
− | *[https://app.box.com/s/xd9hnscxrjlb0p5suz8t00e7m5qo743d Lib Music Orchestral Demo]: [[User:Svengali|Svengali]]'s original music .oxp (2016: 22Mb) | + | *[https://app.box.com/s/xd9hnscxrjlb0p5suz8t00e7m5qo743d Lib Music Orchestral Demo]: [[User:Svengali|Svengali]]'s original classical music .oxp (2016: 22Mb) |
− | *[ | + | *[[Contextual Jukebox OXP]] by Arquebus of [http://www.aegidian.org/bb/viewtopic.php?f=2&t=21111 YouTube fame] (2021: 115Mb) |
− | *[http://www.aegidian.org/bb/viewtopic.php?f=4&t=21127 Dangerous Background Music OXP]: Tsoj | + | *DIY kit: [http://www.aegidian.org/bb/viewtopic.php?f=4&t=21127 Dangerous Background Music OXP]: [[User:Tsoj|Tsoj]] (2021) |
− | == | + | === OXP's & Vanilla game integration === |
− | + | *[[Vanilla game]] missions have been integrated into Library.oxp | |
− | * [ | + | *[[Galactic Navy OXP]] has been integrated into Library.oxp |
− | * [ | + | *[[GNN]] has been integrated into Library.oxp (the most recent new item is displayed on the PAD) |
− | == | + | === Demos === |
+ | Designed to show how to integrate other OXP's with Library; Install like any other [[OXP]]. | ||
+ | * [https://app.box.com/s/59vqswqh0wxiccerk7wgxerl0m0wmx20 Animator Demo] (zip, 2.8 MiB): a helper for animations on mission screens | ||
+ | * [https://app.box.com/s/xd9hnscxrjlb0p5suz8t00e7m5qo743d Lib Music Orchestral Demo]: [[User:Svengali|Svengali]]'s original music .oxp (2016: 22Mb) | ||
+ | * [https://app.box.com/s/0enjeiuyzjkyg36yxc5j04sdjhx9s7aa Starmap Demo] (oxz, 2.4 KB) - see [http://aegidian.org/bb/viewtopic.php?p=264969#p264969 explanation]: Lib_Starmap introduces In-System-Maps in 3D (or 2.5D *sigh*). These maps can be shown on missionScreens and inflight. On missionScreens they can be animated (''eg'' through Lib_Animator). Inflight users can control them via the Advanced Space Compass. Usage for OXP's is easy. | ||
+ | === Tools === | ||
There are two tools tucked away in diverse locations: | There are two tools tucked away in diverse locations: | ||
Line 84: | Line 88: | ||
− | * 2) [https://app.box.net/s/h78y01lg9b Library_devtools.oxp] (look in Test OXP's) - Something peculiar | + | * 2) [https://app.box.net/s/h78y01lg9b Library_devtools.oxp] (look in Test OXP's) - Something peculiar! |
::On starting a game (if you have Library running too): | ::On starting a game (if you have Library running too): | ||
Line 95: | Line 99: | ||
[[File:Lib_MatEditor_%282%29.png|150px]] | [[File:Lib_MatEditor_%282%29.png|150px]] | ||
+ | ---- | ||
+ | == ID == | ||
+ | identifier = "oolite.oxp.Svengali.Library"; | ||
+ | |||
+ | == Requirements == | ||
+ | * Latest version needs Oolite v1.88. | ||
− | - | + | == Download == |
+ | Install like any other [[OXP]]. Library is on the in-game [[Expansions Manager]]. Or, if you prefer, [https://app.box.com/s/gqfc5nxse0k9yipm93wrjra7nqjzy89y Library 1.7.1] (oxz, 4.9 MiB) | ||
== Tweaks == | == Tweaks == |
Revision as of 12:30, 28 October 2022
This page is about the OXP helper expansion pack, Library, for other uses, see Library (disambiguation).
Contents
Overview
Reinventing the wheel is not everybody's taste, so here comes a collection of useful snippets and helpers. Its main purpose is to simplify or unify some common tasks used by OXPers. Library is the successor to CCL, Hyperradio and OXPConfig. The library does not alter any native JS objects (like Array or String) to avoid clashes and does not clutter the global namespace.
This oxp also adds Config for AddOns & a PAD to the F4 ship-station interface screen
Config for AddOns
- Config for AddOns (AddOns category) - for tweaking OXPs (see BGS for an example).
PAD (Personal Assistance Device)
- PAD (Captain's Log category) - a Personal Assistance Device with details of naval career, people met, etc.
- The P.A.D. (or Personal Assistance Device) ships functionality to display different sorts of data, sorted by categories. Every category may contain several pages (or subcategories) - which can also be implemented by AddOns. Currently there are categories for
- GALCOP: A standard entry, but after doing specific jobs it will contain an entry for the Navy as well. Other AddOns may add more.
- GUILDS: An empty entry at the moment. Could be used e.g. by RandomHits, Feudal States and other AddOns which do have a membership.
- INFOS: A category for special events, news, etc. Could be useful e.g. for BloombergMarkets, etc.
- LOGBOOK: A category for standard events like rescued escape pods, bailed out, fined, etc. Could be used for contracts as well.
- PERSONS: A category for characters you have met.
- SYSTEMS: A category for special systems like Tianve, Tionisla, etc.
- SEARCH
- PLAYER DATA
- The PAD also ships with search functionality and some categories do allow the player to add custom notes. The display of these pages is based on templates, so all pages in a category will have the same layout. AddOns can add data easily to existing pages or add a new page in existing categories. Another feature is to set player specific data, like origin, species, gender, age and a custom picture.
Note: there are currently several oxp's that allow for configuring other oxp's: *Library (the most recent, done via the F4 page when docked) by Svengali *OXPConfig (done via the F2 page - press F7 when told to) by Svengali *Station Options by cag: this one is comprehensible! But the fabulous flood of detail for Telescope...
Features
For Documentation just follow the links.
- Lib_2DCollision.js - Methods for checking if point is in bounding-box, on line or in poly.
- Lib_Animator.js - Tool to create animations on missionscreens (see Demos).
- Lib_BinSearch.js - Instantiated search tree.
- Lib_Config.js - Configuration interface for AddOns.
- Lib_Crypt.js - De-/Encryption for strings.
- Lib_GUI.js - Unified GUI image, sound and music handling.
- Lib_Main.js - Generic functions for various tasks.
- Lib_Music.js - Unified event driven and generic music handling (see Demos).
- Lib_PAD.js - Unified logbook, mission-log, diary and interface. Added in v1.7
- Lib_Starmap.js - In-System-Maps in 3D (docked and inflight) (see Demos). Added in v1.7
Integration
Config for AddOns
Over 30 OXP's use Library's "Config for AddOns" option on the F4 screen to allow configuration. See for a partial list.
Music
Library can introduce music (as well as sound effects). For a full list of all such OXP's see Category:Sound Sets OXPs
Music for playing the game to (these three need Library to function):
- Lib Music Orchestral Demo: Svengali's original classical music .oxp (2016: 22Mb)
- Contextual Jukebox OXP by Arquebus of YouTube fame (2021: 115Mb)
- DIY kit: Dangerous Background Music OXP: Tsoj (2021)
OXP's & Vanilla game integration
- Vanilla game missions have been integrated into Library.oxp
- Galactic Navy OXP has been integrated into Library.oxp
- GNN has been integrated into Library.oxp (the most recent new item is displayed on the PAD)
Demos
Designed to show how to integrate other OXP's with Library; Install like any other OXP.
- Animator Demo (zip, 2.8 MiB): a helper for animations on mission screens
- Lib Music Orchestral Demo: Svengali's original music .oxp (2016: 22Mb)
- Starmap Demo (oxz, 2.4 KB) - see explanation: Lib_Starmap introduces In-System-Maps in 3D (or 2.5D *sigh*). These maps can be shown on missionScreens and inflight. On missionScreens they can be animated (eg through Lib_Animator). Inflight users can control them via the Advanced Space Compass. Usage for OXP's is easy.
Tools
There are two tools tucked away in diverse locations:
- 1) Lib_MatFinder 1.1 (oxz, 39.7 KB) - A developer-tool to work out materials entries.
- See MatFinder for more detail (culled from BB and put in order)
- See here for original BB description. (2 pages, 2018).
- Once you load the .oxp, see your F4 screen (if you have Library.oxp running too) under "Developer" to access this tool.
- 2) Library_devtools.oxp (look in Test OXP's) - Something peculiar!
- On starting a game (if you have Library running too):
- On your F4 screen (if you have Library running too) under "Lib_MatEditor":
ID
identifier = "oolite.oxp.Svengali.Library";
Requirements
- Latest version needs Oolite v1.88.
Download
Install like any other OXP. Library is on the in-game Expansions Manager. Or, if you prefer, Library 1.7.1 (oxz, 4.9 MiB)
Tweaks
Quick Facts
Version | Released | License | Features | Category | Author(s) | Feedback |
---|---|---|---|---|---|---|
1.7.1 | 2018-11-19 | CC-by-nc-sa-4.0 | Helper for OXPs | Misc OXPs | BlackWolf & Svengali | BB-Link |