Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibGDX Spritebatch/Batch Refactor Issue #35

Closed
benpoulson opened this issue Dec 24, 2013 · 6 comments
Closed

LibGDX Spritebatch/Batch Refactor Issue #35

benpoulson opened this issue Dec 24, 2013 · 6 comments

Comments

@benpoulson
Copy link

First spotted this error whilst using the setup-ui. It would seem it pulls nightly libgdx images, as they seem to have had a large overhaul of Batch and Spritebatch since.

See libgdx/libgdx@2940fc6#diff-22 for changes.

This causes the following error when generating a new project via the setup-ui.

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError: com.badlogic.gdx.graphics.g2d.BitmapFontCache.draw(Lcom/badlogic/gdx/graphics/g2d/SpriteBatch;)V
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)
Caused by: java.lang.NoSuchMethodError: com.badlogic.gdx.graphics.g2d.BitmapFontCache.draw(Lcom/badlogic/gdx/graphics/g2d/SpriteBatch;)V
    at org.flixel.FlxText.draw(Unknown Source)
    at org.flixel.FlxGroup.draw(Unknown Source)
    at org.flixel.FlxGame.draw(Unknown Source)
    at org.flixel.FlxGame.onEnterFrame(Unknown Source)
    at org.flixel.FlxGame$11.onEvent(Unknown Source)
    at flash.events.EventDispatcher.dispatchEvent(Unknown Source)
    at org.flixel.system.gdx.GdxStage.render(Unknown Source)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:207)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114)
@WingEraser
Copy link
Member

You need to delete the libgdx libraries from the same location where the setup-ui is. Several users had the same issue.

Currently the Nightly Build of flixel-gdx is down, I don't know if still you can use the setup-ui.

@moly
Copy link
Contributor

moly commented Dec 24, 2013

Yes, it's a bug with the setup-ui not redownloading the latest libgdx zip. I'll fix it when I can.

@benpoulson
Copy link
Author

Weirdly I found the nightly LibGDX zip to cause the issue. The stable 0.9.9 seems to be working just fine.

@nanodeath
Copy link

I think this is still a problem -- I downloaded all the jars fresh today and I still get this.

@syl-00101001
Copy link
Member

It should be OK NOW, check again the latest nightly builds button, you should have files from 09-01-2014 in it.

@WingEraser
Copy link
Member

Confirmed to be working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants