Describe the bug
When i say fxgl config manager i refer to a resource, if i want to use a resource, tmx, image or whatever, fxgl cannot find it even though i am using the correct name or path)
Screenshots
-- without using "/" at the start
-- using "/" at the start
-- example you gave
method you are using to load tmx files:
with "tmx/" at the start, since the tmx file is in a directory named "tmx"
without "tmx/" at the start, since FXGL#setLevelFromMap requires just the name of the asset
Moving the tmx file in the directory named "levels", as I saw in a video made by you that you did this
Runtime info(please complete the following information):
"C:\Program Files\Java\jdk-20\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2023.1.1\lib\idea_rt.jar=58156:C:\Program Files\JetBrains\IntelliJ IDEA 2023.1.1\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath C:\Users\alexi.m2\repository\org\openjfx\javafx-controls\20.0.1\javafx-controls-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-graphics\20.0.1\javafx-graphics-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-base\20.0.1\javafx-base-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-fxml\20.0.1\javafx-fxml-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-web\20.0.1\javafx-web-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-swing\20.0.1\javafx-swing-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-swing\20.0.1\javafx-swing-20.0.1-win.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-media\20.0.1\javafx-media-20.0.1.jar;C:\Users\alexi.m2\repository\org\jetbrains\kotlin\kotlin-stdlib-common\1.8.10\kotlin-stdlib-common-1.8.10.jar;C:\Users\alexi.m2\repository\org\jetbrains\annotations\13.0\annotations-13.0.jar -p "C:\Users\alexi.m2\repository\org\openjfx\javafx-fxml\20.0.1\javafx-fxml-20.0.1-win.jar;C:\Users\alexi.m2\repository\org\controlsfx\controlsfx\11.1.2\controlsfx-11.1.2.jar;C:\Users\alexi.m2\repository\org\kordamp\ikonli\ikonli-javafx\12.3.1\ikonli-javafx-12.3.1.jar;C:\Users\alexi.m2\repository\org\jetbrains\kotlin\kotlin-stdlib\1.8.10\kotlin-stdlib-1.8.10.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl-core\17.3\fxgl-core-17.3.jar;C:\Users\alexi.m2\repository\com\gluonhq\attach\lifecycle\4.0.17\lifecycle-4.0.17.jar;C:\Users\alexi\IdeaProjects\Legends of Lumania\target\classes;C:\Users\alexi.m2\repository\org\openjfx\javafx-web\20.0.1\javafx-web-20.0.1-win.jar;C:\Users\alexi.m2\repository\com\fasterxml\jackson\core\jackson-core\2.14.2\jackson-core-2.14.2.jar;C:\Users\alexi.m2\repository\com\gluonhq\attach\util\4.0.17\util-4.0.17.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-media\20.0.1\javafx-media-20.0.1-win.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl-io\17.3\fxgl-io-17.3.jar;C:\Users\alexi.m2\repository\eu\hansolo\tilesfx\11.48\tilesfx-11.48.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-base\20.0.1\javafx-base-20.0.1-win.jar;C:\Users\alexi.m2\repository\org\kordamp\bootstrapfx\bootstrapfx-core\0.4.0\bootstrapfx-core-0.4.0.jar;C:\Users\alexi.m2\repository\com\gluonhq\attach\storage\4.0.17\storage-4.0.17.jar;C:\Users\alexi.m2\repository\net\synedra\validatorfx\0.4.0\validatorfx-0.4.0.jar;C:\Users\alexi.m2\repository\org\kordamp\ikonli\ikonli-core\12.3.1\ikonli-core-12.3.1.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl-scene\17.3\fxgl-scene-17.3.jar;C:\Users\alexi.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.14.2\jackson-databind-2.14.2.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl-gameplay\17.3\fxgl-gameplay-17.3.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-controls\20.0.1\javafx-controls-20.0.1-win.jar;C:\Users\alexi.m2\repository\com\gluonhq\attach\audio\4.0.17\audio-4.0.17.jar;C:\Users\alexi.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.14.2\jackson-annotations-2.14.2.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-graphics\20.0.1\javafx-graphics-20.0.1-win.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl-entity\17.3\fxgl-entity-17.3.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl\17.3\fxgl-17.3.jar" -m com.coco.legendsoflumania/com.coco.legendsoflumania.Main
18:14:42.749 [JavaFX Application Thread] INFO Engine - FXGL-17.3 (30.03.2023 11.49) on WINDOWS (J:20 FX:20.0.1)
18:14:42.750 [JavaFX Application Thread] INFO Engine - Source code and latest versions at: https://github.com/AlmasB/FXGL
18:14:42.750 [JavaFX Application Thread] INFO Engine - Ask questions and discuss at: https://github.com/AlmasB/FXGL/discussions
18:14:42.751 [JavaFX Application Thread] INFO Engine - Join the FXGL chat at: https://gitter.im/AlmasB/FXGL
18:14:43.390 [FXGL Background Thread 1 ] INFO FXGLApplication - FXGL initialization took: 0.399 sec
18:14:43.967 [FXGL Background Thread 2 ] INFO UpdaterService - Your current version: 17.3
18:14:43.968 [FXGL Background Thread 2 ] INFO UpdaterService - Latest stable version: 21.1
18:14:44.465 [FXGL Background Thread 2 ] WARN FXGLAssetLoaderServi - Asset "/assets/levels/main-map-2.tmx" was not found!
18:14:44.474 [JavaFX Application Thread] FATAL FXGLApplication - Uncaught Exception:
java.lang.RuntimeException: Initialization failed
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.failed(FXGLApplication.kt:343)
at javafx.graphics@20.0.1/javafx.concurrent.Task.setState(Task.java:710)
at javafx.graphics@20.0.1/javafx.concurrent.Task$TaskCallable.lambda$call$2(Task.java:1456)
at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
at javafx.graphics@20.0.1/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at javafx.graphics@20.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics@20.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185)
at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.IllegalArgumentException: Loading level failed. Asset not found: main-map-2.tmx
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.services.FXGLAssetLoaderService.loadLevel(FXGLAssetLoaderService.kt:427)
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.dsl.FXGL$Companion.setLevelFromMap(FXGL.kt:634)
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.dsl.FXGL.setLevelFromMap(FXGL.kt)
at com.coco.legendsoflumania/com.coco.legendsoflumania.Main.loadMap(Main.java:89)
at com.coco.legendsoflumania/com.coco.legendsoflumania.Main.initGame(Main.java:51)
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.initGame(FXGLApplication.kt:339)
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.call(FXGLApplication.kt:319)
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.call(FXGLApplication.kt:311)
at javafx.graphics@20.0.1/javafx.concurrent.Task$TaskCallable.call(Task.java:1426)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
... 1 more
Attach log associated with the bug (can be found in "logs/")
18:09:55.260 [main ] DEBUG Logger - Configured Logger
18:09:55.287 [main ] DEBUG GameApplication - Logging settings
Title: Legends of Lumania
Version: 0.0.1
Width: 800
Height: 600
Fullscreen: false
Intro: false
Profiling: false
Single step:false
App Mode: DEVELOPER
Menu Key: ESCAPE
Stage Style: DECORATED
Scene Factory: class com.coco.legendsoflumania.Main$1
18:09:55.773 [JavaFX Application Thread] DEBUG FXGLApplication - Initializing FXGL
18:09:55.777 [JavaFX Application Thread] INFO Engine - FXGL-17.3 (30.03.2023 11.49) on WINDOWS (J:20 FX:20.0.1)
18:09:55.777 [JavaFX Application Thread] DEBUG Engine - JRE Vendor Name: Oracle Corporation
18:09:55.777 [JavaFX Application Thread] DEBUG Engine - Running on OS: Windows 11 version 10.0
18:09:55.777 [JavaFX Application Thread] DEBUG Engine - Architecture: amd64
18:09:55.777 [JavaFX Application Thread] INFO Engine - Source code and latest versions at: https://github.com/AlmasB/FXGL
18:09:55.777 [JavaFX Application Thread] INFO Engine - Ask questions and discuss at: https://github.com/AlmasB/FXGL/discussions
18:09:55.778 [JavaFX Application Thread] INFO Engine - Join the FXGL chat at: https://gitter.im/AlmasB/FXGL
18:09:55.869 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Creating a JavaFX scene
18:09:55.896 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Target settings size: 800.0 x 600.0
18:09:55.896 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Scaled scene size: 800.0 x 600.0
18:09:55.896 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Scaled ratio: (1.0, 1.0)
18:09:55.897 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Set initial scene to Startup
18:09:55.899 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Opening main window
18:09:55.994 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Window border size: (14.4000244140625, 37.5999755859375)
18:09:55.994 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Scaled size: 800.0 x 600.0
18:09:55.995 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Scaled ratio: (1.0, 1.0)
18:09:55.995 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Scene size: 800.0 x 600.0
18:09:55.995 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Stage size: 814.4000244140625 x 637.5999755859375
18:09:56.001 [FXGL Background Thread 1 ] DEBUG Engine - Initializing environment variables
18:09:56.044 [FXGL Background Thread 1 ] DEBUG FXGLAssetLoaderServi - User app class for loading assets: class com.coco.legendsoflumania.Main
18:09:56.044 [FXGL Background Thread 1 ] DEBUG GameApplicationServi - Applying CSS: fxgl_dark.css
18:09:56.045 [FXGL Background Thread 1 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/ui/css/fxgl_dark.css
18:09:56.083 [FXGL Background Thread 1 ] DEBUG GameApplicationServi - Initializing application scenes
18:09:56.092 [FXGL Background Thread 1 ] DEBUG GameWorld - Game world initialized
18:09:56.159 [FXGL Background Thread 1 ] DEBUG PhysicsWorld - Physics world initialized: appHeight=600, physics.ppm=50.0
18:09:56.159 [FXGL Background Thread 1 ] DEBUG PhysicsWorld - Using strategy: BRUTE_FORCE
18:09:56.164 [FXGL Background Thread 1 ] DEBUG GameScene - Game scene initialized: 800x600
18:09:56.175 [FXGL Background Thread 1 ] DEBUG FXGL.DefaultMenu - createMenuBodyMainMenu()
18:09:56.188 [FXGL Background Thread 1 ] DEBUG FXGL.DefaultMenu - createOptionsMenu()
18:09:56.204 [FXGL Background Thread 1 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/textures/particles/smoke.png
18:09:56.290 [FXGL Background Thread 1 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/textures/particles/trace_horizontal.png
18:09:56.315 [FXGL Background Thread 1 ] DEBUG FXGL.DefaultMenu - createMenuBodyGameMenu()
18:09:56.316 [FXGL Background Thread 1 ] DEBUG FXGL.DefaultMenu - createOptionsMenu()
18:09:56.330 [FXGL Background Thread 1 ] DEBUG GameApplicationServi - Application scenes initialized
18:09:56.339 [FXGL Background Thread 1 ] DEBUG SystemBundleService - Loading FXGL system data
18:09:56.343 [FXGL Background Thread 1 ] DEBUG FileSystemAccess - Reading from: C:\Users\alexi\IdeaProjects\Legends of Lumania\system\fxgl.bundle
18:09:56.351 [FXGL Background Thread 1 ] DEBUG SystemBundleService - Bundle FXGL: {}
18:09:56.351 [FXGL Background Thread 1 ] DEBUG UpdaterService - Checking for updates
18:09:56.354 [FXGL Background Thread 4 ] DEBUG FXGLApplication - Loading fonts
18:09:56.355 [FXGL Background Thread 1 ] DEBUG FXGLApplication - Loading default localization
18:09:56.355 [FXGL Background Thread 4 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/ui/fonts/VarelaRound-Regular.ttf
18:09:56.355 [FXGL Background Thread 1 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/languages/english.lang
18:09:56.383 [FXGL Background Thread 1 ] INFO FXGLApplication - FXGL initialization took: 0.382 sec
18:09:56.384 [JavaFX Application Thread] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/textures/fxgl_icon.png
18:09:56.414 [JavaFX Application Thread] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/textures/fxgl_default_cursor.png
18:09:56.416 [FXGL Background Thread 4 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/ui/fonts/Abel-Regular.ttf
18:09:56.420 [FXGL Background Thread 4 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/ui/fonts/TerminalLandMono-Regular.otf
18:09:56.426 [FXGL Background Thread 4 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/ui/fonts/Courier-Prime.ttf
18:09:56.434 [JavaFX Application Thread] DEBUG Input - Registered new binding: Screenshot - CTRL+8
18:09:56.435 [JavaFX Application Thread] DEBUG Input - Registered new binding: System info dump - CTRL+9
18:09:56.436 [JavaFX Application Thread] DEBUG Input - Registered new binding: Restart - CTRL+R
18:09:56.438 [JavaFX Application Thread] DEBUG Input - Registered new binding: Toggle Debug Camera - CTRL+7
18:09:56.443 [JavaFX Application Thread] DEBUG LoopRunner - Starting loop
18:09:56.443 [JavaFX Application Thread] DEBUG LoopRunner - Initializing JavaFX AnimationTimerLoop
18:09:56.447 [JavaFX Application Thread] DEBUG Input - Clearing active input actions
18:09:56.454 [JavaFX Application Thread] DEBUG GameApplicationServi - Removing overlay from Startup and adding to FXGLMainMenuDummyScene
18:09:56.454 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Startup -> FXGLMainMenuDummyScene
18:09:56.455 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Push state: FXGLDefaultMenu
18:09:56.470 [JavaFX Application Thread] DEBUG Input - Clearing active input actions
18:09:56.480 [JavaFX Application Thread] DEBUG GameApplicationServi - Removing overlay from FXGLMainMenuDummyScene and adding to FXGLDefaultMenu
18:09:56.481 [JavaFX Application Thread] DEBUG PrimaryStageWindow - FXGLMainMenuDummyScene -> FXGLDefaultMenu
18:09:56.481 [JavaFX Application Thread] DEBUG FXGLApplication - Registering font factories with UI factory
18:09:56.944 [FXGL Background Thread 2 ] INFO UpdaterService - Your current version: 17.3
18:09:56.945 [FXGL Background Thread 2 ] INFO UpdaterService - Latest stable version: 21.1
18:09:57.122 [JavaFX Application Thread] DEBUG Menu - fireNewGame()
18:09:57.122 [JavaFX Application Thread] DEBUG GameApplicationServi - Starting new game
18:09:57.124 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Pop state: FXGLDefaultMenu
18:09:57.124 [JavaFX Application Thread] DEBUG Input - Clearing active input actions
18:09:57.125 [JavaFX Application Thread] DEBUG GameApplicationServi - Removing overlay from FXGLDefaultMenu and adding to FXGLMainMenuDummyScene
18:09:57.126 [JavaFX Application Thread] DEBUG PrimaryStageWindow - FXGLMainMenuDummyScene <- FXGLDefaultMenu
18:09:57.126 [JavaFX Application Thread] DEBUG Input - Clearing active input actions
18:09:57.132 [JavaFX Application Thread] DEBUG GameApplicationServi - Removing overlay from FXGLMainMenuDummyScene and adding to FXGLLoadingScene
18:09:57.132 [JavaFX Application Thread] DEBUG PrimaryStageWindow - FXGLMainMenuDummyScene -> FXGLLoadingScene
18:09:57.132 [JavaFX Application Thread] DEBUG GameApplicationServi - Clearing previous game
18:09:57.132 [JavaFX Application Thread] DEBUG GameScene - Clearing game scene
18:09:57.132 [JavaFX Application Thread] DEBUG GameWorld - Clearing game world
18:09:57.132 [JavaFX Application Thread] DEBUG PhysicsWorld - Clearing physics world
18:09:57.136 [FXGL Background Thread 2 ] DEBUG FXGLApplication - Initializing game
18:09:57.154 [FXGL Background Thread 2 ] DEBUG Input - Registered new binding: action0 - D
18:09:57.155 [FXGL Background Thread 2 ] DEBUG Input - Registered new binding: action1 - A
18:09:57.156 [FXGL Background Thread 2 ] DEBUG Input - Registered new binding: action2 - W
18:09:57.156 [FXGL Background Thread 2 ] DEBUG Input - Registered new binding: action3 - S
18:09:57.160 [FXGL Background Thread 2 ] WARN FXGLAssetLoaderServi - Asset "/assets/levels/main-map-2.tmx" was not found!
18:09:57.165 [JavaFX Application Thread] DEBUG LoopRunner - Stopping loop
18:09:57.167 [JavaFX Application Thread] FATAL FXGLApplication - Uncaught Exception:
java.lang.RuntimeException: Initialization failed
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.failed(FXGLApplication.kt:343)
at javafx.graphics@20.0.1/javafx.concurrent.Task.setState(Task.java:710)
at javafx.graphics@20.0.1/javafx.concurrent.Task$TaskCallable.lambda$call$2(Task.java:1456)
at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
at javafx.graphics@20.0.1/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at javafx.graphics@20.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics@20.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185)
at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.IllegalArgumentException: Loading level failed. Asset not found: main-map-2.tmx
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.services.FXGLAssetLoaderService.loadLevel(FXGLAssetLoaderService.kt:427)
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.dsl.FXGL$Companion.setLevelFromMap(FXGL.kt:634)
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.dsl.FXGL.setLevelFromMap(FXGL.kt)
at com.coco.legendsoflumania/com.coco.legendsoflumania.Main.loadMap(Main.java:89)
at com.coco.legendsoflumania/com.coco.legendsoflumania.Main.initGame(Main.java:51)
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.initGame(FXGLApplication.kt:339)
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.call(FXGLApplication.kt:319)
at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.call(FXGLApplication.kt:311)
at javafx.graphics@20.0.1/javafx.concurrent.Task$TaskCallable.call(Task.java:1426)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
... 1 more
Describe the bug When i say fxgl config manager i refer to a resource, if i want to use a resource, tmx, image or whatever, fxgl cannot find it even though i am using the correct name or path)
Screenshots -- without using "/" at the start -- using "/" at the start
-- example you gave
method you are using to load tmx files: with "tmx/" at the start, since the tmx file is in a directory named "tmx"
without "tmx/" at the start, since FXGL#setLevelFromMap requires just the name of the asset
Moving the tmx file in the directory named "levels", as I saw in a video made by you that you did this
Runtime info(please complete the following information): "C:\Program Files\Java\jdk-20\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2023.1.1\lib\idea_rt.jar=58156:C:\Program Files\JetBrains\IntelliJ IDEA 2023.1.1\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath C:\Users\alexi.m2\repository\org\openjfx\javafx-controls\20.0.1\javafx-controls-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-graphics\20.0.1\javafx-graphics-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-base\20.0.1\javafx-base-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-fxml\20.0.1\javafx-fxml-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-web\20.0.1\javafx-web-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-swing\20.0.1\javafx-swing-20.0.1.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-swing\20.0.1\javafx-swing-20.0.1-win.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-media\20.0.1\javafx-media-20.0.1.jar;C:\Users\alexi.m2\repository\org\jetbrains\kotlin\kotlin-stdlib-common\1.8.10\kotlin-stdlib-common-1.8.10.jar;C:\Users\alexi.m2\repository\org\jetbrains\annotations\13.0\annotations-13.0.jar -p "C:\Users\alexi.m2\repository\org\openjfx\javafx-fxml\20.0.1\javafx-fxml-20.0.1-win.jar;C:\Users\alexi.m2\repository\org\controlsfx\controlsfx\11.1.2\controlsfx-11.1.2.jar;C:\Users\alexi.m2\repository\org\kordamp\ikonli\ikonli-javafx\12.3.1\ikonli-javafx-12.3.1.jar;C:\Users\alexi.m2\repository\org\jetbrains\kotlin\kotlin-stdlib\1.8.10\kotlin-stdlib-1.8.10.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl-core\17.3\fxgl-core-17.3.jar;C:\Users\alexi.m2\repository\com\gluonhq\attach\lifecycle\4.0.17\lifecycle-4.0.17.jar;C:\Users\alexi\IdeaProjects\Legends of Lumania\target\classes;C:\Users\alexi.m2\repository\org\openjfx\javafx-web\20.0.1\javafx-web-20.0.1-win.jar;C:\Users\alexi.m2\repository\com\fasterxml\jackson\core\jackson-core\2.14.2\jackson-core-2.14.2.jar;C:\Users\alexi.m2\repository\com\gluonhq\attach\util\4.0.17\util-4.0.17.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-media\20.0.1\javafx-media-20.0.1-win.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl-io\17.3\fxgl-io-17.3.jar;C:\Users\alexi.m2\repository\eu\hansolo\tilesfx\11.48\tilesfx-11.48.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-base\20.0.1\javafx-base-20.0.1-win.jar;C:\Users\alexi.m2\repository\org\kordamp\bootstrapfx\bootstrapfx-core\0.4.0\bootstrapfx-core-0.4.0.jar;C:\Users\alexi.m2\repository\com\gluonhq\attach\storage\4.0.17\storage-4.0.17.jar;C:\Users\alexi.m2\repository\net\synedra\validatorfx\0.4.0\validatorfx-0.4.0.jar;C:\Users\alexi.m2\repository\org\kordamp\ikonli\ikonli-core\12.3.1\ikonli-core-12.3.1.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl-scene\17.3\fxgl-scene-17.3.jar;C:\Users\alexi.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.14.2\jackson-databind-2.14.2.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl-gameplay\17.3\fxgl-gameplay-17.3.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-controls\20.0.1\javafx-controls-20.0.1-win.jar;C:\Users\alexi.m2\repository\com\gluonhq\attach\audio\4.0.17\audio-4.0.17.jar;C:\Users\alexi.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.14.2\jackson-annotations-2.14.2.jar;C:\Users\alexi.m2\repository\org\openjfx\javafx-graphics\20.0.1\javafx-graphics-20.0.1-win.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl-entity\17.3\fxgl-entity-17.3.jar;C:\Users\alexi.m2\repository\com\github\almasb\fxgl\17.3\fxgl-17.3.jar" -m com.coco.legendsoflumania/com.coco.legendsoflumania.Main 18:14:42.749 [JavaFX Application Thread] INFO Engine - FXGL-17.3 (30.03.2023 11.49) on WINDOWS (J:20 FX:20.0.1) 18:14:42.750 [JavaFX Application Thread] INFO Engine - Source code and latest versions at: https://github.com/AlmasB/FXGL 18:14:42.750 [JavaFX Application Thread] INFO Engine - Ask questions and discuss at: https://github.com/AlmasB/FXGL/discussions 18:14:42.751 [JavaFX Application Thread] INFO Engine - Join the FXGL chat at: https://gitter.im/AlmasB/FXGL 18:14:43.390 [FXGL Background Thread 1 ] INFO FXGLApplication - FXGL initialization took: 0.399 sec 18:14:43.967 [FXGL Background Thread 2 ] INFO UpdaterService - Your current version: 17.3 18:14:43.968 [FXGL Background Thread 2 ] INFO UpdaterService - Latest stable version: 21.1 18:14:44.465 [FXGL Background Thread 2 ] WARN FXGLAssetLoaderServi - Asset "/assets/levels/main-map-2.tmx" was not found! 18:14:44.474 [JavaFX Application Thread] FATAL FXGLApplication - Uncaught Exception: java.lang.RuntimeException: Initialization failed at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.failed(FXGLApplication.kt:343) at javafx.graphics@20.0.1/javafx.concurrent.Task.setState(Task.java:710) at javafx.graphics@20.0.1/javafx.concurrent.Task$TaskCallable.lambda$call$2(Task.java:1456) at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456) at java.base/java.security.AccessController.doPrivileged(AccessController.java:400) at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455) at javafx.graphics@20.0.1/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at javafx.graphics@20.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics@20.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185) at java.base/java.lang.Thread.run(Thread.java:1623) Caused by: java.lang.IllegalArgumentException: Loading level failed. Asset not found: main-map-2.tmx at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.services.FXGLAssetLoaderService.loadLevel(FXGLAssetLoaderService.kt:427) at com.almasb.fxgl.all@17.3/com.almasb.fxgl.dsl.FXGL$Companion.setLevelFromMap(FXGL.kt:634) at com.almasb.fxgl.all@17.3/com.almasb.fxgl.dsl.FXGL.setLevelFromMap(FXGL.kt) at com.coco.legendsoflumania/com.coco.legendsoflumania.Main.loadMap(Main.java:89) at com.coco.legendsoflumania/com.coco.legendsoflumania.Main.initGame(Main.java:51) at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.initGame(FXGLApplication.kt:339) at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.call(FXGLApplication.kt:319) at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.call(FXGLApplication.kt:311) at javafx.graphics@20.0.1/javafx.concurrent.Task$TaskCallable.call(Task.java:1426) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ... 1 more
Attach log associated with the bug (can be found in "logs/") 18:09:55.260 [main ] DEBUG Logger - Configured Logger 18:09:55.287 [main ] DEBUG GameApplication - Logging settings Title: Legends of Lumania Version: 0.0.1 Width: 800 Height: 600 Fullscreen: false Intro: false Profiling: false Single step:false App Mode: DEVELOPER Menu Key: ESCAPE Stage Style: DECORATED Scene Factory: class com.coco.legendsoflumania.Main$1
18:09:55.773 [JavaFX Application Thread] DEBUG FXGLApplication - Initializing FXGL 18:09:55.777 [JavaFX Application Thread] INFO Engine - FXGL-17.3 (30.03.2023 11.49) on WINDOWS (J:20 FX:20.0.1) 18:09:55.777 [JavaFX Application Thread] DEBUG Engine - JRE Vendor Name: Oracle Corporation 18:09:55.777 [JavaFX Application Thread] DEBUG Engine - Running on OS: Windows 11 version 10.0 18:09:55.777 [JavaFX Application Thread] DEBUG Engine - Architecture: amd64 18:09:55.777 [JavaFX Application Thread] INFO Engine - Source code and latest versions at: https://github.com/AlmasB/FXGL 18:09:55.777 [JavaFX Application Thread] INFO Engine - Ask questions and discuss at: https://github.com/AlmasB/FXGL/discussions 18:09:55.778 [JavaFX Application Thread] INFO Engine - Join the FXGL chat at: https://gitter.im/AlmasB/FXGL 18:09:55.869 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Creating a JavaFX scene 18:09:55.896 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Target settings size: 800.0 x 600.0 18:09:55.896 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Scaled scene size: 800.0 x 600.0 18:09:55.896 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Scaled ratio: (1.0, 1.0) 18:09:55.897 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Set initial scene to Startup 18:09:55.899 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Opening main window 18:09:55.994 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Window border size: (14.4000244140625, 37.5999755859375) 18:09:55.994 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Scaled size: 800.0 x 600.0 18:09:55.995 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Scaled ratio: (1.0, 1.0) 18:09:55.995 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Scene size: 800.0 x 600.0 18:09:55.995 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Stage size: 814.4000244140625 x 637.5999755859375 18:09:56.001 [FXGL Background Thread 1 ] DEBUG Engine - Initializing environment variables 18:09:56.044 [FXGL Background Thread 1 ] DEBUG FXGLAssetLoaderServi - User app class for loading assets: class com.coco.legendsoflumania.Main 18:09:56.044 [FXGL Background Thread 1 ] DEBUG GameApplicationServi - Applying CSS: fxgl_dark.css 18:09:56.045 [FXGL Background Thread 1 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/ui/css/fxgl_dark.css 18:09:56.083 [FXGL Background Thread 1 ] DEBUG GameApplicationServi - Initializing application scenes 18:09:56.092 [FXGL Background Thread 1 ] DEBUG GameWorld - Game world initialized 18:09:56.159 [FXGL Background Thread 1 ] DEBUG PhysicsWorld - Physics world initialized: appHeight=600, physics.ppm=50.0 18:09:56.159 [FXGL Background Thread 1 ] DEBUG PhysicsWorld - Using strategy: BRUTE_FORCE 18:09:56.164 [FXGL Background Thread 1 ] DEBUG GameScene - Game scene initialized: 800x600 18:09:56.175 [FXGL Background Thread 1 ] DEBUG FXGL.DefaultMenu - createMenuBodyMainMenu() 18:09:56.188 [FXGL Background Thread 1 ] DEBUG FXGL.DefaultMenu - createOptionsMenu() 18:09:56.204 [FXGL Background Thread 1 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/textures/particles/smoke.png 18:09:56.290 [FXGL Background Thread 1 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/textures/particles/trace_horizontal.png 18:09:56.315 [FXGL Background Thread 1 ] DEBUG FXGL.DefaultMenu - createMenuBodyGameMenu() 18:09:56.316 [FXGL Background Thread 1 ] DEBUG FXGL.DefaultMenu - createOptionsMenu() 18:09:56.330 [FXGL Background Thread 1 ] DEBUG GameApplicationServi - Application scenes initialized 18:09:56.339 [FXGL Background Thread 1 ] DEBUG SystemBundleService - Loading FXGL system data 18:09:56.343 [FXGL Background Thread 1 ] DEBUG FileSystemAccess - Reading from: C:\Users\alexi\IdeaProjects\Legends of Lumania\system\fxgl.bundle 18:09:56.351 [FXGL Background Thread 1 ] DEBUG SystemBundleService - Bundle FXGL: {} 18:09:56.351 [FXGL Background Thread 1 ] DEBUG UpdaterService - Checking for updates 18:09:56.354 [FXGL Background Thread 4 ] DEBUG FXGLApplication - Loading fonts 18:09:56.355 [FXGL Background Thread 1 ] DEBUG FXGLApplication - Loading default localization 18:09:56.355 [FXGL Background Thread 4 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/ui/fonts/VarelaRound-Regular.ttf 18:09:56.355 [FXGL Background Thread 1 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/languages/english.lang 18:09:56.383 [FXGL Background Thread 1 ] INFO FXGLApplication - FXGL initialization took: 0.382 sec 18:09:56.384 [JavaFX Application Thread] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/textures/fxgl_icon.png 18:09:56.414 [JavaFX Application Thread] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/textures/fxgl_default_cursor.png 18:09:56.416 [FXGL Background Thread 4 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/ui/fonts/Abel-Regular.ttf 18:09:56.420 [FXGL Background Thread 4 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/ui/fonts/TerminalLandMono-Regular.otf 18:09:56.426 [FXGL Background Thread 4 ] DEBUG FXGLAssetLoaderServi - Loading from file system: jar:file:///C:/Users/alexi/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar!/fxglassets/ui/fonts/Courier-Prime.ttf 18:09:56.434 [JavaFX Application Thread] DEBUG Input - Registered new binding: Screenshot - CTRL+8 18:09:56.435 [JavaFX Application Thread] DEBUG Input - Registered new binding: System info dump - CTRL+9 18:09:56.436 [JavaFX Application Thread] DEBUG Input - Registered new binding: Restart - CTRL+R 18:09:56.438 [JavaFX Application Thread] DEBUG Input - Registered new binding: Toggle Debug Camera - CTRL+7 18:09:56.443 [JavaFX Application Thread] DEBUG LoopRunner - Starting loop 18:09:56.443 [JavaFX Application Thread] DEBUG LoopRunner - Initializing JavaFX AnimationTimerLoop 18:09:56.447 [JavaFX Application Thread] DEBUG Input - Clearing active input actions 18:09:56.454 [JavaFX Application Thread] DEBUG GameApplicationServi - Removing overlay from Startup and adding to FXGLMainMenuDummyScene 18:09:56.454 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Startup -> FXGLMainMenuDummyScene 18:09:56.455 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Push state: FXGLDefaultMenu 18:09:56.470 [JavaFX Application Thread] DEBUG Input - Clearing active input actions 18:09:56.480 [JavaFX Application Thread] DEBUG GameApplicationServi - Removing overlay from FXGLMainMenuDummyScene and adding to FXGLDefaultMenu 18:09:56.481 [JavaFX Application Thread] DEBUG PrimaryStageWindow - FXGLMainMenuDummyScene -> FXGLDefaultMenu 18:09:56.481 [JavaFX Application Thread] DEBUG FXGLApplication - Registering font factories with UI factory 18:09:56.944 [FXGL Background Thread 2 ] INFO UpdaterService - Your current version: 17.3 18:09:56.945 [FXGL Background Thread 2 ] INFO UpdaterService - Latest stable version: 21.1 18:09:57.122 [JavaFX Application Thread] DEBUG Menu - fireNewGame() 18:09:57.122 [JavaFX Application Thread] DEBUG GameApplicationServi - Starting new game 18:09:57.124 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Pop state: FXGLDefaultMenu 18:09:57.124 [JavaFX Application Thread] DEBUG Input - Clearing active input actions 18:09:57.125 [JavaFX Application Thread] DEBUG GameApplicationServi - Removing overlay from FXGLDefaultMenu and adding to FXGLMainMenuDummyScene 18:09:57.126 [JavaFX Application Thread] DEBUG PrimaryStageWindow - FXGLMainMenuDummyScene <- FXGLDefaultMenu 18:09:57.126 [JavaFX Application Thread] DEBUG Input - Clearing active input actions 18:09:57.132 [JavaFX Application Thread] DEBUG GameApplicationServi - Removing overlay from FXGLMainMenuDummyScene and adding to FXGLLoadingScene 18:09:57.132 [JavaFX Application Thread] DEBUG PrimaryStageWindow - FXGLMainMenuDummyScene -> FXGLLoadingScene 18:09:57.132 [JavaFX Application Thread] DEBUG GameApplicationServi - Clearing previous game 18:09:57.132 [JavaFX Application Thread] DEBUG GameScene - Clearing game scene 18:09:57.132 [JavaFX Application Thread] DEBUG GameWorld - Clearing game world 18:09:57.132 [JavaFX Application Thread] DEBUG PhysicsWorld - Clearing physics world 18:09:57.136 [FXGL Background Thread 2 ] DEBUG FXGLApplication - Initializing game 18:09:57.154 [FXGL Background Thread 2 ] DEBUG Input - Registered new binding: action0 - D 18:09:57.155 [FXGL Background Thread 2 ] DEBUG Input - Registered new binding: action1 - A 18:09:57.156 [FXGL Background Thread 2 ] DEBUG Input - Registered new binding: action2 - W 18:09:57.156 [FXGL Background Thread 2 ] DEBUG Input - Registered new binding: action3 - S 18:09:57.160 [FXGL Background Thread 2 ] WARN FXGLAssetLoaderServi - Asset "/assets/levels/main-map-2.tmx" was not found! 18:09:57.165 [JavaFX Application Thread] DEBUG LoopRunner - Stopping loop 18:09:57.167 [JavaFX Application Thread] FATAL FXGLApplication - Uncaught Exception: java.lang.RuntimeException: Initialization failed at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.failed(FXGLApplication.kt:343) at javafx.graphics@20.0.1/javafx.concurrent.Task.setState(Task.java:710) at javafx.graphics@20.0.1/javafx.concurrent.Task$TaskCallable.lambda$call$2(Task.java:1456) at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456) at java.base/java.security.AccessController.doPrivileged(AccessController.java:400) at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455) at javafx.graphics@20.0.1/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at javafx.graphics@20.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics@20.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185) at java.base/java.lang.Thread.run(Thread.java:1623) Caused by: java.lang.IllegalArgumentException: Loading level failed. Asset not found: main-map-2.tmx at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.services.FXGLAssetLoaderService.loadLevel(FXGLAssetLoaderService.kt:427) at com.almasb.fxgl.all@17.3/com.almasb.fxgl.dsl.FXGL$Companion.setLevelFromMap(FXGL.kt:634) at com.almasb.fxgl.all@17.3/com.almasb.fxgl.dsl.FXGL.setLevelFromMap(FXGL.kt) at com.coco.legendsoflumania/com.coco.legendsoflumania.Main.loadMap(Main.java:89) at com.coco.legendsoflumania/com.coco.legendsoflumania.Main.initGame(Main.java:51) at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.initGame(FXGLApplication.kt:339) at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.call(FXGLApplication.kt:319) at com.almasb.fxgl.all@17.3/com.almasb.fxgl.app.FXGLApplication$InitAppTask.call(FXGLApplication.kt:311) at javafx.graphics@20.0.1/javafx.concurrent.Task$TaskCallable.call(Task.java:1426) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ... 1 more
18:09:57.167 [JavaFX Application Thread] FATAL FXGLApplication - Application will now exit 18:09:57.181 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Push state: ErrorSubScene 18:09:57.181 [JavaFX Application Thread] DEBUG Input - Clearing active input actions 18:09:57.183 [JavaFX Application Thread] DEBUG GameApplicationServi - Removing overlay from FXGLLoadingScene and adding to ErrorSubScene 18:09:57.183 [JavaFX Application Thread] DEBUG PrimaryStageWindow - FXGLLoadingScene -> ErrorSubScene 18:09:59.320 [JavaFX Application Thread] DEBUG FXGLApplication - Exiting FXGL 18:09:59.320 [JavaFX Application Thread] DEBUG Async - Shutting down background threads 18:09:59.320 [JavaFX Application Thread] DEBUG PrimaryStageWindow - Closing main window 18:09:59.334 [JavaFX Application Thread] DEBUG Logger - Closing Logger