Jump to content

Why will my part not appear?


Vectura

Recommended Posts

Well, in KSP.log I found:

[WRN 15:45:54.365] Model load error in 'C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\VramJet\Parts\Engine\ramJet\ramJet.mu'

Output log had this:

Model load error in 'C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\VramJet\Parts\Engine\ramJet\ramJet.mu'

Dunno why. Outdated Unity or something?

Link to comment
Share on other sites

The full error is


Load(Model): VramJet/Parts/Engine/ramJet/ramJet

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)
File error:
Failed to read past end of stream.
at System.IO.BinaryReader.ReadByte () [0x00000] in <filename unknown>:0
at System.IO.BinaryReader.Read7BitEncodedInt () [0x00000] in <filename unknown>:0
at System.IO.BinaryReader.ReadString () [0x00000] in <filename unknown>:0
at A..ReadTextures (System.IO.BinaryReader br, UnityEngine.GameObject o) [0x00000] in <filename unknown>:0
at A..ReadChild (System.IO.BinaryReader br, UnityEngine.Transform parent) [0x00000] in <filename unknown>:0
at A.. (.UrlFile ) [0x00000] in <filename unknown>:0

It seems you model was not properly exported. How did you create the .mu ?

Link to comment
Share on other sites

Right, I jsut tried something else, and it didn't work. I have a ramJet gameobject, that is the parent of the ramJet model, that is the parent of a thrustTransform gameobject. I added the Part Tools component to the first gameobject. I gave it the model name of ramJet. The file URL is in the part folder of my mod on my computer. The texture format is MBM (DDS was not an option).

Link to comment
Share on other sites

OK...

Answer questions directly.

I asked why is there a space in "ramJe t.mu" in the log snippet you posted, and you responded with "there's no space your local copy". Do you mean in your log, or in the part files? Was that a typo? How would that space get there in the first place? It's on BOTH LINES. That leads me to believe that the game is looking for a file with a space in the name for some reason.

Edited by Cpt. Kipard
Link to comment
Share on other sites

Sorry for a late reply, but I assume you basically mean remove it from unity, re-import the model and set it up again, then re-export? I'll try that this evening!

Yes. I've had models not appearing once, and redoing everything worked. It might be easier than trying to pin the problem down.

Link to comment
Share on other sites

The part failed to export correctly. Always check the console log in Unity!!!!


File error:
Load(Model): VramJet/Parts/Engine/ramJet/ramJet

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)


File error:
Failed to read past end of stream.
at System.IO.BinaryReader.ReadByte () [0x00000] in <filename unknown>:0


at System.IO.BinaryReader.Read7BitEncodedInt () [0x00000] in <filename unknown>:0


at System.IO.BinaryReader.ReadString () [0x00000] in <filename unknown>:0


at A..ReadTextures (System.IO.BinaryReader br, UnityEngine.GameObject o) [0x00000] in <filename unknown>:0


at A..ReadChild (System.IO.BinaryReader br, UnityEngine.Transform parent) [0x00000] in <filename unknown>:0


at A.. (.UrlFile ) [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)


Model load error in 'C:\KSP_win\GameData\VramJet\Parts\Engine\ramJet\ramJet.mu'

This means that the .mu file ended before KSP expected it to - it's incomplete. Which in turn means that PartTools bombed out before it finished writing the file.

It's often caused by having a mesh collider, mesh renderer or similar assigned to a GO without a mesh filter. Borked animations can also cause this, but check for rogue GO's first. As LordPrometheus pointed out, it can also be a material that hasn't had a shader properly assigned. Either way, something is stopping PartTools from exporting it correctly.

Edited by lo-fi
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...