Error: the script uses more array indexes (65536) than available (2)

Doubts, help and support about QuickBMS and other game research tools
FatalBulletHit
Posts: 7
Joined: Sat Jan 20, 2018 4:21 am

Error: the script uses more array indexes (65536) than available (2)

Post by FatalBulletHit »

I get the error "the script uses more array indexes (65536) than available (2)" when extracting certain ".pck" files from the game Tom Clancy's Rainbow Six Siege using the "pck_AKPK_extractor.bms" and "func_getTYPE.bms" scripts from AlphaTwentyThree.

There are 1 effect and 9 language depots and the error occurs with all the .pck files from 5 of the 9 language depots, for the other depots it works without any issues.

I've no idea how to debug this, so any help is greatly appreciated.

Here's an archive with a sample ".pck" file from each depot, the QuickBMS scripts needed and the output of each ".pck" file when extracted and converted with RavioliGameTools_v2.10 (https://github.com/themeldingwars/Docum ... Game-Tools) and when extracted with the "pck_AKPK_extractor.bms" (if possible):

[removed]
Last edited by FatalBulletHit on Mon Nov 09, 2020 6:27 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error: the script uses more array indexes (65536) than available (2)

Post by aluigi »

Try adding "padding 4" at line 88:

Code: Select all

set RUNS 1
padding 4
callfunction extract 1
FatalBulletHit
Posts: 7
Joined: Sat Jan 20, 2018 4:21 am

Re: Error: the script uses more array indexes (65536) than available (2)

Post by FatalBulletHit »

Thanks a lot for the quick response, worked like a charm! :)