Closed not-navyblue closed 3 years ago
Friggin' nasty to repro. I dug out a medieval Java 8 201 to even get console logging, the built-in eats all helpful output.
... still analyzing. Looks like an internal/external mismatch, but better look thoroughly.
This part looks interesting:
Caused by: java.io.FileNotFoundException: jsons\ManuallyBlockedMods.json (Le système ne trouve pas ce fichier)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:146)
Wrong slash symbol maybe? Can't debug myself now
No no it's using the FileHandle constructor which doesn't have access to assets - it even says "Creates a new absolute FileHandle for the file name. Use this for tools on the desktop that don't need any of the backends. Do not use this constructor in case you write something cross-platform. Use the Files interface instead."
Gdx.files.internal is obvious, just building on a win-vomit box and testing is a bummer.
Holy Monstrance! How can a so-called OS be that dumb. It asks for elevation when asked to replace a file with a lock on it... idiotic...
Anyway, test succesful. @ Everybody remember: use File() for stuff in DesktopLauncher, Gdx.files.* for everything else, never the FileHandle(String) constructor.
P.S.: Likely also affects Android, and likely could have been reproed also on a more comfortable box.
Platform Operating system type, major version, architecture (64/32 bit).
Version Where you got the game and the exact version number.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
If game data is required, please add it here. From the menu, choose save game (or map), copy to clipboard, and paste here between the backtick blocks (or, if no such save is required, you may delete this):
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.