[MECH] rc_BCD v0.1 - enheanced redstone chip BCD decoder for clock displays and more [1060]

Discussion in 'Inactive/Unsupported Plugins' started by 7eggert, Jul 6, 2011.

  1. Offline

    7eggert

    rc_BCD
    Version: v0.1
    Requires: RedstoneChips

    rc_BCD is a generic redstone chip BCD decoder inspired by ClockDisplay. I used the ClockDisplay source to learn how to write redstone chip plugins, but the program logic is changed completely so it qualifies as a new work.

    License: GPL v2 or v3. You can read the GPL v3 here.
    Download: http://7eggert.dyndns.org:8080/minecraft/ (rc_BCD.jar, rc_BCD-src.tar.gz)
    Current version: 0.1
    .
    This decoder features
    • An offset, so you can add x to the input value (e.g. 6 for gametime offset)
    • a modulo, e.g. 12 or 24
    • an optional clock pin for each output group
    • an optional blank pin for each group, each group but the lowest or only the highest group
    Usage:
    Create a redstone chip with at least three input pins, a clock output, optionally a blank output and at least two data pins (A single pin does not make sense and is considered to be an error).
    Sign first line = "rc_BCD"
    next lines = (option|option argument) *
    where option is one of
    "clocks" or "cl": Each group has a clock pin​
    "blankpins" or "bps": Each group has a blank pin​
    "blankpin" or "bp" without "blankpins": you will get a blank pin on the highest group.​
    "blankpin" or "bp" with "blankpins": you will get a blank pin all but the lowest group.​
    "bias <num>": Add <num> to the input​
    "gmod <num>": After adding the bias, calculate the modulo. Defaults to 2147483647 (2^31-1)​
    (set this for limiting the output to e.g. 24)​
    "mod <num>": The modulo for dividing the input into output groups. Defaults to 10 for decimal output. If the modulo is larger than 16, the number of output pins per group will increase. You will at least have four pins per group.​

    Example: A 24 hour decoder will look like:
    6 inputs, input 0 = clock, 1,2,3,4,5 = data​
    9 to 11 output pins: 0 = clock, 1,2,3,4 = low digit, 5 = clock2, 6 = blank pin, 7,8,9,10 = high digit (where 9 and 10 are unused and can be omitted)​
    The sign says:​
    "rc_BCD"​
    "cl bp bias 6"​
    "gmod 24"​

    Example 2: A minutes decoder will look like:
    7 inputs, input 0 = clock, 1,2,3,4,5,7 = data​
    9 to 10 output pins: 0 = clock, 1,2,3,4 = low digit, 5 = clock2, 6,7,8,9 = high digit (where 10 is unused and can be omitted)​
    The sign says:​
    "rc_BCD"​
    "cl"​

    (You don't need a decoder for minutes anymore, since the daytime chip can output single digits now)
    .
    I do not test for negative numbers. If they result in undesired behavior (without throwing exceptions or crashing the server), don't do that then.

    Changelog (open)

    0.1
    • Initial release


    Download:
    http://7eggert.dyndns.org:8080/minecraft/rc_BCD.jar
    http://7eggert.dyndns.org:8080/minecraft/rc_BCD-src.tar.gz
     
  2. Offline

    Plague

    I understand this does not work with 953, but I cannot release that old compatibility like 823

    you are also missing a changelog
     
  3. Offline

    Plague

    inactive then
     
  4. Offline

    7eggert

    Bukkit bug not fixed that hinders testing, so there is nothing to do on my part.
     
  5. Offline

    7eggert

    @Plague: Bukkit is fixed, and this plugin does work. Please move it.
    tia
     

Share This Page