My script does not work rightly.

Doubts, help and support about QuickBMS and other game research tools
Yukino
Posts: 11
Joined: Mon Dec 16, 2019 4:36 pm

My script does not work rightly.

Post by Yukino »

Code: Select all

endian little
get fileCount long

for i < fileCount
    get nameLengthOffset long
    savepos tmp
   goto tmp
    getdstring name nameLengthOffset
   get size long
    get offset long
   
   log name offset size
next i

I finally made a script coped with Koihime Musou Bin File. But this script does not work to extract Koihime Musou bin file. I found the following error.


Error: the requested amount of bytes to allocate is negative (0xe64df4dd)

Last script line before the error or that produced the error:
8 getdstring name nameLengthOffset

Press ENTER or close the window to quit


Also, it has the issue png file does not open normally. Could anyone help me?

Here is files I tried to open. Use an analyse.
https://mega.nz/#!33wHFSjK!m1lDJMOFv3_k ... 04_FmFttRQ
https://mega.nz/#!ajwVVIRB!s-LkZAM6cGOz ... e7ZfSQA_CE
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: My script does not work rightly.

Post by aluigi »

Code: Select all

get fileCount long

for i = 0 < fileCount
    get nameLength long
    getdstring name nameLength
    get size long
    get offset long
   
   log name offset size
next i