Using a custom local flixel library instead of including from haxelib

Hello everyone,

While developing a game using Haxeflixel, i needed to change some things in flixel’s engine classes and because i only want these changes in this project and also because i want to be able to share it and back it up easely (git, etc) i thought that copying a version of flixel locally to my source folder in my project and taking off the import from my project.xml () would be the best solution.

But after trying a clean compile for either android or flash i’m faced with errors that probably occur because the change in structure :

Android :

Warning: Could not find template file: android/template
Warning: Could not find template file: android/
Warning: Could not find template file: haxe
Warning: Could not find template file: android/hxml
Fatal error: exception Failure("File not found export/android/haxe/debug.hxml")

and a similar problem with flash :

Warning: Could not find template file: haxe
Warning: Could not find template file: flash/hxml
Called from ? line 1
Called from CommandLineTools.hx line 1371
Called from CommandLineTools.hx line 25
Called from CommandLineTools.hx line 126
Called from CommandLineTools.hx line 591
Called from lime/project/PlatformTarget.hx line 77
Called from lime/tools/platforms/FlashPlatform.hx line 62
Called from /usr/lib/haxe/std/neko/_std/sys/io/File.hx line 30
Uncaught exception - [file_contents,export/flash/haxe/debug.hxml]
Build halted with errors (haxelib.exe).

I’ve tried doing some searches but i couldn’t find something exactly similar. i assume it’s a problem with the structure and pathing but i don’t have a lot of experience with plain openfl stuff.

here’s a haxelib list, might be helpful :

actuate: [1.7.5]
flixel-addons: [1.1.0]
flixel-demos: [1.1.2]
flixel-templates: [1.0.2]
flixel-tools: 1.0.2 [1.1.1]
flixel-ui: [1.0.2]
flixel: [3.3.11] 3.3.5 3.3.8
ganalytics: [0.0.3]
haxe-ga: [0.4.16]
haxelib_client: [3.2.0-rc.3]
hxcpp: 3.1.39 [3.2.102]
lime-tools: [1.5.7]
lime: 1.0.1 [2.6.1]
msgpack-haxe: [1.15.1]
nape: 2.0.16 [2.0.19]
openfl-bitfive: 2.0.1 3.0.0 [3.3.3]
openfl-html5: [1.0.5]
openfl-samples: [1.3.0]
openfl: 2.0.1 [3.3.2]
phaser: 0.3.1 [1.1.0]
swf: 1.5.2 [2.0.1]

Thanks in advance for your help.

Clone flixel in your github.
Create new branch. Put your stuff in this branch.
Then : haxelib git flixel yourflixelrepo.git
Select your branch.

Thank you that’s a much cleaner and efficient approach :slightly_smiling:.

Actually after doing a clean build, the problem still persists.

it’s giving the same errors. but if i copy the git version srouce and paste/replace all the source of the regular version it works fine.

I fixed the problem with the git solution. i actually put the folder flixel that has the versions in it (3.3.11, 3.3.5, etc) so it wasn’t working. what i should have done and it was what fixed the problem was to commit the actual code from inside 3.3.11 for ex in the repo. so instead of having Flixel-Repo/3.3.11/source. Flixel-Repo/source directly.

So when after doing haxelib git it gets installed and set and one of the versions.