Giter Club home page Giter Club logo

Comments (1)

EZForever avatar EZForever commented on June 26, 2024 1

tl,dr: Theorically yes, but no without many design change. Some features can be implemented in other ways currently.

prevent loading mods from certain directories or other rule objects

For GENERATED and NESTED rules (the rules that opens a new settings screen), this can be achieved via the lock button. However it's up to the user whether to use it.

when user want to load a mod that is incompatible with another loaded mod

Incompatible mod sets are typically separated to different options of a DEFINED rule. If you choose one option, the other options are not chosen and therefore mods are not loaded.

I've been thinking about implementing some kind of logic in the config file well before publishing this mod, something like boolean expressions (mod1 ^ (mod2 && mod3)) or dependency manifests (like "depends" and "breaks" fields in fabric.mod.json). But this would be relatively a mess to implement, so with v0.1.0 I've come up with the DEFINED rules: "directories" fields are ANDs, a rule itself is XOR (w/ NOT capability), and the whole ruleset is OR. This is not to say the current ruleset format is not a mess, but it's the best I can get without creating a larger mess.

Maybe in the future when ThatOrThis becomes like a "package manager" for mods (see #8), a proper way of defining logic between rules can be designed.

from thatorthis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.