[SOLVED] Cant find a default importer for tiled .tmx files

Newbie here. I’ve used the NuGet package manager to install both monogame.extended and MonoGame.Extended.Content.Pipeline. However the pipeline tool refuses to build my tilemap due to this error.

I’ve looked around on the net for likely causes and found a thread posted back in 2015 that said something along the lines of that monogame.extended cannot handle “Collections of Images” as a tileset so I’ve made sure my map does not use any. Not sure if that restriction still applies in 2018, but still it does not work.

Does anyone have any ideas?
Thanks in advance.

  1. Have you connected Monogame.Extended.Tiled package?
  2. Have you added reference inside your Pipeline Tool to Pipeline Tool extended?
  1. Im using these packages
    using MonoGame.Extended;
    using MonoGame.Extended.Tiled;
    using MonoGame.Extended.Graphics;
    using MonoGame.Extended.Content;
    using MonoGame.Extended.Tiled.Graphics;
    using MonoGame.Extended.ViewportAdapters;

  2. I think that might be the root of the problem.
    How do I do that? Adding MonoGame.Extended.Content.Pipeline; produces the following error in VS

<img src="/uploads/default/original/2X/d/debfa4d5313a7cb6ef394c4a7d38661cf98845b2.png" width=“690” height=“373” t

Open Pipeline Tool of your project, select “Content” entry & find option References, then find and add “MonoGame.Extended.Content.Pipeline.dll” in packages of your project.

3 Likes

Ah, so thats what I was missing. This stuff should really be in the documentation.

Ah, so thats what I was missing. This stuff should really be in the documentation.

This installation guide opens up each time you are trying to install one of Extended packages))

Working perfectly now. Thanks for the help dryhfth!

1 Like

Hello! I know this might be a far shot considering how old this post is but I have tried that (I went to user profile–> packages and found the dll fil and tried to add it to references.) The first time I accidently imported some random dll package but now whenever I remove it and try to add the one you mentioned I get this error:

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at MonoGame.Tools.Pipeline.PipelineTypes.ResolveAssemblies(IEnumerable`1 assemblyPaths)
at MonoGame.Tools.Pipeline.PipelineTypes.Load(PipelineProject project)
at MonoGame.Tools.Pipeline.PipelineController.ResolveTypes()
at MonoGame.Tools.Pipeline.PipelineController.OnReferencesModified()
at MonoGame.Tools.Pipeline.CellRefs.Edit(PixelLayout control)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at MonoGame.Tools.Pipeline.Program.Main(String[] args)

I’m not sure what to do at this point. Any ideas?