Giter VIP home page Giter VIP logo

rstb's Issues

rstbtool compare fails on .bars files

% rstbtool System/Resource/ResourceSizeTable.product.srsizetable get Voice/Common/NV_AncientDoctor.bars
Voice/Common/NV_AncientDoctor.bars: 680488 bytes (0x000a6228) 
% rstbtool System/Resource/ResourceSizeTable.product.srsizetable compare Voice/Common/NV_AncientDoctor.bars Voice/Common/NV_AncientDoctor.bars

Traceback (most recent call last):
  File "~/.local/lib/python3.7/site-packages/rstb/__main__.py", line 13, in parse_size
    return int(size_str, 0)
ValueError: invalid literal for int() with base 0: 'Voice/Common/NV_AncientDoctor.bars'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "~/.local/bin/rstbtool", line 10, in <module>
    sys.exit(main())
  File "~/.local/lib/python3.7/site-packages/rstb/__main__.py", line 117, in main
    args.func(args, table)
  File "~/.local/lib/python3.7/site-packages/rstb/__main__.py", line 65, in rstb_compare
    calculated_size = parse_size(args.file, be=args.be, force=True)
  File "~/.local/lib/python3.7/site-packages/rstb/__main__.py", line 15, in parse_size
    size = rstb.SizeCalculator().calculate_file_size(file_name=size_str, wiiu=be, force=force)
  File "~/.local/lib/python3.7/site-packages/rstb/rstb.py", line 227, in calculate_file_size
    return self.calculate_file_size_with_ext(file_name, wiiu, ext, force)
  File "~/.local/lib/python3.7/site-packages/rstb/rstb.py", line 189, in calculate_file_size_with_ext
    file_data = syaz0.decompress(open(file, 'rb').read())
ValueError: Invalid Yaz0 header

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.