Recommended Posts

Strange, this works, editing the source file to this works, but if I want to change the name to Red, or Duna it flips back to Dark

		VARIANT
		{
			name = Silver
			displayName = #autoLOC_6005005
			themeName = Silver
			primaryColor = #cecece
			TEXTURE
			{
				shader=KSP/Bumped Specular (Mapped)
				mainTextureURL = PATCH_LIB/duna_temple/red
				//mainTextureURL = SquadExpansion/MakingHistory/Parts/Structural/Assets/Panels_Silver_D
				//color = #ffffff
				color = #943828
				_BumpMap=SquadExpansion/MakingHistory/Parts/Structural/Assets/Panels_Gold_NRM
				_SpecMap=SquadExpansion/MakingHistory/Parts/Structural/Assets/Panels_Silver_S
//				_Shininess= 0.35
//				_Opacity= 1.0
//				_RimFalloff= 2.0
//				_AmbientMultiplier= 0.2
			}
		}

 

Share this post


Link to post
Share on other sites
Posted (edited)
On 5/10/2020 at 12:45 PM, MacLuky said:

Okay, I got this far:


@PART[Panel0|Panel1|Panel1p5|Panel2|Triangle0|Triangle1|Triangle1p5|Triangle2|EquiTriangle0|EquiTriangle1|EquiTriangle1p5|EquiTriangle2]
{
  @MODULE[ModulePartVariants]
  {
    +VARIANT
    {
      name = Duna
      displayName = Duna
      themeName = Duna
      primaryColor = #cc0000
      TEXTURE
      {
          shader=KSP/Bumped Specular (Mapped)
          mainTextureURL = PATCH_LIB/duna_temple/red
          color = #943828
          _BumpMap=SquadExpansion/MakingHistory/Parts/Structural/Assets/Panels_Gold_NRM
          _SpecMap=SquadExpansion/MakingHistory/Parts/Structural/Assets/Panels_Gold_S
      }
    }
  }
}

The panels do show up in the VAB in red but the variant in the slider is still called Dark. As I launch the craft it reverts back to dark grey.... Not sure where I make a mistake. Anyone that can help?

I checked the .craft file there it also lists the selectedVariant as Dark. So why isn't the name of the variant "Duna"

@Electrocutor do you have an idea?

+VARIANT is copy syntax for MM; you just want to use VARIANT if you want to add your own without copying an existing one.

If you start with a copy, you'll need to use the @ syntax for editing an existing property instead (like @name = Duna).

 

Edited by Electrocutor

Share this post


Link to post
Share on other sites

I am an idiot, thanks for pointing that out!

Share this post


Link to post
Share on other sites

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.