Closed gusg21 closed 1 year ago
I ran in to this error (also on MacOS), it turned out the MGCB editor didn't have a reference to the Aseprite importer dll.
I added that in, and now the project builds and runs, but hits this runtime error when trying to initialize a new AnimatedSprite from the loaded AsepriteDocument:
Unhandled exception. System.InvalidOperationException: Sequence contains no elements at System.Linq.ThrowHelper.ThrowNoElementsException() at MonoGame.Aseprite.Graphics.AnimatedSprite..ctor(AsepriteDocument aseprite, Vector2 position)
@Miredly this error message is most commonly caused by there being no Tags set in Aserpite. The AnimatedSprite
class uses the Tags in the Aseprite file to identify the different animations in the spritesheet.
Issue is now resolved in the MonoGame.Aseprite
Version 4.0.0 release. Please update to the new version is possible.
When I try to build a .ase file in my project when referencing this extension (I checked, it works without the .ase), I get the following error:
Unhandled exception. Microsoft.Xna.Framework.Content.ContentLoadException: The content file was not found.
---> System.IO.FileNotFoundException: Could not find file '/Users/gus/Projects/game-off-2021/src/GO21/Game/bin/Debug/netcoreapp3.1/Content/penguin.xnb'.
File name: '/Users/gus/Projects/game-off-2021/src/GO21/Game/bin/Debug/netcoreapp3.1/Content/penguin.xnb'
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at Microsoft.Xna.Framework.TitleContainer.PlatformOpenStream(String safeName)
at Microsoft.Xna.Framework.TitleContainer.OpenStream(String name)
at Microsoft.Xna.Framework.Content.ContentManager.OpenStream(String assetName)
I checked and the file isn't there, and it doesn't appear to have been built. I'm on macOS M1, and I'm using Visual Studio for Mac. Thanks for any help!