Jump to content

Help with First Addon


Recommended Posts

Help, i updated my Model to fix my Texture and it did load but it neither showed my Part nor the Squad Parts. What did i make wrong? Here is the .cfg

PART
{
	name = Empty
	module = Part
	author = CUBER
	mesh = model.mu
	rescaleFactor = 1
	PhysicSignificance = 1
	node_stack_top = 0.0, 1.0, 0.0, 0.0, 1.0, 0.0,
	node_stack_bottom = 0.0, -1.0, 0.0, 0.0, 1.0, 0.0,
	cost = 500
	category = Structural
	subcategory = 0
	title = Empty CubeSat Piece
	manufacturer = CUBER
	description = Totally Useless
	attachRules = 1,1,1,1,0
	mass = 0.001
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 40
	maxTemp = 3900
	fuelCrossFeed = True
	breakingForce = 160000
	breakingTorque = 160000
	tags = useless cube sat satelite modular
}

 

Link to comment
Share on other sites

1 hour ago, PolygonGaming said:

Help, i updated my Model to fix my Texture and it did load but it neither showed my Part nor the Squad Parts. What did i make wrong? Here is the .cfg


PART
{
	name = Empty
	module = Part
	author = CUBER
	mesh = model.mu
	rescaleFactor = 1
	PhysicSignificance = 1
	node_stack_top = 0.0, 1.0, 0.0, 0.0, 1.0, 0.0,
	node_stack_bottom = 0.0, -1.0, 0.0, 0.0, 1.0, 0.0,
	cost = 500
	category = Structural
	subcategory = 0
	title = Empty CubeSat Piece
	manufacturer = CUBER
	description = Totally Useless
	attachRules = 1,1,1,1,0
	mass = 0.001
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 40
	maxTemp = 3900
	fuelCrossFeed = True
	breakingForce = 160000
	breakingTorque = 160000
	tags = useless cube sat satelite modular
}

 

Hi, give your part a name you can easily find in the log and re run the game, if the part does not display quit the game immediately, go to the main KSP folder zip a copy of the KSP.log and make it available for download. Or see if you can find your part in the log, it will tell you why it didn't load. 

If the model didn't display it's likely that it never loaded at all.  this could either be due to a problem with the texture or the model itself, i gather from the CFG that it is just a cube? A very simple part at least, in unity all you need to do is fit a box collider and assign the material/texture. So little info in your post it's difficult to say. 

Good policy for getting assistance is to describe clearly  what you are trying to do, what you did when trying to get it into the game,  what the parts is, supply a copy of the log and always helpful but mostly overlooked are screenshots of the parts unity set up.

Cheers

PS this should really be in the modelling and texturing sub forum rather than a plugin help sub forum, it would be seen by more model makers there

Edited by SpannerMonkey(smce)
Link to comment
Share on other sites

 

 

The most suspicious part of the log

[LOG 14:31:22.763] GameDatabase: Assets loaded in 19.129s
[LOG 14:31:22.765] CodeAssetLoader: Compiling all code assets
[LOG 14:31:22.777] PartLoader: Loading part database
[LOG 14:31:22.778] PartLoader: Compiling Part 'CubeSat/Empty/EMPTY/Empty'
[LOG 14:31:22.799] EffectList: Created 11 effect types
[WRN 14:31:22.811] PartLoader Warning: Variable PhysicSignificance not found in Part
[EXC 14:31:22.817] FormatException: Input string was not in the correct format
	System.Int32.Parse (System.String s)
	PartLoader.ParsePart (.UrlConfig urlConfig, .ConfigNode node)
	PartLoader+.MoveNext ()
	UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
	:MoveNext()
	UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
	PartLoader:StartLoad()
	:MoveNext()
[EXC 14:31:22.825] NullReferenceException: Object reference not set to an instance of an object
	PartLoader.GetDatabaseConfig (.Part p)
	PartLoader.GetDatabaseConfig (.Part p, System.String nodeName)
	DragCubeSystem.LoadDragCubes (.Part p)
	Part+.MoveNext ()

 

 

5w6TBsb.png

WsIGjgs.png

 

I want to make a CubeSat mod where you can build your own mini-Satellite. This is a test Part that is there for Structual reasons. 

Edited by PolygonGaming
Link to comment
Share on other sites

22 hours ago, PolygonGaming said:

[EXC 14:31:22.817] FormatException: Input string was not in the correct format

You have a typo in your cfg somewhere

 

On 05/10/2016 at 1:45 PM, PolygonGaming said:

node_stack_top = 0.0, 1.0, 0.0, 0.0, 1.0, 0.0,   BAD

node_stack_bottom = 0.0, -1.0, 0.0, 0.0, 1.0, 0.0  GOOD

REMOVE the comma from the end of the line

 

Link to comment
Share on other sites

5 hours ago, PolygonGaming said:

Now this problem is fixed. I cant connect these parts.

jQVqVB9.png

Well thats's how it is in the cfg :)   you have the nodes placed on the Y axis and set at plus 1 and minus 1 meters

 and that part does not look a meter thick to me, and your bottom node must be -1 to connect to the top node of the other parts

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