Jump to content

Assigning a new model to a part


Gnaar_Mok

Recommended Posts

I'm interested in assigning a different model to a mod part (one of the SCANsat parts with a generic model). Can someone walk me through how to go about this or point me in the right direction? Also, can I use a model from an out-of-date mod part (pre 0.22) for this? Thanks in advance!

Link to comment
Share on other sites

Do you mean that you want to make a different part function as a SCANsat scanner? You don't have to do anything with models to accomplish this. Just open up the .cfg file of the part you want to use and add the SCANsat module to it (copy this information from the default SCANsat scanner that you are using).

If you want to make another model that's a different issue. But adding the SCANsat function to any part, whether it's a new model you made or an existing part, only requires adding the required text in the .cfg file.

Link to comment
Share on other sites

Do you mean that you want to make a different part function as a SCANsat scanner? You don't have to do anything with models to accomplish this. Just open up the .cfg file of the part you want to use and add the SCANsat module to it (copy this information from the default SCANsat scanner that you are using).

If you want to make another model that's a different issue. But adding the SCANsat function to any part, whether it's a new model you made or an existing part, only requires adding the required text in the .cfg file.

No, that's not what I'm trying to do. I want a different model to appear in-game for an already existing part. SCANsat is just an example because some of the parts of this mod use a generic model. Thanks for the input so far!

Link to comment
Share on other sites

If what you are trying to do is take the model of an existing part and use that as the model for a scansat antenna, that isn't too hard, it just takes a bit of config editing. For example, if you wanted to make a Radial Experimental Storage Container work as a biome/anomaly scanner, you could make a copy of the cfg for the part that you want to use the model of. Then open it in a text editor and make the following changes:

PART
{

// --- general parameters ---

name = [COLOR=#ff0000]TAL.Radial.Experiment.Storage.Container[/COLOR] [COLOR=#00ff00]<-Ensure you change the part's name[/COLOR][COLOR=#00ff00], or KSP will get confused[/COLOR]
module = Part
author = Talisar

// --- asset parameters ---

MODEL
{
model = ModsByTal/Parts/Science/TAL_Radial_Experiment_Storage_Container/TAL_Radial_Experiment_Storage_Container
texture = TAL_Experiment_Storage_Texture , ModsByTal/Parts/Science/TAL_Radial_Experiment_Storage_Container/TAL_Experiment_Storage_Texture
scale = 1, 1, 1
}

rescaleFactor = 1

// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z

node_attach = 0.00, 0.0, 0.00, 0.0, 0.0, -1.0, 1

// --- editor parameters ---

[COLOR=#ff0000]TechRequired = scienceTech
entryCost = 2500
cost = 880
category = Science
subcategory = 0
title = Radial Experiment Storage Container
manufacturer = Talisar
description = This is a radially mounted container for storing experimental data or samples while on EVA.[/COLOR]

[COLOR=#00ff00]Change to above values to whatever you like.
[/COLOR]
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision

attachRules = 0,1,0,1,0

// --- standard part parameters ---

mass = 0.01
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 3
crashTolerance = 10
maxTemp = 5000
fuelCrossFeed = True

breakingForce = 10000
breakingTorque = 10000

[COLOR=#ff0000]MODULE
{
name = ModuleScienceContainer

reviewActionName = Review Stored Data
storeActionName = Store Experiments
evaOnlyStorage = True
storageRange = 1.3
}[/COLOR]
[COLOR=#00ff00]
Remove the above module, and replace it with the following from the cfg of the appropriate scansat antenna:[/COLOR]

[COLOR=#ff0000]MODULE
{
name = SCANsat
sensorType = 24
fov = 4
min_alt = 5000
max_alt = 500000
best_alt = 250000
power = 1.5
scanName = multispectral scan
}[/COLOR]

}

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