[3.0] Depending on another customization/modification

Started by Illori, November 02, 2011, 12:30:08 PM

Previous topic - Next topic


The customization guidelines state the following

Quote from: http://wiki.simplemachines.org/smf/index.php?title=Customization_approval_guidelines=== Installation / Uninstallation===
Your customization should install without any errors on an unmodified copy of SMF, except if it depends explicitly on another customization. In that case, the readme file should state clearly that it depends on, or extends another customization.

We currently do not support a method in the package manager to verify that the additional modification is already installed, this is something that would be useful to have in the future. What ways would you see useful to have this added?

One possible way is to verify that the mods package id and installed status is set correctly in the database.

Matthew K.

I don't think it'd be that complicated to add a <required-mod>ModAuthor:ModName</required-mod> tag to the Package Manager, or something similar.


in the same respect i guess we could have if <mod> is installed another mod will not install. for example with the 2 versions of aeva if one is installed the other would error out before you get a chance to attempt the install [some how people have had issues with this].

Matthew K.

Yeah, there are multiple ways I'm sure that this could be handled. Although unfortunately this would require a core change.


yes which is why it is in the board for features for the next version.


seriously?   I understand the required pre-load one... That's actually a good idea.
but checking for different versions?   Are we going to come and wipe their noses when they sneeze too?   

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


it is an option, the issue comes up sometimes but given that, that specific mod author is no longer updating the mod it would not help that issue and i have not seen it anywhere else.


Both the ideas are good and much appreciated.
However, where in first one you can only check through MOD id, in second one it will require little more effort but would be worthy as it will save lots of time of user as well as supporter where unexpected situations arises just because a user has installed one version over another, creating great conflicts . You know.. people tends to ignore warning where a new version of MOD says.. please uninstall previous version if any.

+1 from my side.


I'll go out on a limb (and get slapped by Norv in the process) and say that this is guaranteed for the next major version. Also, clashes, so that you can mark when you know your mod/plugin/etc. won't work with something else (i.e. Super YouTube Embedder 1.1 clashes with versions of Aeva less than 2.2.2). It's complicated in words, but simple enough in code.
Steven Hoffman
Former Team Member, 2009-2012



Yes, dependencies are necessary IMO. There are many reasons to support packages depending on or extending other packages, just think at portal mods or other big mods (or library-type mods) which may already have their own extensions but currently are mostly handling them occasionally on their sites. A tag <depends> on package manager will make sure they're supported properly in core SMF. Without issues for users who may want to install a package that depends on another one. (and their forum may not have the dependency installed etc).
The same goes (but I don't know if for 2.1) for clashes. (specify when a package conflicts with another).

As for previous versions of a package... Well. Package manager has the upgrade tag, to be used by modders when they create an updated package. It allows to not require the user all the time to uninstall the previous version of the mod. Instead users can install the update and be done... I'm not sure why this feature isn't more used... To my knowledge it is very (very!) rarely used. Maybe it's because it implies additional work for modders, but I wonder if there is something else, in the design of the tag maybe, or documentation on it, that is missing. Or whatever else could SMF do, to ease the process.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github


Owner of Mesozoic Haven