Jump to content

No Textures being written with PartTools .20


Recommended Posts

I'm just starting out. I've downloaded the latest Unity and PartTools .20 I've followed the readme and the YouTube tutorial C7 made for .15 along with reading a more recent .18 tutorial. I believe I have everything setup - including setting the GameData directory through the new usage of the Tools menu in Unity. My model is a simple cylinder with a texture applied and exported as a FBX file. It shows up fine in Unity. I set the material shader to KSP Diffuse and made sure the texture is assigned. I created a new empty game object and assigned the PartTools component to it. I set the model name and path as well as choosing MBM for the material. But upon clicking "Write" the only thing exported is the model.mu file. The MBM material file isn't being created. I'm not sure what I've missed.

Just to be thorough I went ahead and created a simple part.cfg file. Actually, I just copied the Squad file for the basic fuel tank and just changed the name to match my part - just to see if I can get it to show up in the VAB. It shows up in the list of parts on the Propulsion tab as expected. But it's "invisible." If the model loaded I have no idea as there's no texture.

Help?

Link to comment
Share on other sites

I just tested it on a fresh install on a completely different machine. Same result. I can "Write" out the model.mu, but no textures come along with it. Has anyone else had issues with the .20 Part Tools?

Link to comment
Share on other sites

Man this is frustrating. It's not showing any errors either. The only output in the console is:

C:/Program Files (x86)/Steam/steamapps/common/Kerbal Space Program/GameData\J5/Parts/TheCube\model.mu written.

UnityEngine.Debug:Log(Object)

KSPPartTools.PartWriter:Write(String, String, Transform, TextureFormat)

KSPPartTools.PartToolsInspector:DrawWriterGUI()

KSPPartTools.PartToolsInspector:OnInspectorGUI()

PartToolsEditor:OnInspectorGUI() (at Assets/PartTools/Editor/PartToolsEditor.cs:18)

UnityEditor.DockArea:OnGUI()

Link to comment
Share on other sites

I have to say, I'm having similar issues with the 0.20 tools.

However, they write the textures and the model.mu, but these are not then loaded by the game. I'm writing my .cfgs in the same way I did prior to installing 0.20 so there may be something new I need to put in.

Might have to go back to the 0.18 tools if I can find them.

Link to comment
Share on other sites

There's a thing I found, give me a bit and I'll post a screen shot.

This took me a while to work out.

EDIT: Ok, can't get screenshot right now.

Go to Add component, add parttools library, that component has a force texture format..

Edited by Moon Goddess
Link to comment
Share on other sites

Go to Add component, add parttools library, that component has a force texture format..

Yeah I found that last night. No change.

Can I assume your suggestion means that you're not having issues with .20 then Moon?

Link to comment
Share on other sites

I finally got it. Man, do I feel stupid. But I'll share just so no one else has to endure this. Make SURE you have the part setup as a Child of the GameObject with the PartTools component in the Unity Hierarchy. I had it below it, but it wasn't an actual child. So nothing was being written out (I'm now pretty sure even the model.mu file was actually empty).

Link to comment
Share on other sites

Don't feel too bad about that one, it's exactly what the most popular 'how to unity' tutorial on this board says to do, and it's very wrong.

Tell me about it. That one little bit of misinformation cost me a lot of frustration. Such is life. :sticktongue:

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