Can modpacks have mods that depend on each other?
-
- Member
- Posts: 324
- Joined: Sun Jun 16, 2019 20:17
- Location: x=123, y=120, z=534
Can modpacks have mods that depend on each other?
I'm making a mod with many dependencies, and I was wondering if it would be possible to include my mod and all its dependencies in a single modpack.
Currently working on new mods.
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Can modpacks have mods that depend on each other?
If the dependencies allow redistribution then yes.
Re: Can modpacks have mods that depend on each other?
The license must allow redistribution, but I don't think that is what the question is really asking...Linuxdirk wrote:If the dependencies allow redistribution then yes.
I take the question: Can modpacks have mods that depend on each other? to mean that
mod A depends on B (....which depends on A, which depends on B, etc...).
In other words, such a dependency would result in an infinite loop when trying to resolve the dependency chain (might even result in stackoverflow exception, or similar error; crash, or hang).
It is, however, possible that they could depend on a common mod that enables them to "talk" to each other (ie share resources and/or data).
-
- Member
- Posts: 324
- Joined: Sun Jun 16, 2019 20:17
- Location: x=123, y=120, z=534
Re: Can modpacks have mods that depend on each other?
Actually, I was wondering if it was technically (not legally) possible for a mod pack to contain a mod that depended on other mods in the mod pack (but not a two way dependency). I apologize for not being clear.
Currently working on new mods.
Re: Can modpacks have mods that depend on each other?
Basically a mod pack just combines a bunch of separate mods into a single unit (the dependencies work the same as they do normally).Red_King_Cyclops wrote:Actually, I was wondering if it was technically (not legally) possible for a mod pack to contain a mod that depended on other mods in the mod pack (but not a two way dependency). I apologize for not being clear.
So, yeah it is possible to do it (as is done in most of the mod packs that I have downloaded...)
I just quickly looked and the following mod has dependencies on stuff included in the modpack.
[Modpack] Display Modpack [1.3] viewtopic.php?t=19365
The git source is here: https://github.com/pyrollo/display_modpack
The ontime_clocks/mod.conf: https://github.com/pyrollo/display_modp ... s/mod.conf
Code: Select all
name=ontime_clocks
description=Clocks displaing real ingame time
depends=default,dye,display_api
optional_depends=intllib
Who is online
Users browsing this forum: Bing [Bot] and 7 guests