Jump to content

problem replacing texture using Model node in part config


Recommended Posts

I was dinking around with replacing the texture on a modified copy of a stock part.  In my part config I have:

    MODEL
    {
        model = Squad/Parts/Structural/mk1Parts/Fuselage
        texture = Mk1Structural, Pebkac/Parts/FuelTank
    }

I've done this on other parts before. My part config and texture are loaded at the location specified for the texture. The modified part loads in the game, but it still shows Squads texture. Am I missing something, or does the graphic at the model's location take precedence somehow?

 

 

Link to comment
Share on other sites

Hi took a quick look at the files and if FuelTank is your new texture then it should work, you have all the path and the texture name of the stock part correct.  All i can suggest is perhaps to ensure that your new texture format is the same as the one to be swapped (dds) and hope it's something simple as that.  I've had similar problems pulling textures from stock parts, and sadly for both of us I wasn't ever able to get it to work 100%.

 

Link to comment
Share on other sites

Thanks so much. I'd swear I've done this before but I guess maybe not. In this case anyway, I didn't realize I needed to include the actual filename at the end of the new texture path... I think I understand what the line actually is saying now.

texture = TheFileNameSetUpInUnity, Path/To/YourPart/YourPartsFilename

Anyway I changed it to 

texture = Mk1Structural, Pebkac/Parts/FuelTank/Mk1Structural

and it works now.

 

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