Coder Social home page Coder Social logo

GWT is broken in version 1.7.0 about gdx-ai HOT 12 CLOSED

libgdx avatar libgdx commented on September 28, 2024
GWT is broken in version 1.7.0

from gdx-ai.

Comments (12)

davebaol avatar davebaol commented on September 28, 2024 1

Done!

from gdx-ai.

davebaol avatar davebaol commented on September 28, 2024

Ok, looks like there are a few issues on GWT:

  1. As @MobiDevelop said on the irc channel, we should add AbsoluteFileHandleResolver and LocalFileHandleResolver to the libgdx GWT module.
  2. Add missing FileHandle constructors to the libgdx GWT module.
  3. StringTokenizer.countTokens() is not supported by GWT. This must be fixed in gdx-ai, I guess

from gdx-ai.

davebaol avatar davebaol commented on September 28, 2024

Now items 1 and 2 should be fixed by this commit and this commit respectively

from gdx-ai.

davebaol avatar davebaol commented on September 28, 2024

Just realized that StringTokenizer is emulated by the libgdx gwt backend, see https://github.com/libgdx/libgdx/blob/master/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/util/StringTokenizer.java

We might simply update that class in order to support countTokens.

from gdx-ai.

AlexanderSopov avatar AlexanderSopov commented on September 28, 2024

Hi! I have this problem. How can I update my project to get your fixes?

from gdx-ai.

davebaol avatar davebaol commented on September 28, 2024

@AlexanderSopov
Update to gdx-1.8.0.
If you use gradle, just change the gdx-ai version in your build.gradle.

from gdx-ai.

AlexanderSopov avatar AlexanderSopov commented on September 28, 2024

@davebaol hi! I did do just that. In the build.gradle in the root folder of the project I changed the following thing:

allprojects{
[...]
ext{
appName = "SharpShooter"
gdxVersion = '1.8.0'
roboVMVersion = '1.12.0'
box2DLightsVersion = '1.4'
ashleyVersion = '1.7.0'
aiVersion = '1.8.0' * >>it was 1.7.0 before<<*
}
}

and I still get the same error. Did I miss something? :(

from gdx-ai.

davebaol avatar davebaol commented on September 28, 2024

Looks like you have not run gradle to refresh depencencies and rebuild your project.
You can do it either from inside your IDE or through command line.

from gdx-ai.

AlexanderSopov avatar AlexanderSopov commented on September 28, 2024

@davebaol actually I got it working by changing ai-version to 1.6 so I doubt that refreshing dependencies will help, but I will try. Thanks a lot! :)

from gdx-ai.

AlexanderSopov avatar AlexanderSopov commented on September 28, 2024

Yes, I did gradle build --refresh-dependencies and it did not help circumvent the issue. I still get an error with the exact error as the OP in this thread.

from gdx-ai.

davebaol avatar davebaol commented on September 28, 2024

Try using these versions

gdxVersion = '1.9.2'
aiVersion = '1.8.0'

I had to change StringTokenizer emulation in libgdx 1.9.0, see the commit linked in #59 (comment)

from gdx-ai.

AlexanderSopov avatar AlexanderSopov commented on September 28, 2024

@davebaol thanks man! That solved it! I had to make some changes to the htmlLauncher but that wasn't hard. 💃

from gdx-ai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.