Coder Social home page Coder Social logo

ghlimgconverter's Introduction

GHL IMG Converter

A python script and module to extract and convert to IMG files used in some FSG games like Guitar Hero Live, DJ Hero and DJ Hero 2

Usage

Extraction

Extract a IMG file to a decompressed format

ghl_img_converter.py extract input [--output OUTPUT] [--platform {ps3,ios,x360,wiiu,wii}]

Arguments

input Path of the input IMG file or root folder to extract

--output OUTPUT Path to the output decompressed format or output folder

--platform {ps3,ios,x360,wiiu,wii} Force extraction from the specified platform

Conversion

Convert an image to a IMG file

ghl_img_converter.py convert input [--output OUTPUT] --platform {ps3,ios,x360,wiiu,wii} [--game {ghl,djh,djh2}] [--width WIDTH] [--height HEIGHT] [--format {BC1,BC2,BC3,R8G8B8A8}] [--tex0 {CMPR,RGB5A3,IA4}] [--mipmap MIPMAP] [--flip]

Arguments

input Path of the input image or root folder to convert

--output OUTPUT Path to the output IMG or folder

--platform {ps3,ios,x360,wiiu,wii} Platform to convert the IMG to

--game {ghl,djh,djh2} Game to convert the IMG to, used in PS3 and X360 textures. Default option is ghl

--width WIDTH Width of the output IMG. Not supported on Wii textures

--height HEIGHT Height of the output IMG. Not supported on Wii textures

--format {BC1,BC2,BC3,R8G8B8A8} DDS format of the output IMG, used in PS3, X360 and Wii U textures. Default option is BC1

--tex0 {CMPR,RGB5A3,IA4} TEX0 format of the output IMG, used in Wii textures. Default option is RGB5A3

--mipmap MIPMAP Mipmap count of the output IMG

--flip Vertically flip the output IMG. Not supported on Wii textures

Information

Prints information about the IMG file

ghl_img_converter.py info input

Arguments

input Path of the input IMG file

Requirements

This program currently requires PVRTexToolCLI.exe version 4.23 or earlier installed and added to your config.ini file. Downloading PowerVRSDK-4.0 is recommended.

Wii U conversion also requires gtx_extractor.py installed and added to your config.ini file.

Wii conversion only requires wimgt.exe installed and added to your config.ini file.

Contributing

Feel free to contribute for more formats and platforms support

Thanks

A special thanks to everyone in the GHLRE organization and Discord who helped figure out the image formats before me!

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.