HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.96k stars 432 forks source link

Asset Embedding Fails #1160

Closed grayhaze closed 10 years ago

grayhaze commented 10 years ago

When attempting to build any of my HaxeFlixel projects with the current dev version, the build always fails with the following:

>lime test windows
C:\Development\HaxeToolkit\haxe\std\haxe/macro/Context.hx:75: characters 20-55 : File not found 'C:/Development/HaxeToolkit/haxe/lib/flixel/git/assets/sounds/flixel.ogg'
C:\Development\HaxeToolkit\haxe\lib/openfl/2,0,0/openfl/Assets.hx:1639: characters 18-48 : Called from
C:\Development\HaxeToolkit\haxe\lib/openfl/2,0,0/openfl/Assets.hx:1787: characters 15-35 : Called from
C:\Development\HaxeToolkit\haxe\lib/openfl/2,0,0/backends/native/openfl/media/Sound.hx:15: characters 2-11 : Called from

Aborted

I get the same result for both Windows and Neko builds. It's strange how the backtrace just stops at that last line before aborting.

I have also tried using the dev builds of Lime and OpenFL, and using Haxe 3.1.2 in case it was an issue with 3.1.3, but still always get the same result.

I have confirmed that the referenced file exists at the path stated.

The issue started occurring after SHA 044fbfba0ea8df092ed292f51352fe2738b7e61b, which was the merging of the following PR: https://github.com/HaxeFlixel/flixel/pull/1157

Reverting the changes so that sound assets are no longer embedded solves the problem for me.

Gama11 commented 10 years ago

Not having this issue, can you post the output of haxelib list just to eliminate any variables?

grayhaze commented 10 years ago

Sure, this is the output currently as I have everything set up with dev versions.

actuate: [1.7.5]
box2d: [1.2.0]
flixel-addons: git [dev:C:\Development\HaxeToolkit\haxe\lib/flixel-addons/git]
flixel-demos: git [dev:C:\Development\HaxeToolkit\haxe\lib/flixel-demos/git]
flixel-templates: git [dev:C:\Development\HaxeToolkit\haxe\lib/flixel-templates/git]
flixel-tools: git [dev:C:\Development\HaxeToolkit\haxe\lib/flixel-tools/git]
flixel: git [dev:C:\Development\HaxeToolkit\haxe\lib/flixel/git]
format: 3.0.4 [3.0.5]
haxelib_client: 3.1.0-rc.3 [3.1.0-rc.4]
HaxePunk: 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5.0 2.5.1 [2.5.2]
hxcpp: [3.1.39]
hxlibc: 1.1.1 git [dev:C:\Development\HaxeToolkit\haxe\lib/hxlibc/git]
hxtools: git [dev:C:\Development\HaxeToolkit\haxe\lib/hxtools/git]
jQueryExtern: 2.0.0 2.0.0-alpha.3 2.0.1 [2.0.2]
lime-tools: 1.5.6 git [dev:C:\Development\HaxeToolkit\haxe\lib/lime-tools/git]
lime: 1.0.0 git [dev:C:\Development\HaxeToolkit\haxe\lib/lime/git]
nape: [2.0.16]
nme-dev: 1.3.2 git [dev:C:\Development\HaxeToolkit\haxe\lib/nme-dev/git]
nme: 5.1.8 git [dev:C:\Development\HaxeToolkit\haxe\lib/nme/git]
openfl-bitfive: git [dev:C:\Development\HaxeToolkit\haxe\lib/openfl-bitfive/git]
openfl-samples: [1.3.0]
openfl: 2.0.0 git [dev:C:\Development\HaxeToolkit\haxe\lib/openfl/git]
svg: 1.0.7 [1.0.8]
swf: [1.5.2]
grayhaze commented 10 years ago

I also tried a clean install of everything, just in case something had been corrupted during an update, but still the same issue.

grayhaze commented 10 years ago

A week later and I'm still experiencing this issue. Surely someone else must be having this problem?

grayhaze commented 10 years ago

It looks like I'm not alone. Someone else is experiencing a similar error after a very similar change to include.xml in the HaxePunk library (https://github.com/HaxePunk/HaxePunk/issues/294). There's obviously a problem with asset embedding in OpenFL / Lime which only becomes apparent under certain conditions.

Gama11 commented 10 years ago

Try opening an issue on the lime-tools repo.

bendmorris commented 10 years ago

This seems to be solved by https://github.com/openfl/openfl/pull/261

Gama11 commented 10 years ago

Awesome. :thumbsup: