Git Product home page Git Product logo

projz_renpy_translation's People

Contributors

abse4411 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

projz_renpy_translation's Issues

有一些游戏无法新建任务

n G:\AMothersLovePLUS-Part12PLUS-pc -n aml
Checking the skeleton for this RenPy game...
ERROR:root:Coundn't find a executable file file in G:\AMothersLovePLUS-Part12PLUS-pc\lib
Traceback (most recent call last):
File ".\main.py", line 62, in main
execute_cmd(cmd_name, cmd_line)
File "G:\0.Translate\projz_renpy_translation-master\command\manage.py", line 77, in execute_cmd
cmd.invoke()
File "G:\0.Translate\projz_renpy_translation-master\command\renpy\base.py", line 44, in invoke
index = TranslationIndex.from_dir(self.args.game_path, self.args.name, self.args.tag)
File "G:\0.Translate\projz_renpy_translation-master\store\index.py", line 834, in from_dir
project = Project.from_dir(project_path)
File "G:\0.Translate\projz_renpy_translation-master\injection\renpy.py", line 235, in from_dir
executable_path = check_python_exe(abs_path)
File "G:\0.Translate\projz_renpy_translation-master\injection\renpy.py", line 78, in check_python_exe
assert executable_path is not None, f'Coundn't find a executable file file in {lib_path}'
AssertionError: Coundn't find a executable file file in G:\AMothersLovePLUS-Part12PLUS-pc\lib

是因为这些游戏用的Renpy版本过老吗?

不好意思請問一下有關翻譯語言部分

Abse4411 大大 您好 不好意思,我剛學編程可是我想編輯英文到西文或是葡萄牙文不知道是要修改哪裡,我沒有找到所以才來詢問您 不好意思,希望您可以教教我,謝謝

蹲大佬

坐等作者大大更新导出excel功能,
由于我用的是AiNiee来用gpt翻译文本,但是它只支持excel或者json文件导入和导出,我试着把它导出的excel另存为html,但是这样的html没能成功识别,提示utf8编码不支持啥的
蹲个大佬教教我怎么excel文件转成支持的html,多谢多谢

执行loadexcel命令过程中报错AttributeError: 'float' object has no attribute 'strip'

详情:
大文本量的rpy合并后成功保存为excel文件,使用GPT云翻后用loadexcel导入时报错,之后我又尝试了导出excel后不做改动直接导入,也是一样的报错。

error: 'float' object has no attribute 'strip'
[2023-08-22 20:49:11][parse_console.py:333, tid17164][ERROR] - 'float' object has no attribute 'strip'
Traceback (most recent call last):
  File "C:\JulienSlink_Personal\Ind_Prog\github\projz_renpy-devp\parse_console.py", line 330, in main
    register_commands[cmd](*args[1:])
  File "C:\JulienSlink_Personal\Ind_Prog\github\projz_renpy-devp\parse_console.py", line 285, in loadexcel_cmd
    res = load_from_excel(excel_file, source_data)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\JulienSlink_Personal\Ind_Prog\github\projz_renpy-devp\store\file_store.py", line 124, in load_from_excel
    encrypted_tid, old_str, new_str = encrypted_tid.strip().upper(), old_str.strip(), new_str.strip()
                                                                     ^^^^^^^^^^^^^
AttributeError: 'float' object has no attribute 'strip'

附件:使用的rpy文件
scripts.zip

初步試用跟心得

我有两台电脑一台西文一台中文用新版的翻译程式,觉得旧版的准确率比较高,新版的速度比较快,可是有时候会翻译不到,或是没有加上@@ 或是 @$,還有一次出現三行出現相同翻譯(新版),不管原文是什麼,所以确定不是电脑的问题,因为一台刚好翻译西文,一台中文做有交叉比对,小弟我小小的心得目前还在努力研究中辛苦Abse4411大大了,

当角色名内有引号时翻译有误

# game/chapter1/ch1afterback.rpy:81
translate chinese ch1afterback_9b893d82:

    # "*Unknown Hooden Woman*" "Hello agent [pl]."
    "@@“你好 [pl]探员”。"

# game/chapter1/ch1afterback.rpy:83
translate chinese ch1afterback_97e0fbf8:

    # "*Unknown Hooded Woman*" "He's here."
    "@@“他来了。"

# game/chapter1/ch1afterback.rpy:84
translate chinese ch1afterback_b28faf94:

    # "*Unknown Hooded Woman*" "..."
    "@@* 未知兜帽女 * “ ...”。"

是不是某些游戏不能导出对话

image
不知道是不是部分游戏的结构不够标准化还是什么,提取不出对话。

我对renpy游戏的结构不是很了解,提取对话失败的两个游戏似乎脚本都在game目录下的rpa文件里,能提取对话的那个游戏则全都是rpy文件。

尝试把提取失败的游戏rpa文件解包了,删除TranslationIndex后重新import好像还是没生效,不知道是哪里做得不对。之前试过github上另一个叫Renpy Translator的项目 ,也经常遇到这个问题,对话无法提取。那个工具我还没翻译成功过。不过他有个术语表的功能还挺眼馋的,不知道我们这个项目怎么实现,尝试过导出到excel后替换名词,导回去之后就变成已翻译内容了,能不能用ue更新回默认语言?请教大佬

当然大部分游戏使用即时翻译都没有问题,但是必须先过一遍游戏再退回来稍微有点剧透,才想着用之前的提取全部对话来翻译。
(遇到过一次游戏使用即时翻译注入后,启动游戏能进去,一点开始游戏就报错的,因为是测试随便下的游戏就没在意)

AI翻译功能反馈

大佬,我尝试使用了AI翻译功能,但我观察到我的显存占用并没有上来了反而是cpu占用达到了70%,内存占用到达了18G。这是GPU没有介入工作吗?我安装教程安装了全部的依赖,并且我是可以正常使用SD的,不知道是哪里出了问题。我应该怎么检查我是否正确配置了环境?感谢大佬!!!
配置:
GPU:3060 12G
CPU:AMD 5950X

能否使用谷歌的文档翻译功能进行快速批量翻译

文本量较大的游戏使用API或者HTML的翻译速度都比较慢。
尤其是HTML的网页翻译会分段加载,可能需要使用鼠标滚轮翻动几千页来保证edge的页面翻译能够完全工作。
google提供了.docx文档翻译功能,是否可以添加功能,导出.docx文档,使用不会被翻译的纯数字串作为索引进行批量翻译?

新版本0.4.5导入tl文件的几个问题

去年9月的时候用过大佬的项目,最近回来发现换了新版本,尝试的过程中发现几个问题,不知道是不是我的操作有错误
我的操作过程如图:
1
发现大部分文本都被标为已经翻译过的,使用unmark全部转为未翻译,用se导出为excel后,发现导出的只有直接放在GamesofDepravityTheMotel-1.0-pc\game\tl\schinese文件夹下的rpy文件内容,而在GamesofDepravityTheMotel-1.0-pc\game\tl\schinese\events内的rpy文件未被提取出来。文件结构如下图
2
不知道是我的哪一步操作有问题

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.