BGS 2.5.1 but with the old hyperspace effect

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

User avatar
Nite Owl
---- E L I T E ----
---- E L I T E ----
Posts: 523
Joined: Sat Jan 20, 2018 4:08 pm
Location: In The Dark

Re: BGS 2.5.1 but with the old hyperspace effect

Post by Nite Owl »

Very nice work, much appreciated. The only slight bit of fixing that could be recommended would be in regards to the documentation. As in what the options in the Library Configuration do exactly and which ones are mutually exclusive. After some fiddling about with saves and relaunches and multiple jumps it becomes obvious what each option does but the need for such fiddling might put some players off using this OXZ. An addition to the ReadMe file with this information would go a long way towards avoiding the need to test out each setting to see what it does and how well it might play with the other settings. The in game descriptions and the comments in the JavaScript file do not cover it with enough detail to allow for easy choices without some experimentation.

One quick question. The purple lines that show up on the old school wormhole as one exits it do not seem as bright on my end as they do in the picture on the Wiki Page. This could be due to settings and such on my end. However, if it is not on my end is there any bit of code or graphic that can be tweaked to brighten these lines up? Please be very specific if it comes down to code tweaking as the whole world of Shaders is still a mystery to me.

Thank You once again for the retro update.
Humor is the second most subjective thing on the planet

Brevity is the soul of wit and vulgarity is wit's downfall

Good Night and Good Luck - Read You Soon
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: BGS 2.5.1 but with the old hyperspace effect

Post by Cody »

You'd need someone like Diz to write such documentation for Library. He has the knack of explaining that kind of stuff to dumb pilots like me. I guess Library (like CCL before it) was aimed purely at serious OXP developers, who wouldn't really need such documentation, but it was perhaps beyond the ken of many OXPers, and too few took to using it.

I may be wrong, of course - this is not unusual.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
tsoj
Deadly
Deadly
Posts: 199
Joined: Wed May 18, 2016 8:19 pm
Location: Berlin
Contact:

Re: BGS 2.5.1 but with the old hyperspace effect

Post by tsoj »

Nite Owl wrote: Sat Feb 26, 2022 10:33 pm
Very nice work, much appreciated. The only slight bit of fixing that could be recommended would be in regards to the documentation. As in what the options in the Library Configuration do exactly and which ones are mutually exclusive. After some fiddling about with saves and relaunches and multiple jumps it becomes obvious what each option does but the need for such fiddling might put some players off using this OXZ. An addition to the ReadMe file with this information would go a long way towards avoiding the need to test out each setting to see what it does and how well it might play with the other settings. The in game descriptions and the comments in the JavaScript file do not cover it with enough detail to allow for easy choices without some experimentation.
I don't really know these options as well. If you found out what some of these options do that would be confusing without further information, I can update the readme. If you have a question about a specific option, I can try an help understanding it by looking at the code, maybe I'll understand what it means then.
One quick question. The purple lines that show up on the old school wormhole as one exits it do not seem as bright on my end as they do in the picture on the Wiki Page. This could be due to settings and such on my end. However, if it is not on my end is there any bit of code or graphic that can be tweaked to brighten these lines up? Please be very specific if it comes down to code tweaking as the whole world of Shaders is still a mystery to me.
I tried to understand the shader, but unfortunately I can't follow it. There are some numbers in the three lines under the comment // Glowing lines in the file Shaders/bgs_hyper.fragment. Maybe experimenting with the numbers there does something you want.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5004
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: BGS 2.5.1 but with the old hyperspace effect

Post by Cholmondely »

tsoj wrote: Sun Feb 27, 2022 6:02 pm
Nite Owl wrote: Sat Feb 26, 2022 10:33 pm
Very nice work, much appreciated. The only slight bit of fixing that could be recommended would be in regards to the documentation. As in what the options in the Library Configuration do exactly and which ones are mutually exclusive. After some fiddling about with saves and relaunches and multiple jumps it becomes obvious what each option does but the need for such fiddling might put some players off using this OXZ. An addition to the ReadMe file with this information would go a long way towards avoiding the need to test out each setting to see what it does and how well it might play with the other settings. The in-game descriptions and the comments in the JavaScript file do not cover it with enough detail to allow for easy choices without some experimentation.
I don't really know these options as well. If you found out what some of these options do that would be confusing without further information, I can update the readme. If you have a question about a specific option, I can try and help understanding it by looking at the code, maybe I'll understand what it means then.
Ummm... I could take a screen shot of the relevant F4 options screen and put it up on the wiki page with a commentary. Would that do it? You could then adapt it for the ReadMe (assuming anybody ever does!).
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Nite Owl
---- E L I T E ----
---- E L I T E ----
Posts: 523
Joined: Sat Jan 20, 2018 4:08 pm
Location: In The Dark

