Giter Club home page Giter Club logo

canary's Introduction

Canary

An early warning of poison in the mines.

Canary is a mod that detects dangerous behavior of other mods.

Current problems that Canary detects:

  • Registration of new EntityDataSerializers
  • Unsafe registration of entity tracked data
  • Adding new BlockState properties to vanilla blocks

Fun Fact

This mod is named after the real life practice of using canaries in coal mines to detect poisonous gasses. Like the real life counterpart, if the canary dies (the game crashes), you've got a problem.

canary's People

Contributors

tropheusj avatar

Stargazers

Storm avatar

Forkers

asoji unilock

canary's Issues

Canary itself is incompatible with 1.20.6

Canary itself is incompatible with 1.20.6

Incompatible mods found!
net.fabricmc.loader.impl.FormattedException: Some of your mods are incompatible with the game or each other!
A potential solution has been determined, this may resolve your problem:
- Replace mod 'Canary' (canary) 2.0.13 with any version that is compatible with:
- minecraft 1.20.6
More details:
- Mod 'Canary' (canary) 2.0.13 requires version >=1.20.6 of 'Minecraft' (minecraft), but only the wrong version is present: 1.20.6!
at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:51)
at net.fabricmc.loader.impl.FabricLoaderImpl.load(FabricLoaderImpl.java:195)
at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:146)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

null[03:40:09] [main/INFO]:
Loading Minecraft 1.20.6 with Fabric Loader 0.15.10
[03:40:09] [main/WARN]:
Mod resolution failed
[03:40:09] [main/INFO]:
Immediate reason: [HARD_DEP_INCOMPATIBLE_PRESELECTED canary 2.0.13 {depends minecraft @ [>=>=1.20.6]}, ROOT_FORCELOAD_SINGLE canary 2.0.13]
[03:40:09] [main/INFO]:
Reason: [HARD_DEP canary 2.0.13 {depends minecraft @ [>=>=1.20.6]}]
[03:40:09] [main/INFO]:
Fix: add [], remove [], replace [[canary 2.0.13] -> add:canary 1 ([(-โˆž,โˆž)])]
[03:40:09] [main/ERROR]:
Incompatible mods found!
net.fabricmc.loader.impl.FormattedException: Some of your mods are incompatible with the game or each other!
A potential solution has been determined, this may resolve your problem:
- Replace mod 'Canary' (canary) 2.0.13 with any version that is compatible with:
- minecraft 1.20.6
More details:
- Mod 'Canary' (canary) 2.0.13 requires version >=1.20.6 of 'Minecraft' (minecraft), but only the wrong version is present: 1.20.6!
at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:51) ~[fabric-loader-0.15.10.jar:?]
at net.fabricmc.loader.impl.FabricLoaderImpl.load(FabricLoaderImpl.java:195) ~[fabric-loader-0.15.10.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:146) ~[fabric-loader-0.15.10.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68) [fabric-loader-0.15.10.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.15.10.jar:?]

Add configuration

Create checking a basic configuration whenever a bad configuration occurs:

Algorithm:

if a bad behavior is detected:
  if matching configuration for this bad behavior is marked permitted
  and matching configuration for this instance of bad behavior is marked permitted
    notify bad behavior was detected but permitted
    continue executing
  else
    throw CanaryException with particular cause
  endif
endif

1.21

Would love to see 1.21 support! :)

Add user prompt for configuring newly detected bad behaviors

Create a user prompt when a newly detected bad behavior is detected which is not configured (follow-up to Issue #3 if granted and implemented).

Algorithm:

if bad behavior detected
  if bad behavior is unconfigured
    prompt user to allow or deny the behavior
    create configuration entry with symbol associated with the user choice
    record to log

    if user chose to allow the behavior
      continue executing
    else      
      throw CanaryException with particular cause
    endif
  else
    if matching configuration for this bad behavior is marked permitted
    and matching configuration for this instance of bad behavior is marked permitted
      notify bad behavior was detected but permitted
      continue executing
    else
      throw CanaryException with particular cause
    endif
  endif
endif

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.