The xna-content-pipeline tag has no wiki summary.
7
votes
4answers
1k views
Using XNA ContentPipeline to export a file in a machine without full XNA GS
My game uses the Content Pipeline to load the spriteSheet at runtime. The artist for the game sends me the modified spritesheet and I do a build in my machine and send him an updated project. So I'm ...
6
votes
2answers
408 views
XNA ContentManager.Load causes string allocation
I was running the Visual Studio memory profiler on a project and noticed that an enormous amount of strings were being instantiated. It turns out that ContentManager.Load appears to create a new ...
5
votes
2answers
2k views
What model file formats are supported in XNA?
What model extensions are valid in XNA? I know it supports .fbx, for example.
5
votes
1answer
562 views
Is using XNA title storage for level/config files a Bad Idea?
I've reached the point in development where my Game Engine can actually do stuff, and it's time to start thinking about how to store / load the various bits and pieces where they need to be.
I've ...
5
votes
0answers
767 views
Why does XNA's ContentManager follow generic type parameters for serialization purposes?
I've finally gotten to the bottom of a problem and am wondering what my best recourse is. In short, the problem is that XNA's ReflectiveReader reflects into generic type parameters, even if no ...
4
votes
3answers
497 views
Debugging a custom content pipeline processor in XNA?
I'm working with a custom made content pipeline designed to work with the program Tiled (using the TiledLibrary found here). I am running into trouble with the MapProcessor class in the custom content ...
4
votes
1answer
506 views
Bone creation in XNA Content Pipeline
I'm trying to manually create a ModelContent instance that includes custom Bone data in a custom ContentProcessor in the XNA Content Pipeline. I can't seem to create or assign manually created bone ...
4
votes
1answer
122 views
How do I get a Model to add a name to it's Texture(s) in the XNA Content Pipeline
I know that a texture's name is not preserved when it's loaded in. I also know that you can give it a name. For example:
Texture2D texture = content.Load<Texture2D>("MyTexture");
texture.Name ...
4
votes
2answers
694 views
Setting variable values in XNA 4.0 from an XML file
I made a program that simulates an assembly line using the XNA 4.0. I made a 3D model, and divided it into 5 positions - start, 3 workstations, and end.
These positions represent the places on the ...
4
votes
3answers
344 views
How do I use Content.Load() with raw XML files?
I'm using the Content.Load() mechanism to load core game definitions from XML files. It works fine, though some definitions should be editable/moddable by the players. Since the content pipeline ...
3
votes
1answer
205 views
Does ContentManager.Load<T>() re-read an asset if I have loaded it before?
Or is it smart enough to know I have asked for it before and return an in memory copy created from the first call?
For example if I have a projectile's texture:
Texture2D projectile;
If then I ...
3
votes
4answers
311 views
Confused about Content Pipeline
I'm attempting to get my head around the XNA content pipeline, and how I can use it to simplify my game code. Specifically, I want to define sprites, sprite sheets, and animations as assets and have ...
3
votes
4answers
491 views
Some advice for settling on a map format for a tile game?
I am using XNA 4.0 and am currently working on a simple tile game to pass the time. Basically, I'm using the tried and true method of having numbers refer to tile types, where in 0 would be an empty ...
3
votes
2answers
215 views
Does using the XNA Content Pipline eliminate the overhead caused by file IO when working with a large number of files?
I'm working on a game in XNA with my goal being that it is fairly data driven so that I can easily tweak the system without having to update code. The research I've done shows that using XML files ...
3
votes
2answers
145 views
How to use images/text/etc. in XNA without Content Pipeline?
I'm currently writing a program in C# with the XNA framework. It is absolutely necessary for the game's images and text assets to be visible by the end user in the form of PNG files, so I can't use ...
3
votes
2answers
1k views
Using XNA's XML content pipeline to read arrays of objects with different subtypes
Using XNA's XML content importer, is it possible to read in an array of objects with different subtypes?
For instance, assume these are my class definitions:
public abstract class MyBaseClass
{
...
3
votes
1answer
340 views
How should I handle shared classes between the Game project and the Content Extension Library?
I've been using XNA for a while but recently I've needed to write a content extension library which I haven't done before. I need to import a TextureAtlas class from a file that is exported by a tool ...
3
votes
1answer
308 views
Importing 3d model with multiple skeletons
I have created an animated butterfly in 3ds Max and try to export it in ".fbx" format to use in XNA, however as soon as I compile, i get the following Errors:
Warning 1 Multiple skeletons were ...
3
votes
2answers
510 views
How can a load and play an .x model using vertex animation in XNA?
From a game I developed years ago, I still have character models that my former 3D engine designer created and that I'd like to reuse in a Windows Phone project now.
However, the files are in DirectX ...
3
votes
1answer
248 views
XNA Deferred Shading, Replace BasicEffect
I have implemented deferred shading in my XNA 4.0 project, meaning that I need all objects to start out with the same shader "RenderGBuffer.fx". How can I use a custom Content Processor to:
Not load ...
2
votes
2answers
309 views
Can XNA's content pipeline be used to load C# source files?
I am wondering if its possible to use the XNA Content Pipeline to load C# files?
I'm working on a game and am currently writing a FSM. I would like to be able to load states from the content ...
2
votes
1answer
502 views
ContentSerializerRuntimeType required in content pipeline?
I have a problem at the moment loading in a texture for a larger model in the content pipeline. Now it seems that I need to make a proxy object, which is fine, however looking at the SpriteSheet ...
2
votes
3answers
177 views
How can I load 2D texture data without a GraphicsDevice instance?
We have a client/server architecture for our game with the client being the XNA Game, and the game server is separate and only references XNA. They both use a shared DLL for networking. The game ...
2
votes
1answer
72 views
XNA partially extending the content pipeline using a ModelContent
I am trying to extend XNA's content pipeline in order to import a model in .obj format (a very simple and text-based format, see here for details). Writing a full extension library seems like an ...
2
votes
3answers
565 views
How to I create a resource manager?
Currently I'm using XNA's ContentManager to load my content. For the unfamiliar the ContentManager deserializes classes from disk and keeps a reference for future requests.
I'm currently facing a ...
2
votes
1answer
243 views
XNA extending an existing Content type
We are doing a game in XNA that reacts to music. We need to do some offline processing of the music data and therefore we need a custom type containing the Song and some additional data:
// Project ...
2
votes
1answer
120 views
Writing via content pipeline in Xbox game project
I'm creating an Xbox application and I have this problem with the content pipeline. Loading .xnb files is not a problem but I can't seem to find any helpful tutorials on writing via the content ...
2
votes
1answer
78 views
ResourceContentManager with folders
I am attempting to do something like the following:
http://blogs.msdn.com/b/shawnhar/archive/2007/06/12/embedding-content-as-resources.aspx
(Access the content via a DLL)
However, I need to maintain ...
2
votes
1answer
280 views
Loading files during run time
I made a content pipeline extension (using this tutorial) in XNA 4.0 game.
I altered some aspects, so it serves my need better, but the basic idea still applies. Now I want to go a step further and ...
2
votes
1answer
429 views
Loading SpriteFont through a different class than Game.cs
I am trying to load up a single SpriteFont to print some debug information.
In our current game, we load up both Textures and Music through a ResourceManager. They are both loaded with a filestream, ...
2
votes
1answer
310 views
Has anyone got the Krypton Lighting Engine working in MonoGame for Windows 8?
I've converted the core of the Krypton Lighting Engine so that it's compatible with Windows 8.
The trouble I'm having when actually using it is that it can't load the KryptonEffect.xnb file. I'm ...
2
votes
0answers
48 views
organizing library content
I have an XNA library that uses several custom effects. These effects need to be accessed by:
a content pipeline project (models are built with the effect)
projects that use my game library (they ...
2
votes
0answers
372 views
3D Studio Max Models and Shaders to XNA
I am looking for a way to import my 3D models, including materials and shaders to from 3D Studio Max to XNA.
For example, if I have a model, with diffuse, bump, reflection textures and values (in ...
1
vote
2answers
215 views
Protecting XNA Assets
With so many XNA asset viewers out there, how do I distribute my XNA game for PC without having my assets open for persons to steal or manipulate? I know i can create custom asset importer/processor, ...
1
vote
2answers
407 views
XNA - Saving Game Data without TypeWriter?
In the past, I've had some trouble with reading and writing content for XNA. I think I'm firmly set on this tutorial which sets up a four project structure (Game, Content, Library, Pipeline Extension) ...
1
vote
1answer
831 views
Going from using XMLSerializer to using the XNA Content Pipeline
A well known limitation of using the XNA Content Pipeline is that it is not included in the XNA redistributable. So, if you want to create an editor for your game, the designer must download the whole ...
1
vote
1answer
1k views
SpriteBatch Draw Using Floats with the Destination Rectangle
So I created a nice little isometric tile engine and I have it so that when you scroll with the mouse it changes a variable called scale. Scale is a float and gets passed through the ...
1
vote
2answers
224 views
Creating installer for WinForms XNA with compiled content
I have a Windows Forms application that uses a custom Graphics Device control based on Microsoft's "WinForms Series 1: Graphics Device" sample. The application makes use of a single model (the ...
1
vote
1answer
280 views
XNA CustomModelAnimationSample problem
I downloaded the official tutorial from:CustomModelAnimationSample
It works fine but when I try to replicate it in my project, it fails to load the Tag property in my model.
Is found that the probelm ...
1
vote
1answer
1k views
XNA doesn't compile my XML to an XNB, because of namespaces?
I am sorry, because I know, that this question came up before, but that thread doesn't help me so I decided to aks my own question.
My problem is the following:
I have a XML-file with the following ...
1
vote
1answer
77 views
XNA- Add a content reference to a library?
Making a Game library with XNA, and I'd like to bundle it with some stock effects, if possible. But I'm having no luck attaching a Content project to the Library, so is it possible to use the Content ...
1
vote
1answer
67 views
Extending ModelProcessor
How can one extend a model processor inside Windows Forms. In a normal XNA game you would simply create a new class like so(I think...):
[ContentProcessor]
public class ExtendedModelProcessor : ...
1
vote
1answer
108 views
Can't load model using ContentTypeReader
I'm writing a game where I want to use ContentTypeReader. While loading my model like this:
terrain = Content.Load<Model>("Text/terrain");
I get following error:
Error loading ...
1
vote
2answers
257 views
How do I stop XNA/Visual Studio from rebuilding my content project every time I build?
My group and I are working on a game in XNA 4.0 with Visual Studio 2010/2012. The main solution has 6 projects: 2 XNA game projects (1 executable/ 1 class library), 1 WPF executable for the level ...
1
vote
1answer
219 views
Custom Content Pipeline with Automatic Serialization Load Error
I'm running into this error:
Error loading "desert". Cannot find type TiledLib.MapContent,
TiledLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
at
...
1
vote
2answers
545 views
How do I dynamically reload content files?
Is there a relatively simple way to dynamically reload content files, such as effect files?
I know I can do the following:
Detect change of file
Run content pipeline to rebuild that specific file
...
1
vote
1answer
142 views
XNA stopped compiling my model x files
So I've a 3d game project I'm working on and I'm using 2 model files (SkyBlock.x and AimedBlock.x).
So until now everything was all good and my models files were compiled all okay and I was able to ...
1
vote
1answer
211 views
assigning values to shader parameters in the XNA content pipeline
I have tried creating a simple content processor that assigns the custom effect I created to models instead of the default BasicEffect.
[ContentProcessor(DisplayName = "Shadow Mapping Model")]
public ...
1
vote
0answers
224 views
XNA games freeze when loading too much content
We are experiencing freezes in our XNA games. The last played sound loops and the computer completely freezes. It does not even respond to ctrl-alt-del. It mostly happens when running fullscreen, but ...
0
votes
2answers
210 views
XNA 4.0: Problem with loading XML content files
I'm new to XNA so hopefully my question isn't too silly. I'm trying to load content data from XML.
My XML file is placed in my Content project (the new XNA 4 thing), called "Event1.xml":
<?xml ...
