WaveSabre icon indicating copy to clipboard operation
WaveSabre copied to clipboard

FL Studio project file conversion broken in FL Studio 20.9

Open LeStahL opened this issue 3 years ago • 5 comments

ConvertTheFuck and ProjectManager are not able to load FL Studio project files created with FL Studio 20.9. When trying to convert them, the error message Object reference not set to an instance of an object. is displayed.

Project files created by FL Studio 20.1 can be converted successfully. Find project files with the same content that can be used to reproduce the problem here: project-files-to-reproduce.zip

LeStahL avatar Jan 24 '22 01:01 LeStahL

I tracked the problem down to this line: https://github.com/logicomacorp/WaveSabre/blob/master/WaveSabreConvert/FLConverter.cs#L266 - generator.Plugin seems to be null.

LeStahL avatar Jan 24 '22 11:01 LeStahL

With the null reference line avoided, the devices in the tracks are not deserialized correctly from the 20.9 format:

  • 20.1 image
  • 20.9 image

LeStahL avatar Jan 24 '22 12:01 LeStahL

This might be a fix for the problem: https://github.com/Kwarf/FLParser/commit/c9b0bc5e35c58b0aa658b65c4d62ed666088ce6c

LeStahL avatar Jan 25 '22 20:01 LeStahL

FL 21 broke it further, causing an IndexOutOfRangeException. I found a fix at demberto/PyFLP@6ffd859 and pushed that as well to my fork at Kwarf/FLParser@a44cc3b.

Kwarf avatar Jan 19 '23 17:01 Kwarf

Will include that and retest the converter. Thanks for letting me know!

LeStahL avatar Jan 19 '23 17:01 LeStahL