WhichMod
This mod adds the mod title to the descriptions of all weapons, ships, fighters, and hullmods added by mods.
Example (from
High Tech Expansion):
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.
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
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
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!
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!
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.
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.
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?
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