GARbro icon indicating copy to clipboard operation
GARbro copied to clipboard

NOeSIS II - Incorrect file names encoding

Open Inui-senpai opened this issue 4 years ago • 2 comments

VNDB: https://vndb.org/v31281 Developer: Heavy Industry (南极重工) Engine: ONScripter Extension: .nsa

Some files in arc.nsa have Chinese names, and GARbro mistakenly handling its as a Japanese names; some examples: Snap7078 Snap7079

Tried also extract files through onscrtools, but it seems it can't handle Chinese names correctly too: Snap7080 Snap7081

Inui-senpai avatar Sep 11 '21 10:09 Inui-senpai

Modify code

var name = file.ReadCString();

to

var name = file.ReadCString(Encoding.GetEncoding(936));

in here It should work. Of course, this is a temporary solution.

crskycode avatar Sep 12 '21 02:09 crskycode

Just checked it with the newer version of this game. And yep, it works: Snap5775 Same for the extracted files (I put folder with them in the onscrtools folder for the sake of convenience): Snap5776 But when I built software in Visual Studio, it complained about the lack of "perl" in the Console. It's not critical?

Inui-senpai avatar Sep 13 '23 11:09 Inui-senpai