1
\$\begingroup\$

I'm writing an XNA 4.0 game and use Spine for animation. Until now, I've been making spritesheets with Spine and using them with a custom animation class. I recently discovered there is an official Spine runtime for XNA. I've been trying to use it but encounter an error.

The closest I've come (after adding the runtime's classes to my project) is this error:

Cannot autodetect which importer to use for "data\goblins.atlas". There are no importers which handle this file type. Specify the importer that handles this file type in your project.

Is there such an importer in the runtime and I simply missed it? If so, how can I get XNA to recognize it? If not, is there an alternative?

\$\endgroup\$
4
  • 1
    \$\begingroup\$ Does the example in the repo work? \$\endgroup\$
    – Anko
    Mar 18 '14 at 21:58
  • 1
    \$\begingroup\$ Nope. This is the one that throws this error! \$\endgroup\$ Mar 18 '14 at 22:07
  • 1
    \$\begingroup\$ Looks like a runtime bug then. (Examples are supposed to work! D:) Poke the devs through gh issues or the forum. Nate is usually pretty quick to respond. \$\endgroup\$
    – Anko
    Mar 18 '14 at 22:16
  • \$\begingroup\$ Thank you. I asked them. :) Oh and thanks for the edit as well! \$\endgroup\$ Mar 19 '14 at 8:20
1
\$\begingroup\$

Found it! For those solutions that have a content project included you just have to add the data inside the main project and NOT the content. You must also make a copy of the data in the bin folder of the release.

\$\endgroup\$
1
  • \$\begingroup\$ Ah, so it isn't a bug after all? Good! \$\endgroup\$
    – Anko
    Apr 3 '14 at 14:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.