LIGHTNING RETURNS: FINAL FANTASY XIII .ztr

How to translate the files of a game
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

LIGHTNING RETURNS: FINAL FANTASY XIII .ztr

Post by makc_ar »

Image

Game: http://store.steampowered.com/app/345350

How to fix old ZTR.bt https://github.com/Albeoris/Pulse/blob/ ... tes/ZTR.bt and make tool?

Code: Select all

typedef struct
{
    int Magic;
    int Version;
    int Count01;
    int Size;
    int Count02;
} ZtrFileHeader;

typedef struct
{
    byte Source;
    union {
        short Short;
        byte Byte[2];
    } New;
} EncodingPattert;

typedef struct
{
  byte blockNumber;
  byte replaceOffset;
  ushort blockOffset;
} TextEntry;

typedef struct
{
    uint Size;
    EncodingPattert Patterns[Size / 3];
} EncodingBlock;

BigEndian();

ZtrFileHeader header;

uint unk_table1[header.Count02];
TextEntry unk_table2[header.Count01];

EncodingBlock encodingPage01;
char firstBlock[0x23C];

EncodingBlock encodingPage02;
char secondBlock[unk_table1[1] - unk_table1[0] - encodingPage02.Size - 4];
rhadamants
Posts: 2
Joined: Fri Nov 13, 2020 5:19 am

Re: LIGHTNING RETURNS: FINAL FANTASY XIII .ztr

Post by rhadamants »

FF13LR need ZTR compression.
Did you get anything to compress ZTR?