Closed GoogleCodeExporter closed 9 years ago
Error : Resource file not found : assets/_exclude/config.xml
Not sure why NME is looking for it? Please verify that nmml file includes:
<assets path="assets" rename="assets" include="*" exclude="_exclude|*.ogg"
if="flash" />
<assets path="assets" rename="assets" include="*" exclude="_exclude"
unless="flash" />
Does the nme.Assets.hx file (for ios build) include reference to config.xml?
Do other cpp targets work ok?
Does it work ok if you replace both above nmml asset nodes with:
<assets path="assets" rename="assets" include="*" exclude="_exclude" />
Original comment by robert.f...@hypersurge.com
on 5 Mar 2013 at 5:15
Sorry, red herring on the nmml file. I replicated error by removing
assets/_exclude/config.xml ...
Please verify contents of projectdir/assets/_exclude/
Original comment by robert.f...@hypersurge.com
on 5 Mar 2013 at 5:18
I had try to exclude the _exclude when compile to IOS,but error didn't gone.
and I want to know how to verify the file in _exclude folder?Could you show me
a sample?
bellow is the code in my main.hx,it's created by haxelib run awe6 create
command,nothing has been changed!
/////////////
import ericzhao.Factory;
import nme.Lib;
import haxe.Log;
import haxe.PosInfos;
import haxe.Resource;
/**
* ...
* @author seraph
*/
class Main {
static function main() {
#if debug
var l_isDebug:Bool = true;
#else
var l_isDebug:Bool = false;
#end
if ( !l_isDebug ) {
Log.trace = function( v:Dynamic, ?infos:PosInfos ):Void {};
}
var l_factory = new Factory( Lib.current, l_isDebug, Resource.getString( "config" ) );
}
public function new() {
// needed for Jeash
}
}
Original comment by liyong...@gmail.com
on 6 Mar 2013 at 1:27
Does your project have the file:
project/assets/_exclude/config.xml
If not, it needs one. Basic content would be:
<?xml version="1.0" encoding="utf-8"?>
<data>
<settings>
<assets>
<packages default="assets" audio="assets.audio" />
</assets>
<font name="assets_fonts_orbitron_ttf" />
</settings>
</data>
Original comment by robert.f...@hypersurge.com
on 6 Mar 2013 at 6:14
Original comment by robert.f...@hypersurge.com
on 6 Mar 2013 at 6:23
I had the xml file in the assets folder,but Xcode can't find it!
Original comment by liyong...@gmail.com
on 9 Mar 2013 at 3:12
Is the following line in your project's nmml?
<compilerflag name="-resource assets/_exclude/config.xml@config" />
Original comment by robert.f...@hypersurge.com
on 9 Mar 2013 at 6:07
I'm going to close this issue as "Done". Please reopen if it is not.
Original comment by robert.f...@hypersurge.com
on 25 Mar 2013 at 5:54
Update: NME (for iOS only) exclude Haxe resources from a folders marked as
exclude in the nmml file. Solution is to move the config file outside of the
assets folder. Other targets (including other cpp targets) appear to work as
expected.
Original comment by robert.f...@hypersurge.com
on 28 May 2013 at 12:43
Original issue reported on code.google.com by
liyong...@gmail.com
on 5 Mar 2013 at 5:04