Giter Club home page Giter Club logo

scarlet's People

Contributors

darkstar avatar xdanieldzd avatar

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  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  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

scarlet's Issues

Convert PNGs to other file formarts.

Sorry, I know you said that your tool is still incomplete, but I want to ask you if you are going to make possibile to convert the ".PNG"s back to "GXT" and "BXT".

Not support txp format with ColorCount 0

Thank you for making this tool.

I found a txp file in game かみがみのあそび made by Nippon Ichi.
This file's color count is zero. The sample is as below.

loading00.zip

Here's the header of this file.

E0 01 10 01 00 00 00 00 00 00 00 00 00 00 01 00
FC 56 56 56 E6 49 03 29 00 55 55 55 64 39 03 29
00 55 55 55 64 39 03 29 AA 55 55 55 84 41 03 29
00 55 55 55 84 39 03 29 00 55 55 55 64 39 03 29
00 55 55 55 64 39 03 29 20 55 55 55 85 39 03 29
00 55 55 55 85 39 03 29 00 55 55 55 85 39 03 29

I try to analyze this file but didn't success.
Here's the texture view.

KamigamiNoAsobi_noplatte

Index outside bounds

Exception occured: Index was outside the bounds of the array...
This error occurs when trying to convert an mxt texture file to png. It is from the Vita game Fate/Extella link.
Some images of the same format work, but others have this error, and do not convert.
1212121

New KSLT format version

I wanted to convert a kslt file from the game Blue Reflection to see if I could change the button prompts to PS4 button prompts. (Lucky for me it seems I found the correct file)

The magic number seems to be different for the kslt files for this game and maybe other newer koei tecmo games as well (The new magic number being TLSK3100 rather than TLSK1100)

I tried simply changing the magic number attribute to see if the conversion would still work but it unfortunately didn't.

Would you be able to give me any tips on how to analyse the file so I could add code to handle this new case or would you like to handle it yourself?

Feature request: Parameter to skip user input

Hello xdanieldzd, would it be possible for you to add a parameter (--quiet or -q for example), which would skip having to press any key after Scarlet has finished converting a texture?

I ask because I have a folder full of hundreds of textures that I need converted, and so far your tool has been the only one that doesn't fail on some of them 'thus far.

