Questions tagged [monogame]

MonoGame is an OpenSource implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, Mac OS, Linux, PlayStation Mobile (2D only), Windows 8 Store, Windows Phone 8, and OUYA, while reusing their existing XNA code that runs on Windows, Xbox 360, or Windows Phone 7. It supports both OpenGL and DirectX rendering.

MonoGame is an OpenSource implementation of Microsoft's XNA 4 APIs that allows developers to build games that run on Android, iPhone, iPad, Mac OS, Linux, PlayStation Mobile (2D only), Windows 8 Store, Windows Phone 8, Windows 10, and OUYA, while reusing their existing XNA code that runs on Windows, Xbox 360, or Windows Phone 7. It supports both OpenGL and DirectX rendering.

Recent versions of MonoGame includes a bundled content pipeline. This eliminates the need to use the XNA 4 Content Pipeline, which is not available for all platforms. The new MonoGame pipeline allows for management of assets completely independent of XNA.

Information:

Code:

Questions or Problems:

1862 questions
3
votes
3 answers

Is MonoGame Pipeline Tool not included anymore in the Visual Studio MonoGame NuGet Package?

so I am currently trying to make a game in Visual Studio (C#) with MonoGame, but the MPT does not open when I try to double-click the Content file in Content Folder. As I watched pretty recent tutorials, everyone worked with Pipeline and had no…
cCyanidec
  • 33
  • 1
  • 6
3
votes
1 answer

mgcb editor (monogame) wont launch or download

i tried installing mgcb via nuget using vs. vs says: Severity Code Description Project File Line Suppression State Error Package 'dotnet-mgcb-editor 3.8.0.1641' has a package type 'DotnetTool' that is not supported by project…
TheSlam
  • 31
  • 1
  • 2
3
votes
1 answer

Lidgren create server instance for a second time results in System.Net.Sockets.SocketException

I am using Lidgren in Monogame. There is a possibility that a player would want to host a game, then exits the lobby, and wants to host again. However, when I do this in my code, the following exception is raised: System.Net.Sockets.SocketException:…
Danahi
  • 98
  • 1
  • 11
3
votes
1 answer

System.IO.IOException: Sharing violation on path

I receive the following sharing violation: System.IO.IOException: 'Sharing violation on path /data/user/0/android_game.android_game/files/GameSave.txt' When trying the following code using Visual Studio to write/read a file in the…
roguedev
  • 175
  • 1
  • 1
  • 12
3
votes
1 answer

Tiled object position doesn't match MonoGame position

I have an issue when importing Tiled maps with Object layers into a MonoGame project. Everything is pretty much working great; I can import the Tiled map into the project and render the map with the use of MonoGame.Extended. My issue starts when I…
3
votes
2 answers

Monogame C#: How can I go about creating a fixed grid of images that fit uniformly in each cell?

I want to create a grid that is divided up into cells, those cells will contain images that don't change their dimensions, but will fit uniformly inside each cell of the grid. My past attempts did not implement this concept, as the last attempt only…
Amieine
  • 41
  • 5
3
votes
7 answers

Cross-platform 3D (C#)

I'm working on a game that should run on as many platforms as possible, and was wondering if there are any good 3D libraries that run on Windows Phone 7 and Mono (Windows and Linux). I would use OpenTK, but that is dependent on OpenGL, and Windows…
bbosak
  • 5,353
  • 7
  • 42
  • 60
3
votes
0 answers

Run app on iOS device in Visual Studio for Mac

I have problem with running my iOS app (Monogame) on my physical iPhone X device in Visual Studio for Mac (former Xamarin Studio). I can test it in emulator, but I don't see option for physical device in list of devices. If I try to create an app…
Earlgray
  • 647
  • 1
  • 8
  • 31
3
votes
0 answers

Supporting international keyboard layouts with Monogame?

I have a Dictionary that maps Monogame Keys to characters. For example, hitting Keys.A will return "a" or "A", depending on if shift is held down. The characters are then relayed to input boxes in my UI. It works fine for people with American…
3
votes
1 answer

How can I detect Window.ClientSizeChanged end?

I'm currently working on a desktop game that can be played in both fullscreen, as well as windowed mode. When the game is windowed, I want to ensure that the window always maintains a certain aspect ratio, while still allowing the user to resize the…
drock07
  • 31
  • 3
3
votes
0 answers

Windows 10 Store app deployment failed, Invalid URI

DEP0600: Deployment failed. UriFormatException - Invalid URI: The format of the URI could not be determined. [0x80131537] I have a MonoGame UWP app, that will not deploy to the local machine for debugging. I can however, deploy to a remote…
3
votes
1 answer

Monogame/XNA Input listener or execute function on click?

I'm creating a menu system for my game, and am trying to make the buttons so that on creation, I can pass a set of instructions (or function) to execute on a click event. I have a function called ChangeScreen, which takes an enum parameter, Screen,…
zuddsy
  • 2,455
  • 2
  • 13
  • 19
3
votes
0 answers

C# Monogame on Android - Soft Keyboard Input

I'm developing a quick app to get to grips with Xamarin/Monogame for android and I've hit a snag. There's a point where I need players to be able to enter some character names and have figured out how to cause the Android Soft Keyboard to show up…
DysNihil
  • 31
  • 1
3
votes
1 answer

XNA/MonoGame - How to check collision for every object in a list using a Rectangle as a bounding box

I am using the MonoGame framework to make a platforming game. The game has some basic mechanics like: gravity, and collision detection that only works on the last object in a list. Here is the code for the game area of the game (main script): ` …
Repas Dev
  • 41
  • 1
  • 7
3
votes
1 answer

Are there F# Monogame templates?

I want to experiment with Monogame in F# using Xamarin on OSX. I am able to create a working C# Monogame project and a working F# Cocoa app, but not a working F# Monogame project. What is the boiler-plate setup for an F# Monogame project? Are there…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245