Mod Portal Feature Request: show dependency graph

A place to talk about the official Factorio mod portal (https://mods.factorio.com)
Post Reply
sparr
Smart Inserter
Smart Inserter
Posts: 1360
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Mod Portal Feature Request: show dependency graph

Post by sparr »

Simpler request first... In the mod portal UI I'd like to see the dependency list for a mod, and be able to click through to those other mods.

Actual request that prompted this post... I'd like to see all the mods that depend on the one I'm interested in.

My use case for this, at this moment, is "how popular is the signal strings mod, among mod developers?". I don't want to know how many players use it, I want to know how many other mods depend on it and use it. https://github.com/search?l=&q=signalst ... &type=code tells me there are ~5 mods on github that depend on it, but many mod portal mods aren't on github.

User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 367
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: Mod Portal Feature Request: show dependency graph

Post by Stringweasel »

+1 To be able to see on the mod portal all mods that (optionally) depend on a mod. Even if it's only visible to the mod authors. A simple list of mods is fine. And maybe it's easiest if it only checks the latest version of said mods.

My use case is that there are a few reports of players installing my mod without realizing. So it would be useful to see if it might be a hard dependency in another mod. For example this reddit thread and there's also some mentions to it on the SE Discord.

I'm sure this will also be useful for other mods. And would for sure be very interesting statistics for mod authors.
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration

User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 367
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: Mod Portal Feature Request: show dependency graph

Post by Stringweasel »

Also a thread mentioning this. viewtopic.php?f=34&t=85466
Alt-F4 Author | Factorio Modder
My Mods: Hall of Fame | Better Victory Screen | Fluidic Power | Biter Power | Space Spidertron | Spidertron Dock | Weasel's Demolition Derby
Official Contributor to Space Exploration

mmmPI
Smart Inserter
Smart Inserter
Posts: 3148
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: Mod Portal Feature Request: show dependency graph

Post by mmmPI »

As non-mod-author i would find it interesting too to see which mods depend on the mod i'm interested in, sometimes it's an old classic mod, and there exist new tweaks or variant built upon it or compatibility bridges and it's not always easy to find them even if you know the 2 or 3 letters acronyms for those classic mod.

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2767
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Mod Portal Feature Request: show dependency graph

Post by FuryoftheStars »

mmmPI wrote:
Wed Jan 17, 2024 9:32 am
As non-mod-author i would find it interesting too to see which mods depend on the mod i'm interested in, sometimes it's an old classic mod, and there exist new tweaks or variant built upon it or compatibility bridges and it's not always easy to find them even if you know the 2 or 3 letters acronyms for those classic mod.
Agreed!
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics

Quezler
Burner Inserter
Burner Inserter
Posts: 11
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

Re: Mod Portal Feature Request: show dependency graph

Post by Quezler »

originally posted on the factorio discord, but crossposted since this forum post was pointed out to me: (picture previews available on discord)
been working on a little project these last few days, a javascript injectable that shows you which mods have added yours as a dependency:

```
document.head.appendChild(Object.assign(document.createElement('script'), {
type: "module",
crossorigin: "anonymous",
integrity: "sha256-mxZ8He+OtLaKW5YiSJ7uZl7Uu88j/9bX7wcLbabRiII=",
src: 'http s://proxmox.nydus.app/factorio-mod-portal-dependants-checker/mods-v1.js',
}));
```

if you run this snippet whilst on the download page of a mod (via the javascript console, a javascript bookmark, or e.g. the "code injector" addon for firefox) it'll pull in the dependants for you.

you are encouraged to check out the javascript file yourself before running it, and once you feel satisfied/safe the integrity checksum will prevent your browser from running it if the content of the javascript file ever changes.

i didn't have take the opportunity yet to clean the code up since the second part was all like "oh i need this, oh and that too, and this needs to go in between here and there to work, and oeh that would work well there, etc"

if you think its interesting/neat or have questions/comments/suggestions i'd love to hear them, probably best to make a thread attached to this message in order to keep it all together.
original links:
- https://discord.com/channels/1396775903 ... 1686597682
- https://discord.com/channels/1396775903 ... 4155995278

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2767
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Mod Portal Feature Request: show dependency graph

Post by FuryoftheStars »

Quezler wrote:
Thu Apr 04, 2024 2:29 pm
originally posted on the factorio discord, but crossposted since this forum post was pointed out to me: (picture previews available on discord)

original links:
- https://discord.com/channels/1396775903 ... 1686597682
- https://discord.com/channels/1396775903 ... 4155995278
These can be uploaded to the forums. Not everyone uses Discord.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics

Quezler
Burner Inserter
Burner Inserter
Posts: 11
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

Re: Mod Portal Feature Request: show dependency graph

Post by Quezler »

FuryoftheStars wrote:
Thu Apr 04, 2024 3:14 pm
These can be uploaded to the forums. Not everyone uses Discord.
fiiiiiineee, i'll download the images and re-upload them to the forum:
Screenshot_2023-11-16_at_18.49.26.png
Screenshot_2023-11-16_at_18.49.26.png (204.78 KiB) Viewed 920 times
Screenshot_2024-04-04_at_15.34.10.png
Screenshot_2024-04-04_at_15.34.10.png (157.67 KiB) Viewed 920 times

User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 195
Joined: Mon Aug 02, 2021 6:45 pm
Contact:

Re: Mod Portal Feature Request: show dependency graph

Post by vinzenz »

bringing the oops to devops

Post Reply

Return to “Mod portal Discussion”