Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError when using cue's ReferenceIndex #6

Open
ksikou23 opened this issue May 7, 2024 · 0 comments
Open

IndexError when using cue's ReferenceIndex #6

ksikou23 opened this issue May 7, 2024 · 0 comments

Comments

@ksikou23
Copy link

ksikou23 commented May 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant