add new info.json dependency type: incompatible

User avatar
nucleargen
Long Handed Inserter
Long Handed Inserter
Posts: 65
Joined: Sat May 07, 2016 4:51 pm
Contact:

add new info.json dependency type: incompatible

Post by nucleargen »

New dependency syntax may be like "! mod_name" in dependencies array.
This would be useful if mod have permanent incompatibility with other mod and user cannot launch this mods together.

At now this problem resolving partially by specifying optional dependency like "? mod_name < 0.0.1" - no mods have version below this. Then if i enable mod specified in this way - my mod becomes red in list. But: this dependency in deps list are always red which not provide clear information to target user.
The brightest future in the center of a nuclear explosion...2003©nucleargen
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: add new info.json dependency type: incompatible

Post by bobingabout »

if it would be possible to specify a not compatible, then... I'd use it. Maybe not right at the moment, but there are times in the past where I wish I could have used it.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
User avatar
Gangsir
Inserter
Inserter
Posts: 20
Joined: Fri Jul 15, 2016 4:50 pm
Contact:

Re: add new info.json dependency type: incompatible

Post by Gangsir »

This would be useful for mods that step on each other's toes, IE change or add a very similar thing.
I'm an administrator over at the Factorio wiki. If you have any questions about the wiki, or concerns, please do not hesitate to contact me. I'm on the subreddit (/r/factorio, /u/Gangsir) as well.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: add new info.json dependency type: incompatible

Post by eradicator »

I would also very much welcome some more flexibility for dependencies. The addition of an "incompatibility" category would be a great step in the right direction.

Ultimately i would love to have full support for the three basic logic operations NOT, AND and OR though which would make arbitrary conditions possible while keeping the current syntax valid:
  • At least one mod that adds a specific material (e.g. "gold-ore"):

    Code: Select all

    "(modA > 1.0.0) OR (modB > 1.0.0) OR (modC > 1.0.0)"
  • Two mods that are useful in conjunction but not seperate:

    Code: Select all

    "modA > 1.0.0 AND modB > 1.0.0"
  • A specific mod version range:

    Code: Select all

    "modA > 1.0.0 AND modA < 2.0.0"
  • Incompatible mod:

    Code: Select all

    "NOT modA"
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
justarandomgeek
Filter Inserter
Filter Inserter
Posts: 302
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: add new info.json dependency type: incompatible

Post by justarandomgeek »

As a slightly evil hack, you can make an optional dependency on a version *FAR* in the future (like 99.99.99 or so), and your mod will be disabled if the other is present.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14911
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: add new info.json dependency type: incompatible

Post by Rseding91 »

This was added in 0.16.0.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”