Kaplas80 / TranslationFramework2

Aplicación para facilitar la traducción de diferentes juegos
35 stars 15 forks source link

Error #7

Closed AstraeaZero closed 4 years ago

AstraeaZero commented 4 years ago

Hey, i founded your post on Zenhax, but i can't registrate my account. we want to translate the game from English to Polish, unfortunately an error occurs when selecting a folder. Procesando media... Buscando .\Yakuza0.exe... 1 ficheros encontrados y añadidos Procesando media\data\2dpar\sprite_c.par... ERROR: Odmowa dostępu do ścieżki „G:\YakuzaPL\containers\ae62a2a7-4a55-4277-96cb-69f1b50edfe9”. w System.IO.Error.WinIOError(Int32 errorCode, String maybeFullPath) w System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) w System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) w System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost) w YakuzaGame.Files.ParFile.Dump(ExtendedBinaryReader input, ParFolderInfo folder, String parentFolder, String logFile) w YakuzaGame.Files.ParFile.Dump(String inputPath, String outputFolder) w YakuzaGame.Files.ParFile.Extract(String inputPath, String outputFolder) w YakuzaGame.Game.ExtractFile(String inputFile, String outputPath) w TF.Core.TranslationProject.UpdateTranslationFiles(TranslationProject project, BackgroundWorker worker) w TF.GUI.MainForm.<>c__DisplayClass4_0.b0(Object sender, DoWorkEventArgs args)

I notice this: ERROR: Odmowa dostępu do ścieżki „G:\YakuzaPL\containers\ae62a2a7-4a55-4277-96cb-69f1b50edfe9”. In English: Cannot access to path.

Idk why but when i create new project, this folder will be automatickly blocked.

Thanks for your time image

Kaplas80 commented 4 years ago

Hi!

It's the first time I see that error with the app. Do you have enough free space in G:? You need more than 8GB free because the app extracts the game files in container folder.

I've just tried to create a new project and it works for me. Can you try to create it in another drive?

AstraeaZero commented 4 years ago

Yes, on all HDD's i have this same error, at this moment i can only translate a Yakuza0.exe Thanks for fast reply One time i get similar problem with other guy who making a Osu2Saber app, he fixed it with coding a automatic region changes to code, for example, some Countries using comma or period. This is how he fixed error. Maybe in this point? Btw after fix a problem, can you told me how to change a fonts in this game? or send any tutorial? image

Kaplas80 commented 4 years ago

I don't think it is related with region, the code that throws the error just extracts the .par file contents in containers folder. It looks like a user permission problem. Can you run the app as Administrator?

Changing the font for the game needs 3 steps:

  1. Replace hd_hankaku.dds in font.par.
  2. Fix character spacing in Yakuza0.exe. The app can auto adjust the character spacing loading the new font dds in "Fuente" tab when selecting the .exe. Just click on "Cargar Fuente Nueva" button and then click on "Auto ajustar". FontScreen
  3. Enable "Usar codificación ISO-8859-1" in "Parches" tab.
AstraeaZero commented 4 years ago

Yes, run as administrator doesn't work, created new project on drive C:

This same, btw for mistake i Closed a issue and reopen, im new on github

Kaplas80 commented 4 years ago

I'm not able to reproduce the issue. Can you record and upload a video creating a new project so I can see exactly what you are doing?

AstraeaZero commented 4 years ago

I just making a new project on any driver, first selecting a Yakuza 0 game, next i pointed a folder for project and at last selecting a folder with game instalation. i have everyting like this C: D: G:\YakuzaPL and game instalation folder: D:\Gry\Steam\steamapps\common\Yakuza 0 This is all, im using a Administrator Account image All permissions are allow to read/write. Idk why after creating New project and clicking accept, this folder being Only for Read. This is all

After copy main program folder on C:\TranslationFramework2 still this same I try to dissable Eset Smart Security Edit: Nope, this same

Kaplas80 commented 4 years ago

The "square" in "Read Only" check doesn't means that the folder is read only. It means that it's "undefined". If you create a new folder manually in explorer it will have the same square.

Can you download and test this? https://we.tl/t-5cuB7Z6fxE

AstraeaZero commented 4 years ago

Procesando media... Buscando .\Yakuza0.exe... 1 ficheros encontrados y añadidos Procesando media\data\2dpar\sprite_c.par... ERROR: Odmowa dostępu do ścieżki „C:\PL\containers\78c3beb5-7c25-42cf-8fcf-9996b0fdbae0”. w System.IO.Error.WinIOError(Int32 errorCode, String maybeFullPath) w System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) w System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) w System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost) w YakuzaGame.Files.ParFile.Dump(ExtendedBinaryReader input, ParFolderInfo folder, String parentFolder, String logFile) w YakuzaGame.Files.ParFile.Dump(String inputPath, String outputFolder) w YakuzaGame.Files.ParFile.Extract(String inputPath, String outputFolder) w YakuzaGame.Game.ExtractFile(String inputFile, String outputPath) w TF.Core.TranslationProject.UpdateTranslationFiles(TranslationProject project, BackgroundWorker worker) w TF.GUI.MainForm.<>c__DisplayClass4_0.b0(Object sender, DoWorkEventArgs args)

Kaplas80 commented 4 years ago

I don't know why it's throwing that error... it works for me and no one has reported this error before. I still think that it is some kind of user permission problem.

AstraeaZero commented 4 years ago

I tryed to use Gibbed Yakuza, from other github and i have this same image Maybe there is a problem? or really my PC is meh... or my Windows. in free time i test this on another PC. But not today. Im try everything, change permissions for folder. aaa After administrator CMD: image


Kaplas80 commented 4 years ago

In the administrator command line you are missing the quotes in file name

AstraeaZero commented 4 years ago

Ok my fault: Yep this same here... image

Kaplas80 commented 4 years ago

Try to copy sprite_c.par to the desktop and run Gibbed tool.

AstraeaZero commented 4 years ago

Yep: With error but unpacked, actualy i noticed sprite_c.par unpacked too in yakuza folder on G: image File a01_010.par unpacked without any error image Can you add some line in your program to ignore errors and continue unpack? with errors? I notice in Project folder, your program unpacked this file at first and he unpacked he's correctly but he stoping working at this moment and sending error. image

EDIT! I KNOW WHERE IS A PROBLEM! I USING MODYFICATED FILE WITH MOD PS3 BUTTONS! I THINK THERE IS A PROBLEM, IM FLY TO TEST ON ORIGINAL FILE

AstraeaZero commented 4 years ago

Read up Edit: Working... really sorry for your wasted time ; < It's my fault, i forgot about this... One stupid mod wasted my and your 4 hours. Really sorry ; < Now everything working correctly: image

Kaplas80 commented 4 years ago

Don't worry! I'm closing the issue. If you have another error, open a new one.