Jump to content

attempted making custom texture switch config but seems to be broken HELP


Helix935

Recommended Posts

ok the texture switch config is for a mod called Tantares Space Technologies

code

@PART[Tantares_Crew_1]
{
MODULE
{
name = FStextureSwitch2

moduleID = 1

objectNames = module_id_symbol

textureNames = Tantares/Parts/Tantares_Crew_1/Tantares_Crew_1_tga;Tantares/Parts/AltTexturePacks/Green/Tantares_Crew_1_tga;Tantares/Parts/AltTexturePacks/Orange/Tantares_Crew_1_tga;Tantares/Parts/AltTexturePacks/White/Tantares_Crew_1_tga

textureDisplayNames = Grey;Green;Orange;White

nextButtonText = Next Colour
prevButtonText = Previous Colour

statusText = Current Colour

switchableInFlight = false

repaintableEVA = false

showPreviousButton = false

useFuelSwitchModule = false

fuelTankSetups = 0

updateSymmetry = false
}
}

@PART[Tantares_Orbital_1]
{
MODULE
{
name = FStextureSwitch2

moduleID = 1

objectNames = module_id_symbol

textureNames = Tantares/Parts/Tantares_Orbital_1/Tantares_Orbital_1_tga;Tantares/Parts/AltTexturePacks/Green/Tantares_Orbital_1_tga;Tantares/Parts/AltTexturePacks/Orange/Tantares_Orbital_1_tga;Tantares/Parts/AltTexturePacks/White/Tantares_Orbital_1_tga

textureDisplayNames = Grey;Green;Orange;White

nextButtonText = Next Style
prevButtonText = Previous Style

statusText = Current Colour

switchableInFlight = false

repaintableEVA = false

showPreviousButton = false

useFuelSwitchModule = false

fuelTankSetups = 0

updateSymmetry = false
}
}

image of it not working properly

1RqM4Ed.png

any ideas because i was building this config off of the one for FusTek as a start as this is my first custom MM config...

Link to comment
Share on other sites

Make sure you've downloaded the V6.4 pre-release version of Firespitter from GitHub - the official V6.3 plugin doesn't support FStextureSwitch2.

i did in fact check before posting the picture and i did in fact downloaded that version of Firespitter

Link to comment
Share on other sites

i did in fact check before posting the picture and i did in fact download that version of Firespitter

In which case, check the filenames of the images - no file extensions (PNG or TGA) are required.

ASIDE: You only need to say "in fact" just once.

Link to comment
Share on other sites

In which case, check the filenames of the images - no file extensions (PNG or TGA) are required.

ASIDE: You only need to say "in fact" just once.

yeah i realized that after posting

and also i will try that and see if it works

Link to comment
Share on other sites

tried it and there is no change

Edit: oh wait i need something clarified, when you mean by no file extensions are required does that mean i should remove them or what like this

Before:Tantares/Parts/Tantares_Crew_1/Tantares_Crew_1_tga

After:Tantares/Parts/Tantares_Crew_1

Edited by Helix935
Link to comment
Share on other sites

tried it and there is no change

Edit: oh wait i need something clarified, when you mean by no file extensions are required does that mean i should remove them or what like this

Before:Tantares/Parts/Tantares_Crew_1/Tantares_Crew_1_tga

After:Tantares/Parts/Tantares_Crew_1

Just the filename, not the file extension.

Say that you have an image called my_texture.tga or my_texture.png, then you would define it in the CFG as just my_texture.

Link to comment
Share on other sites

Just the filename, not the file extension.

Say that you have an image called my_texture.tga or my_texture.png, then you would define it in the CFG as just my_texture.

ok thank you for the clarification and i will try it now

Link to comment
Share on other sites

Looking at your code, I've just realized something:

You've set objectNames = module_id_symbol, which is a Unity mesh object that only exists on my station parts. You need to figure out the actual name of the meshes inside the Tantares pod in order to apply the change in textures.

The Firespitter thread also has more complete documentation regarding FStextureSwitch2, and it would be better to study that first in detail rather than just copying / modifying sample code from an add-on you're not familiar with.

Link to comment
Share on other sites

Looking at your code, I've just realized something:

You've set objectNames = module_id_symbol, which is a Unity mesh object that only exists on my station parts. You need to figure out the actual name of the meshes inside the Tantares pod in order to apply the change in textures.

The Firespitter thread also has more complete documentation regarding FStextureSwitch2, and it would be better to study that first in detail rather than just copying / modifying sample code from an add-on you're not familiar with.

i am reviewing the documentation and learning much...

now i think i can take it from here... for now....

Link to comment
Share on other sites

ok i think i found the problem...

it has alluded me until i read the documentation and has made me slightly angry...

its the underscores throughout the part and stuff which in the documentation as stated:

WARNING: If the part name has an underscore in it, KSP translates this to a period. This will trick this module into not finding the part and its textures. Drop the underscore in part name (in folder names it’s OK).

now i have to change somethings

Link to comment
Share on other sites

ok that didn't work at all and there is still absolutely NO *redacted* CHANGE RAHH :sealed: i feel like i am missing something

and yes i do have the correct object names now

current code

@PART[TantaresCrew1]
{
MODULE
{
name = FStextureSwitch2

moduleID = 1

objectNames = Tantares_Crew_1

textureNames = Tantares/Parts/Tantares_Crew_1/TantaresCrew1.tga;Tantares/Parts/AltTexturePacks/Green/TantaresCrew1.tga;Tantares/Parts/AltTexturePacks/Orange/TantaresCrew1.tga;Tantares/Parts/AltTexturePacks/White/TantaresCrew1.tga

textureDisplayNames = Grey;Green;Orange;White

nextButtonText = Next Colour
prevButtonText = Previous Colour

statusText = Current Colour

switchableInFlight = false

mapIsNormal= false

repaintableEVA = true

showPreviousButton = false

useFuelSwitchModule = false

fuelTankSetups = 0

updateSymmetry = false
}
}

@PART[TantaresOrbital1]
{
MODULE
{
name = FStextureSwitch2

moduleID = 1

objectNames = Tantares_Orbital_1

textureNames = Tantares/Parts/Tantares_Orbital_1/TantaresOrbital1.tga;Tantares/Parts/AltTexturePacks/Green/TantaresOrbital1.tga;Tantares/Parts/AltTexturePacks/Orange/TantaresOrbital1.tga;Tantares/Parts/AltTexturePacks/White/TantaresOrbital1.tga

textureDisplayNames = Grey;Green;Orange;White

nextButtonText = Next Colour
prevButtonText = Previous Colour

statusText = Current Colour

switchableInFlight = false

repaintableEVA = true

showPreviousButton = false

useFuelSwitchModule = false

fuelTankSetups = 0

updateSymmetry = false
}
}

had to make some adjustments

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