Skip to content

🐞 Unlocking FLP does not work. #140

@prolexgreen

Description

@prolexgreen

Describe the issue

The FLP does not work when ran with code. It does gen a new FLP but it is still in trial mode.

What version of PyFLP are you using?

2.1.0

What code caused this issue?

import pyflp

project = pyflp.parse(r"C:\Users\coolb\Downloads\Project_4\Project_4 - Copy.flp")

# Unlock the FLP itself
project.registered = True

# Unlock trial version native plugins
for instument in project.channels.instruments:
    instrument.demo_mode = False

for insert in project.mixer:
    for slot in insert:
        if slot.plugin is not None:
            slot.plugin.demo_mode = False

pyflp.save(project,r"C:\Users\coolb\Downloads\Project_4\Project_42- Copy.flp")

Screenshots, Additional info

PS C:\Users\USER\Downloads\Project_4> python test.py
Traceback (most recent call last):
  File "C:\Users\USER\Downloads\Project_4\test.py", line 9, in <module>
    for instument in project.channels.instruments:
  File "C:\Users\USER\anaconda3\lib\site-packages\pyflp\channel.py", line 1651, in instruments
    yield from (ch for ch in self if isinstance(ch, Instrument))
  File "C:\Users\USER\anaconda3\lib\site-packages\pyflp\channel.py", line 1651, in <genexpr>
    yield from (ch for ch in self if isinstance(ch, Instrument))
  File "C:\Users\USER\anaconda3\lib\site-packages\pyflp\channel.py", line 1619, in __iter__
    cur_ch = ch_dict[iid] = ct(et, channels=ch_dict, group=groups[groupnum])
IndexError: list index out of range

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingproject-generalProject-wide settings and song metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions