Jump to content

All Parts are Gone


Recommended Posts

Hello everyone

I made a Part in 3ds max exported it to Unity and then to ksp as all the Tutorials I've seen told me to, but when I launch ksp all parts are gone.

It worked before on a simpler part but not on this one. I doublecheckd everything but I can't see anything.

Does anybody have a clue what could be causing this problem?

Link to comment
Share on other sites

The console says: [Exception]: FormatException: Input string was not in the correct format.

And the output_log.txt says: PartLoader: Compiling Part 'FlankingE/Parts/Utility/1mCargoBay/part/1mCargoBay'

(Filename: C:/BuildAgent/work/7535de4ca26c26ac/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)

FormatException: Input string was not in the correct format

at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0

at PartLoader.ParsePart (.UrlConfig urlConfig, .ConfigNode node) [0x00000] in <filename unknown>:0

at PartLoader+.MoveNext () [0x00000] in <filename unknown>:0

UnityEngine.MonoBehaviour:StartCoroutine_Auto(IEnumerator)

UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)

:MoveNext()

UnityEngine.MonoBehaviour:StartCoroutine_Auto(IEnumerator)

UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)

PartLoader:StartLoad()

:MoveNext()

(Filename: Line: -1)

I don't know what all this means because I'm new to modding.

I'm playing on 0.20.2

Link to comment
Share on other sites

That's after the model load so that (probably) worked fine, it seems more likely the error is somewhere in your config file.

Int32.parse suggests it was looking for a whole number and didn't find it, there aren't many fields in a config that take whole numbers, attachRules perhaps?

Link to comment
Share on other sites

My config file looks like this:

PART

{

name = 1mCargoBay

module = Part

author = FlankingE

mesh = 1mCargoBay.mu

scale = 1

rescaleFactor = 1

node_stack_top = 0.0, 0.0, 0.0, 0.5, 0.0, 1.0, 1

node_stack_bottom = 0.0, 0.0, 0.0, -0.5, 0.0, 1.0, 1

node_stack_tob_inside = 0.0, 0.0, 0.45, 0.0, 0.0, 1.0, 0.5

node_stack_bottom_inside = 0.0, 0.0, -0.45, 0.0, 0.0, 1.0, 0.5

cost = 700

category = Utility

subcategory = 0

title = Cargo Bay MkI

manufacturer = FlankingE

description = None

attachRules = 1,1,1,1,1

mass = 0.1

dragModelType = default

maximum_drag = 0.2

minimum_drag = 0.2

angularDrag = 0.5

crashTolerance = 10

maxTemp = 3400

MODULE

{

name = ModuleAnimateGeneric

animationName = BayDoor

startEventGUIName = Open cargo bay

endEventGUIName = Close cargo bay

}

}

Link to comment
Share on other sites

My config file looks like this:

PART

{

name = 1mCargoBay

module = Part

author = FlankingE

mesh = 1mCargoBay.mu

scale = 1

rescaleFactor = 1

node_stack_top = 0.0, 0.0, 0.0, 0.5, 0.0, 1.0, 1

node_stack_bottom = 0.0, 0.0, 0.0, -0.5, 0.0, 1.0, 1

node_stack_tob_inside = 0.0, 0.0, 0.45, 0.0, 0.0, 1.0, 0.5

node_stack_bottom_inside = 0.0, 0.0, -0.45, 0.0, 0.0, 1.0, 0.5

cost = 700

category = Utility

subcategory = 0

title = Cargo Bay MkI

manufacturer = FlankingE

description = None

attachRules = 1,1,1,1,1

mass = 0.1

dragModelType = default

maximum_drag = 0.2

minimum_drag = 0.2

angularDrag = 0.5

crashTolerance = 10

maxTemp = 3400

MODULE

{

name = ModuleAnimateGeneric

animationName = BayDoor

startEventGUIName = Open cargo bay

endEventGUIName = Close cargo bay

}

}

The text I highlighted in red above are node sizes, they can only be whole numbers; 0, 1 & 2 afaik. :) Hope that helps.

Edited by Razchek
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...