[Starsector Mods][0.95.1a] WhichMod 1.2.1

  • Post category:Mods
  • Post comments:0 Comments

Have you ever posted “which mod is this ship from?” Well, have I got the mod for you!
WhichMod

This mod adds the mod title to the descriptions of all weapons, ships, fighters, and hullmods added by mods.

Example (from

Also has the option to use abbreviations instead of the full mod name, and will let you choose the abbreviations. Look in the settings file for more information.

Spoiler: click to expand
Spoiler
1.2.1: confirmed it works fine with 0.95.1a and updated compatible version number in mod info
1.2: now works on hullmods too
1.1: fixed an issue where it could add the mod title multiple times if you saved and loaded. No clue what was causing that, since descriptions aren’t saved, but it’s fixed anyway.


Thanks!

:oIs this For REAL?! Is it my Birthday?! Is it Christmas??!  ;D

Congrats to the new WhichMod version! I had a go at it and it works like a charm. The weird external thing it was before always put me off and I never tried it, but this is great!
I see this quickly becoming one of those mods everyone installs without thinking like console commands or commissioned crew.

Thanks for your hard work, you did a great job on this


:oIs this For REAL?! Is it my Birthday?! Is it Christmas??!  ;D

Yes, I don’t know, and no.

Thanks for your hard work, you did a great job on this

Ironically this was extremely easy to make- once DR told me about the API method I needed it took me about five hours of work to make and test it. Regardless, thanks for the praise!


Possibly one of the most important mods to me, since the number of times someone has asked “wHaT mOD is tHAt fROm??” and I’m like, “Uhhhhhh….”

Now they won’t even need to ask most of the time, since the mod name will be right there in my screenshots, and if it isn’t, I’ll be able to find out easily!


Could you add conversion lists to ship descriptions? Some mods (e.g. Roider Union, THI) allows you to convert one hull into another – keeping track of which is convertible and to what is a pain.

For hullA that can be created from hullB or hullC I would expect:

  • hullA entry to have: Converted from hullB, hullC.
  • hullB, hullC entry to have: Converts to hullA.

Could you add conversion lists to ship descriptions?

There’s no internal way for a mod to check which hulls can be converted into other hulls, so I’d need support from other modders to do that (they’d probably have to include a .json file somewhere for whichmod to read). I’ll have an example config next patch for other authors to copy, but it might be a week or two.


This is amazing, and so useful!   Nice work getting it functioning inside the normal modding framework.

Looking at the code, do you need to ensure that this mod is loaded after all other mods? 


This is amazing, and so useful!   Nice work getting it functioning inside the normal modding framework.

Looking at the code, do you need to ensure that this mod is loaded after all other mods?

Nope. onApplicationLoad() is called after all the data from each mod has been loaded. Unless someone’s mod is changing descriptions with hardcoded strings on load, order isn’t important.

Also did a quick little patch to 1.1, because apparently loading a game would add on the mod title each time, resulting in multiple mod titles. Looks like onApplicationLoad() gets called when you load a game too.


Oh my god yes!

This is exactly what I want!
May I post it with a light translate on Fossic, which is a Chinese Forum of Starsector? And of course with credit.
Here is the link: https://www.fossic.org/

And btw, could you also the mod title to the descriptions of hullmods?


Updated to 1.2, now works on hullmods too. This can be toggled off in the settings file.

May I post it with a light translate on Fossic, which is a Chinese Forum of Starsector? And of course with credit.

Sure.


Updated to 1.2, now works on hullmods too. This can be toggled off in the settings file.

May I post it with a light translate on Fossic, which is a Chinese Forum of Starsector? And of course with credit.

Sure.

Thanks for the permission! And glad for the update!
When I finish I’ll put the adress here.

Edit: And here it is https://www.fossic.org/thread-3730-1-1.html


Thanks again for this mod, it made my latest play through a lot better.

Leave a Reply