Dúvidas soble Slick2d e Tilep Maps

1 resposta
H

Olá,

Quando compilei meu jogo deu o seguinte erro. Como comecei usar o editor de mapas recentemente, não sei identificar o erro:

Sun Dec 23 14:41:03 BRST 2012 INFO:TargetDisplayMode: 1366 x 768 x 0 @0Hz

Sun Dec 23 14:41:03 BRST 2012 INFO:Starting display 1366x768

Sun Dec 23 14:41:03 BRST 2012 INFO:Use Java PNG Loader = true

WARNING: Found unknown Windows version: Windows 7

Attempting to use default windows plug-in.

Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin

Sun Dec 23 14:41:03 BRST 2012 INFO:Found 0 controllers

Sun Dec 23 14:41:03 BRST 2012 ERROR:TiledMap requires that the map be created with tilesets that use a single image.  Check the WiKi for more complete information.

org.newdawn.slick.SlickException: TiledMap requires that the map be created with tilesets that use a single image.  Check the WiKi for more complete information.

at org.newdawn.slick.tiled.TileSet.(TileSet.java:100)

at org.newdawn.slick.tiled.TiledMap.load(TiledMap.java:647)

at org.newdawn.slick.tiled.TiledMap.(TiledMap.java:128)

at monarchs.Monarchs.init(Monarchs.java:23)

at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:433)

at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:357)

at monarchs.Monarchs.main(Monarchs.java:51)

Sun Dec 23 14:41:03 BRST 2012 ERROR:Failed to parse tilemap

org.newdawn.slick.SlickException: Failed to parse tilemap

at org.newdawn.slick.tiled.TiledMap.load(TiledMap.java:680)

at org.newdawn.slick.tiled.TiledMap.(TiledMap.java:128)

at monarchs.Monarchs.init(Monarchs.java:23)

at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:433)

at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:357)

at monarchs.Monarchs.main(Monarchs.java:51)

Caused by: org.newdawn.slick.SlickException: TiledMap requires that the map be created with tilesets that use a single image.  Check the WiKi for more complete information.

at org.newdawn.slick.tiled.TileSet.(TileSet.java:100)

at org.newdawn.slick.tiled.TiledMap.load(TiledMap.java:647)

 5 more

CONSTRUÍDO COM SUCESSO (tempo total: 2 segundos)

1 Resposta

E

Bem, parece ser uma engine recente, então acho que provável que não haja um solução pronta ainda. E pelo visto o erro decorreu de um ponto muito específico:

TiledMap requires that the map be created with tilesets that use a single image.

Não sei o que isso quer dizer, mas acho que essa página da wiki deles dá um dica.
http://www.slick2d.org/wiki/index.php/Tiled

E caso você decida testar coisas novas, testa meu editor de imagens em java com suporte a python embutido(fiz até um joguinho, é só baixar de digitar “brincar()”). Valorize o produto nacional :D.

Criado 23 de dezembro de 2012
Ultima resposta 23 de dez. de 2012
Respostas 1
Participantes 2