mnakamura1337 / engine_bgi

Tools to work with BGI (Buriko General Interpreter) / Ethornell visual novel engine: file format descriptions, disassemblers / decompilers, converter to .story format
12 stars 1 forks source link

Compiling "bgi_compiled_script.ksy" reports error #2

Closed vollschauer closed 7 years ago

vollschauer commented 7 years ago

I just found your bgi scripts and read you article at kaitai.io ;) And was wondering if it's possible to decompile ._bp files? Since Kaitai Struct and Ruby is new to me, I assume I have to convert the .ksy files to .rb files with the "kaitai-struct-compiler". I works for "bgi_bytecode.ksy" but "bgi_compiled_script.ksy" tells me: /seq/4: unable to find type 'bgi_bytecode', searching from bgi_compiled_script Or can you help me out with the ._bp files? Thanks a lot!

mnakamura1337 commented 7 years ago

I haven't updated these ksy files for a while, and Kaitai Struct develops rapidly ;) For now, you can just use --opaque-types=true option for ksc, and both files should compile just fine.

vollschauer commented 7 years ago

Thanks, that worked! But unluckily I can't get any ._bp files decrypted just see a bunch of EOFError's. I guess just not the right game files :) Any chance to PM you?

vollschauer commented 7 years ago

I still can't decrypted/decompile my ._bp files, can someone provide a "test" file which is suppose to work... to check if it's even working on my end here? Or could some of your take a look at my files? It would be very helpful since the org. source code is lost :(