Questions tagged [content-pipeline]

The XNA Content Pipeline. Usually invoked as part of an "XNA Content Project" (*.contentproj) in Visual Studio (or MSBuild). Imports assets, processes them, and outputs binary files (*.xnb) to be loaded by XNA's `ContentManager` class.

The XNA Content Pipeline is invoked as part of an XNA Content Project (.contentproj) in Visual Studio (or MSBuild). Imports assets, processes them, and outputs binary files (.xnb) to be loaded by XNA's ContentManager class.

The Content Pipeline is designed to be extended by the developer to incorporate new file formats into the pipeline, but most developers do not need to do this because the Content Pipeline supports the most common formats.

39 questions
1
vote
1 answer

Unable to open Content.mgcb in Visual Studio 2022

I'm attempting to make my first Monogame project, and I want to add some graphic assets to it. I tried double-clicking the Content.mgcb file in the Solution Explorer window, but nothing happens. Tried using the "Open with..." option to specifically…
Leonide
  • 235
  • 3
  • 11
1
vote
2 answers

xna published project without content pipeline?

I'm working on a personal project for learning purposes in XNA. I've read online that using the content pipeline requires people to have the xna runtime installed. So i've decided to load files using Texture2D.FromStream. Everything is fine when I'm…
omgnoseat
  • 361
  • 2
  • 19
1
vote
0 answers

VS 2013 Xact Audio Engine-File not found exception

I am attempting to create Windows monogame application in which I have to play multiple sounds simultaneously. When I found one solution was using XACT. However when it came to audio engine's creation of instance, it throws File not found…
jincy abraham
  • 579
  • 2
  • 9
  • 21
1
vote
1 answer

MonoGame ModelProcessor

Is there a MonoGame's equivalent of XNA's ModelProcessor? I am using a custom AnimatorProcessor class, derived from ModelProcessor, similar to what's done in the "better skinned sample": [ContentProcessor(DisplayName = "Animation Processor")] public…
vgru
  • 49,838
  • 16
  • 120
  • 201
1
vote
1 answer

Use reflection to deserialize content of game throws MethodAccessException

I have developped a custom XMLDeserializer which uses reflection to deserialize the content of my game (.xml). But I have an error that i don't figure it out when the content pipeline is compiling: Error 1 Building content threw…
Xxbz
  • 53
  • 6
1
vote
0 answers

Load MP3 files without using the Content Pipeline

I'm writing a game in XNA 4.0 that needs to be able to load MP3 sounds from files on disk. I can't use the content pipeline as that would prevent users from loading their own music. I've looked around a bit, and found a good question that featured a…
Chris Akridge
  • 385
  • 3
  • 14
1
vote
2 answers

MonoGame content builder

Is it possible to build content for MonoGame 3.0 without having to install Visual Studio 2010 and XNA 4.0? The content I have to build is: 3D models textures sprite fonts I am aware that there exists MGCB, but before I try and use it I need to…
Giuseppe Maggiore
  • 2,011
  • 1
  • 23
  • 31
1
vote
1 answer

System.InvalidOperationException in WP 8 Game (MonoGame )

So this is my Game1 class : using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace GameName2 { public class Game1 : Game { GraphicsDeviceManager _graphics; SpriteBatch _spriteBatch; …
Moses Aprico
  • 1,951
  • 5
  • 30
  • 53
1
vote
2 answers

Using XNA content pipeline with SharpDX game for Windows Phone 8

I've decided to try out SharpDX for my first Windows Phone game but I'm having troubles setting up Content Pipeline working. I have tried creating an XNA Content Project and dummy XNA Game Library project (just to reference Content project from) but…
krcko
  • 2,834
  • 1
  • 16
  • 11
1
vote
2 answers

XNA - How to add settings.ini to the game by default when installing?

I got a settings.ini file, which I want to be included in the game when installed. It should be in a folder called Settings and it should be in the same directory as the rest of the game (Like the executable and the default content folder). I…
DijkeMark
  • 1,284
  • 5
  • 19
  • 41
1
vote
0 answers

Building Content Project on the fly doesn't copy when Item is set to "none"

So I m building a tool that creates a ContentProject on the fly and then Builds it (so that it outputs Xnb's) At the moment the problem is that files that are not to be compiled should be copied into the output directory if marked with…
roundcrisis
  • 17,276
  • 14
  • 60
  • 92
0
votes
1 answer

XNA using content.load XML always returns the same object?

I'm trying to use an xml file for spritesheet data; I have a frame class that either holds a rectangle or another list of frames (it can be a frame itself, or a holder for more frames). The xml holds all rectangles for the frames. I've added the xml…
omgnoseat
  • 361
  • 2
  • 19
0
votes
2 answers

Xna Content Pipeline and Textures

I have tried to get my head around the content processor and textures, but I am a bit confused... I have 2 scenarios: One is a model that contains a texture, the importer loads the xml and passes the texture filename to the processor, but I can…
Grofit
  • 17,693
  • 24
  • 96
  • 176
0
votes
4 answers

Getting the content type from ContentManager in XNA

I'm building a content editor for an XNA game and I've got my Content Readers and Writers ready. In my editor, I'll be iterating over all the files in my folder to display a list of objects in my editor window. I've got the things set up, but I'm…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
0
votes
1 answer

MonoGame Pipeline XML Load error 'Element' is an invalid XmlNodeType

I'm trying to load an XML file into my MonoGame game via the pipeline but I am getting an error. 'Element' is an invalid XmlNodeType. Line 10, position 6. I have created my classes for the XML File in an external portable class library project and…
Chris
  • 435
  • 4
  • 11