Questions tagged [xna-content-pipeline]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
371 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 ...
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
999 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
282 views

How do you write Texture2DContent and read it as Texture2D in the XNA content pipeline?

I'm trying to create a custom Monogame content pipeline extension that packs a bunch of individual sprites into a single sprite. I need help figuring out how to write and read the texture in the ...
1
vote
1answer
475 views

XNA game publishing help with incompatibilities via content built at runtime

MY XNA game is finally complete, but I'm having difficulty getting it to run on other Windows computers. I've read similar other stackexchange topics here, here, and here, but I'm still gonna need ...
1
vote
1answer
221 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
288 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
3answers
751 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
508 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 Microsoft.Xna.Framework....
1
vote
1answer
103 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 ...
1
vote
2answers
2k 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
192 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
0answers
11 views

Proper way to build sensible object graphs?

The Context I'm currently working on a game and its engine using C# and MonoGame. The engine is data-driven and I want people to be able to mod the game or make their own using my engine. All the ...
1
vote
1answer
152 views

How to add a animation to myPlayer

I'm currently making a shoot em up in monogame. I want to add just one animation to my object. No commands or transitions between animations for different actions: just an object swapping between ...
1
vote
0answers
55 views

Load/generate new resources on start up in MonoGame

I've a question about loading resources at the beginning of my game written in MonoGame. I've several spritesheets which I'm loading at the beginning of the game. This take about 5-10 seconds on my ...
1
vote
0answers
60 views

Built in windows font wont load correctly in MonoGame

I am currently attempting to load this font in the MonoGame pipeline: I set the .spriteFont file to this: <?xml version="1.0" encoding="utf-8"?> ...
1
vote
0answers
153 views

XNA maximum VertexBuffer size exception

I am trying to build content(a text file contains list of triangles vertices) for an XNA application through a custom pipeline importer. It works ok. But when number of triangles gets near 1m(in this ...
1
vote
0answers
58 views

Export into several files with custom XNA content pipeline?

In order to implement a basic Ubershader (a shader which is compiled numerous times with different directives (defines)) I wrote a custom shader processor in XNA. My processor outputs a dictionarry ...
1
vote
0answers
330 views

SpriteFont not found in Nuclex Framework

I am using MonoGame to port my XNA Windows Phone app to iPhone. All is well, except that my fonts look distorted/smudged on the iPhone. Turns out this is due to the way that MonoGame builds the ...
1
vote
0answers
428 views

XNA games freeze when loading too much content [closed]

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
653 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": ...
0
votes
1answer
2k views

Error on MonoGame Content Pipeline: Texture Importer Error

I just encountered this kind of error when using the MonoGame Content Pipeline and it's my first time to use it to convert png to xnb files (I use a stand alone app for converting files to xnb in the ...
0
votes
2answers
358 views

Loading content into an Winforms/XNA Editor's content project

So i am bulding a game editor/engine basically for teh lulz but i have encountered a problem i cannot seem to fix, i cannot load any new content through the Winforms UI during runtime. I tried using ...
0
votes
1answer
285 views

XNA 4 Content Pipeline dependency

I tried to create something to parse XML with, which needs the inclusion of the Microsoft.Xna.Framework.Content.Pipeline; reference. This was fine and all, but as ...
0
votes
1answer
586 views

XNA When to call LoadContent

I have an enum in my game that denotes the game state ie MainMenu, InGame, GameOver, Exit and I was wondering if it would be advisable to add a new one in for PrepGame - in which the game creates ...
0
votes
1answer
411 views

How to go from Texture2DContent to Texture2D in a content processor?

I'm using reflection to create a manifest of all assets, strongly typed. It's working fine for my own types: I get the type of the asset, if a processor is ran on it I get the output type. Then I ...
0
votes
2answers
764 views

Load XNA Content Type from File

I'm writing my own level editor and recently got the exporter working so now I'm working on the importer. My save file structure looks essentially like this: ...
0
votes
1answer
177 views

Error loading "SpriteFont1". File not found

I have an issue while trying to load a font file with the extension ".xnb" and I am receiving following error: Error loading "SpriteFont1". File not found. For ...
0
votes
1answer
671 views

XNA 4.0 - Using premade .xnb font files

Basically, for our college project, we need to use a font in xna. The only problem is that we are not allowed to install it due to admin rights. Is it possible to use and load the .xnb file that gets ...
0
votes
1answer
72 views

How can I make sure custom XNA content processors find included files with relative paths?

MSDN has an example of a custom HLSL effect importer and processor. Here is the importer's code: ...
0
votes
1answer
339 views

Is there a way to use the ContentManager with full directory paths

So i want to figure out a way to use the ContentManager.Load method with full directory paths, so lets say Content.Load<T>(@"Images\SomeImage"); becomes ...
0
votes
1answer
254 views

Why spritebatch.Draw shows blank output? [closed]

In my code below, I think it's correctly done. But idk, the image called by _bg is does not shown up. The screen only show White. Weirdly, there is 0 error message when I run it. (The RenderTarget2D ...
0
votes
1answer
1k views

How to get tilemap transparency color working with TiledLib's Demo implementation?

So the problem I'm having is that when using Nick Gravelyn's tiledlib pipeline for reading and drawing tmx maps in XNA, the transparency color I set in Tiled's editor will work in the editor, but when ...
0
votes
1answer
135 views

WriteObject<T> in XNA with existing ContentWriters

I have quite a lot of custom content pipeline components, and I was just wondering if under the hood XNA knows about these things when doing its magic... Here is my scenario. I have animation ...
0
votes
0answers
86 views

XNA games C# application executable work on one win7 not the other one

Our company wrote a game in XNA studio 4 almost ten years ago. we try to reinstall it in win7 with only the executable. Both installed XNA Game Studio 4.0. Below is the environments parameter I can ...
0
votes
1answer
224 views

How to convert Texture2DContent to Texture2D in custom ContentTypeReader

I'm trying to implement a custom ContentPipeline extension that writes a Surface object with a Texture2D member. My input file is an xml with fields for all of my Surfaces and their members. In the ...
0
votes
0answers
152 views

monogame - how do I distribute a lib / package with content?

I wrote a UI lib for a monogame hobby project I'm working on, and I want to distribute the UI code / lib as open source for others to enjoy. My question is - what do I do with all the content that ...
0
votes
0answers
115 views

XNA speed up content compile with multiple content projects: what to do when two assets reference the same sader file?

Right now our content is being compiled over the course of 10 minutes. Given that we literary have no content yet, it is a huge timebomb waiting to explode once we start ading it. As we build the game ...
-1
votes
1answer
207 views

Loading Texture2d content in Monogame [closed]

I am using Monogame and following this tutorial series: https://www.youtube.com/watch?v=agt9-J9RPZ0 I am trying to load a Texture2d into the window and despite not getting any error messages the ...

1
2