I'd like to write a batch script to convert every texture in the folder automatically, but the seemingly impassable "Press any key to exit." at the end of runtime ruins that because I'd have to sit there and press any key to continue 827 times (that's how many textures I have).

Thank you if you read this, and I really hope you add this option!

Says MPK files are not supported?

I am trying to unpack the YU-NO Vita .mpk files
In doing so I came across the discussion here #18 (comment)

So I decided to try Scarlet, but ended up with this message for some reason.

Adding file 'bg.mpk'...

Parsing files...
 File 'bg.mpk'... unsupported file.

I can see that support has been added to them in the change log, can anyone tell me what might be causing this response?

EDIT: Researching it further, it looks like offset doesn't have the right string label. I'm not sure what could be causing that. Do I need to get the .mpk files directly from the pkg before they're installed on the Vita?

System.ArgumentException - Illegal Characters in path

In ScarletWinTest MainForm

Method: public List GetFormatInfos(Type baseFormatType)

extension = Path.GetExtension(pattern).Replace("$", "");

Path.GetExtension(pattern)
throws System.ArgumentException - - Illegal Character in path

if
string pattern = (fnPatternAttrib as FilenamePatternAttribute).Pattern = ^.*.(btga|lga)$

because it it about the Pipe-Symbol "|"

Temporary fix for me of your course was to set
string pattern = "^.*$";

Export GBIX to PNG

Hi can you please explain me the correct way to convert a .gbix(uvr) to png from the game K-on Houkago Live, An if just in case you know how convert the .uno files from the game to any readable 3d format.

PixelDataFormat.PixelOrderingSwizzledVita not working as expected

How is the PixelDataFormat.PixelOrderingSwizzledVita format flag used?

I'm trying to decode swizzled BGRA8888 images. I have code that goes something like this:

pixelFormat = PixelDataFormat.FormatBgra8888;
if (someFlag) pixelFormat |= PixelDataFormat.PixelOrderingSwizzledVita;

The resulting values for pixelFormat are 0x60c20325 (for PixelDataFormat.FormatBgra8888) and 0x80060c20325 (for PixelDataFormat.FormatBgra8888 | PixelDataFormat.PixelOrderingSwizzledVita).

So far, so correct. However, when trying to convert the ImageBinary where the InputPixelFormat has been set to the second value, to a Bitmap with GetBitmap(), I get an exception in ImageBinary.ValidateImageProperties(), where it checks for

if (!inputPixelFormat.IsValid()) throw new Exception("Invalid input format");

This is because the Pixel format I created is not a value in the enum itself and so the IsValid function only sees and checks the numerical value, which fails.

How do I properly decode a Swizzled image?

Unsupported GXT file

Trying to convert a Terraria GXT file. Doesn't seem to parse properly.

Output:

Adding file 'filename.gxt'...

Parsing files...
File 'filename.gxt'... unsupported file.

Operation completed in 29 milliseconds.

Press any key to exit.

Custom "format detection" Attribute

Some file formats lack a reliable magic number at the start, and have no clear file name pattern.

In these cases it would be good to have an attribute that takes a delegate which can be used to check, given a Stream (or EndianBinaryReader), if the format would be able to process the file in question., for example by reading in a header and doing a sanity check on the values.

Nonstandard GXT in Vita YU-NO (no magic)

GXT files in PCSG00567 (YU-NO: Konoyo no Hate de Koi o Utau Shoujo) are nonstandard, not having a GXT0 magic (from bg.mpk, system.mpk, etc.) .

https://s14.postimg.cc/y6r1lfvo1/nonstd-xtg.png

There seems to be some encryption going on because the files are not compressible with 7zip and rar (low entropy). There's no obvious value matching the filesize either. On the other hand, other file types (from script.mpk, se.mpk) in either basegame and patch v1.02 are extracted without issue (usable .scx files, .at9 files with RIFF header).

Using the same tools (sg-unpack or arc_unpacker), I can unpack mpk's from steins;gate 0 vita, and they yield standard gxt files.

Would you mind having a look?

.png to .tex : Add support

Would it be possible to add .png to .tex support? I would like to try to mod some games, but there's NO tools availible for this conversion...

Unsupported GXT textures in MGS HD Collection

Seems like Metal Gear Solid HD Collection uses different format than regular GXT files and GXT from PlayStation All-Star Battle Royale, which is made by Bluepoint Games too. I've talked about it with Cri4Key, who made a ripping and packing tool for PSASBR and improved Scarlet for it, he said: "They are totally different from the PSASBR ones.

Honestly, they seem to be based on GXT too, specifically the 16 bytes starting at 0x10 seem very familiar to what in GXT is located at 0x20. It's just modified. It's just a hunch that may be right, or may be totally wrong. Tried trial and error with modifying the header under HEX editor and trying to make it read as a GXT but nothing really worked. Maybe there is a way to make it work, something I am missing, or my deduction is just wrong. Sorry if I can't help out much with these, they have the same extension .ctxr but internally the format is different. That's why the tool says the CTXR is invalid, because it's not designed to open these ones. I don't plan to work on them as of now, I don't have the time for it anyway. The only clue I can give you that may be either right or wrong, is that these may be GXT textures packed just differently, as if it has a sort of stripped header. 0x18 is width, 0x1A is height. That's all I could guess on this format at first glance."

So, is there any chance to add support for this format? Also font texture may be in different format than, for example, splash screens, that I sent to Cri4Key.

Converting .btx for DRAE:UDG PC

It looks like Danganronpa Another Episode: Ultra Despair Girls for PC uses slightly modified SHTXFS format for sprites with headers SHTXFs or SHTXFf. Sprites with SHTXFs can be converted just like like SHTXFS. Sprites with SHTXFf header are without palette and use BGRA instead of RGBA.
Another .btx format are compressed .dds textures that can be decompressed, resulting in DDS1DDS header. If leading DDS1 is removed so file starts with DDS, it can be opened as a .dds texture.

Examples.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.