Jump to content

[SOLVED] 0.23.5 and resizing in the parts.cfg?


Morgan

Recommended Posts

Probably a dumb question but "scale = x.xx" has no effect, what am I doing wrong?

I did it before (older KSP version) and it worked. Added "scale = 0.25" under asset parameters, ingame old size.

Edited by Morgan
Link to comment
Share on other sites

Probably a dumb question but "scale = x.xx" has no effect, what am I doing wrong?

I did it before (older KSP version) and it worked. Added "scale = 0.25" under asset parameters, ingame old size.

Add "rescaleFactor = x.xx"

Edited by CERVERUS
Link to comment
Share on other sites

hmmm, just in case you want a more complicated one, you can use

MODEL

{

model = Squad/Parts/Folder/model

scale = 0.8, 0.8, 0.8

}

scale = 1

lol

This allows you to have multiple parts that are resized through that hook to be in the same folder. If you use mesh = model.mu, even if there are 2 configs in the folder, they will appear as the same size if not.

Link to comment
Share on other sites

Three things affect scale.

First, does the part use MODEL nodes? Skip to part B.

A (MODEL node not used; instead "mesh = blah" used)

1. "scale = foo" determines how the first three numbers for each attach node line (the X, Y, Z coords of the node) are scaled. It does *not* affect anything else. Default = 1.0 if not present

2. "rescaleFactor = bar" scales both the model (and its transforms) *and* the attach nodes. Default = 1.25 if not present.

B (MODEL node(s) used)

1. Inside the MODEL node, "scale = blahX, blahY, blahZ" determines the scaling of the model and its transforms. Default is 1.0, 1.0, 1.0. It does not affect node positions.

2. Outside the MODEL node, "scale = foo" works as above.

3. Outside the MODEL node, rescaleFactor works as above.

HOWEVER, there is a bug in scaling. For parts with MODEL nodes, rescaleFactor is applied twice to the mu, *unless* (a) the part is the root part of the vessel and (B) you've reverted to launch (or perhaps switched in flight? Don't recall). All other times, it is applied twice. What this means is that if you have scale = 1.0, 1.0, 1.0 in the MODEL node (or no scale at all), and rescaleFactor = 1.25, then your mesh will actually be 1.5625 as big, but your nodes will be scaled outwards 1.25.

For this reason, when scaling parts using MODEL nodes, it is suggested to leave scale (outside the MODEL node) and rescaleFactor both at 1.0, and instead both change the scale = x, y, z inside the MODEL node and manually scale the positions of the attach nodes.

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