Jump to content

[SOLVED] Part Folders


Recommended Posts

Hi.

I'll get straight to the problem.

Currently I run a part mod (see signature). My part configs were written in KSP v0.18, so that might be the problem, but comparing config files didn't seem to show anything obvious to me.

The problem is that I want to have a proper mod directory, KSP/GameData/GPE/Parts/>insert folder names here</config files, mesh, textures, etc.

What I currently have is KSP/Parts/>insert folder names here</config files, mesh, etc.

When I try to simply create a folder entitled GPE in the GameData folder, and then move the Parts folder (I simply copy-paste the Parts folder, but move all the files out of the Parts folder to a different folder located in a remote location, making the KSP/Parts folder empty), the parts simply don’t show up in the editor.

Comparison of 2x2 structural plate and my 2x2 glass panel config files:


[COLOR=#232323][FONT=Verdana]PART[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]{[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] name = structuralPanel2[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] module = Part[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] author = NovaSilisko[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] mesh = model.mu[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] rescaleFactor = 1[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] node_stack_top = 0, 0.0275, 0, 0, 1, 0, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] node_stack_bottom = 0,-0.0275, 0, 0, -1, 0, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] node_attach = -1, 0, 0, -1, 0, 0, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] TechRequired = composites[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] entryCost = 9800[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] cost = 90[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] category = Structural[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] subcategory = 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] title = M-2x2 Structural Panel[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] manufacturer = Dinkelstein Kerman's Construction Emporium[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] description = Four M-1x1 have been arranged in a 2x2 layout for this part, then stuck together with super glue.[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] attachRules = 1,1,1,1,1[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] mass = 0.3[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] dragModelType = default[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] maximum_drag = 0.2[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] minimum_drag = 0.2[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] angularDrag = 1[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] crashTolerance = 80[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] breakingForce = 200[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] breakingTorque = 200[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] maxTemp = 2000 // = 3200[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] fuelCrossFeed = False[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana] bulkheadProfiles = size0, srf[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]}[/FONT][/COLOR]

And here’s my 2x2 glass panel:


[COLOR=#232323][FONT=Verdana]name = Composite Glass Panel[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]module = Part[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]author = Nazari1382[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]mesh = model.mu[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]rescaleFactor = 1[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]alphaCutoff = 0.58[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]
[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]// node_stack_right = 1, 0, 0, -1, 0, 0, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]// node_stack_left = -1, 0, 0, 1, 0, 0, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]
[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]// node_stack_back = 0, 0, 1, 0, 0,-1, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]// node_stack_front = 0, 0,-1, 0, 0, 1, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]
[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]node_stack_top = 0, 0.0308, 0, 0,-1, 0, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]node_stack_bottom = 0,-0.0308, 0, 0, 1, 0, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]
[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]// node_attach = 0,-0.045, 0, 0, -1, 0, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]node_attach = -1, 0, 0, -1, 0, 0, 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]
[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]cost = 550[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]category = Structural[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]subcategory = 0[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]title = Composite Megastrong Glass Panel 2x2[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]manufacturer = Kerbal Materials Corporation C.A.G.E. Systems[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]description = A panel of Megastrong Composite glass encased in plyable alloy materials. This is an experimental structural item. Resistant to space dust. Fracture prevention may require generous use of struts. Attracts a surprising amount of microorganisms.[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]attachRules = 1,1,1,1,1[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]
[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]// --- standard part parameters ---[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]mass = 0.3[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]dragModelType = default[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]maximum_drag = 0.25[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]minimum_drag = 0.2[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]angularDrag = 1[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]crashTolerance = 98[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]breakingForce = 200[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]breakingTorque = 200[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]maxTemp = 3300[/FONT][/COLOR]
[COLOR=#232323][FONT=Verdana]fuelCrossFeed = False[/FONT][/COLOR]

(no, I’m not missing anything from the config files; that’s them in their entirety)

Any help is greatly appreciated. Thanks.

Edited by 2001kraft
Link to comment
Share on other sites

As of KSP 0.20, you *must* enclose your part CFGs with PART{ and }, especially if you're putting them inside the GameData folder.

[MOD - Also, moved to Modelling and Texturing Discussion]

Edited by sumghai
Link to comment
Share on other sites

Notice the


PART
{
//name, etc
}

This is important, as it tells KSP that's what in this configuration file is information for a part, rather than an internalspace or prop. This was previously done by having them in those directories respectively. Wrap that around the stuff (remember to use curly brackets) in your config, move it to a folder in GameData and rejoice.

EDIT: Ninja'd ;)

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