Skip to content

IndexError when using cue's ReferenceIndex #6

@ksikou23

Description

@ksikou23

I was trying to extract some acb, awb files from theaterdays' assets.
Almost all of acb, awb files can be eatracted, but several acb files can't.
I attach some sample acb files which is not able to be extracted, and simplified codes.

These bad(?) acb files seem to be contain cues which access out of range index of syns.rows.
So IndexError occurs when below code is executed at TrackList class's constructor in acb.py.
r_data = syns.rows[row["ReferenceIndex"]]["ReferenceItems"]

I tried to add below codes before accessing syns.rows, at my fork repository.
if row["ReferenceIndex"] >= len(syns.rows): continue
In this situation, cues which have bad-index are ignored, but other cues which access in safe index are extracted.
sample.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions