Jump to content

[0.90] Stack Inline Lights 0.7 [update 07/04/2015]]


alexustas

Recommended Posts

19 minutes ago, Jiraiyah said:

oh yah, it shows two lights and apparently both work in vab but in launch only the second one works !

so if i remove bulb section from the part would it fix the issue? although i don't have bulb installed !

2474c5b20bc64ec08a13419976d2086c.png

GOD DAMN I AM IN LOOOOOVE :D never saw a kerbal's face with any other light than white till now :D another question, if i install both bulb and surface light in game, what would happen? would they interfere with each other or not?

I tried it and just both buttons work the lights but I could change the color with surface light mod maybe i got a old one will check again you make sure

Link to comment
Share on other sites

24 minutes ago, Jiraiyah said:

hmm i have a better idea, i will add a little MM patch to choose between different settings will give you the result to test by yourself

O~K this may look dirty but I am not pro in MM patches, can you make it cleaner than this? I first remove both modules from all parts then add them back based on the plugin

  Reveal hidden contents

@PART[dockBRIGHT]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[dockBRIGHTjr]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[dockBRIGHTsr]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL020625mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL02125mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGBbatt300]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGBbatt3K]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL02375mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}

@PART[dockBRIGHT]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[dockBRIGHTjr]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[dockBRIGHTsr]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL020625mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL02125mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL0225mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL0225mRGBbatt300]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL0225mRGBbatt3K]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL02375mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}

@PART[dockBRIGHT]:NEEDS[BULB]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[dockBRIGHTjr]:NEEDS[BULB]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[dockBRIGHTsr]:NEEDS[BULB]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL020625mRGB]:NEEDS[BULB]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL02125mRGB]:NEEDS[BULB]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL0225mRGB]:NEEDS[BULB]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL0225mRGBbatt300]:NEEDS[BULB]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL0225mRGBbatt3K]:NEEDS[BULB]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL02375mRGB]:NEEDS[BULB]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}

 

 

Some how I must have grab a older surface light  made sure to get the new and all works now and if both are installed bulb will not work and you mind if add that to the part cfg  or you want them to get it from your link ?

Link to comment
Share on other sites

here you go, take a look at this patch now, i wonder if @PART[SIL*] would find all the parts at once or not if so, that would reduce the length of the patch

Spoiler

 

@PART[dockBRIGHT]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[dockBRIGHTjr]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[dockBRIGHTsr]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL020625mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL02125mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGBbatt300]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGBbatt3K]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL02375mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}

@PART[dockBRIGHT]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[dockBRIGHTjr]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[dockBRIGHTsr]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL020625mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL02125mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL0225mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL0225mRGBbatt300]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL0225mRGBbatt3K]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL02375mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}

@PART[dockBRIGHT]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[dockBRIGHTjr]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[dockBRIGHTsr]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL020625mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL02125mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL0225mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL0225mRGBbatt300]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL0225mRGBbatt3K]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL02375mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}

Add it to the mod if you want to, I changed it so that bulb module would only add IF surface light is not there. thanks for your help sir, also, do you think the original dev would mind if you guys add this to spacedock? after all you can give him the author ability i think?

Edited by Jiraiyah
Link to comment
Share on other sites

5 minutes ago, Jiraiyah said:

here you go, take a look at this patch now, i wonder if @PART[SIL*] would find all the parts at once or not if so, that would reduce the length of the patch

  Reveal hidden contents

 

@PART[dockBRIGHT]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[dockBRIGHTjr]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[dockBRIGHTsr]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL020625mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL02125mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGBbatt300]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGBbatt3K]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL02375mRGB]
{
    !MODULE[ModuleLight] {}
    !MODULE[ModuleColoredLensLight] {}
}

@PART[dockBRIGHT]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[dockBRIGHTjr]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[dockBRIGHTsr]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL020625mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL02125mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL0225mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL0225mRGBbatt300]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL0225mRGBbatt3K]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}
@PART[SIL02375mRGB]:NEEDS[SurfaceLights]:FINAL
{
    MODULE
    {
          name = ModuleColoredLensLight
          lightName = SIL0225DCLS
          useAnimationDim = true
          lightBrightenSpeed = 2.5
          lightDimSpeed = 2.5
          resourceAmount = 0.02
          animationName = SIL0225turnON
          useResources = true
          lightR = 1.0
          lightG = 0.9
          lightB = 0.8
    }
}

