Jump to content

Question about cfg files


Recommended Posts

I'm developing a number of welded parts which I eventually would like to publish.

These parts are welding parts from a few different mods together.

Is it safe to assume that if a cfg file references textures and/or models which don't exist, that they just won't be available? Will this cause any problems in the game?

Thanks in advance

Link to comment
Share on other sites

I'm developing a number of welded parts which I eventually would like to publish.

These parts are welding parts from a few different mods together.

Is it safe to assume that if a cfg file references textures and/or models which don't exist, that they just won't be available? Will this cause any problems in the game?

Thanks in advance

If I remember right, if there's models missing, then the entire part will just be missing from the editor. If the texture is missing, the model (or parts of it) will be white.

You may want to try using ":NEEDS[ModNameHere]" with modulemanager in your config to check for those mods exist first to avoid any mesh or texture issues.

Link to comment
Share on other sites

My Universal Storage science parts use this config:


MODEL
{
model = UniversalStorage/Parts/US_1M110_Wedge_ScienceBay/model
}

MODEL
{
model = DMagicOrbitalScience/UniversalStorage/USScope/modelScope
parent = UniversalStorage/Parts/US_1M110_Wedge_ScienceBay/model
rotation = 0, 180, 0
texture = Scope_DIFF, DMagicOrbitalScience/ProbeScience/Scope/Scope_DIFF
texture = Scope_NRM, DMagicOrbitalScience/ProbeScience/Scope/Scope_NRM
}

They will continue to load just fine without US installed. They are missing the exterior mesh (and they don't work because the plugin assumes that the mesh and its animations are present), but they will get loaded and can be used in the editor. I set them as unresearchable and their editor category as none by default and use MM to activate them. But this way they won't necessarily break existing vessels if you delete US (or more realistically if you move US to the wrong place or delete the US science bay part only).

Edit: Yep, here is half of my US telescope:

mU1eDNg.png

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