GithubHelp home page GithubHelp logo

hexdecode's Introduction

Hex casting decoder

From an original idea by object-Object that has since ... metastasized.

Setup

Usage

  • Put your hex on the stack and cast Reveal.
  • Open .minecraft/logs/latest.log, find the Reveal output, and copy it (should look like [HexPattern(NORTH_EAST qaq)]).
  • Open a terminal (eg. PowerShell) in the program folder and submit your hex as follows. Replace hexdecode with the name of the executable that you downloaded (eg. hexdecode-Windows-AMD64.exe), and pattern_registry.pickle with the name of the pattern registry file that you downloaded.
echo "paste your hex here" | hexdecode pattern_registry.pickle
  • If you'd like the fanciful names rather than the internal ones, do this instead:
echo "paste your hex here" | hexdecode pattern_registry.pickle en_us.json
  • To get syntax highlighting:
echo "paste your hex here" | hexdecode pattern_registry.pickle en_us.json --highlight
  • Here's a useful thing if you're on a Mac. This takes the clipboard, decodes it, and puts the result back onto the clipboard for pasting:
pbpaste | hexdecode pattern_registry.pickle en_us.json | pbcopy
  • You can also run hexdecode without any input to get a "watch mode", where you can repeatedly paste hexes and press enter to decode them:
hexdecode pattern_registry.pickle en_us.json --highlight

Manual setup

  • Install Python. Windows users: download the installer and run it. Make sure you check the box that asks if you want to install pip.
  • Clone this repository; or click the green Code button, click Download ZIP, and unzip it.
  • Open a terminal in the repository folder and run this command to install the dependencies:
pip install -r requirements.txt
python buildpatterns.py pattern_registry.pickle *.java

Packaging for release

  • Create and enter a venv, and install the requirements from requirements.txt. This prevents pyinstaller from adding unnecessary dependencies to the executable.
  • On each OS for which you want to package executables, run the corresponding release script (eg. release.ps1 for Windows). The resulting executables are placed in dist/.
  • Also create a pattern registry file named pattern_registry_x-y-x.pickle, where x-y-x is the corresponding Hex Casting version.

hexdecode's People

Contributors

gchpaco avatar object-object avatar

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.