Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 02:35
    HopefulFrog edited #7804
  • 02:34
    HopefulFrog edited #7804
  • 02:32
    HopefulFrog opened #7804
  • May 18 15:07
    nkast commented #7799
  • May 18 15:07
    nkast closed #7799
  • May 18 06:04
    Ravendarke8 commented #7533
  • May 18 06:00
    Ravendarke8 commented #7533
  • May 17 21:40
    damian-666 commented #7533
  • May 17 20:44
    cpt-max commented #7533
  • May 17 20:06
    cpt-max commented #7799
  • May 17 12:00
    Lancelotbronner commented #7803
  • May 17 09:07
    IgorFIE commented #6543
  • May 17 09:05
    IgorFIE commented #6543
  • May 17 08:37
    nkast converted_to_draft #7799
  • May 17 02:28
    damian-666 commented #7313
  • May 17 02:25
    damian-666 commented #7313
  • May 17 02:23
    damian-666 commented #7313
  • May 17 01:35
    stromkos commented #7802
  • May 17 01:34
    stromkos commented #7802
  • May 16 23:10
    AristurtleDev closed #7802
kimimaru
@kimimaru:matrix.org
[m]
the MGCB Editor
Klihfuhrd
@Klihfuhrd
Yes,
monogame-uninstall: command not found
sudo apt-get remove mgcb-editor
Unable to locate package mgcb-editor
kimimaru
@kimimaru:matrix.org
[m]
Try: dotnet tool uninstall --global dotnet-mgcb-editor
Klihfuhrd
@Klihfuhrd
A tool with the package Id 'dotnet-mgcb-editor' could not be found
I've been getting weird messages all day
kimimaru
@kimimaru:matrix.org
[m]
Do you remember how you installed the tool?
Klihfuhrd
@Klihfuhrd
From that link... which is why I'm lost
kimimaru
@kimimaru:matrix.org
[m]
What have you done so far attempting to remove it?
I noticed you mentioned remove and purge
Klihfuhrd
@Klihfuhrd
Yeah, trying to do a full uninstall since I'm on an old machine. Transferred my work on my new one, but this laptop is running too slow
kimimaru
@kimimaru:matrix.org
[m]
What did you try then?
If the tool is not installed in dotnet tool then it must've been removed from there somehow
does mgcb-editor work for you in a terminal?
Klihfuhrd
@Klihfuhrd
monogame-uninstall
sudo apt-get remove mgcb-editor
sudo apt-get purge mgcb-editor
and MonoGame/MonoGame#7248
MGCB Editor gui is still showing on my application grid, but no monogame application are showing in terminal list or package list
kimimaru
@kimimaru:matrix.org
[m]
I cant speak for the other dependencies, but it'll stop showing up if you remove it from the location (found via which mgcb-editor)
I suggest reinstalling monogame then uninstalling it properly to fix this
Klihfuhrd
@Klihfuhrd
so whenever I do which commands, nothing occurs as a response
Well, nevermind. I'll run a file back up and reinstall ubuntu. Thank you for the response
kimimaru
@kimimaru:matrix.org
[m]
if nothing occurs then that means the command is not found
it'll say something only if it finds it
apos
@apos:matrix.org
[m]
@Klihfuhrd: You can always check the install location manually
It should be in $HOME/.dotnet/tools
Romber
@Rombersoft

Hello friends. I've just git cloned source code from master branch but I can't to build solution for Linux OS because I get such error:

Error: NuGet packages need to be restored before building. NuGet MSBuild targets are missing and are needed for building. The NuGet MSBuild targets are generated when the NuGet packages are restored. (MonoGame.Content.Builder.Editor.Launcher)

How can I repair this problem?

Romber
@Rombersoft
Hello. Now I repaired it due to nuget restore but it achieved new problem:
/usr/share/dotnet/sdk/5.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(5,5): Error MSB4186: Invalid static method invocation syntax: "[MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')". Method '[MSBuild]::GetTargetFrameworkIdentifier' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(`a`, `b`)). Check that all parameters are defined, are of the correct type, and are specified in the right order. (MSB4186) (MonoGame.Framework.DesktopGL)
jogos1
@jogos1
Search about me:
Romber
@Rombersoft

Hello everybody I've noticed one bug in last version. There is code:

