Code Monkey home page Code Monkey logo

datatractor's Introduction

DataTractor logo

DataTractor

Extract game data from web sources.

How to use

Setup & Run

You need python version 3. To install the package, run:

python setup.py install

Tip: you can add the --user option to install it for you only, without root permissions.

Then, in the repo's main directory, simply run the xtract script:

python xtract.py -v game_version -o output_directory

-o might be omitted, see below.

Options

Type Option Description
Mandatory -v version Sets the game version
Optional -o dir Sets the output directory, default is ./out/generated_$v where $v is the game version
Optional -p or --packets Enables the packets extractor
Optional -b or --blocks Enables the blocks extractor
Optional --nocache Disables the HTTP cache
Optional --cachetime seconds Sets the cache timeout in seconds, default is 300s (5 minutes)

If no extractor is specified, all the available extractors will run.

Example

python xtract.py -v 1.12.2 --packets

This will generate all the packets classes for Minecraft version 1.12.2.

datatractor's People

Contributors

theelectronwill avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

datatractor's Issues

Handle compact position fields

Location: Long: 26 bits for x, 12 bits for y, 26 bits for z

It would be nice to provide a construction method and a getter that converts the long to the location.

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.