I want to start messing around with slick2d however I'm having issues, I've set up and I can run a slick2d program fine however I can't seem to load a map.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| import org.newdawn.slick.AppGameContainer; import org.newdawn.slick.BasicGame; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.SlickException; import org.newdawn.slick.tiled.TiledMap;
public class Game extends BasicGame { private TiledMap grassMap; public Game() { super("Zidsal"); }
public static void main(String[] arguments) { try { AppGameContainer app = new AppGameContainer(new Game()); app.setDisplayMode(1000, 1000, false); app.start(); } catch (SlickException e) { e.printStackTrace(); } }
@Override public void init(GameContainer container) throws SlickException { grassMap = new TiledMap("data/grassMap.tmx"); }
@Override public void update(GameContainer container, int delta) throws SlickException { }
public void render(GameContainer container, Graphics g) throws SlickException { grassMap.render(0, 0); } } |
in my data folder I have my map grassMap.tmx and the tileset grass.png however when I try and run the program I get this exception
Jun 02 12:57:56 BST 2011 ERROR:Unsupport tiled map type: base64,zlib (only gzip base64 supported)
org.newdawn.slick.SlickException: Unsupport tiled map type: base64,zlib (only gzip base64 supported)
any help would be great as I have no idea whats going on.