LambdaSix / RenderLike

C# MonoGame based console emulator in the spirit of libtcod
MIT License
1 stars 0 forks source link

Fails to find font png when run from commandline #8

Open fufie opened 8 years ago

fufie commented 8 years ago

USERNAME@mcsmall:~/src/experimenting/RenderLike$ mono --debug RenderLike.Example.Launcher/bin/Debug/RenderLike.Example.Launcher.Win32.exe

Unhandled Exception: Microsoft.Xna.Framework.Content.ContentLoadException: Could not load celtic_garamond_10x10_gs_tc.png asset as a non-content file! ---> Microsoft.Xna.Framework.Content.ContentLoadException: The content file was not found. ---> System.IO.FileNotFoundException: Could not find file "/Users/USERNAME/src/experimenting/RenderLike/RenderLike.Example.Launcher/bin/Debug/Content/celtic_garamond_10x10_gs_tc.png.xnb". File name: '/Users/USERNAME/src/experimenting/RenderLike/RenderLike.Example.Launcher/bin/Debug/Content/celtic_garamond_10x10_gs_tc.png.xnb' at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00335] in /private/tmp/source-mono-4.4.0-c7sr0/bockbuild-mono-4.4.0-branch-c7sr0/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/FileStream.cs:290 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in /private/tmp/source-mono-4.4.0-c7sr0/bockbuild-mono-4.4.0-branch-c7sr0/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/FileStream.cs:97 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] in /private/tmp/source-mono-4.4.0-c7sr0/bockbuild-mono-4.4.0-branch-c7sr0/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/File.cs:341 at Microsoft.Xna.Framework.TitleContainer.OpenStream (System.String name) <0x78f8c90 + 0x00043> in :0 at Microsoft.Xna.Framework.Content.ContentManager.OpenStream (System.String assetName) <0x78f7c90 + 0x0006f> in :0 --- End of inner exception stack trace --- at Microsoft.Xna.Framework.Content.ContentManager.OpenStream (System.String assetName) <0x78f7c90 + 0x000db> in :0 at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](System.String assetName, System.Action1 recordDisposableObject) <0x78f7268 + 0x00187> in <filename unknown>:0 --- End of inner exception stack trace --- at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](System.String assetName, System.Action1 recordDisposableObject) <0x78f7268 + 0x0049b> in :0 at Microsoft.Xna.Framework.Content.ContentManager.Load[T](System.String assetName) <0x78f6ec8 + 0x0010b> in :0 at RenderLike.Example.ExampleGame.LoadContent () [0x0002c] in /Users/USERNAME/src/experimenting/RenderLike/RenderLike.Example/ExampleGame.cs:42 at Microsoft.Xna.Framework.Game.Initialize () <0x78ee140 + 0x00108> in :0 at Microsoft.Xna.Framework.Game.DoInitialize () <0x50de350 + 0x00026> in :0 at Microsoft.Xna.Framework.Game.Run (GameRunBehavior runBehavior) <0x50de088 + 0x00073> in :0 at Microsoft.Xna.Framework.Game.Run () <0x50de030 + 0x00023> in :0 at RenderLike.Example.ExampleGame.Start () [0x00000] in /Users/USERNAME/src/experimenting/RenderLike/RenderLike.Example/ExampleGame.cs:32 at RenderLike.Example.Launcher.Program.Main (System.String[] args) [0x00041] in /Users/USERNAME/src/experimenting/RenderLike/RenderLike.Example.Launcher/Program.cs:23 [ERROR] FATAL UNHANDLED EXCEPTION: Microsoft.Xna.Framework.Content.ContentLoadException: Could not load celtic_garamond_10x10_gs_tc.png asset as a non-content file! ---> Microsoft.Xna.Framework.Content.ContentLoadException: The content file was not found. ---> System.IO.FileNotFoundException: Could not find file "/Users/USERNAME/src/experimenting/RenderLike/RenderLike.Example.Launcher/bin/Debug/Content/celtic_garamond_10x10_gs_tc.png.xnb". File name: '/Users/USERNAME/src/experimenting/RenderLike/RenderLike.Example.Launcher/bin/Debug/Content/celtic_garamond_10x10_gs_tc.png.xnb' at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00335] in /private/tmp/source-mono-4.4.0-c7sr0/bockbuild-mono-4.4.0-branch-c7sr0/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/FileStream.cs:290 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in /private/tmp/source-mono-4.4.0-c7sr0/bockbuild-mono-4.4.0-branch-c7sr0/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/FileStream.cs:97 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] in /private/tmp/source-mono-4.4.0-c7sr0/bockbuild-mono-4.4.0-branch-c7sr0/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/File.cs:341 at Microsoft.Xna.Framework.TitleContainer.OpenStream (System.String name) <0x78f8c90 + 0x00043> in :0 at Microsoft.Xna.Framework.Content.ContentManager.OpenStream (System.String assetName) <0x78f7c90 + 0x0006f> in :0 --- End of inner exception stack trace --- at Microsoft.Xna.Framework.Content.ContentManager.OpenStream (System.String assetName) <0x78f7c90 + 0x000db> in :0 at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](System.String assetName, System.Action1 recordDisposableObject) <0x78f7268 + 0x00187> in <filename unknown>:0 --- End of inner exception stack trace --- at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](System.String assetName, System.Action1 recordDisposableObject) <0x78f7268 + 0x0049b> in :0 at Microsoft.Xna.Framework.Content.ContentManager.Load[T](System.String assetName) <0x78f6ec8 + 0x0010b> in :0 at RenderLike.Example.ExampleGame.LoadContent () [0x0002c] in /Users/USERNAME/src/experimenting/RenderLike/RenderLike.Example/ExampleGame.cs:42 at Microsoft.Xna.Framework.Game.Initialize () <0x78ee140 + 0x00108> in :0 at Microsoft.Xna.Framework.Game.DoInitialize () <0x50de350 + 0x00026> in :0 at Microsoft.Xna.Framework.Game.Run (GameRunBehavior runBehavior) <0x50de088 + 0x00073> in :0 at Microsoft.Xna.Framework.Game.Run () <0x50de030 + 0x00023> in :0 at RenderLike.Example.ExampleGame.Start () [0x00000] in /Users/USERNAME/src/experimenting/RenderLike/RenderLike.Example/ExampleGame.cs:32 at RenderLike.Example.Launcher.Program.Main (System.String[] args) [0x00041] in /Users/USERNAME/src/experimenting/RenderLike/RenderLike.Example.Launcher/Program.cs:23 USERNAME@mcsmall:~/src/experimenting/RenderLike$