Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Tor (torbuntu)
@Torbuntu
I'm loading a logo.tmx which uses the LogoSprites.png
It seems to suddenly be adding the path twice o.O...
logo = new TiledMap(new FileHandle("./Data/Logo/Logo.tmx"));
Is this no longer the right way to load a tmx?
Tor (torbuntu)
@Torbuntu
Every build after 11 has this issue (beta.11 works)
Thomas Cashman
@tomcashman
Can you send full stack trace?
Tor (torbuntu)
@Torbuntu
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: ./Data/Logo/./Data/Logo/LogoSprites.png
    at com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:149)
    at org.mini2Dx.tiled.tileset.ImageTilesetSource.loadTexture(ImageTilesetSource.java:104)
    at org.mini2Dx.tiled.Tileset.loadTexture(Tileset.java:163)
    at org.mini2Dx.tiled.TiledMapData.loadTilesetTextures(TiledMapData.java:109)
    at org.mini2Dx.tiled.TiledMapData.loadTilesetTextures(TiledMapData.java:89)
    at org.mini2Dx.tiled.TiledMap.loadTilesetTextures(TiledMap.java:135)
    at org.mini2Dx.tiled.TiledMap.<init>(TiledMap.java:91)
    at org.mini2Dx.tiled.TiledMap.<init>(TiledMap.java:83)
    at org.mini2Dx.tiled.TiledMap.<init>(TiledMap.java:67)
    at org.mini2Dx.tiled.TiledMap.<init>(TiledMap.java:52)
    at leikr.screens.TitleScreen.<init>(TitleScreen.java:57)
    at leikr.GameRuntime.initialise(GameRuntime.java:62)
    at org.mini2Dx.core.game.GameContainer.start(GameContainer.java:101)
    at org.mini2Dx.core.game.GameWrapper.create(GameWrapper.java:50)
    at com.badlogic.gdx.backends.lwjgl.DesktopMini2DxGame.executeGame(DesktopMini2DxGame.java:142)
    at com.badlogic.gdx.backends.lwjgl.DesktopMini2DxGame$1.run(DesktopMini2DxGame.java:118)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: ./Data/Logo/./Data/Logo/LogoSprites.png (Absolute)
    at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:144)
    at com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:222)
    at com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:146)
    ... 15 more
Caused by: java.io.FileNotFoundException: ./Data/Logo/./Data/Logo/LogoSprites.png (No such file or directory)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
    at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:140)
    ... 17 more
Sorry I missed your message. I was out of town all day. Hopefully this can be of use.
(this was using 1.9.0-build.15)
Thomas Cashman
@tomcashman
@Torbuntu fixed in 1.9.0-beta.16 :)
Tor (torbuntu)
@Torbuntu
You are the best! I'll test it out tonight :D thank you for getting on that so quickly! Especially with how busy you are.
Tor (torbuntu)
@Torbuntu
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: ./Data/Logo/Data/Logo/LogoSprites.png
    at com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:149)
    at org.mini2Dx.tiled.tileset.ImageTilesetSource.loadTexture(ImageTilesetSource.java:104)
    at org.mini2Dx.tiled.Tileset.loadTexture(Tileset.java:163)
    at org.mini2Dx.tiled.TiledMapData.loadTilesetTextures(TiledMapData.java:109)
    at org.mini2Dx.tiled.TiledMapData.loadTilesetTextures(TiledMapData.java:89)
    at org.mini2Dx.tiled.TiledMap.loadTilesetTextures(TiledMap.java:135)
    at org.mini2Dx.tiled.TiledMap.<init>(TiledMap.java:91)
    at org.mini2Dx.tiled.TiledMap.<init>(TiledMap.java:83)
    at org.mini2Dx.tiled.TiledMap.<init>(TiledMap.java:67)
    at org.mini2Dx.tiled.TiledMap.<init>(TiledMap.java:52)
    at leikr.screens.TitleScreen.<init>(TitleScreen.java:57)
    at leikr.GameRuntime.initialise(GameRuntime.java:62)
    at org.mini2Dx.core.game.GameContainer.start(GameContainer.java:101)
    at org.mini2Dx.core.game.GameWrapper.create(GameWrapper.java:50)
    at com.badlogic.gdx.backends.lwjgl.DesktopMini2DxGame.executeGame(DesktopMini2DxGame.java:142)
    at com.badlogic.gdx.backends.lwjgl.DesktopMini2DxGame$1.run(DesktopMini2DxGame.java:118)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: ./Data/Logo/Data/Logo/LogoSprites.png (Absolute)
    at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:144)
    at com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:222)
    at com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:146)
    ... 15 more
