java.lang.RuntimeException: Resource not found: data/maps/desert.tmx

Game Development | mbreen | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    How do I load tmx files with Slick2d?

    Game Development | 5 years ago | mbreen
    java.lang.RuntimeException: Resource not found: data/maps/desert.tmx

    Root Cause Analysis

    1. java.lang.RuntimeException

      Resource not found: data/maps/desert.tmx

      at org.newdawn.slick.util.ResourceLoader.getResourceAsStream()
    2. Slick2D game development library
      TiledMap.<init>
      1. org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:69)
      2. org.newdawn.slick.tiled.TiledMap.<init>(TiledMap.java:101)
      2 frames
    3. game
      Tunneler.initStatesList
      1. game.Game.init(Game.java:17)
      2. game.Tunneler.initStatesList(Tunneler.java:37)
      2 frames
    4. Slick2D game development library
      AppGameContainer.start
      1. org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:164)
      2. org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:390)
      3. org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
      3 frames
    5. game
      Tunneler.main
      1. game.Tunneler.main(Tunneler.java:29)
      1 frame