lehieugch68 / ffxiii-ztr-decompressor Goto Github PK
View Code? Open in Web Editor NEWFinal Fantasy XIII ZTR Decompressor (Text Tool).
License: MIT License
Final Fantasy XIII ZTR Decompressor (Text Tool).
License: MIT License
I found a problem with the resident\system file.
Extracts the Pulse bigendian file to text1 with Ztr Decompress. I compress this text with Ztr decompress tool. Then extract the ztr file with Ztr decompress tool to text2 and compared it with the first text file.
The keys are ok. Texts appear snippets of compressed text along with the text.
Type: byte-compressed fragment. E The uncompressed text below. No repeating or messing up keys.
Is this a problem of compressing using a ztr file already compressed with Ztr decompress?
I can upload the files if I need to.
gameCode.Add("á", new byte[] { 0x85, 0xC0 }); gameCode.Add("à", new byte[] { 0x85, 0xBF }); gameCode.Add("â", new byte[] { 0x85, 0xC1 }); gameCode.Add("ã", new byte[] { 0x85, 0xC2 }); gameCode.Add("é", new byte[] { 0x85, 0xC8 }); gameCode.Add("ê", new byte[] { 0x85, 0xC9 }); gameCode.Add("í", new byte[] { 0x85, 0xCC }); gameCode.Add("ó", new byte[] { 0x85, 0xD2 }); gameCode.Add("õ", new byte[] { 0x85, 0xD4 }); gameCode.Add("ú", new byte[] { 0x85, 0xD9 }); gameCode.Add("ç", new byte[] { 0x85, 0xC6 });
Testing my translation I had no problem with the event texts. Like the initial CG and some others.
Either increasing or decreasing the number of characters.
It's worked well so far.
But the file resident/system contains /11372/ lines of text.
This is the file with the largest number of lines in the game.
Unpacking and recompressing this file works. It'a fine.
If you edit lines and increase and decrease the number of characters, the game crashes.
Tested situations:
This is a problem that I cannot fix.
Maybe it is a problem of the compression algorithm with the large number of lines with text.
These days I have been looking for code that was missing in the Text Encoding, but this is not the problem.
All testing was done with verified installation from Steam.
Using Ztr Decompressor last commit.
Edited file reinserted using ff13tool.
Decompress is ok.
Compress replace bytes does not work.
{Text NewLine} changes the space between the words only.
{TextNewLine} works and is replaced by bytes 40 72.
If you remove the spaces from the tags, it works.
But do you have another way to fix this?
{Text NewLine}, {Text NewPage} it's ok remove, but the Var, Icon, Color tags get weird.
Could you help me with an extractor for this file?
I didn't know how to deal with big endian. And I don't even know if data alignment is really useful.
You just need to extract and insert the ztr file.
Would it help?
OldCommit:
/$watips_f154_p1
When you play a New Game+, you will be able to acquire duplicates of your head accessories ({VarF2 OliveDark}). {Color Red}When you acquire a duplicate {VarF2 OliveDark} head accessory, it will automatically evolve into a more advanced version.{Color SkyBlue}{Text NewLine}{Text NewLine}You will not be able to acquire duplicates of {VarF2 CyanDark} arm accessories. Instead, the treasure spheres that previously contained them will contain gil or different items.
LastCommit:
/$watips_f154_p1
When you play a New Game+, you will be able to acquire duplicates of your head accessories (�R). {Color Red}When you acquire a duplicate �R head accessory, it will automatically evolve into a more advanced version.{Color SkyBlue}{Text NewLine}{Text NewLine}You will not be able to acquire duplicates of �O arm accessories. Instead, the treasure spheres that previously contained them will contain gil or different items.
OldCommig is a Pulse fakecompression text extracted with ZtrCompressor.
LastCommit is an original, unchanged text extracted with the last commit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.