Tonka Crash

Mod to show part name

Recommended Posts

Is there a mod that will add a part's name in it's .cfg file definition to the part description in the VAB, so if I hover over the LV-T45 the part description would list liquidEngine2?

Share this post


Link to post
Share on other sites

I'm not sure, but if you install KER (Kerbal Engineer Redux), you can hover your mouse on a part and it shows the in-game name of the part.

Share this post


Link to post
Share on other sites

The closest I'm aware of is kOS' tag system—it allows you give parts unique tags via the right-click menu, but on the tag input pop-up it also shows the .cfg name of the part—not quite as simple as a hover-over, but it's there and accessible both in the VAB and in flight. And you can basically ignore the rest of the features of kOS and just use that feature. 

 

Share this post


Link to post
Share on other sites

I came up with a MM patch to add what I was looking for. I did it in a shade of gray so it's not really standing out too much but it's there if you need it. I write a lot of my own patches and finding the real name of parts has always been a nuisance to me. This simplifies that process.

//Add part name to description
@PART[*]:FINAL { @description = #$description$ <color=#7F7F7F> [$name$]</color> }

JJiUzHP.png

Share this post


Link to post
Share on other sites
29 minutes ago, Tonka Crash said:

I came up with a MM patch to add what I was looking for. I did it in a shade of gray so it's not really standing out too much but it's there if you need it. I write a lot of my own patches and finding the real name of parts has always been a nuisance to me. This simplifies that process.


//Add part name to description
@PART[*]:FINAL { @description = #$description$ <color=#7F7F7F> [$name$]</color> }

 

Is it possible to have it show the entire path of the cfg file?  I have so many part mods installed, and it's such a pain sometimes to figure out which mod it is.

Share this post


Link to post
Share on other sites
8 minutes ago, Geonovast said:

Is it possible to have it show the entire path of the cfg file?  I have so many part mods installed, and it's such a pain sometimes to figure out which mod it is.

I don't think so. The path to the part isn't an attribute of the part.

Share this post


Link to post
Share on other sites
5 minutes ago, Tonka Crash said:

I don't think so. The path to the part isn't an attribute of the part.

I figured, we're probably in plugin territory for that.

Share this post


Link to post
Share on other sites
1 hour ago, Geonovast said:

Is it possible to have it show the entire path of the cfg file?  I have so many part mods installed, and it's such a pain sometimes to figure out which mod it is.

On windows, you can open a powershell in your GameData (hold down shift + right click some empty space in the folder) folder and search for the partname by typing: findstr /S "partname" *.cfg
This command will search though all .cfg files of your current directory and all subdirectories, looking for a string which matches your partname :)

On Linux, grep -R partname should find it as well ;)

Edit: Also, Janitors Closet displays the mod name of a part in the editor (not sure if you need to enable this feature in the settings) :)

Edited by 4x4cheesecake

Share this post


Link to post
Share on other sites
1 hour ago, Geonovast said:

I figured, we're probably in plugin territory for that.

Janitor's Closet currently can show the mod a part is from when you hover over the part in the parts list.  This might be doable, but the question is, is this necessary all the time or would this be needed occassionally.  I'm  also thinking it shouldn't be too difficult to write a mod to add that info to the part info column

Thinking about this, it might be easier than I thought.  Stay tuned for further announcements :-)

 

14 minutes ago, 4x4cheesecake said:

 

Edit: Also, Janitors Closet displays the mod name of a part in the editor (not sure if you need to enable this feature in the settings) :)

It is a setting

Share this post


Link to post
Share on other sites
13 minutes ago, 4x4cheesecake said:

On Linux, grep -R partname should find it as well ;)

Learn something new everyday. I was never aware of the recursive option and I've used *nix commands for decades. I've always used: find . -name "*.cfg" -exec grep partname {} \;

Share this post


Link to post
Share on other sites

Here you go:

PartInfo

PartInfo is a simple mod to expose the internal part name and path to the part file.  

The data shows up in the VAB/SPH when you right-click on a part in the part list

https://github.com/linuxgurugamer/PartInfo/releases/tag/0.0.1

 

I'll do a  more formal release later.  Before I do, is there any other internal information you would like to have exposed?  If any more are added, I'll add in some sort of configuration option.  Right now this is just about as simple a mod as you can get

It DOES require ModuleManager

 

Share this post


Link to post
Share on other sites
3 hours ago, linuxgurugamer said:

PartInfo is a simple mod to expose the internal part name and path to the part file.  

partURL works for most parts, but new parts that are created through MM patches with +PART have the URL of their source part and not the URL of the patch that created them. Missing History does this for a lot of it's parts that are rescaled from squad parts. I don't think there's any fix for that.

Share this post


Link to post
Share on other sites
14 minutes ago, Tonka Crash said:

partURL works for most parts, but new parts that are created through MM patches with +PART have the URL of their source part and not the URL of the patch that created them. Missing History does this for a lot of it's parts that are rescaled from squad parts. I don't think there's any fix for that.

Nothing can be done about that, the changes are done before being loaded into the game

Share this post


Link to post
Share on other sites

If there is not already another way to do it, what about an in-game UI, that polls the MM log, pulls info from patches that are only relating to parts (those that essentially create new, or edit existing parts), and displays *that*... vOv I guess useful info would be in-game part name, "hidden" part name, source partURL, mod that is modifying/adding the part... vOv

just spit-balling here

Edited by Stone Blue

Share this post


Link to post
Share on other sites
19 hours ago, Stone Blue said:

If there is not already another way to do it, what about an in-game UI, that polls the MM log, pulls info from patches that are only relating to parts (those that essentially create new, or edit existing parts), and displays *that*... vOv I guess useful info would be in-game part name, "hidden" part name, source partURL, mod that is modifying/adding the part... vOv

just spit-balling here

I'm having a nightmare just thinking about it

Share this post


Link to post
Share on other sites
On 2/7/2019 at 8:18 AM, Geonovast said:

Is it possible to have it show the entire path of the cfg file?  I have so many part mods installed, and it's such a pain sometimes to figure out which mod it is.

Following onto @4x4cheesecake's Part Name patch, you could do exactly the same thing to show the part's author in the editor description. It wouldn't give you the mod exactly, but should narrow things down significantly.

//Add part AUTHOR to description
@PART[*]:FINAL { @description = #$description$ <color=#7F7F7F> [$author$]</color> }

 

Share this post


Link to post
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.