@PART[dockBRIGHT]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[dockBRIGHTjr]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[dockBRIGHTsr]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL020625mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL02125mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL0225mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL0225mRGBbatt300]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL0225mRGBbatt3K]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}
@PART[SIL02375mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    MODULE
    {
        name = ModuleLight
        lightName = SIL0225DCLS
        useAnimationDim = true
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        animationName = SIL0225turnON
        resourceAmount = 0.0010
        useResources = true
    }
}

Add it to the mod if you want to, I changed it so that bulb module would only add IF surface light is not there. thanks for your help sir, also, do you think the original dev would mind if you guys add this to spacedock? after all you can give him the author ability i think?

Think of just taking the MODULE's out that way could shorten the part and just add it to the cfg pretty sure.

Link to comment
Share on other sites

here we go sir

Spoiler

@PART[dockBRIGHT]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[dockBRIGHTjr]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[dockBRIGHTsr]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL020625mRGB]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL02125mRGB]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL0225mRGB]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL0225mRGBbatt300]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL0225mRGBbatt3K]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL02375mRGB]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}

@PART[dockBRIGHT]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[dockBRIGHTjr]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[dockBRIGHTsr]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL020625mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL02125mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGBbatt300]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGBbatt3K]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL02375mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}

 

Link to comment
Share on other sites

14 minutes ago, Jiraiyah said:

here we go sir

  Hide contents

@PART[dockBRIGHT]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[dockBRIGHTjr]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[dockBRIGHTsr]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL020625mRGB]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL02125mRGB]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL0225mRGB]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL0225mRGBbatt300]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL0225mRGBbatt3K]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}
@PART[SIL02375mRGB]:NEEDS[SurfaceLights]:FINAL
{
    !MODULE[ModuleLight] {}
}

@PART[dockBRIGHT]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[dockBRIGHTjr]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[dockBRIGHTsr]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL020625mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL02125mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGBbatt300]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL0225mRGBbatt3K]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}
@PART[SIL02375mRGB]:NEEDS[BULB,!SurfaceLights]:FINAL
{
    !MODULE[ModuleColoredLensLight] {}
}

 

Does MM look for the mod fold or the plugin name ?

Link to comment
Share on other sites

It looks for the part names in any folder and then the module names so if you want you can simply drop that patch right under your game data folder in a .cfg file but if you want to republish this mod somewhere, it's better to keep it's patches inside it's folder to prevent file name duplication and over writes

Edited by Jiraiyah
Link to comment
Share on other sites

  • 1 year later...
17 minutes ago, Jiraiyah said:

I am not that familiar with licensing, please some one tell me, do we have the permission to take this mod and integrate it with other mods or should we wait for a permission from developer himself?

OP is still an active user.  

Link to comment
Share on other sites

1 hour ago, Mecripp said:

He is still around but it's https://creativecommons.org/licenses/by-nc-sa/3.0/ so it's really free to share must give credit 

thanks. Will get it into my mod and who knows you may see those lights around few other parts on different mods using MM patches :P that is if i get the free time for those patches

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...
  • 9 months later...
On 10/17/2016 at 12:48 AM, Mecripp said:

I tried it and just both buttons work the lights but I could change the color with surface light mod maybe i got a old one will check again you make sure

Hi

@alexustas

 

I'm trying to maintain this mod with updating the bulb myself, I have added some features to bulb that is solving some of it's issues in the vab, but the problem is, no matter what i try, the "light" is not emitting any "light", only the color is changing and the emissivness of it changes, but the ligth, it looks like it's not there at all ! can you help?

 

Edit :

Actually, the light is there, but behaves very strangely

http://prntscr.com/quptd0

 

First of all, it's one directional, second of all, it's not lightening the floor, third, i don't know how to describe it, but even if you move the part up or down, around the root part, it's only directing "toward" the root part !

 

this may help more, the probe core is ON the floor

http://prntscr.com/qupvpj

the core and the battery on top of it is lighten up, but not the floor ! the thing is that, bulb and my modifications, has nothing to do with this, i just change the color of the light and the emissive color of the texture

Edited by Jiraiyah
Link to comment
Share on other sites

  • 2 months later...

Greetings.

I have asked @alexustas's permission to update / continue / adopt / release this mod.

I absolutely love these things and really want others to enjoy them as well.

Hopefully I hear back from @alexustas with an answer, but in case I don't will respectfully proceed as permitted by the license of this mod.

I will keep names provide recognition of original authors/maintainers; and I will gladly step aside should you ever want to continue these mod(s) yourself.

Thank you kindly in advance!


Stack Inline Lights: license-CC--BY--SA%203.0-lightgrey

88x31.png CC BY-NC-SA 3.0

 

NEW THREADS:

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...