StrongJoshua / libgdx-inGameConsole

A LibGdx library that allows a developer to add a console (similar to how it is featured in Source games) to their game.
https://www.strongjoshua.net/projects/games/libgdx-ingame-console
Apache License 2.0
132 stars 34 forks source link

Console not working with latest libgdx v1.9.4 #20

Closed bladecoder closed 8 years ago

bladecoder commented 8 years ago

Hi!

With the latest libgdx version (1.9.4) the console doesn't work.

The stacktrace:

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError: com.badlogic.gdx.scenes.scene2d.Stage.setKeyboardFocus(Lcom/badlogic/gdx/scenes/scene2d/Actor;)V
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:131)
Caused by: java.lang.NoSuchMethodError: com.badlogic.gdx.scenes.scene2d.Stage.setKeyboardFocus(Lcom/badlogic/gdx/scenes/scene2d/Actor;)V
    at com.strongjoshua.console.GUIConsole.<init>(GUIConsole.java:111)
    at com.strongjoshua.console.GUIConsole.<init>(GUIConsole.java:69)
    at com.strongjoshua.console.GUIConsole.<init>(GUIConsole.java:60)
    at com.bladecoder.engineeditor.Editor.create(Editor.java:151)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:147)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)
DenialAdams commented 8 years ago

Same issue. Regardless, thanks for the awesome project!

StrongJoshua commented 8 years ago

Shouldn't be a hard fix. I'll take a look at it when I'm free later today, or if you're free, one of you (or anyone reading this) can submit a pull request.

aitor3ml commented 8 years ago

Recompiling the project after upgrading pom.xml (gdx to 1.9.4) worked for me.

StrongJoshua commented 8 years ago

That's strange... It should download it's own 1.9.3 LibGdx jar since that's the listed dependency. Someone send a pull request if the general consensus is that that was the problem.

StrongJoshua commented 8 years ago

The readme is currently misleading, I apologize. I won't be able to deploy until tomorrow when I have access to my desktop with my signing secret key.

DenialAdams commented 8 years ago

Thanks for your work! Eager to pull this in an update :)

Also, I dunno if your profile is current, but I'm a sophomore CS major as well!

StrongJoshua commented 8 years ago

The fix has been deployed. The newest version is 0.5.1. Hope this resolves everyone's problems.