Coder Social home page Coder Social logo

arctool's Introduction

ARCTool v0.3b 5/25/10
By tpw_rules

ARCTool is a Python script that can extract the multitude of different formats found in .arc game files. It has support for Yaz0, U8, and RARC, which are all that I have found.
The inspiration for this tool came about when I wrote a RARC extractor and realized that all the files I wanted to extract were U8, but they still had the arc extension.
I have tested it on Mac OS X 10.5.8 with Python 2.5 and 2.6. It should work on other platforms (Windows and Linux) provided Python is properly installed.
I have confirmed Yaz0 and U8 support to be 100% working.
If you have any trouble with it, message me on IRC (nick is tpw_rules) or leave a note on the talk page.

Usage: python ARCTool.py [-qlh] [-o <output>] <inputfile> [inputfile2] ... [inputfileN]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -o FILE/DIR, --output=FILE/DIR
                        write output to FILE/DIR. If you are extracting
                        multiple archives, all of them will be put in this
                        dir.
  -q, --quiet           don't print anything (except errors)
  -l, --list            print a list of files contained in the specified
                        archive (ignores -q)

Requirements:
Python 2.5 or higher (not Python 3.x however). Get Python for your OS at http://python.org/download/

THANKS TO

#python on freenode for helping me with some stupid mistakes.
#wiidev for, again, helping me with stupid mistakes (and not so stupid ones).
YAGCD and the WiiBrew wiki for documentation and example code on the various formats.
Magicus for parse-u8.c which I used for testing.
Everybody else I forgot.

arctool's People

Contributors

tpwrules avatar

Stargazers

 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

arctool's Issues

NameError: global name 'f' is not defined

Attempting to run the script throws this error:

  File "/usr/bin/ARCTool.py", line 397, in <module>
    main()
  File "/usr/bin/ARCTool.py", line 390, in main
    unu8(f, of)
  File "/usr/bin/ARCTool.py", line 320, in unu8
    dest.write(f.read(size))
NameError: global name 'f' is not defined

on Python 2.7.15rc1

RARC extracted too far

When unpacking MRAM.arc from Mario Kart: Double Dash, I expected itemslotlist.dat to be 2028 bytes, but it was 3032 bytes. The extra 1004 bytes were filled with junk. (e.g. containing "This is padding data to alig" twice)
Using Python 2.7.18 on Debian 11.

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.