Giter Site home page Giter Site logo

ffxiii-ztr-decompressor's People

Contributors

lehieugch68 avatar wandersonareis avatar

Watchers

 avatar

Forkers

wandersonareis

ffxiii-ztr-decompressor's Issues

Problem with compression, extracting and compressing again

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.

Game code

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 });

Major bug when compressing system ztr file

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:

  • Edit one line = Crash game when the game reads that line in the game menu, like Inventory items.
  • If you edit a certain number of lines, I can't tell how many, the game works, but the text doesn't appear and you have no way of knowing what you are doing in the game.
  • Editing many lines, my translation, the game displays the text for New Game, as NORMAL MODE, etc, but gives crash game during loading game or loading save.

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.

txtres_usOriginal.zip

All testing was done with verified installation from Steam.
Using Ztr Decompressor last commit.
Edited file reinserted using ff13tool.

Compress replace bytes does not work with tags with spaces

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.

Help with wpd files with ztr

quest_resident_us.zip

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?

Tag VaF2 missing

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

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.