Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Edit Worldmap Files #35

Closed
Karkus476 opened this issue Oct 5, 2015 · 13 comments
Closed

Can't Edit Worldmap Files #35

Karkus476 opened this issue Oct 5, 2015 · 13 comments

Comments

@Karkus476
Copy link
Member

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
Copy link
Member Author

@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
Copy link
Member Author

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
Copy link

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

@Karkus476
Copy link
Member Author

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

  • Karkus

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
Copy link

Will it get fixed?

@Hume2
Copy link
Member

Hume2 commented Nov 22, 2015

It looks like wrong tileset is loaded.

@Karkus476
Copy link
Member Author

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

@Karkus476
Copy link
Member Author

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

@Karkus476 Karkus476 added this to the 0.5.0 milestone Dec 7, 2015
@Karkus476 Karkus476 changed the title Can't Edit Worldmap files Can't Edit Worldmap Files Dec 8, 2015
@Karkus476
Copy link
Member Author

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

@Karkus476 Karkus476 mentioned this issue Dec 8, 2015
3 tasks
@Hume2
Copy link
Member

Hume2 commented Dec 9, 2015

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

@Karkus476
Copy link
Member Author

Yes, thanks, I have sorted that out.

  • Karkus

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
Copy link
Member

tobbi commented Dec 9, 2015

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
Copy link
Member Author

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

Karkus476 added a commit that referenced this issue Dec 17, 2015
This means user can open worldmap files too.
When opening a worldmap, the editor will ask for the tileset

Fixes #35
Karkus476 added a commit to Karkus476/flexlay that referenced this issue Jul 29, 2016
This means user can open worldmap files too.
When opening a worldmap, the editor will ask for the tileset

Fixes SuperTux#35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants