HIllya51 / LunaTranslator

Galgame翻译器,支持HOOK、OCR、剪贴板等。Visual Novel Translator , support HOOK / OCR / clipboard
http://docs.lunatranslator.org/
GNU General Public License v3.0
4.89k stars 248 forks source link

How do I use the VNDB name replacer? #649

Closed ripdog closed 7 months ago

ripdog commented 7 months ago

Hi there,

I see you added the VNDB name replacer I suggested on reddit - thanks! However, I haven't been able to get it to work.

How does Luna try and find the VN name or VNDB id? As far as I know, Luna only knows the game .exe name, and VNDB doesn't list those.

The plugin which I referenced simply asked the user to input a list of VNDB ids - perhaps this is a better way?

HIllya51 commented 7 months ago

屏幕截图 2024-04-13 223229

ripdog commented 7 months ago

Thank you for the advice. I see that LunaTranslate did in fact detect my game correctly - however the name replacement isn't working. I do have it enabled in Text Processing>Replace person names with VNDB data.

Is there any logging which may help me find out what's going on?

HIllya51 commented 7 months ago

give me your config.json and savehook_new_1.39.4.json

HIllya51 commented 7 months ago

it seems you are using a old version. Update to latest first. Then just wait a minute for load datas of vndb.

HIllya51 commented 7 months ago

maybe because the japanese name is splited by " " rather than "・". I just fixed this problem. re download the latest version and try ?

HIllya51 commented 7 months ago

I tested it work fine now.

屏幕截图 2024-04-13 225454
ripdog commented 7 months ago

Do you mean the names in game or in VNDB?

Will you push a new version or do I redownload v2.45.4?

HIllya51 commented 7 months ago

v2.45.4

HIllya51 commented 7 months ago

Do you mean the names in game or in VNDB?

can't understand.

ripdog commented 7 months ago

It's ok, I read the commit, you meant the names in VNDB. I don't recall any VNDB character names being split with "・", splitting on " " is correct.

Thank you for the fix! I can confirm it works now. Your support is amazing!

HIllya51 commented 7 months ago

actually some is "・" and some is " "