The tag has no wiki summary.

learn more… | top users | synonyms

9
votes
4answers
2k 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 ...
8
votes
1answer
1k 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 ...
6
votes
2answers
478 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 ...
6
votes
2answers
4k 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
703 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 ...
5
votes
1answer
753 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 ...
4
votes
2answers
272 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 ...
4
votes
3answers
747 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
3answers
563 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 ...
4
votes
1answer
390 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 ...
4
votes
1answer
275 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
3answers
1k 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 ...
4
votes
2answers
922 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 ...
3
votes
1answer
244 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
429 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
582 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
506 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
2k 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
470 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
718 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
193 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 ...
3
votes
1answer
336 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 ...
3
votes
1answer
170 views

How should I organize content that is shared across several projects?

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) and Projects that use my game library ...
2
votes
2answers
330 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
671 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
1answer
148 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
770 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
385 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 ...
2
votes
1answer
333 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
129 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
3answers
138 views

XNA: Auto-populate content within the content project based on current folder/file structure and content management for large games

1) Is it possible to implement a system where I can simply drop a new image into my content project's folder and VS will automatically see that and bring it into the project for compiling? 2) ...
2
votes
1answer
127 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 : ...
2
votes
1answer
193 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 ...
2
votes
1answer
390 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
612 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
457 views

How can I export models from 3DX Max into XNA?

I am looking for a way to import my 3D models (including materials and shaders) from 3D Studio Max to XNA. For example, if I have a model with diffuse, bump, reflection textures and values (through ...
2
votes
1answer
801 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 ...
1
vote
2answers
401 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
541 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
925 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
270 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
341 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
2k 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
84 views

Is Spine's XNA runtime missing an importer? [closed]

I'm writing an XNA 4.0 game and use Spine for animation. Until now, I've been making spritesheets with Spine and using them with a custom animation class. I recently discovered there is an official ...
1
vote
1answer
116 views

ContentManager in XNA cant find any XML

Im making a game in XNA 4 and this is the first time I'm using the Content loader to initialize a simple class with a XML file, but no matter how many guide I follow, or how simple or complicated is ...
1
vote
1answer
307 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
2answers
304 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
342 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
1answer
94 views

Content loading, Content processing and add processed file to a DataContainer?

I'm trying to create some kind of editor in Windows Forms for XNA and I was wondering if there's anyway to do this: Load content (known types, like Model/SpriteFont/Effect/Texture) through ...