The Amazing Spider Man 2 PAK

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
anil523
Posts: 46
Joined: Tue Nov 13, 2018 5:10 pm

The Amazing Spider Man 2 PAK

Post by anil523 »

Image
Image
Image
Image

Hi, I tried so hard working "QuicBms" code because I loved this game.
Even though I import the file in the game, the hex value is intertwined.
What code do I need to write to remove the character limit in the file?
I wrote a code like this:

Code: Select all

goto 0x264
get STRINGS long
for i = 0 < STRINGS
    get CRC long
next i
get STRINGS long
savepos TMP
xmath BASE_OFF "TMP + (STRINGS * 0x10) + 16"
for i = 0 < STRINGS
    get DUMMY long
    get OFFSET long
    get ZERO long
    get DUMMY float
    math OFFSET * 2
    math OFFSET + BASE_OFF
    slog "" OFFSET -1 unicode
next i
goto 0x1050B4
get STRINGS long
for i = 0 < STRINGS
    get CRC long
next i
get STRINGS long
savepos TMP
xmath BASE_OFF "TMP + (STRINGS * 0x10) + 16"
for i = 0 < STRINGS
    get DUMMY long
    get OFFSET long
    get ZERO long
    get DUMMY float
    math OFFSET * 2
    math OFFSET + BASE_OFF
    slog "" OFFSET -1 unicode
next i
goto 0x105b0c
get STRINGS long
for i = 0 < STRINGS
    get CRC long
next i
get STRINGS long
savepos TMP
xmath BASE_OFF "TMP + (STRINGS * 0x10) + 16"
for i = 0 < STRINGS
    get DUMMY long
    get OFFSET long
    get ZERO long
    get DUMMY float
    math OFFSET * 2
    math OFFSET + BASE_OFF
    slog "" OFFSET -1 unicode
next i
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: The Amazing Spider Man 2 PAK

Post by aluigi »

Is it something related to the codepage or to the length of the string?
Localization is not exactly my field but the reimport feature of quickbms just converts the utf8 input of the slog file into utf16 using the current codepage (which is utf8 by default)