Growler

'x.png' file for tileset 'ground' not found!" - tsx loading

Recommended Posts

@obiot

@Parasyte

When I created my own TMX maps, somehow they'd auto generate the tileset data within the TMX map:

<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" tiledversion="1.1.3" orientation="orthogonal" renderorder="left-down" width="40" height="20" tilewidth="16" tileheight="16" infinite="0" backgroundcolor="#dbfbf4" nextobjectid="8">
 <tileset firstgid="1" name="sample_tiles" tilewidth="16" tileheight="16" tilecount="100" columns="10">
  <image source="../img/map/sample_tiles.png" width="160" height="160"/>
 </tileset>
 <layer name="Ground" width="40" height="20">
  <data encoding="base64">

I have a mapper working on the map, and they're using a newer Tiled. It seems to generate references to external .tsx files to get the tileset images:

<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" tiledversion="2017.10.11" orientation="orthogonal" renderorder="right-down" width="110" height="116" tilewidth="32" tileheight="32" infinite="0" nextobjectid="3">
 <tileset firstgid="1" source="g.tsx"/>
 <tileset firstgid="343" source="untitled.tsx"/>
 <tileset firstgid="2940" source="s.tsx"/>
 <layer name="water" width="110" height="116">
  <data encoding="csv">

Here's an example reference of g.tsx file:  <tileset firstgid="1" source="g.tsx"/> 

<?xml version="1.0" encoding="UTF-8"?>
<tileset name="ground" tilewidth="32" tileheight="32" tilecount="342" columns="19">
 <image source="spain_ground_tiles3.png" width="608" height="576"/>
</tileset>

From the docs, http://docs.mapeditor.org/en/stable/reference/tmx-map-format/ , this seems fine:

"source: If this tileset is stored in an external TSX (Tile Set XML) file, this attribute refers to that file. That TSX file has the same structure as the <tileset> element described here. (There is the firstgid attribute missing and this source attribute is also not there. These two attributes are kept in the TMX map, since they are map specific.)"

I'm able to open the map in Tiled no problem, but Melon gives me error "melonJS: 'spain_ground_tiles3.png' file for tileset 'ground' not found!"

Why is this? Please see attached image:

Screen Shot 2018-05-15 at 1.19.09 AM.png

Screen Shot 2018-05-15 at 1.25.25 AM.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.