-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on file auto_yus_us.bin #19
Comments
Any news about fixing this error? |
Hello, I also have the same issue. I am translating this game into russian and only this file causes crash. |
This auto_yus_us.bin crashes just using the Pulse tool. Without changing anything, just unpack and repack. |
I think it has to do with ZTR, the text is uncompressed when I pack it, in the original it is compressed. Do you maybe know how to pack ztr, so the text becomes compressed? Also I wrote to Albeoris privately, let's just hope he responds too. We can try to figure it out together, if you want. Do you have discord? |
But all ZTR files are decompressed. |
Maybe it's some weird coding, you know Square enix. I also noticed. If we take auto_wil_us. Packed ztr is compressed. So you dont see text in hex editor. This is not the case however for auto_yus_us. |
But all the files after Pulse are uncompressed. Why would this file be a problem? The archives of other cities are uncompressed and work. |
https://ibb.co/3dgMLfS Now to compare with other files So you see, maybe this auto_yus file has another compression method that is not supported by pulse. or somehow it fails to put the text back, because there is different structure or it cant compress it back |
Maybe someone revert this ZtrFileTextUnpacker and make possible compress ZTR file. |
Actually, I tested it one more time, if I just pack it without changing, then it is ok. |
Just using the file in the tool already crashes. You don't need to edit anything. |
Hm? The tool doesn't crash for me, it does unpack it/pack it, |
Game crash if use this file on Pulse. You do not need to edit anything in the file. Just unpack and repack using this Pulse and the crash game |
For me if I just unpack/repack the game doesn't crash, only if I change 1 symbol inside ztr. |
Now it crashes even if it is compressed when I open it with hex. So that is not the problem, I guess. |
What I also noticed that after packing file thru pulse, those 00 bytes after header get removed Still game runs fine, if we don't change anything. But maybe it corrupts the structure of the file somehow? |
You can insert ZTR into WPD manually via Hex. Albeoris needs to look at this. Why only this file causes a problem. When all other files work when using Pulse, it is strange that this file causes a problem. |
He told me that files are inserted at the end of archive and it can map to a memory which is used by the game. So we need maybe some packer that can put game files in order and implement defragmentation, which will remove gaps in archives. (That’s what Albeoris said) |
You could delete a few lines of text and leave the empty text keys. If you leave the text uncompressed with the same size as the original compressed and test whether the game gives crash. If the problem is the file size uncompressed and play memory buffer. |
Okay I will try it. But I tried placing files from Spanish version or Italian version to English Version which have different sizes, then game runs fine, no crash. |
But the uncompressed file is twice the size of the original archive. |
Ah yeah you are right, maybe I can also try to remove all lines from Ztr and pack too? I will try when I get home |
Using this 00000001_auto_yus_us.zip not crash. WPD file auto_yus_us.zip. Files need compression to function properly on the FF13LR. |
Yeah you are right, it works. I wrote him about the issue and that we need compression. |
He told me there is some CompressZTRContent method instead of FakeCompression, which greatly reduces ztr file size, thought not completely like the original file. I packed ztr with this, I determined that maximum file size is 256 kb. If you insert just one more line, it crashes. I used my Russian translation file and for me it is about 1176 lines. After 1177 it crashes. |
256kb for this WPD and ZTR pack or 256kb for ZTR file? |
256 kb for WPD with ZTR. |
Can you send me the method to use CompressZTR? |
It is already in Pulse, in file ZtrFileKeysPacker, change FakeCompression to CompressZTRContent. |
I didn't use this on the FF13-2. |
I know little about coding and only can read it. |
ZtrFileKeysPacker use CompressZTRContent and ZtrFileTextPacker use FakeCompress. |
Ah then change in TextPacker |
auto_yus_us.zip |
Yes, otherwise it will crash. I tested with other files like auto_wil and it is the same. Also 256 kb might be some standard block transfer which is imposed by the game somehow, and it tells the game to transfer it in one go, or give some memory overflow error otherwise, but that's just my assumption. |
String = 110kb For tests game not crash with this yus 258kb. |
This warning needs to fix this BlockOffset. |
Yeah, some text gets corrupted with this, because of the tags. But auto yus has no tags and that’s why it works fine, I think. At least for me there is no problem. But don’t pack any other text with it. |
Using the extraction of this compressed auto-yus the string file is missing text characters. Are you somewhere in the game where I can test this file? |
Ah it’s because you also need to change encoding and how Pulse encodes text. For me I changed it from CreateEuro to CreateCyrillic, then text started to show. Maybe you can try to do that. But I don’t remember where is this method should be changed. In visual studio just search for CreateEuro and try to replace it. |
Ah it’s because you also need to change encoding and how Pulse encodes text. For me I changed it from CreateEuro to CreateCyrillic, then text started to show. Maybe you can try to do that. Because previously before changing I tried to unpack ztr and it was just ###### symbols, is it the same problem? |
I'm using like this: This works to extract or pack. |
Unpacked missing characteres: I have doubts if this happens during the game. Can you send me your auto_yus file that you compressed? |
Yeah it inserts those random tags during packing because of this compress method, but for my Russian text it worked for some reason. I don’t have that file available right now since I’m at another city. Try change the text around, maybe it will work. Or just use default method to compress but remove some parts of text where lines repeat and also remove those script files in web as well, that can help to shrink the size. |
I have a problem with this file, auto_yus_us.bin. Using unpack and repack without editing, the game crashes.
I could not figure out the problem because all the other files are edited perfectly.
The text was updated successfully, but these errors were encountered: