SuperTux / flexlay

A flexible editor for 2D games
GNU General Public License v3.0
15 stars 8 forks source link

Can't Edit Worldmap Files #35

Closed Karkus476 closed 8 years ago

Karkus476 commented 9 years ago

Traceback (most recent call last): File "supertux/gui.py", line 544, in load_level self.load_worldmap(filename) File "/supertux/gui.py", line 561, in load_worldmap worldmap = WorldMap(filename) File "supertux/worldmap.py", line 51, in init tree = load_lisp(self.filename, "supertux-worldmap") File "supertux/util.py", line 30, in load_lisp raise Exception("Error: '%s' is not a '%s' file" % (filename, root_symbol)) Exception: Error: 'data/levels/world1/worldmap.stwm' is not a 'supertux-worldmap' file

Karkus476 commented 8 years ago

@tobbi Argh, this is a pain. Can you remember when the worldmap format was last changed by any chance? The flexlay editor is looking for this, when they actually appear: worldmap.stwm.txt

Karkus476 commented 8 years ago

Trying to use normal level loading code with the worldmap tileset doesn't work either, the wrong tiles are displayed. screenshot from 2015-11-22 00 47 13

brmbrmcar commented 8 years ago

I get Exception: Error: '/usr/share/games/supertux2/levels/world1/worldmap.stwm' is not a 'supertux-worldmap' file

Karkus476 commented 8 years ago

This is because the editor is expecting an older worlmap format.

On 22 Nov 2015, at 09:17, brmbrmcar notifications@github.com wrote:

I get Exception: Error: '/usr/share/games/supertux2/levels/world1/worldmap.stwm' is not a 'supertux-worldmap' file

— Reply to this email directly or view it on GitHub.

brmbrmcar commented 8 years ago

Will it get fixed?

Hume2 commented 8 years ago

It looks like wrong tileset is loaded.

Karkus476 commented 8 years ago

@Hume2 I changed the tileset as well. Assuming this is the correct tileset

Karkus476 commented 8 years ago

@brmbrmcar Yes, I don't intend to leave it broken

Karkus476 commented 8 years ago

Awkwardly, you still can't edit World 1's world map, because of #1

Hume2 commented 8 years ago

@Karkus476 This is not the correct tileset. Use ice_world.strf.

Karkus476 commented 8 years ago

Yes, thanks, I have sorted that out.

On 9 Dec 2015, at 06:05, Hume2 notifications@github.com wrote:

@Karkus476 This is not the correct tileset. Use ice_world.strf.

— Reply to this email directly or view it on GitHub.

tobbi commented 8 years ago

I added loading of the correct tileset if it isn't the current one in a recent commit. Can you guys check it out?

Karkus476 commented 8 years ago

@tobbi I've checked it out. It works great, thanks!