Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Monogame content pipeline to work with Visual studio 2013 in windows 8

I've got monogame working in VS 2013 but I can't get the content pipeline to work. When I try to import an existing Content pipeline Project I get the following error.

Cant load content pipeline

And I can't create a new project since the templates arent installed in 2013.

Since I am running windows 8 I cannot install XNA (installer stops saying it requires Win 7 or Vista). Reading here: https://github.com/mono/MonoGame/wiki/MonoGame-Content-Processing It seems XNA is required..?

EDIT

Fex answer gets the templates installed in VS 2013 and I can create a new MonoGame windows Project. But I still cant create or open content projects as they crash with this error

enter image description here

like image 751
JensB Avatar asked Jan 03 '14 12:01

JensB


People also ask

How do I use MonoGame’s pipeline editor?

MonoGame has a special Pipeline Editor to make it super easy to work with game assets. Double-click the Content.mgcb file to open the Pipeline Editor. Next, add the asset files you just downloaded as seen below:

How do I install the MonoGame project templates?

Once it's open, simply search for MonoGame in the top right search window, as shown above, and install the "MonoGame project templates". You now have the MonoGame templates installed, ready to create new projects. MGCB Editor is a tool for editing .mgcb files, which are used for building content.

What version of Visual Studio do I need to install MonoGame?

Before installing Monogame, you'll need to install Visual Studio 2019 or later (any edition, including Community) with the following components, depending on your target platform: .NET cross-platform development - For Desktop OpenGL and DirectX platforms

How do I start building a MonoGame game?

This guide will walk you through building a starter game with MonoGame using Windows and Visual Studio 2019. Start Visual Studio and select New Project... in the upper left corner. You should see the "Create a new project" dialog pop up.


3 Answers

  1. Download this zip - it contains script by Eric Mattison and some other things. Zip - sendspace link
  2. Extract EricMattisonScript, read and do what Instructions file says.
  3. Extract MonoGame.zip to: My documents folder/Visual studio 2013/Templates/Project templates/Visual C#/
  4. Extract XNA Game.zip Studio to location $Location where your visual studio 2013 is installed$ ( in my case D:/Program files (x86)/Microsoft Visual Studio 2013)/Common7/IDE/Extensions
  5. Launch "devenv.exe /Setup" in command line with administrator priviliages (it is in IDE directory)

Not sure will it work on your pc - in my case it worked.

EDIT: edited script - try this edited script, be sure you have XNAGS40_setup in same folder and that you run it with administrator priviliages

like image 102
fex Avatar answered Sep 25 '22 04:09

fex


You can use the content pipeline of SharpDX.
You put your content in the Content folder of the SharpDX solution. Build that solution and then you move the .xnb files generated to the content folder of your MonoGame project.

You could also just use a post buid event to copy the files for you.

like image 30
LaCartouche Avatar answered Sep 24 '22 04:09

LaCartouche


You actually can install XNA Game Studio 4.0 Refresh on Windows 8 and 8.1. The issue is that the GFWL it tries to install won't work. So obtain a usable Distributable package, such as from a GFWL game (I believe MS also offers a standalone package), install that, THEN install XNAGS4 Refresh.

CORRECTION: I failed to mention that this does not actually install the necessary project/solution/filetypes into VS2012. See the next section for useful solutions. ADDITIONAL INFO: At the renamed XNA CodePlex page (http://mxa.codeplex.com), there are downloads for versions of Visual Studio beyond 2010 (10.0). These downloads are ZIP files that include installers for each separate package that XNA4 installs, ending with the VS extension package installer for the relevant version of Visual Studio. In addition, MonoGame at this point (two years later) no longer requires any XNA elements to load and compile in Visual Studio or Xamarin Studio/MonoDevelop. The tools that MonoGame uses to replace XNA Content Projects can also import them for conversion to MonoGame Content Projects.

like image 45
Formedras Avatar answered Sep 26 '22 04:09

Formedras