Re: BGS 2.5.1 but with the old hyperspace effect

Post by Nite Owl »

After a bit of further experimentation the following brightened up said Purple Lines more than enough to satisfy.

Code: Select all

rgb += vec3(y*rad,y*0.1,y*0.1); // TWEAK - was rgb += vec3(y*rad,y*0.4,y*0.8);
This code occurs at line 66 (Notepad++) in Shaders/bgs_hyper.fragment of this OXZ. Thank You once again.
Humor is the second most subjective thing on the planet

Brevity is the soul of wit and vulgarity is wit's downfall

Good Night and Good Luck - Read You Soon
User avatar
Cholmondely
Archivist
Archivist
Posts: 5004
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: BGS 2.5.1 but with the old hyperspace effect

Post by Cholmondely »

I've put something up: see BGS

It needs more work!

Question: Tsoj, since you seem to understand these things, is it possible to alter the FLAGS page so that things are in a more logical order?

Image

These are split between Sounds & Visuals.

But ChatExpand is out of order with the others. How easy is it to change the order and make it more logical (such as immediately after "Jump")?

And does anybody know what "0 2559 100111111111 12" refer to on the third line of the screen?
100111111111 seem to be an unordered copy of the 0/1's on the lines beneath
Or the meaning of the concluding "# 0" on the previous line?
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
tsoj
Deadly
Deadly
Posts: 199
Joined: Wed May 18, 2016 8:19 pm
Location: Berlin
Contact:

Re: BGS 2.5.1 but with the old hyperspace effect

Post by tsoj »

Cholmondely wrote: Mon Feb 28, 2022 11:16 am
And does anybody know what "0 2559 100111111111 12" refer to on the third line of the screen?
100111111111 seem to be an unordered copy of the 0/1's on the lines beneath
Or the meaning of the concluding "# 0" on the previous line?
All flags are encoded in a single integer. If you look at this integer in binary form (so encoded only in 0s and 1s), each of the flags are represented by one bit at a single positions. So for example, the Chatter flag is set, if the first bit is set to 1, and the 3rd bit is set, then the Engine flag is set.

The binary form of this number is the "100111111111" (basically the ones and zeroes of the flags in the opposite order). On the left of this number, it is again represented, but in decimal form. I don't know what the other two numbers (0 and 12) mean.

Code: Select all

1  0  0  1  1  0  0  1  1  1  0  1 = 100110011101 (in binary) = 2461 (in decimal)
^  ^  ^  ^  ^  ^  ^  ^  ^  ^  ^  ^
|  |  |  |  |  |  |  |  |  |  |  |
|  |  |  |  |  |  |  |  |  |  |  Chatter is set
|  |  |  |  |  |  |  |  |  |  Countdown is not set
|  |  |  |  |  |  |  |  |  Engine is set
|  |  |  |  |  |  |  |  EngineAmbi is set
|  |  |  |  |  |  |  Jump is set
|  |  |  |  |  |  QMine is not set
|  |  |  |  |  JumpFX is not set
|  |  |  |  Exit FX is set
|  |  |  Dock FX is set
|  |  FX Redux is not set
|  ChatExpand is not set
Old Hyperspace is set
Question: Tsoj, since you seem to understand these things, is it possible to alter the FLAGS page so that things are in a more logical order?

These are split between Sounds & Visuals.

But ChatExpand is out of order with the others. How easy is it to change the order and make it more logical (such as immediately after "Jump")?
It would be possible doing this, but because these are stored like I described above (each flag being represented by a bit at a specified position), it would be a bit difficult (especially because this makes it very easy to create subtle bugs) to change this.

Also, thank you for the wiki-page!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: BGS 2.5.1 but with the old hyperspace effect

Post by Cody »

tsoj wrote: Mon Feb 28, 2022 3:57 pm
I don't know what the other two numbers (0 and 12) mean.
[dumb pilot] 12 flags? [/dumb pilot]
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Cholmondely
Archivist
Archivist
Posts: 5004
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: BGS 2.5.1 but with the old hyperspace effect

Post by Cholmondely »

Cody wrote: Mon Feb 28, 2022 7:48 pm
tsoj wrote: Mon Feb 28, 2022 3:57 pm
I don't know what the other two numbers (0 and 12) mean.
[dumb pilot] 12 flags? [/dumb pilot]
There are two pages for modifying the oxp: one for changing flags, one for changing values.

Image

Flags seem to be Boolean yes/no choices
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: BGS 2.5.1 but with the old hyperspace effect

Post by Cody »

Yeah... I know all that. But there are 12 "items" on that page, and a mysterious number 12.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Post Reply