VNTranslationTools icon indicating copy to clipboard operation
VNTranslationTools copied to clipboard

The given key was not present in the dictionary (BGI)

Open Tooko1005 opened this issue 2 years ago • 3 comments

For Fortune Arterial, I get the "The given key was not present in the dictionary." error when I try to extract the scripts. I've included the scripts and ._bp files. FA.zip

Tooko1005 avatar Oct 19 '22 20:10 Tooko1005

The opcode for ver0 of this python code works, so you can get the opcode from it

Cosetto avatar Oct 20 '22 07:10 Cosetto

The opcode for ver0 of this python code works, so you can get the opcode from it

I tried to do this a few times, going through and adding what I thought were the opcodes provided in that link to EthornellV0Disassembler.cs but I still never got it to work. I even tried looking up opcodes in BGIKit (which also successfully dumps the script), but couldn't get it to work for VNTranslationTools.

I'm still hoping this gets fixed so I can dump the scripts with this program.

Tooko1005 avatar Nov 07 '22 21:11 Tooko1005

It won't be as easy as adding a few opcodes - from what I saw, this game uses a completely different instruction set than what's currently implemented in VNTextPatch. This means it'll require a complete reanalysis and a completely new disassembler class. (Lifting code from BGIKit won't work since that one, like many other tools, only searches for byte patterns rather than performing a full disassembly - which is less accurate)

arcusmaximus avatar Nov 08 '22 09:11 arcusmaximus