Page 1 of 1

BTA Wire Goggle

Posted: 13 Dec 2025, 16:06
by KirisameSoup
A command line program for calculating the update order of locational redstone wire in BTA 7.3_04.

The source code and compiled binary can be found on codeberg! Note:
This is a hobby project.
It is a binary executable. I promise it is not a virus (send me your bitcoins), but if you are worried, the codebase is quite small and can be trivially reviewed.
It will (hopefully) not blow up your PC, but the correctness of its evaluated results are not thoroughly tested either.

Command Usage:

Code: Select all

> ./bta_wire_goggle.exe help
usage: ./bta_wire_goggle <command> ...
command:
- help
- hash <pos> [-d | -x | -b]
    output the hash of a given position.
    -d: decimal (default), -x: hex, -b: binary
- bucket <pos>
    output the bucket index of a given position.
- sides <pos>
    output the neighboring positions.
- sides hash <pos> [-d | -x | -b]
    output the hash of the neighboring positions.
- sides bucket <pos>
    output the bucket index of the neighboring positions.
- order <pos> [-m]
    output the update order of the neighboring positions.
    -m: minimum output
- render <origin> <width/8> <side1>:<side2> [-x | -y | -z]
    for each position in range, evaluates if side1 is updated before side2,
    and renders the result to standard output.
    use 'render ... > file.pbm' to write to file.
    origin: the center of the plane.
    width/8: width of the plane / 8.
    side1 and side2: accepts W, E, U, D, N, S.
    -x, -y (default) and -z: the axis normal to the rendered plane.
      e.g. -y represents the XZ plane.
- render create <origin> <width> <side1>:<side2> [-x | -y | -z]
    same as the previous, but creates a file that is named based on the provided
    args and renders to it.
pos:
  three numbers (only containing '0'...'9', but can begin with '-')
  separated by non-number charaters.
  examples: "0 1 2", "(-10, 11, 12)", ".{ 420; 69; 420 }

Re: BTA Wire Goggle

Posted: 13 Dec 2025, 16:10
by KirisameSoup

Example:
Comparing the priority of two directions at each location and rendering the result to a bitmap image


Command used:

Code: Select all

./bta_wire_goggle render create 0,0,0 64 n:s
Image