Jump to content

Two config files for one part?


Recommended Posts

I've just noticed that some parts have two config files?

For example the RT-5 "Flea" Solid Rocket Booster has 2 configs:

"solidBoosterRT-5.cfg" under GameData/Squad/Parts/Engine/solidBoosterRT-5

"solidBoosterRT-5_v2.cfg" under GameData/Squad/Parts/Engine/Size1_SRBs

I can't see any functional differences between the configs, just that they seem to have a different model/texture setup?

I see a that "solidBoosterRT-5.cfg" has a line "TechHidden = True" which i assume is what is used to hide this duplicate part from appearing in game?

What is the reason for this duplicate config? Is it just a legacy config that hasn't been removed yet?

 

 

Link to comment
Share on other sites

3 hours ago, NZ-Banana said:

I've just noticed that some parts have two config files? 

 For example the RT-5 "Flea" Solid Rocket Booster has 2 configs: 

 "solidBoosterRT-5.cfg" under GameData/Squad/Parts/Engine/solidBoosterRT-5 

Yep. You'll see the same thing for the Mk1 command pod, and the 1.25m fuel tanks, for example.

Also, note that it's not one part with two config files. It's two different parts, that happen to have the same display name. You can see this because they have different values in the "name =" field in their config.

Also, note that one of the two parts has "category = none", meaning that it is effectively "hidden" and won't show up on the parts tab in the vehicle editor. Also, as you've noted, he TechHidden thing, which I think is to keep it out of the display on the tech node in R&D.

3 hours ago, NZ-Banana said:

Is it just a legacy config that hasn't been removed yet? 

Ding ding ding. :)

This is what happens when Squad needs to significantly redesign an older part. If the part's model or properties are changing significantly from what they were, then Squad can't just edit the original part, because that would break players who have already-designed or already-launched ships with that part in it. Which would not be okay.

So, what Squad does instead is to create an entirely brand new part from scratch, with new model and config and internal part name, but with the same display name as the der part. Then they edit the original part to give it "category = none" so as to "hide" it in the vehicle editor.

That way, it looks to the player as if Squad has simply "revamped" the existing part... but really it's a new one. And if the player has any ships that were previously designed or launched with the older version of the part, then those ships will still be there and still have the old part in them.

Link to comment
Share on other sites

@Snark thanks for you quick reply!

4 hours ago, Electrocutor said:

There are in fact 7 parts in Squad/zDeprecated that use the same part name as their replacement counterparts. I've no idea how this doesn't break things.

Watch out for the difference between part "name" and "title". From my understanding:

Name: The hidden internal part name

Title: The name displayed to the player in game

From a quick search through the configs, I find the following parts with "Category = none"

Title: Mk1-2 Command Pod  			Name: Mark1-2Pod
Title: Mk1 Command Pod  			Name: mk1pod
Title: Probodobodyne HECS  			Name: probeCoreHex
Title: Probodobodyne OKTO  			Name: probeCoreOcto
Title: Probodobodyne OKTO2  			Name: probeCoreOcto2
Title: Probodobodyne RoveMate  			Name: roverBody
Title: Probodobodyne Stayputnik  		Name: probeCoreSphere
Title: RT-10 "Hammer" Solid Fuel Booster	Name: solidBooster
Title: RT-5 "Flea" Solid Fuel Booster  		Name: solidBooster_sm
Title: Rockomax Jumbo-64 Fuel Tank  		Name: fuelTank3-2
Title: ROUND-8 Toroidal Fuel Tank  		Name: toroidalFuelTank
Title: Rockomax X200-16 Fuel Tank  		Name: fuelTank2-2
Title: Rockomax X200-32 Fuel Tank  		Name: fuelTank1-2
Title: Rockomax X200-8 Fuel Tank  		Name: fuelTank4-2
Title: A potato like rock  			Name: PotatoRoid
Title: TR-38-D  				Name: size3Decoupler
Title: TR-18D Stack Separator  			Name: stackSeparator
Title: TR-2C Stack Separator  			Name: stackSeparatorMini
Title: TR-XL Stack Separator  			Name: stackSeparatorBig
Title: Rockomax Brand Decoupler  		Name: decoupler1-2
Title: TR-18A Stack Decoupler  			Name: stackDecoupler
Title: TR-2V Stack Decoupler  			Name: stackDecouplerMini

I assume all of these would have old configs floating around, expect for PotatoRoid of-course!

 

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