Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.95.1a is out! (12/10/21); Blog post: Hyperspace Topography (10/12/22)

Pages: 1 2 [3]

Author Topic: [0.95.1a] Lightshow 1.41 (2021/03/27)  (Read 148168 times)

vaarelsauce

  • Ensign
  • *
  • Posts: 7
    • View Profile
Re: [0.95.1a] Lightshow 1.41 (2021/03/27)
« Reply #30 on: January 25, 2022, 07:03:19 PM »

Is it possible to code it in a way so that it's more mod-friendly?

For example, having a dynamic code that changes ALL beam weapons's color based on its type, like:
if(beam color is)
[PD Lasers] {change to yellow}
[Kinetic] {change to green}
[EMP] {change to teal}
[Energy] {change to dark blue}
[Phase/Tachyon] {change to pink}
[High Explosive] {change to red}
else {change to white}

As the mod currently is, if I want to add/change a beam weapon's color, I have to manually insert each weapon's
[id,type,size,intensity,fadeout,color,offset,hit size,hit intensity,hit fadeout,hit color,flash size,flash intensity,flash fadeout,flash color,flash offset,chance,fighter dim]

and that would take a long time, if I have mods that add 100+ wide variety of beam weapons.
Logged

Harmful Mechanic

  • Admiral
  • *****
  • Posts: 1360
  • Secret Beef Cultist
    • View Profile
Re: [0.95.1a] Lightshow 1.41 (2021/03/27)
« Reply #31 on: January 25, 2022, 08:16:25 PM »

...if I want to add/change a beam weapon's color, I have to manually insert each weapon's
[id,type,size,intensity,fadeout,color,offset,hit size,hit intensity,hit fadeout,hit color,flash size,flash intensity,flash fadeout,flash color,flash offset,chance,fighter dim]
...That's GraphicsLib; Lightshow just supports it.

You could always write a shell script to change the relevant values in your own copies (get the weapon_data.csv entry, check damage type, change the values in the GraphicsLib light_data.csv file - EDIT: it turns out this file is pretty variable between mods, so you'd have to go into the ModPlugin and locate the GraphicsLib light data spreadsheet manually); not sure that's a great use of anybody's time, but it's at least possible.
« Last Edit: January 25, 2022, 08:21:42 PM by Harmful Mechanic »
Logged

Tartiflette

  • Admiral
  • *****
  • Posts: 3509
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: [0.95.1a] Lightshow 1.41 (2021/03/27)
« Reply #32 on: January 25, 2022, 11:16:56 PM »

Is it possible to code it in a way so that it's more mod-friendly?
I wouldn't call "changing other people's mods" as being "mod friendly"! :o
On the contrary I think that would break SO MANY things I wouldn't try it even if it was a desirable feature. But I don't think it is because:

First, unlike vanilla most mods do a good job at making their beams look different and appropriate for their damage type;

Second, it would actively detract from the main feature of the mod that is to make beams look different from each-other to better grasp what is firing at you. If every mod started to have the same beam color for a given damage, it would become extremely difficult to identify what is what at glance.
Logged
 
Pages: 1 2 [3]