Coder Social home page Coder Social logo

granitetexturereader's Introduction

GraniteTextureReader

Texture Reader/Extractor for Granite SDK files (.gts/.gtp). This tool was primarly made with Granblue Fantasy: Relink in mind, but should also support extracting from Unity games using Streaming Virtual Texturing.

Important

Only version 6 .gts files are currently supported. (Version can be viewed at 0x04 in the .gts files)

Layer Numbers

  • -1 - Extracts all Texture layers
  • 0 - Extract Albedo map layer
  • 1 - Extract Normal map layer
  • 2 - Extract RGB Mask 1 map layer
  • 3 - Extract RGB Mask 2 map layer

Extract Single Texture from .gts

GraniteTextureReader.exe extract -t "<path to .gts>" -f "<granite texture name>" -l <layer number>

Extract All Textures from .gts

GraniteTextureReader.exe extract-all -t "<path to .gts>" -l <layer number>

File types

  • .gts - Tile Set
  • .gtp - Page File

granitetexturereader's People

Contributors

alphasatanomega avatar nenkai avatar

Stargazers

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

Watchers

 avatar  avatar

granitetexturereader's Issues

Support for Harold Halibut

Hello,
Upon trying to use the tool to unpack data from Harold Halibut, there seems to be an issue with reading path names causing the program to crash:

https://paste.ec/raw/mCdQOtm5#cSBkOVAg+-thvAyBH68KSaKbYw6/AXs0J1NLahT5acG

File sample: https://www.upload.ee/files/16530242/Sample.7z.html

I tried to compile the tool myself in an attempt to have it ignore filename/paths and just dump data with random filenames but couldn't due to an issue with Nuget that couldn't find the SixLabors.ImageSharp.Textures package (as well as some warnings about it containing some vulnerabilities.

Please may I also ask for a little information about this archive format - does it use any compression?
Thanks!

Failed Extract Textures (Harold Halibut)

Hello, I am trying to extract the textures from this file ¨025fdaaf14a9dcab62d89da806e62dc2.gts¨ but when I get to file number 15 it tells me this error.

¨ERROR: Failed to extract from 025fdaaf14a9dcab62d89da806e62dc2.gts - Parameter block info missing? Page: 8404, Tile: 109¨

Specified argument was out of the range of valid values

Error on attempting full extract from 0.gts.

Version: 1.0.0
OS: Windows 10 Pro 22H2

Command: GraniteTextureReader.exe extract-all -t "E:\Granblue Fantasy Relink\data\granite\0\0.gts" -l -1

Error: [384/2731] Processing bg0160_tree_00_alb.tga from a85d4eb1c447561f3553881df44f54c2cdbfc31339ecc2e62b37ed714915efbc (256x512, layer 0)
E:\Granblue Fantasy Relink\data\granite\0\0_a85d4eb1c447561f3553881df44f54c2cdbfc31339ecc2e62b37ed714915efbc.gtp
ERROR: Failed to extract from E:\Granblue Fantasy Relink\data\granite\0\0.gts - Specified argument was out of the range of valid values.
0_a85d4eb1c447561f3553881df44f54c2cdbfc31339ecc2e62b37ed714915efbc.zip

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.