DaanVandenBosch / phantasmal-world

A suite of tools for Phantasy Star Online.
https://www.phantasmal.world/
MIT License
24 stars 5 forks source link

update_generic_data script crashes when extracting player animation data #3

Closed jtuu closed 4 years ago

jtuu commented 4 years ago
~/phantasmal-world (master) $ yarn update_generic_data
yarn run v1.19.1
$ ts-node --project=tsconfig-scripts.json assets_generation/update_generic_data.ts
[assets_generation/update_generic_data] Updating generic static data.
[assets_generation/update_generic_data] Generating opcodes.
[assets_generation/update_generic_data] Done generating opcodes.
[assets_generation/update_generic_data] Extracting player animations.

/home/esc/phantasmal-world/src/core/data_formats/cursor/AbstractCursor.ts:312
            throw new Error(`Offset ${offset} is out of bounds.`);
                  ^
Error: Offset 1621 is out of bounds.
    at ArrayBufferCursor.AbstractCursor.check_offset (/home/esc/phantasmal-world/src/core/data_formats/cursor/AbstractCursor.ts:312:19)
    at ArrayBufferCursor.AbstractCursor.u8_at (/home/esc/phantasmal-world/src/core/data_formats/cursor/AbstractCursor.ts:65:14)
    at ArrayBufferCursor.AbstractCursor.u8 (/home/esc/phantasmal-world/src/core/data_formats/cursor/AbstractCursor.ts:61:21)
    at Context.read_u8 (/home/esc/phantasmal-world/src/core/data_formats/compression/prs/decompress.ts:92:25)
    at Context.read_flag_bit (/home/esc/phantasmal-world/src/core/data_formats/compression/prs/decompress.ts:77:31)
    at Object.prs_decompress (/home/esc/phantasmal-world/src/core/data_formats/compression/prs/decompress.ts:13:17)
    at Object.parse_prc (/home/esc/phantasmal-world/src/core/data_formats/parsing/prc.ts:15:17)
    at Object.parse_rlc (/home/esc/phantasmal-world/src/core/data_formats/parsing/rlc.ts:35:20)
    at extract_player_animations (/home/esc/phantasmal-world/assets_generation/update_generic_data.ts:33:24)
    at update (/home/esc/phantasmal-world/assets_generation/update_generic_data.ts:22:5)
error Command failed with exit code 1.