crasher925 Posted August 31, 2013 Share Posted August 31, 2013 why wont this code work? PART{// --- general parameters ---name = phoenixmodule = Partauthor = Crasher925// --- asset parameters ---MODEL{ model = Crasher\Parts\phoenix\Phoenix}scale = 1rescaleFactor = 1// --- node definitions ---NODE{name = Bottomtransform = Bottom}// --- editor parameters ---cost = 1800category = Podssubcategory = 0title = Kerran Empire Pheonix class Command Podmanufacturer =Jebram Kerman Phoenix co.description =The Kerran Empire made this pod standard issue on all Phoenix class vessels.//attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollisionattachRules = 1,0,1,1,0// --- standard part parameters ---mass = 4dragModelType = defaultmaximum_drag = 0.20minimum_drag = 0.15angularDrag = 2crashTolerance = 45maxTemp = 3400fuelCrossFeed = TruevesselType = Ship// --- internal setup ---CrewCapacity = 3INTERNAL{ name = PodCockpit}MODULE{ name = ModuleCommand minimumCrew = 1}RESOURCE{ name = ElectricCharge amount = 150 maxAmount = 150}MODULE{ name = ModuleSAS}MODULE{ name = ModuleReactionWheel PitchTorque = 15 YawTorque = 15 RollTorque = 15}} Link to comment Share on other sites More sharing options...
hoojiwana Posted August 31, 2013 Share Posted August 31, 2013 What exactly is going wrong with it? The issue might not be in your config. Link to comment Share on other sites More sharing options...
crasher925 Posted August 31, 2013 Author Share Posted August 31, 2013 it wont load in game as in it wont show up. Link to comment Share on other sites More sharing options...
crasher925 Posted August 31, 2013 Author Share Posted August 31, 2013 bump? for help Link to comment Share on other sites More sharing options...
Mr.Desmond Tiny Posted August 31, 2013 Share Posted August 31, 2013 -Accidental Post, Ignore- Link to comment Share on other sites More sharing options...
Torminator Posted August 31, 2013 Share Posted August 31, 2013 The only thing I can think of off the bat is that your model reference doesn't need to be an absolute path. Mine is just model = model.mu and it works just fine. The long-form is, I think, more for referencing a model in another directory. Try making a separate .cfg file without any of the command pod things, see if it loads then. Link to comment Share on other sites More sharing options...
Kermit the Krog Posted August 31, 2013 Share Posted August 31, 2013 Unless I'm much mistaken, it's the path to the model [mesh] that's giving you problems.Instead of MODEL{ model = Crasher\Parts\phoenix\Phoenix}scale = 1rescaleFactor = 1you'd want something like//asset parametersmesh = model.mu //essentially your model file as written by unity; can be called anything .muscale = 1rescaleFactor = 1I could be wrong - just never seen the MODEL tag used to do that. Link to comment Share on other sites More sharing options...
Nazari1382 Posted August 31, 2013 Share Posted August 31, 2013 model nodes are the new and improved method: http://forum.kerbalspaceprogram.com/showthread.php/34013-0-20-PartTools-GameDatabase-and-new-features Link to comment Share on other sites More sharing options...
Tiberion Posted August 31, 2013 Share Posted August 31, 2013 Don't really need to use it if the model isn't in a different folder though. Link to comment Share on other sites More sharing options...
AncientGammoner Posted August 31, 2013 Share Posted August 31, 2013 Your slashes are going the wrong way, should be "model = Crasher/Parts/phoenix/Phoenix" instead of "model = Crasher\Parts\phoenix\Phoenix" Link to comment Share on other sites More sharing options...
crasher925 Posted August 31, 2013 Author Share Posted August 31, 2013 Ohhh herp de derp I'll try that Link to comment Share on other sites More sharing options...
crasher925 Posted August 31, 2013 Author Share Posted August 31, 2013 Still having issues its not showing up in the VAB part list Link to comment Share on other sites More sharing options...
Tiberion Posted August 31, 2013 Share Posted August 31, 2013 Just to clarify, the .mu file is this?YourKSPFolder/GameData/Crasher/Parts/phoenix/Phoenix.muwith that exact capitalization? And if your config file in that same folder?If it is, then change the MODEL definition to the old style to see if it will load:mesh = Phoenix.muIf it does, then its an issue with the exported .mu file coming out of Unity.You can open up your log file while the parts are loading to find any errors KSP is throwing when trying to load that part, it might narrow it down. Link to comment Share on other sites More sharing options...
crasher925 Posted September 1, 2013 Author Share Posted September 1, 2013 The current Config is: PART{// --- general parameters ---name = PheonixCockpitmodule = Partauthor = Crasher925// --- asset parameters ---mesh = Pheonix_Cockpit.muscale = 1rescaleFactor = 1// --- node definitions ---NODE{name = Bottomtransform = Bottom}// --- editor parameters ---cost = 1800category = Podssubcategory = 0title = Kerran Empire Pheonix class Command Podmanufacturer = Jebram Kerman Phoenix co.description = The Kerran Empire made this pod standard issue on all Phoenix class vessels.//attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollisionattachRules = 1,0,1,1,0// --- standard part parameters ---mass = 4dragModelType = defaultmaximum_drag = 0.20minimum_drag = 0.15angularDrag = 2crashTolerance = 45maxTemp = 3400fuelCrossFeed = TruevesselType = Ship// --- internal setup ---CrewCapacity = 3INTERNAL{ name = PodCockpit}MODULE{ name = ModuleCommand minimumCrew = 1}RESOURCE{ name = ElectricCharge amount = 150 maxAmount = 150}MODULE{ name = ModuleSAS}MODULE{ name = ModuleReactionWheel PitchTorque = 15 YawTorque = 15 RollTorque = 15}}the error in the log says: [LOG 18:16:11.919] Load(Model): Crasher/Parts/Pheonix_Cockpit/Pheonix_Cockpit[ERR 18:16:11.921] File error:Failed to read past end of stream. at System.IO.BinaryReader.FillBuffer (Int32 numBytes) [0x00000] in <filename unknown>:0 at System.IO.BinaryReader.ReadInt32 () [0x00000] in <filename unknown>:0 at A..ReadMesh (System.IO.BinaryReader br) [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 [WRN 18:16:11.927] Model load error in 'G:\Games\KSP_win\GameData\Crasher\Parts\Pheonix_Cockpit\Pheonix_Cockpit.mu' idk what what to do Link to comment Share on other sites More sharing options...
Tiberion Posted September 1, 2013 Share Posted September 1, 2013 try to remove the underscore from your file name.If that doesn't fix it, then you're dealing with a bad export from unity. Is the mu file something like a few bytes in size.You might want to go into Unity and clear out your scene, make a new gameobject and re-attach the Part tools script, and then set your model up again, there are a few things that can break the scene hierarchy and make it export oddly (like a weird animation for instance) and redoing it is the easiest way. Link to comment Share on other sites More sharing options...
crasher925 Posted September 1, 2013 Author Share Posted September 1, 2013 well that fixed it one part tools re install later and BAM it works Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now