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

🔎 FL Studio 21 PlaylistEvent #108

Open
demberto opened this issue Dec 10, 2022 Discussed in #107 · 0 comments
Open

🔎 FL Studio 21 PlaylistEvent #108

demberto opened this issue Dec 10, 2022 Discussed in #107 · 0 comments
Assignees
Labels
arrangement-playlist Channel and Pattern playlist items unknown Undiscovered, new or unused fields in structs

Comments

@demberto
Copy link
Owner

demberto commented Dec 10, 2022

Discussed in #107

Originally posted by YihaoChen96 December 10, 2022
Hi!
When I was trying to parse one of my flp files, I encountered the following warning:

D:\Anaconda3\lib\site-packages\pyflp\_events.py:477: UserWarning: Cannot parse event 233 as event size is not a multiple of struct size
  f"Cannot parse event {id} as event "

It breaks my code, which works fine on some other FLP files.

Does anyone know what the event is that cannot be parsed and why it is the case?

Thank you!

class PlaylistEvent(ListEventBase):
STRUCT = c.Struct(
"position" / c.Int32ul, # 4
"pattern_base" / c.Int16ul * "Always 20480", # 6
"item_index" / c.Int16ul, # 8
"length" / c.Int32ul, # 12
"track_rvidx" / c.Int16ul * "Stored reversed i.e. Track 1 would be 499", # 14
"group" / c.Int16ul, # 16
"_u1" / c.Bytes(2) * "Always (120, 0)", # 18
"item_flags" / c.Int16ul * "Always (64, 0)", # 20
"_u2" / c.Bytes(4) * "Always (64, 100, 128, 128)", # 24
"start_offset" / c.Float32l, # 28
"end_offset" / c.Float32l, # 32
).compile()

@demberto demberto added arrangement-playlist Channel and Pattern playlist items unknown Undiscovered, new or unused fields in structs labels Dec 10, 2022
@demberto demberto added this to the PyFLP 2.0.0 milestone Dec 10, 2022
@demberto demberto self-assigned this Dec 10, 2022
@demberto demberto changed the title 🔎 PlaylistEvent struct size change in FL Studio 21 🔎 FL Studio 21 PlaylistEvent Dec 17, 2022
@demberto demberto modified the milestones: PyFLP 2.0.0, 2.1.0 Mar 18, 2023
@demberto demberto modified the milestones: 2.1.1, 2.2.0 May 12, 2023
@demberto demberto removed this from the 2.2.0 milestone Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrangement-playlist Channel and Pattern playlist items unknown Undiscovered, new or unused fields in structs
Projects
None yet
Development

No branches or pull requests

1 participant