Caused by: java.io.FileNotFoundException: ./Data/Logo/Data/Logo/LogoSprites.png (No such file or directory)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
    at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:140)
    ... 17 more
:X ... It is still happening...
I don't know why it is pre-pending the ./Data/Logo twice... I only have it in there once.
new TiledMap(new FileHandle("./Data/Logo/Logo.tmx"));
The tmx file uses the LogoSprites.png
Thomas Cashman
@tomcashman
Hmm I wonder is it because you’re using new FileHandle instead of Gdx.files I’ll need to check what the code is doing
Tor (torbuntu)
@Torbuntu
Just tried with Gdx.files (a few options there) and the same result with each of them.
it keeps doubling the prefix on resolving the png for the tmx.
Thomas Cashman
@tomcashman
@Torbuntu think I found the issue, can you test beta.17 ?
Tor (torbuntu)
@Torbuntu
It works!! :D awesome. Thanks much!
sorry took so long to test.
Thomas Cashman
@tomcashman
No problem sorry it took so long to get the fix correct XD I was changing path lookups to support tilesets and object templates being in different directories from the map files
Tor (torbuntu)
@Torbuntu
That's actually really cool :D is that to help with the modding support for using internal map assets for mods?
Thomas Cashman
@tomcashman
No we had a lot of object templates and wanted to manage them in a separate folder from the maps since there’s around 200 maps
Tor (torbuntu)
@Torbuntu
Wow! That's amazing.
Tor (torbuntu)
@Torbuntu
Where did the name Mini2DX come from?
Thomas Cashman
@tomcashman
Well originally it was a re-implementation of Slick2D using LibGDX so the 2DX came from combining those. Then I just liked the word mini to describe how light the framework is to use
Tor (torbuntu)
@Torbuntu
That's kind of what I always assumed :D I love it!
How's the monogame stuff coming? Or is that still on the backlog for a while?
Thomas Cashman
@tomcashman
Monogame ain’t going well. Turns out IKVM.NET won’t work as a transpiler that produces code compatible with consoles. So now I have to implement my own transpiler.
Tor (torbuntu)
@Torbuntu
😱 oh no...
Does Haxe have any sort of way to convert java source projects to a cross platform executable? I've only briefly been made aware of that the other day, but it promises some huge things.
Tor (torbuntu)
@Torbuntu
Oh I'm dumb. Haxe compiles to a target from haxe, no transpiling
Tor (torbuntu)
@Torbuntu
Is there any plan to make Mini2DX a modular project to take advantage of the java 9+ module system for smaller deployments?
Thomas Cashman
@tomcashman
No plan at the moment. Need to learn the module system still XD
Tor (torbuntu)
@Torbuntu
Haha gotcha 🤣 I keep putting it off myself but reading about it gets me kind of excited for the implications.
But you've got so much on your plate already 😣
I'm super hyped about Mini2DX 2 though. The extended platform support highly peaks my interest.
Thomas Cashman
@tomcashman
I’ve so much work to do 😥
Tor (torbuntu)
@Torbuntu
You're still the only one working on this? (And alchemic cutie code besides)?
Thomas Cashman
@tomcashman
Yup. Though applied for a bank loan to get extra money to hire interns. Hopefully it gets approved
Tor (torbuntu)
@Torbuntu
Interns for the game or for Mini2DX?
Thomas Cashman
@tomcashman
Probably for the game so that I can focus on the Nintendo Switch port.
Since engine is mostly done
Tor (torbuntu)
@Torbuntu
That makes sense! I probably already asked but is the custom switch port stuff going to be in the main Mini2DX code too? So future users of Mini2DX could potentially also build for consoles?
Thomas Cashman
@tomcashman
Some of it will but the rest will be in a private repo due to NDAs
Tor (torbuntu)
@Torbuntu
That's right, I remember that now 😀
Thomas Cashman
@tomcashman
But I’m hoping to speak to Nintendo after launch to automatically grant access to Nintendo developers
Basically same set up as monogame
Tor (torbuntu)
@Torbuntu
That would be amazing.