arcusmaximus / VNTranslationTools

Tools for translating visual novels
MIT License
301 stars 46 forks source link

"The given key was not present in the dictionary." BGI error #17

Closed Linley0 closed 2 years ago

Linley0 commented 2 years ago

I got an error when extracting script from .BGI "The given key was not present in the dictionary." I wonder why this happen?

arcusmaximus commented 2 years ago

Please attach the script file and let me know what game this is for so I can investigate.

Linley0 commented 2 years ago

bgi script.zip

the game : https://vndb.org/v7766

Linley0 commented 2 years ago

Also get the same error with other game bgi script.zip https://vndb.org/v16342

arcusmaximus commented 2 years ago

Looks like 11月のアルカディア uses quite a few scenario opcodes that VNTextPatch doesn't know about yet. I'd need to disassemble the scenario VM to see what kind of parameters these opcodes take, but it's proving difficult to acquire the game. Could you also attach the ._bp scripts?

xenei commented 2 years ago

Was about to make a issue about this but then I saw someone already made one, but they got that error with some BGI vns. Me, however, got the same error with one AdvHD vn, here's what it shows - (same issue even if I try extract to script.xlsx) sda Initially I thought I needed to give some key but then I remembered there was no note to give any key. I just wanted to give you a notice about this issue after the recent implement of AdvHD engine support. Here's the extracted .ws2 files extracted with GarBro along the with RIO1.arc and RIO.arc file, And the VN that I got the error with is - https://vndb.org/v28511 AdvHD.zip

Linley0 commented 2 years ago

Looks like 11月のアルカディア uses quite a few scenario opcodes that VNTextPatch doesn't know about yet. I'd need to disassemble the scenario VM to see what kind of parameters these opcodes take, but it's proving difficult to acquire the game. Could you also attach the ._bp scripts?

Sorry for late reply.. here's the .arc file with ._bp script inside https://drive.google.com/file/d/1hPXK2utziwXwyrBMD0v2arfFX0tQuGbD/view?usp=sharing

KuronekoRM commented 2 years ago

I've got the same issue with an AdvHD engine game, Dynamic Chord apple-polisher https://vndb.org/v20072. It seems there are only 2 .ws2 files that can't be extracted: aptoi_38.ws2 and sp05_boys.ws2. I took those two out of the folder and the rest were extracted without a problem, I could even edit them and reinsert them. Just not these 2. Here's the Rio.arc and the extracted ws2 files (which I extracted using Garbro) Script.zip

arcusmaximus commented 2 years ago

The tool should now work correctly with all four games mentioned.

Closing with mandatory image for the MTLers here: image