if (keyboardState.IsKeyDown(Keys.R))
{

I start application 3 or 4 times and then nothing happens after R key pressing. I change R to T in code and application again works 3 or 4 times running. Then I return code to R key (Ctrl+Z) and application again works 3 or 4 times running. I even set breakpoint inside {...} block but thread does not come inside it. I think it's real bug

kimimaru
@kimimaru:matrix.org
[m]
How are you updating keyboardState?
Romber
@Rombersoft
KeyboardState keyboardState = Keyboard.GetState();
-W²l
@wlinna:matrix.org
[m]

Hello, I'm new to MonoGame, and I'm trying to help my friend to port his game to Linux. The project originally uses "WindowsDX" instead of "DesktopGL". But in "DesktopGL" the game just crashes on certain calls to DrawUserPrimitives. It crashes on both Linux and Windows (his machine). On Linux the only error message I get is "segmentation fault". Windows doesn't give any useful message either.

Here's what the call to DrawUserPrimitives looks like:

_graphics.GraphicsDevice.DrawUserPrimitives(
                      PrimitiveType.TriangleList, vertices, 0, vertices.Length/3, new VertexDeclaration(CustomVertex.VertexElements));

Here's how CustomVertex looks like: https://pastebin.com/buJE0A5C

How can I start to figure this out? What sort of mistake would expectedly lead to a segfault on OpenGL / MonoGame? I couldn't find anything that seemed relevant in the forums.

Thanks!

-W²l
@wlinna:matrix.org
[m]

:point_up: Edit: Hello, I'm new to MonoGame, and I'm trying to help my friend to port his game to Linux. The project originally uses "WindowsDX" instead of "DesktopGL". But in "DesktopGL" the game just crashes on certain calls to DrawUserPrimitives. It crashes on both Linux and Windows (his machine). On Linux the only error message I get is "segmentation fault". Windows doesn't give any useful message either.

Here's what the call to DrawUserPrimitives looks like:

_graphics.GraphicsDevice.DrawUserPrimitives(
                      PrimitiveType.TriangleList, vertices, 0, vertices.Length/3, new VertexDeclaration(CustomVertex.VertexElements));

Here's how CustomVertex looks like: https://pastebin.com/buJE0A5C

How can I start to figure this out? What sort of mistake would expectedly lead to a segfault on OpenGL / MonoGame? I couldn't find anything that seemed relevant in the forums.

I'm using MonoGame 3.8 on core 3.1.

Thanks!

-W²l
@wlinna:matrix.org
[m]
--
Another question I couldn't figure out. Why on DesktopGL GraphicsDevice doesn't have Flush-method? My friend uses it on WindowsDX, and I'm wondering whether I need to replace it with something. For now I just use #if DIRECTX to disable it on DesktopGL
kimimaru
@kimimaru:matrix.org
[m]
I think the first step would be to add logs and step through the code to see where it's crashing and when. the segfault would likely happen on native code as the managed code would throw an exception
1 reply
The situation around Flush is odd - it's mentioned in the docs on the base GraphicsDevice (https://docs.monogame.net/api/Microsoft.Xna.Framework.Graphics.GraphicsDevice.html#Microsoft_Xna_Framework_Graphics_GraphicsDevice_Flush), but it's not in the latest code on develop. I would file an issue for this
1 reply
kimimaru
@kimimaru:matrix.org
[m]
That's the DirectX-specific implementation. The base one doesn't have it: https://github.com/MonoGame/MonoGame/blob/develop/MonoGame.Framework/Graphics/GraphicsDevice.cs
the docs may just be out of date. it's not in the 3.8 code either
-W²l
@wlinna:matrix.org
[m]
That base-one, just like the DirectX-specific one, is a partial class, and it's not hidden from the user, and my friend even calls it (though I haven't asked whether it's necessary), which makes me wonder if I need to do something similar on DesktopGL
kimimaru
@kimimaru:matrix.org
[m]
That's my point. In MonoGame, typically there's a base class with a method (say Flush) and then each implementation has one named "Platform X" - for instance, PlatformFlush
it's odd the docs have Flush on the base class but it's not implemented everywhere else. that was my point
2 replies
-W²l
@wlinna:matrix.org
[m]
Would be nice to step into DrawUserPrimitives code, but apparently not possible, because MonoGame doesn't have PDBs on Nuget. I'll try to compile MonoGame myself
1 reply
-W²l
@wlinna:matrix.org
[m]

I was able to build from "develop" branch and add MonoGame as a project dependency like this:

    <ProjectReference Include="..\MonoGame\MonoGame.Framework\MonoGame.Framework.DesktopGL.csproj" />
    <ProjectReference Include="..\MonoGame\Tools\MonoGame.Content.Builder.Task\MonoGame.Content.Builder.Task.csproj" />

but now the Content won't get built

kimimaru
@kimimaru:matrix.org
[m]
Sorry, I'd like to help but I haven't tried building MonoGame since they switched to .NET Standard. to my knowledge, adding the MG project to yours directly as you did is the way to go there
-W²l
@wlinna:matrix.org
[m]

Okay, I decided to skip that idea, and wen't back to using Nuget packages. What I found out instead is that somehow using POSITION1 in the shader crashes it:

struct VertexShaderOutput
{
    float4 Position : SV_POSITION;
    // float4 PosWorld: POSITION1;
    float2 TexCoord : TEXCOORD0;
    float2 Glow: TEXCOORD1;
};

If I remove comments from PosWorld, the game crashes. But that PosWorld is important, so I'm not sure what's the alternative

I have no prior experience with Direct3D
-W²l
@wlinna:matrix.org
[m]
It turns out that POSITION1 needs to be changed to TEXCOORD3
-W²l
@wlinna:matrix.org
[m]
Textures don't seem to work though
1 reply
Michael Wegge
@Firedragonweb
Hey there! I'm super excited about net6, especially for Android and ios. Is there any indication if monogame will work out of the box for these targets or will it take time to adjust?