Flixel Not Compatable With OpenFL 4.0.0
When I try to compile my game project using the 'lime test linux' command, I am met with the following error:
/usr/lib/haxe/lib/flixel/git/flixel/system/macros/FlxDefines.hx:81: characters 41-60 : Flixel is currently incompatible with OpenFL 4.0.0. Please use version 3.6.1 or older.
Here is what I have installed:
actuate: [1.8.7] 1.8.6
flixel-addons: 2.0.0 git [dev:/usr/lib/haxe/lib/flixel-addons/git]
flixel-demos: 2.0.0 git [dev:/usr/lib/haxe/lib/flixel-demos/git]
flixel-templates: 2.0.1 2.0.0 [2.0.2]
flixel-tools: [1.1.3] 1.1.2
flixel-ui: 2.0.0 git [dev:/usr/lib/haxe/lib/flixel-ui/git]
flixel: git 4.0.0 4.1.0 [dev:/usr/lib/haxe/lib/flixel/git]
hxcpp: [3.3.49] 3.2.205
lime: 3.0.0 2.9.0 [3.0.3] 2.9.1
openfl-samples: 3.3.1 [4.0.0]
openfl: 4.0.0 3.6.0 [4.0.3] 3.6.1
swf: 2.2.1 2.2.0 [2.2.3]
Any ideas on what I need to update? I want to use the dev branch of Flixel so I can keep up with the latest features (I have had to make significant changes to my games in the past when a new version rolled out and I want to avoid that in the future).
You don't need to upgrade, you need to downgrade. Exactly as the error says:
Flixel is currently incompatible with OpenFL 4.0.0. Please use version 3.6.1 or older.
Now I do feel kind of dumb. I have not compiled on this computer in a while. I just updated my Haxe libraries today. I don't remember coming across that error on previous versions.
But just another note, I had to set lime to version 2.9.1. It took me a bit to figure that out as my game compiled but errored out with a null function pointer error. I was not told about the need to change versions of lime until I tried to compile to flash.
Hm, that's interesting, there should be exactly the same error for Lime... https://github.com/HaxeFlixel/flixel/blob/4.1.0/flixel/system/macros/FlxDefines.hx#L84-L87