Git Product home page Git Product logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
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 [email protected] on 5 Mar 2013 at 5:15

  • Changed state: Started

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
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 [email protected] on 5 Mar 2013 at 5:18

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
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 [email protected] on 6 Mar 2013 at 1:27

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
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 [email protected] on 6 Mar 2013 at 6:14

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024

Original comment by [email protected] on 6 Mar 2013 at 6:23

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
I had the xml file in the assets folder,but Xcode can't find it!

Original comment by [email protected] on 9 Mar 2013 at 3:12

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Is the following line in your project's nmml?

<compilerflag name="-resource assets/_exclude/config.xml@config" />

Original comment by [email protected] on 9 Mar 2013 at 6:07

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
I'm going to close this issue as "Done".  Please reopen if it is not.

Original comment by [email protected] on 25 Mar 2013 at 5:54

  • Changed state: Done

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
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 [email protected] on 28 May 2013 at 12:43

from awe6.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.