Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Tales of Androgyny

A game about birds, bees, flowers and trees. · By Majalis

Fatal error when trying to save

A topic by knyex created Oct 10, 2021 Views: 1,079 Replies: 5
Viewing posts 1 to 3

Whenever I try to save the game, it crashes, here's the text on the error.txt file:

com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;

at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:122)

at com.majalis.talesofandrogyny.desktop.DesktopLauncher.main(DesktopLauncher.java:39)

Caused by: java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;

at com.majalis.screens.AbstractScreen.getScreenshot(AbstractScreen.java:437)

at com.majalis.screens.AbstractScreen.takeScreenshot(AbstractScreen.java:417)

at com.majalis.screens.WorldMapScreen.save(WorldMapScreen.java:692)

at com.majalis.screens.WorldMapScreen.access$1200(WorldMapScreen.java:97)

at com.majalis.screens.WorldMapScreen$11.clicked(WorldMapScreen.java:552)

at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp(ClickListener.java:88)

at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.java:71)

at com.badlogic.gdx.scenes.scene2d.Stage.touchUp(Stage.java:355)

at com.badlogic.gdx.InputMultiplexer.touchUp(InputMultiplexer.java:124)

at com.badlogic.gdx.InputEventQueue.drain(InputEventQueue.java:70)

at com.badlogic.gdx.backends.lwjgl3.DefaultLwjgl3Input.update(DefaultLwjgl3Input.java:189)

at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:394)

at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:143)

at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:116)

... 1 more

any idea how to fix it?

Developer

Make sure to run the .exe, not the .jar. It runs with the appropriate Java version (11)

Well the thing is I was running the .jar because the .exe does not even launch, my system is in French so the error message might not be super useful to you, but this is what I get (censored my real name for obvious reasons):

Uhhh the image is not showing. It's an error message that doesn't let me copy/paste the text

Developer

Check the error.txt file, it'll be copy-pastable. I'd like to see it, since maybe I can fix a language bug. 

Until I do, though, if you get Java 11, you should be able to run the .jar.

(1 edit)

I believe this error is due to a missing / corrupted DirectX installation. Please try re-installing DirectX from this location; https://www.microsoft.com/en-us/Download/confirmation.aspx?id=35/My Balance Now

If this does not resolve the issue and allow you to play the game, you can also try this DirectX Dependency Fixer; https://obsproject.com/forum/resources/directx-dependency-fixer-dxfix.87/

If neither of these work for you, please let me know!

Regards,