Difference between revisions of "Gallery"

From Elite Wiki
m (forum link)
(v0.7)
Line 1: Line 1:
Download it from [https://app.box.com/s/0i5sf8n4m1e3pqoekcz0 here] or [https://www.box.com/s/t7vnj3kfinbpc7m1twy3 here].
 
  +
[[File:Gallery1.png|360px|thumb|right|Gallery in Interfaces]]
  +
[[File:Gallery2.png|360px|thumb|right|Select starting object]]
  +
[[File:Gallery4.png|360px|thumb|right|Details, rotate and zoom]]
  +
[[File:Gallery3.png|360px|thumb|right|Gallery Menu]]
  +
[[File:Gallery5.png|360px|thumb|right|Search in Gallery]]
   
[[Image:Gallery1.png|400px|right]]Show installed ships and objects in Interfaces.
 
   
Press F4 when you docked, choose Gallery to see ship statistics and rotating models.
 
  +
Download it from [https://app.box.com/s/0i5sf8n4m1e3pqoekcz0 here] or [https://www.box.com/s/t7vnj3kfinbpc7m1twy3 here].
=== Menu ===
 
[[Image:Gallery2.png|400px|right]]
 
   
The first menu at bottom show the dataKey of the current object, press it to see the next item.
 
  +
=== Description ===
   
  +
Show encountered ship and object types in Interfaces.
  +
Extend your gallery by fly around and target or fight with ships and objects.
   
Press "Menu" to choose Role, Rotate, Move, Zoom or Exit.
 
  +
If you are a new pilot then you encountered ships in shipyards alone, so you can see stock buyable versions only.
   
  +
Press F4 when you docked, choose "Gallery of encounters" to see ship statistics and rotating models.
   
  +
You will see your ship and how many objects you gathered at the moment. You can select from a list which one will be shown firstly (the first one of each initials listed here only to always fit into the screen).
   
   
  +
=== Menu ===
  +
Looks like this:
   
  +
"Name"
  +
Previous
  +
Search
  +
Rotate X+ / Stop / X- / Stop / Y+ / Stop / Y- / Stop
  +
Move X+ / Stop / X- / Stop / Y+ / Stop / Y- / Stop
  +
Zoom + / Stop / Zoom - / Stop
  +
Exit
  +
Hide Menu
   
  +
First line show name of the current object, press it to see the next one.
   
  +
You can step back, search, rotate, move, zoom and hide the menu to get better view of objects.
   
 
  +
Search menu can use text entry in Oolite 1.79 and show the details of your ship to easily compare with others, and fallback to starting selection list in 1.77.
 
 
 
 
 
[[Image:Gallery3.png|400px|right]]
 
If you set a role then will show ships within this role only.
 
 
You must change the role back to "all" to see all ships.
 
 
The number after name of role show how many objects are in this role.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[[Image:Gallery4.png|400px|right]]
 
Full menu works like this:
 
 
* "dataKey"
 
* Previous
 
* Role: all/player/... (number of objects)
 
* Previous role
 
* Rotate X+ / Stop / X- / Stop / Y+ / Stop / Y- / Stop
 
* Move X+ / Stop / X- / Stop / Y+ / Stop / Y- / Stop
 
* Zoom + / Stop / Zoom - / Stop
 
* Exit
 
* Hide Menu
 
 
 
 
 
   
   
Line 75: Line 50:
   
 
=== Limitations ===
 
=== Limitations ===
This OXP use the Ship.keys(), Ship.roles() and Ship.keysForRole("role") methods in Oolite v1.79.
 
  +
There are a slow and inaccurate method for Oolite v1.77 which try to get all ships but a few left out randomly. Moreover can cause crash at game start if not enough memory (if the spinning cobra appear then you have enough memory). You can reduce the $GalleryMaxIt variable in gallery.js to avoid the problem if needed but more ship will be left out.
 
  +
Every menu press redraw ship model so shader colours and decals will change by all Rotate, Move, etc. press.
  +
  +
Ship details hidden based on the following (maybe need to extend):
  +
* [[Technical_Reference_Library|Technical Reference Library]] OXP (validator copied from v1.0.1 but call the original if TRL OXP installed),
  +
* ccl_missionShip in scriptInfo,
  +
* "stealth" word within dataKey or primaryRole.
  +
  +
This OXP use Ship.keys(), Ship.roles() and Ship.keysForRole("role") methods in Oolite v1.79.
  +
There are a slow and inaccurate method for Oolite v1.77 which try to get all ships but a few left out randomly. Moreover can cause crash at game start if not enough memory (if spinning cobra appear then you have enough memory). You can reduce the $GalleryMaxIt variable in gallery.js to avoid the problem if needed but more ship will be left out.
   
 
Can show ship.energyRechargeRate and ship.extraCargo in v1.79 only.
 
Can show ship.energyRechargeRate and ship.extraCargo in v1.79 only.
   
 
Ships with "subent" word in dataKey are removed to skip subentities in Griff_Shipset_Replace_v1.34.oxp.
 
Ships with "subent" word in dataKey are removed to skip subentities in Griff_Shipset_Replace_v1.34.oxp.
Removing happen right before show only (too slow otherwise), this is the reason why the object number in Role: menu can decrease.
 
   
Turrets, docks and other subentities without "subent" rule will appear in v1.79, there are no exact method to skip all of these.
+
Turrets, docks and other subentities without "subent" rule will appear in v1.79 if all objects mode enabled in gallery.js, there are no exact method to skip all of these.
 
In v1.77 it is not a problem due to the fallback method can include ships with given roles only (see in gallery.js, you can extend if you want) so all OXP ships without standard roles left out completely.
 
In v1.77 it is not a problem due to the fallback method can include ships with given roles only (see in gallery.js, you can extend if you want) so all OXP ships without standard roles left out completely.
 
Every menu press redraw the ship model so shader colours and decals will change by all Rotate, Move, etc. press.
 
   
   
 
=== Setings in gallery.js ===
 
=== Setings in gallery.js ===
   
this.$GalleryDefaultZoom = 1.6; //default size of ships
 
  +
this.$GalleryAll = false; //Gallery of all objects (cheat)
  +
this.$GalleryDefaultZoom = 1.5; //default size of ships
 
this.$GalleryMaxIt = 5; //max. iteration in Oolite v1.77, reduce if cause problems
 
this.$GalleryMaxIt = 5; //max. iteration in Oolite v1.77, reduce if cause problems
 
this.$GalleryLog = false; //verbose log
 
this.$GalleryLog = false; //verbose log
Line 107: Line 88:
   
 
=== Changelog ===
 
=== Changelog ===
  +
2013.11.24. v0.7 Show encountered and playable ships only by default.
  +
Show max.energy in banks, recharge in words and name instead of dataKey.
  +
Details of some ships are hidden using [[Technical_Reference_Library|Technical Reference Library]] OXP by spara.
  +
Must set $GalleryAll to true if wanted all ships and details.
  +
Search menu with text entry in Oolite 1.79 and selection list in 1.77.
 
2013.11.23. v0.6 Works with Oolite v1.77 also (but slow and limited).
 
2013.11.23. v0.6 Works with Oolite v1.77 also (but slow and limited).
 
2013.11.22. v0.5 First usable version.
 
2013.11.22. v0.5 First usable version.
Line 115: Line 101:
   
 
===Quick Facts===
 
===Quick Facts===
{{OXPLevel|0}}{{Infobox OXPb| title = SellAll
+
{{OXPLevel|0}}{{Infobox OXPb| title = Gallery
|version = 0.6
+
|version = 0.7
|release = 2013-11-23
+
|release = 2013-11-25
 
|features = Show installed ships
 
|features = Show installed ships
 
|license = CC BY-NC-SA 3
 
|license = CC BY-NC-SA 3

Revision as of 14:47, 25 November 2013

Gallery in Interfaces
Select starting object
Details, rotate and zoom
Gallery Menu
Search in Gallery


Download it from here or here.

Description

Show encountered ship and object types in Interfaces. Extend your gallery by fly around and target or fight with ships and objects.

If you are a new pilot then you encountered ships in shipyards alone, so you can see stock buyable versions only.

Press F4 when you docked, choose "Gallery of encounters" to see ship statistics and rotating models.

You will see your ship and how many objects you gathered at the moment. You can select from a list which one will be shown firstly (the first one of each initials listed here only to always fit into the screen).


Menu

Looks like this:

"Name"
Previous
Search
Rotate X+ / Stop / X- / Stop / Y+ / Stop / Y- / Stop
Move X+ / Stop / X- / Stop / Y+ / Stop / Y- / Stop
Zoom + / Stop / Zoom - / Stop
Exit
Hide Menu

First line show name of the current object, press it to see the next one.

You can step back, search, rotate, move, zoom and hide the menu to get better view of objects.

Search menu can use text entry in Oolite 1.79 and show the details of your ship to easily compare with others, and fallback to starting selection list in 1.77.


Instructions

In Oolite v1.79 or later do not unzip the .oxz file, just move into the AddOns folder of your Oolite installation.

In Oolite v1.77 make a Gallery.oxp subfolder in your AddOns folder and unzip the .oxz file into the newly created subfolder.


Dependencies

Oolite v1.77 but v1.79 or later recommended.


Limitations

Every menu press redraw ship model so shader colours and decals will change by all Rotate, Move, etc. press.

Ship details hidden based on the following (maybe need to extend):

  • Technical Reference Library OXP (validator copied from v1.0.1 but call the original if TRL OXP installed),
  • ccl_missionShip in scriptInfo,
  • "stealth" word within dataKey or primaryRole.

This OXP use Ship.keys(), Ship.roles() and Ship.keysForRole("role") methods in Oolite v1.79. There are a slow and inaccurate method for Oolite v1.77 which try to get all ships but a few left out randomly. Moreover can cause crash at game start if not enough memory (if spinning cobra appear then you have enough memory). You can reduce the $GalleryMaxIt variable in gallery.js to avoid the problem if needed but more ship will be left out.

Can show ship.energyRechargeRate and ship.extraCargo in v1.79 only.

Ships with "subent" word in dataKey are removed to skip subentities in Griff_Shipset_Replace_v1.34.oxp.

Turrets, docks and other subentities without "subent" rule will appear in v1.79 if all objects mode enabled in gallery.js, there are no exact method to skip all of these. In v1.77 it is not a problem due to the fallback method can include ships with given roles only (see in gallery.js, you can extend if you want) so all OXP ships without standard roles left out completely.


Setings in gallery.js

this.$GalleryAll = false; //Gallery of all objects (cheat)
this.$GalleryDefaultZoom = 1.5; //default size of ships
this.$GalleryMaxIt = 5; //max. iteration in Oolite v1.77, reduce if cause problems
this.$GalleryLog = false; //verbose log
this.$GalleryRoles = ["all", "player", ... ]; //main roles, you can add more
this.$GallerySpeed = 2; //move and zoom speed


License

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License version 3.0.

If you are re-using any piece of this OXP, please let me know by sending an e-mail to norbylite at gmail.com.

Background image source: Start Choices OXP by spara.


Changelog

2013.11.24. v0.7  Show encountered and playable ships only by default.
                  Show max.energy in banks, recharge in words and name instead of dataKey.
                  Details of some ships are hidden using Technical Reference Library OXP by spara.
                  Must set $GalleryAll to true if wanted all ships and details.
                  Search menu with text entry in Oolite 1.79 and selection list in 1.77.
2013.11.23. v0.6  Works with Oolite v1.77 also (but slow and limited).
2013.11.22. v0.5  First usable version.
2013.11.21. v0.1  First test files.


Download Gallery OXP from here or here.

Quick Facts

Levelindicator0.png
0-{{{2}}}
Version Released License Features Category Author(s) Feedback
0.7 2013-11-25 CC BY-NC-SA 3 Show installed ships Misc OXPs Norby BB-Link