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.
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
[quote] 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)
[/quote]
any help would be great as I have no idea whats going on.