Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I create a Monogame Content Project to convert assets into XNB. For FBX file without texture there is no problem: the file is correctly converted and when I load XNB into my project everything is ok. The problem occours when i have associated to fbx file a texture map: in this case both FBX and PNG files are converted to XNB but when i try to load these XNB files into my project the following problem occours:

"ContentLoadException: Could not load Models/maze1 asset as a non-content file!" Note: maze1 is the XNB file that was converted from FBX.

How can I solve this problem? Thank you in advance

share|improve this question
    
What platform are you testing on? –  craftworkgames Jul 22 '13 at 23:59
    
Sorry I totally forgot! I'm working with Visual Studio 2012 testing on Android –  LosPollosHermanos Jul 23 '13 at 8:16

2 Answers 2

According to the Wiki the Content Pipeline for Android requires different steps and it seems does not yet work with MonoGame's own content project.

However it seems parts are already working (a bit). So a possible work around is to import the FBX model without textures, but including texture coordinates (UV's) and load the texture separately. Then apply the texture to the model yourself during run time.

share|improve this answer

The Android file system is case sensitive.

Check that the filenames and paths match what the data is looking for. It's possible that the Models directory is lower-case on Android and therefore doesn't match the upper-case M in Model for example.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.