Comments (7)
I ran into this exact error. Maybe the documentation can be more clear? Right now it says, "...the platform of your project doesnt matter.", which doesn't appear to be true. I had started with a "MonoGame Window Project", but it sounds like Nez doesn't work with that template. You need to use "MonoGame Cross Platform Desktop Project".
from nez.
You have the DirectX version of the MonoGame SDK! If you start with the DesktopGL template it will give you the OpenGL version, which is what Nez requires.
from nez.
Stick a breakpoint in the method and see which shader it is trying to load. You will want to make sure that you add that shader in your projects Content/nez/effects folder. All the compiled shaders are available in the DefaultContent folder at the root of the repo.
On Jul 11, 2016, at 7:10 PM, RastaCow [email protected] wrote:
Started a new project and started following your Getting Started video on your YouTube channel. At the point where you remove all the default stuff in Monogame such as the LoadContent and such. I run the project and I get a Null error in line 79 of EffectResources.cs Just wondering what the fix was. Here is the error
`internal static byte[] getMonoGameEmbeddedResourceBytes( string name )
{
#if FNA
name = name.Replace( ".ogl.mgfxo", ".fxb" );
#endif
var assembly = ReflectionUtils.getAssembly( typeof( MathHelper ) );
using( var stream = assembly.GetManifestResourceStream( name ) )
{
using( var ms = new MemoryStream() )
{
stream.CopyTo( ms );
return ms.ToArray();
}
}
}`
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from nez.
It says it is looking for "Microsoft.Xna.Framework.Graphics.Effect.Resources.SpriteEffect.ogl.mgfxo"
I don't think that is part of Nez?
from nez.
That is not part of Nez. That is the built-in MonoGame SpriteEffect. That is very, very odd that it is not present. Is your MonoGame install up to date?
One thing you can do to check to make sure the SpriteEffect exists in the MonoGame assembly is to stick the following right before the first using statement:
foreach( var r in assembly.GetManifestResourceNames() )
Debug.log( "resource name: {0}", r );
Let me know what the output of that is and it may have a clue.
from nez.
Log: resource name: Microsoft.Xna.Framework.Graphics.Effect.Resources.AlphaTestEffect.dx11.mgfxo
Log: resource name: Microsoft.Xna.Framework.Graphics.Effect.Resources.BasicEffect.dx11.mgfxo
Log: resource name: Microsoft.Xna.Framework.Graphics.Effect.Resources.DualTextureEffect.dx11.mgfxo
Log: resource name: Microsoft.Xna.Framework.Graphics.Effect.Resources.EnvironmentMapEffect.dx11.mgfxo
Log: resource name: Microsoft.Xna.Framework.Graphics.Effect.Resources.SkinnedEffect.dx11.mgfxo
Log: resource name: Microsoft.Xna.Framework.Graphics.Effect.Resources.SpriteEffect.dx11.mgfxo
Im 99% sure I have the latest version of Monogame. I will update then get back to you
from nez.
That did it! Thank you very much!
from nez.
Related Issues (20)
- Incompatibility for MonoGame and Nez HOT 1
- Tiled Renderer ignores tileset offset
- Crash when toggling imGui on Linux HOT 1
- Crash when adding FramesPerSecondCounter component in Initialize
- FramesPerSecondCounter draws in world space not in camera space
- How to setup with vscode? HOT 2
- FNA dynamic buffer warning: "Dynamic buffer using SetDataOptions.None, expect bad performance and broken output!"
- Nez.UI ProgressBar is a fixed length HOT 1
- Mathf.AngleBetweenVectors() does not compute the angle between vectors HOT 1
- RendererableComponentList uses unstable sorting algorithm HOT 1
- camera 3d view matrix does not include rotation HOT 1
- Sprite and SpriteAnimator not showing images HOT 1
- Batcher.PushSprite does not round Sprite destination HOT 1
- .Net 7 Support
- Physics.Overlap rect not right size.
- DisposableAsset property not public.
- Installation impossible in VS Code? HOT 1
- Outdated example in FAQs/Rendering.md
- Documentation mistake where CameraBounds is mentioned
- Nez.UI SetScrollBarPositions does opposite of parameter name.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nez.