Jump to content

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


Rodger

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
Link to comment
Share on other sites

  • 2 weeks later...

@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
Link to comment
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.

Link to comment
Share on other sites

  • 1 month later...
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. :)

Link to comment
Share on other sites

  • 6 months later...
  • 2 weeks later...

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
Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...

This works in 1.9.1. I made a few changes to allow the Surge and Sage engines to be retextured. I noticed the OPT K-Series OMS is missing though. Does anyone know how to add these parts?

 

Create a new file called BB_WarpPlugin.cfg

@PART[kspiSage]:FOR[BackInBlack]
{
	@tags ^= :$: Stealth
	MODULE
	{
		name = InterstellarTextureSwitch2
		moduleID = 88
		objectNames = mk2_engine_body
		textureNames = WarpPlugin/Parts/Engines/SAGE/OPT_J61;BackInBlack/WarpPlugin/SAGE/texture_mk2_engine
		textureDisplayNames = Inactive; Activated
		switchableInFlight = false
		repaintableEVA = false
		switcherDescription = Stealth mode
		selectedTexture = 0
		hasSwitchChooseOption = true
	}
}
@PART[kspiSurge]:FOR[BackInBlack]
{
	@tags ^= :$: Stealth
	MODULE
	{
		name = InterstellarTextureSwitch2
		moduleID = 88
		objectNames = mk2_engine
		textureNames = WarpPlugin/Parts/Engines/SURGE/OPT_J60;BackInBlack/WarpPlugin/SURGE/texture_mk2_engine
		textureDisplayNames = Inactive; Activated
		switchableInFlight = false
		repaintableEVA = false
		switcherDescription = Stealth mode
		selectedTexture = 0
		hasSwitchChooseOption = true
	}
}

This will texture both the new Sage and Surge as well as the OPT Legacy versions.

Edited by KIMCHI
Link to comment
Share on other sites

On 8/13/2017 at 12:06 PM, Rodger said:

V0.3 is live! Including support for QuizTech!

JK2WgvM.png

And now M2X parts have texture switching! Currently some parts just have multiple texture switch modules, but hopefully soon they will be grouped together into one control per part (pending an IFS update). For now, enjoy some funny black and white mixed parts if you so wish lol

Wondering... which addon this nose comes from... it's beautifully shaped!!!!

Link to comment
Share on other sites

  • 8 months later...
On 5/19/2020 at 10:22 AM, Demcrew said:

Wondering... which addon this nose comes from... it's beautifully shaped!!!!

I'm pretty sure it's from the QuizTech pack as in the caption. ;) 

Not sure if it's fully up to date, but it definitely is up to 1.9.x

 

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...