Difference between revisions of "BGS2 Doc"
m (Added user settings overview) |
Cholmondely (talk | contribs) (Added another couple of tunnel effect pictures) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{OXPNote|This documentation reflects the state since v1.10 (2016). For the older documentation see [[BGS Doc]]}} | ||
+ | |||
== Console usage == | == Console usage == | ||
{{CodeEx|codeex=worldScripts.BGS._Help();}} | {{CodeEx|codeex=worldScripts.BGS._Help();}} | ||
Line 13: | Line 15: | ||
== Properties == | == Properties == | ||
'''$pub''' - Holds various entries for customization via other AddOns. | '''$pub''' - Holds various entries for customization via other AddOns. | ||
− | :;chat: Array. Holds filenames for aegis chatter. | + | :;chat: Array. Holds filenames for aegis chatter. To expand push your files in it. |
:;engineAmbi: String. Ambient sound while engine is running. | :;engineAmbi: String. Ambient sound while engine is running. | ||
:;engineDown: String. Sound for decelerating. | :;engineDown: String. Sound for decelerating. | ||
Line 30: | Line 32: | ||
:;bgs_engineUp:String/Filename. Playership - engine acceleration sound. | :;bgs_engineUp:String/Filename. Playership - engine acceleration sound. | ||
:;bgs_engineDown:String/Filename. Playership - engine deceleration sound. | :;bgs_engineDown:String/Filename. Playership - engine deceleration sound. | ||
+ | :;bgs_chatExpand:Boolean. Station. Enables chatter for secondary stations if chatter is enabled. {{AV|2.5.1}} | ||
:;bgs_tunnel_off:Boolean. Station - disables the tunnel effect. | :;bgs_tunnel_off:Boolean. Station - disables the tunnel effect. | ||
+ | :;bgs_tunnel_contrast:Number. Station - adjusts the texture contrast. Default 0.4. {{AV|2.5}} | ||
:;bgs_tunnel_shape:Number. Station - range 0.38 - 5.0. If not specified the script takes the ratio of the first found dock bounding box x/y to get the shape. | :;bgs_tunnel_shape:Number. Station - range 0.38 - 5.0. If not specified the script takes the ratio of the first found dock bounding box x/y to get the shape. | ||
::0.5 - square 45 degrees rotated with aspect ratio | ::0.5 - square 45 degrees rotated with aspect ratio | ||
::1 - circle with aspect ratio | ::1 - circle with aspect ratio | ||
::>1 - squircle...rectangle (>1.1 with decreased aspect ratio to get a wider tunnel) | ::>1 - squircle...rectangle (>1.1 with decreased aspect ratio to get a wider tunnel) | ||
− | :;bgs_tunnel_texture:String/Filename. Station. | + | :;bgs_tunnel_texture:String/Filename. Station. Default bgs_docking_tunnel01.png. |
− | :;bgs_tunnel_tint:Array. Station. Color for lines in docking effect. | + | :;bgs_tunnel_tint:Array. Station. Color for lines in docking effect. Default 0.2824,0.171,0.0507. |
Examples: | Examples: | ||
Line 47: | Line 51: | ||
== Docking FX == | == Docking FX == | ||
+ | [[File:Rescue Stations- Rrsfl hq bgs tunnel.png|thumb|250px|right|Rescue Stations (rrsfl_hq_bgs_tunnel.png)]] | ||
+ | [[File:Superhub docking tunnel.png|thumb|250px|right|Superhub (superhub_docking_tunnel.png)]] | ||
+ | [[File:Taxi docking tunnel01.png|thumb|250px|right|Taxi Galactica (taxi_docking_tunnel01.png)]] | ||
+ | [[File:WildShips bgs.png|thumb|250px|right|WildShips (Kiota stations: wildShips_bgs.png)]] | ||
+ | [[File:Cb68 sodalite station-dock-bgs tunnel-riredi-coluber.png|thumb|250px|right|Riredi OXP (Cb68 sodalite station-dock-bgs tunnel-riredi-coluber.png)]] | ||
+ | [[File:Sodalite station BGS tunnel.png|thumb|250px|right|Riredi OXP BGS effect]] | ||
<gallery widths="100px" heights="100px" perrow="5"> | <gallery widths="100px" heights="100px" perrow="5"> | ||
− | File:Bgs docking effect 1.jpg|1.1 | + | File:Bgs docking effect 1.jpg|1.1<br>bgs_docking_tunnel01 |
File:Bgs docking effect 2.jpg|1.2 | File:Bgs docking effect 2.jpg|1.2 | ||
File:Bgs docking effect 3.jpg|1.3 | File:Bgs docking effect 3.jpg|1.3 | ||
Line 58: | Line 68: | ||
The shader applies some glowing lines and adds a opening door. Artists don't have to care much about it - the shaders does it on it's own. The interesting bit though is the coloring of the door. It's taken from the input image and gets mixed with the glowing lines to some extend to get a smoother transition between tunnel and door and the tint (bgs_tunnel_tint, default rgb: 0.2824, 0.171, 0.0507) gets applied. | The shader applies some glowing lines and adds a opening door. Artists don't have to care much about it - the shaders does it on it's own. The interesting bit though is the coloring of the door. It's taken from the input image and gets mixed with the glowing lines to some extend to get a smoother transition between tunnel and door and the tint (bgs_tunnel_tint, default rgb: 0.2824, 0.171, 0.0507) gets applied. | ||
+ | === Examples === | ||
+ | BGS itself has 3 basic textures (bgs_docking_tunnel01.png - ''shown above at 1.1'', bgs_docking_tunnel02.png & bgs_docking_tunnel03.png) | ||
+ | |||
+ | *[[Anarchies]] has another 4 - two based on bgs_docking_tunnel02.png, the military tunnel texture and a variant on it. | ||
+ | *[[Feudal States]] has the unique and unexciting lodge-tunnel.png | ||
+ | *[[Liners]] uses bgs_docking_tunnel03.png | ||
+ | *[[Rescue Stations]] has two BGS tunnel textures, a unique one for the Rescue Stations and a variant of bgs_docking_tunnel02.png. | ||
+ | *[[Superhub]] has a unique texture (superhub_docking_tunnel.png) | ||
+ | *[[Taxi Galactica]] is based on bgs_docking_tunnel01.png with the TG logo added | ||
+ | *[[Wildships]] has a unique one for the various Kiota stations | ||
+ | |||
+ | |||
+ | *[[Behemoth]] has the military tunnel texture also used in Anarchies | ||
== User settings == | == User settings == | ||
− | BGS can be configured through | + | BGS can be configured through Library.oxp's [[Lib_Config|"Lib_Config"]]. None of them should be touched by other AddOns. The options are |
− | :;jitter:Joystick jitter adjustment. Float, Def 0.002. | + | :;jitter:Joystick jitter adjustment. Float, Def 0.002. For inhibiting jitter in a faulty joystick |
− | :;cntAdd:Countdown offset. Float, Def -0.3. | + | :;cntAdd:Countdown offset. Float, Def -0.3. For tweaking the hyperspace jump countdown to match that in the console messages. |
− | :;chatPause:Random pause for Aegis chatter in range 14...chatPause. Integer, Def 26. | + | :;chatPause:Random pause for BGS's Aegis chatter in range 14...chatPause. Integer, Def 26. |
− | :;Chatter:Switch for Aegis chatter. Bool, Def true. | + | :;Chatter:Switch for BGS's Aegis chatter. Bool, Def true. |
+ | :;ChatExpand:Allow BGS chatter for secondary stations. Ruled by Chatter setting. Bool, Def false. {{AV|2.5.1}} | ||
:;Countdown:Timed countdown. Bool, Def true. | :;Countdown:Timed countdown. Bool, Def true. | ||
:;Engine:Engine sounds. Bool, Def true. | :;Engine:Engine sounds. Bool, Def true. | ||
Line 75: | Line 99: | ||
:;Dock FX:Launching and docking visual effect. Bool, Def true. | :;Dock FX:Launching and docking visual effect. Bool, Def true. | ||
:;FX Redux:Reduced shaders for Hyperspace and launching. Bool, Def false. | :;FX Redux:Reduced shaders for Hyperspace and launching. Bool, Def false. | ||
+ | :;Old Hyperspace:Selects old (BGS v.1.10.9) spiderweb effect. Bool, Def false. | ||
+ | [[File:Library (BGS Config Flags).png|left|300px]] | ||
− | + | [[Category:OXP API's]] | |
− | [[Category: |
Latest revision as of 18:14, 7 February 2024
Contents
Console usage
worldScripts.BGS._Help(); |
Autoconfiguration
Countdown
BGS checks the keys in customsounds.plist ([galactic-hyperspace-countdown-begun]
and [hyperspace-countdown-begun]
) to see if another soundpack is using them. If so BGS disables its own countdown.
Effects
On startUp
BGS checks the shader support level. If it's switched off or no shader support is available all effects are disabled.
Properties
$pub - Holds various entries for customization via other AddOns.
- chat
- Array. Holds filenames for aegis chatter. To expand push your files in it.
- engineAmbi
- String. Ambient sound while engine is running.
- engineDown
- String. Sound for decelerating.
- engineUp
- String. Sound for accelerating.
- witch
- Array. Countdown sounds starting with zero.
- witchCNT
- Number. Start countdown at +1.
- witchG
- String. Sound for galactic jump.
- witchH
- String. Sound for standard jump.
shipdata.plist
Additional keys for specific entities are available and can be specified via script_info dictionary.
Keys
- bgs_engineAmbi
- String/Filename. Playership - engine mumble sound.
- bgs_engineUp
- String/Filename. Playership - engine acceleration sound.
- bgs_engineDown
- String/Filename. Playership - engine deceleration sound.
- bgs_chatExpand
- Boolean. Station. Enables chatter for secondary stations if chatter is enabled. Added in v2.5.1
- bgs_tunnel_off
- Boolean. Station - disables the tunnel effect.
- bgs_tunnel_contrast
- Number. Station - adjusts the texture contrast. Default 0.4. Added in v2.5
- bgs_tunnel_shape
- Number. Station - range 0.38 - 5.0. If not specified the script takes the ratio of the first found dock bounding box x/y to get the shape.
- 0.5 - square 45 degrees rotated with aspect ratio
- 1 - circle with aspect ratio
- >1 - squircle...rectangle (>1.1 with decreased aspect ratio to get a wider tunnel)
- bgs_tunnel_texture
- String/Filename. Station. Default bgs_docking_tunnel01.png.
- bgs_tunnel_tint
- Array. Station. Color for lines in docking effect. Default 0.2824,0.171,0.0507.
Examples:
Playership (without preloaded sounds):
script_info = {bgs_engineAmbi = "myEngine.ogg"; bgs_engineUp = "myEngineUp.ogg"; bgs_engineDown = "myEngineDown.ogg";};
Station:
script_info = {bgs_tunnel_texture = "myOwnTexture.png";};
Docking FX
The effect is done via VisualEffect entity. The model is a plane and gets scaled to fullscreen (with z = -1).
The input texture (figure 1.1) gets wrapped around via abs(atan(y,x)) (figure 1.2). You can imagine this as a cylinder with infinite length and you are looking into it, with a mirror axis along x. As the shape can be adjusted we can reach square, circle and squircle (figure 1.3).
The shader applies some glowing lines and adds a opening door. Artists don't have to care much about it - the shaders does it on it's own. The interesting bit though is the coloring of the door. It's taken from the input image and gets mixed with the glowing lines to some extend to get a smoother transition between tunnel and door and the tint (bgs_tunnel_tint, default rgb: 0.2824, 0.171, 0.0507) gets applied.
Examples
BGS itself has 3 basic textures (bgs_docking_tunnel01.png - shown above at 1.1, bgs_docking_tunnel02.png & bgs_docking_tunnel03.png)
- Anarchies has another 4 - two based on bgs_docking_tunnel02.png, the military tunnel texture and a variant on it.
- Feudal States has the unique and unexciting lodge-tunnel.png
- Liners uses bgs_docking_tunnel03.png
- Rescue Stations has two BGS tunnel textures, a unique one for the Rescue Stations and a variant of bgs_docking_tunnel02.png.
- Superhub has a unique texture (superhub_docking_tunnel.png)
- Taxi Galactica is based on bgs_docking_tunnel01.png with the TG logo added
- Wildships has a unique one for the various Kiota stations
- Behemoth has the military tunnel texture also used in Anarchies
User settings
BGS can be configured through Library.oxp's "Lib_Config". None of them should be touched by other AddOns. The options are
- jitter
- Joystick jitter adjustment. Float, Def 0.002. For inhibiting jitter in a faulty joystick
- cntAdd
- Countdown offset. Float, Def -0.3. For tweaking the hyperspace jump countdown to match that in the console messages.
- chatPause
- Random pause for BGS's Aegis chatter in range 14...chatPause. Integer, Def 26.
- Chatter
- Switch for BGS's Aegis chatter. Bool, Def true.
- ChatExpand
- Allow BGS chatter for secondary stations. Ruled by Chatter setting. Bool, Def false. Added in v2.5.1
- Countdown
- Timed countdown. Bool, Def true.
- Engine
- Engine sounds. Bool, Def true.
- EngineAmbi
- Engine ambient sound. Bool, Def true.
- Jump
- Hyperspace jump sounds. Bool, Def true.
- QMine
- Quirium mine sound. Bool, Def true.
- Jump FX
- Hyperspace visual effect. Bool, Def true.
- Exit FX
- Hyperspace exit visual effect. Bool, Def true.
- Dock FX
- Launching and docking visual effect. Bool, Def true.
- FX Redux
- Reduced shaders for Hyperspace and launching. Bool, Def false.
- Old Hyperspace
- Selects old (BGS v.1.10.9) spiderweb effect. Bool, Def false.