anonymousException / renpy-translator

A translator for renpy based on google | youdao | deepl | open-ai | offline-ai tranlation supports extract untranslated words and translate
MIT License
61 stars 9 forks source link

Single file extraction is very inconvenient and should be extracted by folder. #11

Closed jusaozzz closed 4 months ago

jusaozzz commented 4 months ago

Single file extraction is very inconvenient and should be extracted by folder.

Screenshot_4

jusaozzz commented 4 months ago

In addition, pressing empty cannot be extracted as 0kb

jusaozzz commented 4 months ago

It can't be extracted in batches, and it can't be done by pressing an empty single, but the directory cannot be found.

jusaozzz commented 4 months ago

If you see it, please add it as soon as possible.

anonymousException commented 4 months ago

What happened , why the issue is closed I do not get your point , can you tell me what situation you meet what is the current input and output and what is your desire output

jusaozzz commented 4 months ago

This is the case. The directory cannot be extracted and cannot be found, as shown in the figure.

jusaozzz commented 4 months ago

This is the case. The directory cannot be extracted and cannot be found, as shown in the figure.

anonymousException commented 4 months ago

This is the case. The directory cannot be extracted and cannot be found, as shown in the figure.

In summary , you meet a problem using extraction Can you offer the content I marked in the following picture : image

jusaozzz commented 4 months ago

okay

jusaozzz commented 4 months ago

Screenshot_5

anonymousException commented 4 months ago

Screenshot_5

why you input a directory path to the blank of file(s) ? directory should be filled in the blank of directory

jusaozzz commented 4 months ago

It's not blank. I'm just simulating it for you.

anonymousException commented 4 months ago

It's not blank. I'm just simulating it for you.

I am very confused , can you offer the actual input and traceback to me (do not strip the header path , you can replace private information with other word like 'xxxx' if the path contains)

jusaozzz commented 4 months ago

I am a prompt for folder extraction 0

anonymousException commented 4 months ago

I am a prompt for folder extraction 0

It's normal because the target file has nothing to extract

Do not delete the 0 kb file , it is used to occupy position

Errors may occur if the file does not exist

jusaozzz commented 4 months ago

Screenshot_6

jusaozzz commented 4 months ago

Look

anonymousException commented 4 months ago

Look

You should not use the extraction like this The first blank can only fill xxx.rpy Why not use the second blank ?

jusaozzz commented 4 months ago

with"renpy_extract.py "In line 31, it's running with"renpy_extract.py "In line 398, in ExtractWriteFile with"renpy_extract.py "In line 213, in ExtractFromFile PermissionError: [Errno13] Permission is denied:'D:/8674/renpy-7.5.3-sdk/Renpy/A_Divine_Li

anonymousException commented 4 months ago

Have you already watch the usage video ? Extract File(s):

https://github.com/anonymousException/renpy-translator/assets/157234942/7d1efbfd-7152-407f-9896-c63a98538f02

Extract Directory:

https://github.com/anonymousException/renpy-translator/assets/157234942/817c6e9c-2fa2-48a3-914f-85765c0b64c3

jusaozzz commented 4 months ago

Refused to withdraw I don't know why.Through the folder

jusaozzz commented 4 months ago

You can extract the folder normally through the directory tl/eng, but you can't extract the files.

jusaozzz commented 4 months ago

Screenshot_7 Screenshot_8

jusaozzz commented 4 months ago

Screenshot_9 Screenshot_10

jusaozzz commented 4 months ago

He can't extract the folder in the folder directory. It's not a file.

jusaozzz commented 4 months ago

Screenshot_11 Unable to extract the folder file inside

anonymousException commented 4 months ago

Can you tell me the file path you want to extract? Is game/xxx/abc.rpy or game/tl/tl_name/xxx/abc.rpy ?

jusaozzz commented 4 months ago

D:\8674\renpy-7.5.3-sdk\Renpy\A_Divine_Life-pc_0.2\A_Divine_Life-pc\game\tl\eng\Characters

anonymousException commented 4 months ago

D:\8674\renpy-7.5.3-sdk\Renpy\A_Divine_Life-pc_0.2\A_Divine_Life-pc\game\tl\eng\Characters

You want to extract from game\tl\eng\Characters\xxx.rpy ? That's weird , the file is under tl folder , it's already translated contents not the origianl untranslated one , why you want to extract the translated contents

jusaozzz commented 4 months ago

Characters\folder file inside

anonymousException commented 4 months ago

Characters\folder file inside

Do you mean you just want to extract a sub folder , not all the folders?

jusaozzz commented 4 months ago

Yes

jusaozzz commented 4 months ago

A single file with an empty grid can be extracted normally, but the folder will not work.

jusaozzz commented 4 months ago

Single file extraction is very inconvenient and should be extracted by folder.

jusaozzz commented 4 months ago

This is what I need.

anonymousException commented 4 months ago

Yes

Finnaly I get your point Do you mean if you want to extract a sub folder now , you have to extract all the folders and then delete other folders you do not want to extract ?

jusaozzz commented 4 months ago

Yes

jusaozzz commented 4 months ago

It's not to extract the characters in tl/eng, it's to extract the characters in eng.

anonymousException commented 4 months ago

Yes

Not a bad idea , in my view , it has nothing to do with file(s) extract function I will improve the directory extraction to make it support extract sub folder

jusaozzz commented 4 months ago

Screenshot_12 Screenshot_13

jusaozzz commented 4 months ago

These folders are extracted in batches.

jusaozzz commented 4 months ago

And the folder in the folder contains the items we need to extract, which is the same as your previous single file extraction.

anonymousException commented 4 months ago

Yep , your wish is to make sub folder extraction supportable right?

jusaozzz commented 4 months ago

Yes

jusaozzz commented 4 months ago

But 0kb is very abnormal. The original file is 80kb with dialogue.

anonymousException commented 4 months ago

Yes

I will try to support this in future version , if there still remains problem in the new version , you can continue to ask in this issue

jusaozzz commented 4 months ago

I think more should be extracted. Sometimes what you think is unimportant is very important.

anonymousException commented 4 months ago

But 0kb is very abnormal. The original file is 80kb with dialogue.

Occured in single file extract ?

jusaozzz commented 4 months ago

For example, if the text message is 160kb, it is 0kb, which is very inconvenient. Yes

anonymousException commented 4 months ago

I think more should be extracted. Sometimes what you think is unimportant is very important.

Can you upload the file ? I'd like to check it out

jusaozzz commented 4 months ago

Wait a moment.