XNA Creators Club Online
Page 1 of 1 (9 items)
Sort Posts: Previous Next

XML element "PackedValue" not found. on texture builds

Last post 2/19/2008 1:25 PM by Eli Tayrien. 8 replies.
  • 1/14/2008 3:58 AM

    XML element "PackedValue" not found. on texture builds

    I've been having some weird errors ever since our project moved to XNA 2.0.  The most recent of which is building models with textures.

    I'm trying to build a simple cube that has a texture (referenced by name within the file) with the standard XNA importers/processors.  If I build this model with just a diffuse material set, it builds just fine.  However, when I try to build a textured cube, I get the following build error:

    Building cube_textured.x -> .....\WindowsGame1\bin\x86\Debug\Content\cube_textured.xnb
    Building cubetexture.bmp -> .....\WindowsGame1\bin\x86\Debug\Content\cubetexture%0.xnb
    Content\cubetexture.bmp(1,323): error : XML element "PackedValue" not found.

    We have our own content project, and I suspect this is causing the problem, since I've heard something about effects/textures being built differently in XNA 2.0.  However, I have no idea where to start looking to fix this issue.  I've tried disabling the modified xclna library we have (which has been updated) and have tried disabling all of our custom texture processors, but I still get the error.  I can't exactly go disabling the rest of the content project, because it's too tied into our engine (or I could...but it would take a long time to get everything sorted out - and I'd rather not break the rest of our code trying to fix this).

    So I was just wondering if there's anything in particular that might be causing this issue - somewhere I might start looking?  For example, I thought that our own custom texture processors might be being used for some reason - but that doesn't seem to be the case, as disabling all of them didn't resolve the error.  So I'm at a loss - any ideas?
    http://www.kyleschouviller.com
  • 1/14/2008 1:59 PM In reply to

    Re: XML element "PackedValue" not found. on texture builds

    I suspect this is caused by mixing v1 and v2 assemblies. If you had a type defined using a different version of the framework to the one that is trying to build it, for instance, the serializer wouldn't recognize any control attributes on this type because they'd be coming from a different framework version.

    I'd check all your projects (especially the pipeline ones) to make sure that they've been properly rebuilt, and that they are all referencing the 2.0 framework assemblies.
    XNA Framework Developer - blog - homepage
  • 1/14/2008 4:01 PM In reply to

    Re: XML element "PackedValue" not found. on texture builds

    That's what I thought at first - but I recreated the projects from scratch (as opposed to using the upgrade wizard), being careful to reference the 2.0 assemblies (and, just to confirm, I checked - and all the linked assemblies are using Version 2.0.0.0 (runtime version v2.0.50727)).  So unless the code files themselves could hold some sort of reference, I'm still not sure where to start.  Any other ideas?

    On another note, it doesn't seem to be one specific file.  If I remove every file from the pipeline project, my game project will compile just fine.  I can then add one or two back, but I can't find any real glaring discrepancies between one file that works and another that causes it to break.  For example, two files I add have different sets of references.  The one that works (doesn't cause my game to fail) looks like this:
    using System;
    using System.Collections.Generic;
    using System.Text;

    using Microsoft.Xna.Framework.Graphics;
    using Microsoft.Xna.Framework.Content;
    using Microsoft.Xna.Framework.Content.Pipeline;
    using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
    using System.IO;

    While the one that breaks the build looks like this:
    using System;
    using System.Collections.Generic;
    using System.Text;

    using Microsoft.Xna.Framework.Content;
    using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
    using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
    using Microsoft.Xna.Framework.Content.Pipeline;
    using Microsoft.Xna.Framework;
    using Microsoft.Xna.Framework.Graphics;
    using Microsoft.Xna.Framework.Content.Pipeline.Processors;



    Now, if I remove every file from the project, I still end up with this warning after compile (in my game project):

    Warning    1    Found conflicts between different versions of the same dependent assembly.    WindowsGame1

    However, this must be in the content project of my game, because none of the compiled assemblies use different references (I made a dependency graph with Reflector, and it all looks just fine).  In my Content project though, the only assemblies I'm referencing are:

    MyPipelineProject
    Microsoft.Xna.Framework.Content.Pipeline.EffectImporter
    Microsoft.Xna.Framework.Content.Pipeline.FBXImporter
    Microsoft.Xna.Framework.Content.Pipeline.TextureImporter
    Microsoft.Xna.Framework.Content.Pipeline.XImporter

    Which are all version 2.0.0.0 (except in the case of my pipeline project, which has its own version).

    So...any idea where else I might look?
    http://www.kyleschouviller.com
  • 1/14/2008 4:08 PM In reply to

    Re: XML element "PackedValue" not found. on texture builds

    Another thing to check is in your references to the framework assemblies, is the "require specific version" property checked?

    If not, and assuming you have both GSE 1.0 and GS 2.0 installed side by side, the compiler could be getting in a muddle and maybe picking the wrong version to resolve against?
    XNA Framework Developer - blog - homepage
  • 1/14/2008 4:17 PM In reply to

    Re: XML element "PackedValue" not found. on texture builds

    Nope, all the Xna references are set to require specific version - and the versions are all the same.
    http://www.kyleschouviller.com
  • 1/14/2008 9:13 PM In reply to

    Re: XML element "PackedValue" not found. on texture builds

    So...any other ideas?  I'm really not sure what to do aside from trying to build some new content processors from the ground up, which I really don't want to do.  Is there maybe something I have to do in the code to make sure they're up to date for 2.0?  (I know I have to change the effect processing on custom model loading code...but that's not causing this problem, as I removed the code and still have the problem).
    http://www.kyleschouviller.com
  • 2/17/2008 5:29 PM In reply to

    Re: XML element "PackedValue" not found. on texture builds

    This bug actually just happened to me.  My game project was compiling just fine without any problems at all.

    I hadn't created a copy to put on my 360 in a while and decided to go ahead and connect to my 360 and deploy a copy.  But, when I attempted to deploy my copy I received this exact same error message.

    I've checked everything that you've checked as well and for some strange reason I'm still receiving the error.  The worst part is that now my windows version won't compile either.

    Did you ever figure out what the problem was?
  • 2/19/2008 4:35 AM In reply to

    Re: XML element "PackedValue" not found. on texture builds

    I got same problem with that. But i resolved.

    But i don't know my case are same as you got.


    I wanted to upgrade to XNA GSE 2.0 from using 1.0. I did upgrade with project upgrade. The project automatically upgrade into a new code in game1 and will removes all references, include the ContentProcessor. I did readd my old references. Do a little fix and i compile it. But i got kind of the problem.

    I remade a new ContentProcessor and copy the codes from my old ContentProcessor. And i add reference with new ContentProcessor in 'Content' project's references. All of my .x files set to using my new content processor (or compile it first). And finally i don't have any problem.

    But if my case isn't same. I don't know
  • 2/19/2008 1:25 PM In reply to

    Re: XML element "PackedValue" not found. on texture builds

    If you're able to zip up your project and post it somewhere, I or someone else might be able to take a look.
    Eli Tayrien - XNA Framework Developer
Page 1 of 1 (9 items) Previous Next