Rodger

[1.3.0] Back In Black v1.2 (17/10/17) - Black plane textures for Stock/Ven/Mk2X/SXT/Quiztech/OPT/AirplanePlus/ALG

Recommended Posts

I had an error after loading ModuleManager and did a little fix

" [ModuleManager] ModuleManager: 64655 patches applied, found <color=orange>18 errors</color>
18 errors related to GameData/BackInBlack/BIB_Ven.cfg "

Those errors were e.g. "[ModuleManager] Error - more than one pass specifier on a node: BackInBlack/BIB_Ven/@PART[solarPanels1|solarPanels2]:FOR[BIBV]:AFTER[BackInBlack]".

I simply removed "[BIBV]:AFTER" so it would read e.g. "BackInBlack/BIB_Ven/@PART[solarPanels1|solarPanels2]:FOR[BackInBlack]in BIB_VEN.cfg .

(I also added "@tags ^= :$: Stealth" were it was missing so it would look cleaner, though pretty sure it didn't affect the fix)

Example of Before/After :

Spoiler

BEFORE

@PART[winglet|winglet3|basicFin]:FOR[BIBV]:AFTER[BackInBlack]:NEEDS[VenStockRevamp]
{
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Wing; winglet_008; base; Flap
        textureNames = VenStockRevamp/Squad/Parts/Aero/Fins_CLR; BackInBlack/Ven/Aero/Fins_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

AFTER

@PART[winglet|winglet3|basicFin]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth (~1/3 of the .cfg didn't have it)
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Wing;winglet_008;base;Flap  (I also removed the space after ";" in objectNames because ~2/3 of the .cgf didn't have the "space")
        textureNames = VenStockRevamp/Squad/Parts/Aero/Fins_CLR; BackInBlack/Ven/Aero/Fins_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

 

New BIB_Ven.cfg: 

Spoiler

@PART[winglet|winglet3|basicFin]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Wing;winglet_008;base;Flap
        textureNames = VenStockRevamp/Squad/Parts/Aero/Fins_CLR; BackInBlack/Ven/Aero/Fins_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[R8winglet]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Base;obj_ctrlSrf
        textureNames = VenStockRevamp/Squad/Parts/Aero/R8-CLR; BackInBlack/Ven/Aero/R8-CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[noseCone|rocketNoseCone]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Cone
        textureNames = VenStockRevamp/Squad/Parts/Aero/Nosecones_CLR; BackInBlack/Ven/Aero/Nosecones_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[basicCanard]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Base;Wing
        textureNames = VenStockRevamp/Squad/Parts/Aero/Fins_CLR; BackInBlack/Ven/Aero/Fins_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[RAPIER]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Body
        textureNames = VenStockRevamp/Squad/Parts/Propulsion/Rapier_CLR; BackInBlack/Ven/Propulsion/Rapier_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[vernierEngine]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = VernierEngine
        textureNames = VenStockRevamp/Squad/Parts/Propulsion/vernierEngine_CLR; BackInBlack/Ven/Propulsion/vernierEngine_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[RCSBlock|linearRcs|HeavyRcs|45DegreeRCS]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Cylinder_010;Cylinder_012;Cylinder_020;Cylinder_011
        textureNames = VenStockRevamp/Squad/Parts/Propulsion/RCS_CLR; BackInBlack/Ven/Propulsion/RCS_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[dockingPort1]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Hatch;1mCoveredBase
        textureNames = VenStockRevamp/Squad/Parts/DockingPorts/DockingPorts2k_CLR; BackInBlack/Ven/DockingPorts/DockingPorts2k_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}
@PART[dockingPortLateral]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = LinBase;Door;Door1
        textureNames = VenStockRevamp/Squad/Parts/DockingPorts/linearPort_CLR; BackInBlack/Ven/DockingPorts/linearPort_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}
@PART[parachuteRadial|radialDrogue]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = RadialMain;RadialDrogue;cap
        textureNames = VenStockRevamp/Squad/Parts/DockingPorts/parachutes_CLR; BackInBlack/Ven/DockingPorts/parachutes_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[telescopicLadderBay]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Cube_007;Door
        textureNames = VenStockRevamp/Squad/Parts/DockingPorts/DeployLadders_CLR; BackInBlack/Ven/DockingPorts/DeployLadders_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}
@PART[telescopicLadder]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Shortbase;DoorHinge
        textureNames = VenStockRevamp/Squad/Parts/DockingPorts/DeployLadders_CLR; BackInBlack/Ven/DockingPorts/DeployLadders_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[MK1Cargobay]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Bay;Door1;Door2
        textureNames = VenStockRevamp/Part Bin/NewParts/MK1parts/MK1-CLR; BackInBlack/Ven/Mk1/MK1-CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[MK1LFOFuselage]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Fuel;Plate
        textureNames = VenStockRevamp/Part Bin/NewParts/MK1parts/MK1-CLR; BackInBlack/Ven/Mk1/MK1-CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

@PART[size0PulseJet]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Base;Fairing;Plaque
        textureNames = VenStockRevamp/Part Bin/NewParts/Pulsejet/pulseJetEngine_CLR; BackInBlack/Ven/Propulsion/pulseJetEngine_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}
