Re: [melonjs:7744] Melon JS Tutorial stuck at first step

451 views
Skip to first unread message
Message has been deleted

Aaron McLeod

unread,
May 27, 2014, 7:56:10 AM5/27/14
to mel...@googlegroups.com
Hello, and welcome to melonjs :)

Typically if you're not getting past the loading bar, a resource didn't load properly. Either it wasn't found, or with a map it might not have found one of its tilesets or entities.

If you look at the source for your map: http://gd.florativ.de/4/data/map/area01.tmx

You can see that it is pointing up a couple folders and then down into the tutorial_data folder. Probably from when you set it up on your own machine. I recommend keeping the tilesets & tmx file in the same path or same folder, and then browser for it so you have the proper relative path. The folder structure on your webserver should be fine, just be sure to mimic that on your development machine. Open the tiled map, and correct the paths of the tileset.


On Tue, May 27, 2014 at 7:50 AM, <florian.sch...@gmail.com> wrote:
Hey guys. I want to get into melon.js for a study project. So what better to do than the tutorial.

But i'm stuck at the second step. Started severel times from scratch again, done everything exactly as in description.
The loader get's to 100% and does nothing afterwards. Console says "Uncaught no matching tileset found for gid 6528120" but idk what that means.
I googled it and found out, that it might have something to do with the naming of the files, but i checked it multiple times.

See yourself: http://gd.florativ.de/4/  | log in with: testzugang:test

I'm really confused right now.
Can you help me?

Greetings from Germany ;)

--
You received this message because you are subscribed to the Google Groups "melonJS - A lightweight HTML5 game engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to melonjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Aaron McLeod
http://agmprojects.com

flowbob

unread,
May 27, 2014, 8:10:00 AM5/27/14
to mel...@googlegroups.com
Thank you for your answer! Unfortunately It doesn't work the way you suggested...
I corrected the file paths and moved the tilesets in the same folder, but it keeps showing the same error :/

Aaron McLeod

unread,
May 27, 2014, 8:28:10 AM5/27/14
to mel...@googlegroups.com
Try editing the TMX finally manually in a text editor. Replace the path so it just starts with ../img, like so:

../../../tutorial_data/img/map/area01_level_tiles.png

to:

../img/map/area01_level_tiles.png

Do it for both paths in the tmx file.

flowbob

unread,
May 27, 2014, 8:32:30 AM5/27/14
to mel...@googlegroups.com
My TMX file does't contain such a path anymore. It's just like this:


<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="20" height="15" tilewidth="32" tileheight="32">
 <tileset firstgid="1" name="area01_level_tiles" tilewidth="32" tileheight="32">
  <image source="area01_level_tiles.png" width="640" height="241"/>
 </tileset>
 <tileset firstgid="141" name="metatiles32x32" tilewidth="32" tileheight="32">
  <image source="metatiles32x32.png" width="160" height="32"/>
 </tileset>
 <layer name="background" width="20" height="15">
  <data encoding="base64" compression="zlib">
   eJxjYBgFo2AUjIKhAQAEsAAB
  </data>
 </layer>
 <layer name="foreground" width="20" height="15">
  <data encoding="base64" compression="zlib">
   eJxjYBgFo2AUDFWgTWXMQWXsSmUMANodCWE=
  </data>
 </layer>
</map>

Aaron McLeod

unread,
May 27, 2014, 8:33:12 AM5/27/14
to mel...@googlegroups.com
Ah okay gotcha. Can you upload the latest to your webserver so I can take another look?

flowbob

unread,
May 27, 2014, 8:38:19 AM5/27/14
to mel...@googlegroups.com
It's the version from the server. Maybe you got to press STRG + F5 / clear cache for it to reload.

http://gd.florativ.de/4/data/map/area01.tmx

Aaron McLeod

unread,
May 27, 2014, 8:44:31 AM5/27/14
to mel...@googlegroups.com
Ah, you need to save the map as Base64 uncompressed. I think it's zlib compressed right now. Go into the main preferences menu, and you'll see it there. Tutorial shows an image of the menu as well.

flowbob

unread,
May 27, 2014, 8:50:28 AM5/27/14
to mel...@googlegroups.com
OMG it works :D this **** cost me hours! Thanks man!

Aaron McLeod

unread,
May 27, 2014, 8:54:11 AM5/27/14
to mel...@googlegroups.com
You're welcome :)
Reply all
Reply to author
Forward
0 new messages