Coder Social home page Coder Social logo

uncbv's Introduction

uncbv

CBV archive extractor written in Rust.

uncbv uncbv uncbv uncbv

Installation

Note
this method currently requires you to be running cargo 0.6.0 or newer.
cargo install uncbv

Installing from source

To install from source, first checkout to the tag or branch you want to install, then issue

cargo install --path .

This will install uncbv in your ~/.cargo/bin. Make sure to add ~/.cargo/bin directory to your PATH variable.

Usage

List the files in the archive:

uncbv list archive.cbv

Extract the files from the archive:

uncbv extract archive.cbv

Only decrypt the archive (to decrypt and decompress, use the extract command):

uncbv decrypt archive.cbz

uncbv's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uncbv's Issues

Strange error at the conversion of the cbh into si4

I am using a setup

  • windows laptop + chessbase + official bases
  • android phone with scid on the go and si4 bases

so that your uncbv tool helped me many times converting a cbv to cbh (and stuff), really great job !

Once I have the base in cbh (and stuff) format I then pass the whole thing to a virtual Ubuntu machne with scidb on it, and use scidb to convert the cbh format base to the si4 format (as no windows tool does the latter conversion, as far that I know.)

And it is the first time that I had failed conversion at the latter step. (Had this yesterday with the Mega Database 2022 from ChessBase.) So that there are three possibilities :

  1. The MegaDatabase in the native chessbase format or its ChessBase conversion to cbv has an issue/the native formats evolved in a way that the obtained cbv will failed to be converted in the next step
  2. There's an issue with the cbh converted with your uncbv tool (perhaps because of an evolution of the native chessbase fomat)
  3. There's an issue with scidb at the cbh to si4 conversion

As far as I was able to humanly check it's not 1, and I don't believe it's 2 either, so that I am rather banking on 3 (as scid hasn't been updated since 2018 and had an history of bugs, especially because of Tcl)

But I would nevertheless like to be sure. I naturally didn't have any error at step 2, but I don't see any log activation option in the available options. Would it be possible for me to update the cbv base somewhere so that you could test if your tool has an issue at the conversion ?

Documentation on CBH/CBV

You did an incredibly great job of decrypting/decoding CBH/CBV. If somebody wants to submit/implement patches, use the stuff in another program etc., it would be extremely helpful if you could document the CBV/CBH file format. Especially there seems to be not documentation on CBV, and your gained insights would probably very helpful for the community.

Could not compile huffman

Leaving stack trace
Compiling huffman v0.0.2
Running rustc .cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs --crate-name huffman --crate-type lib -C opt-level=3 -C metadata=228b0f641cc7ae57 -C extra-filename=-228b0f641cc7ae57 --out-dir /home/squirrel/target-install/release/deps --emit=dep-info,link -L dependency=/home/squirrel/target-install/release/deps -L dependency=/home/squirrel/target-install/release/deps --extern bitreader=/home/squirrel/target-install/release/deps/libbitreader-9b3eae1a1b30e829.rlib --cap-lints allow
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:47:27: 47:31 error: unresolved name node [E0425]
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:47 let $dir: &Tree = node.$dir.as_ref().unwrap();
^~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:111:13: 111:55 note: in this expansion of visit! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:47:27: 47:31 help: run rustc --explain E0425 to see a detailed explanation
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:111:48: 111:53 error: unresolved name right [E0425]
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:111 visit!(current_node, tree, result, right);
^~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:111:13: 111:55 note: in this expansion of visit! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:111:48: 111:53 help: run rustc --explain E0425 to see a detailed explanation
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:111:48: 111:53 error: unresolved name right [E0425]
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:111 visit!(current_node, tree, result, right);
^~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:111:13: 111:55 note: in this expansion of visit! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:111:48: 111:53 help: run rustc --explain E0425 to see a detailed explanation
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:47:27: 47:31 error: unresolved name node [E0425]
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:47 let $dir: &Tree = node.$dir.as_ref().unwrap();
^~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:114:13: 114:54 note: in this expansion of visit! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:47:27: 47:31 help: run rustc --explain E0425 to see a detailed explanation
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:114:48: 114:52 error: unresolved name left [E0425]
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:114 visit!(current_node, tree, result, left);
^~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:114:13: 114:54 note: in this expansion of visit! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:114:48: 114:52 help: run rustc --explain E0425 to see a detailed explanation
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:114:48: 114:52 error: unresolved name left [E0425]
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:114 visit!(current_node, tree, result, left);
^~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:114:13: 114:54 note: in this expansion of visit! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/huffman-0.0.2/src/lib.rs:114:48: 114:52 help: run rustc --explain E0425 to see a detailed explanation
error: aborting due to 6 previous errors

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.