@PART[radPanelSm|radPanelLg|radPanelEdge]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Panel
        textureNames = VenStockRevamp/Squad/Parts/Electrical/FuelCells/FixedRadiators_CLR;BackInBlack/Ven/FuelCells/FixedRadiators_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}
@PART[*fairingSize*]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Base
        textureNames = VenStockRevamp/Squad/Parts/Fairings/FairingBase_CLR;BackInBlack/Ven/Fairings/FairingBase_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}
@PART[solarPanels1|solarPanels2]:FOR[BackInBlack]:NEEDS[VenStockRevamp]
{
    @tags ^= :$: Stealth
    MODULE
    {
        name = InterstellarTextureSwitch2
        moduleID = 88
        objectNames = Base;Door1;Door2
        textureNames = VenStockRevamp/Squad/Parts/Electrical/SolarPanels/Case_CLR;BackInBlack/Ven/SolarPanels/Case_CLR
        textureDisplayNames = Inactive; Activated
        switchableInFlight = false
        repaintableEVA = false
        switcherDescription = Stealth mode
        selectedTexture = 0
        hasSwitchChooseOption = true
    }
}

Keep the good work, love your mod.

Edited by Gabhunter123

Share this post


Link to post
Share on other sites

@Gabhunter123 what does the @tags ^=stuff do? Just curious.

 

And thanks, I got some errors too and been looking at just this. was going to post but you beat me too it.

Share this post


Link to post
Share on other sites

Honestly I don't know what the @tags stuff do. But it's in all his .cfg and was in the 2/3 of the ven.cfg so I presume he forgot to add it when he created the ven's stock revamp support.

Share this post


Link to post
Share on other sites

@tag says go to that entry in the .cfg file.   so you at "AT" that "tag" and then do something...  as in change the entry in the file to something else.  thus @ is "Edit an existing tag"

 

and yes this needs to be fixed in this mod's .cfg file as these errors will prevent MM from making the cache file.

 

the problem is that the .cfg as it is written is telling MM to do something at 2 different times.  "FOR" and "AFTER"  this is what causes the error.  the lines need to be edited so that there is only one directive that stipulates "when" this entry is run.  

 

now just removing the :FOR[BIBv] is probably the correct action. but you must be carful when doing this as if you get the ordering wrong it may break a mod.  however, I think for BIB , yes you are safe removing the :FOR directive.

 

to be more exact it may need to read :for[BIBV]:NEEDS[BackInBlack] as this is the "Vens" addon to BIB it should ensure BIB is installed before it makes the changes.

Edited by Bit Fiddler

Share this post


Link to post
Share on other sites

Thanks @Bit Fiddler for picking up on this, I've been away from KSP for a bit so sorry for the delay in noticing this. Should be able to get the fix up soon.

Also the @tags stuff is to add the search term 'stealth' to the end of the tags list, for the ingame part search.

Share this post


Link to post
Share on other sites

So with the changes to 1.4.2 do we need this mod anymore?

Or if we do, will it work in 1.4.2 ?

Share this post


Link to post
Share on other sites
43 minutes ago, Apaseall said:

So with the changes to 1.4.2 do we need this mod anymore?

Or if we do, will it work in 1.4.2 ?

There are a couple ways this could go -- stick with using Interstellar Fuel Switch (likely) -- or rework everything to go with the new Stock switcher.

It was getting in the way of things like windowshine, but hopefully someday there'll be a grand-unified texture/effect blending. :)

Share this post


Link to post
Share on other sites

I wonder what happens if we take a craft file from 1.3.1 and put it into 1.4.2. Would it error? would be default or black?

Share this post


Link to post
Share on other sites

It seems to work ok in KSP 1.5.1 with the latest IFS version for KSP 1.5.1 (3.6.14.2). :) 

Share this post


Link to post
Share on other sites

I love this mod, but dont like using IFS.  Im going to start work on a Variant.cfg so anyone who is 1.4+ can use this without IFS. Stay Tuned :)

 

Edit: Looks like someone beat me to it over in dark textures thread.

But i dont see the additional mods as part of it..yet?

Edited by Jesusthebird

Share this post


Link to post
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.