Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

290
Vistas
Libgdx HTML build only Asset Manager error

When I build my project with gradlew html:superDev and run the game in Chrome(I tried Edge too) with http://localhost:8080/ the asset manager raises the following exception when calling finishLoading()

GwtApplicationLogger.java:54 GwtApplication: exception: com.badlogic.gdx.utils.GdxRuntimeException: Could not submit AsyncTask: InflaterInputStream not supported in GWT

Exception in Chrome console

In my Game class:

public void create() {
System.out.println("start...");
Gdx.app.setLogLevel(LOG_DEBUG);
Gdx.app.log("Gdx version", "*************************");
Gdx.app.log("Gdx version", com.badlogic.gdx.Version.VERSION);
Gdx.app.log("Gdx version", "*************************");

assets = new AssetManager();
assets.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));
assets.load(mapPath, TiledMap.class);
assets.load(spritesPackPath, TextureAtlas.class);
assets.finishLoading();
.
.
.
}

The asset manager loads everything fine in my Desktop and Android build so I am puzzled.

My GdxDefinitionSuperdev.gwt.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit trunk//EN" "http://www.gwtproject.org/doctype/2.8.0/gwt-module.dtd">
<module rename-to="html">
    <inherits name='com.badlogic.gdx.backends.gdx_backends_gwt' />
    <inherits name='com.badlogic.gdx.physics.box2d.box2d-gwt' />
    <inherits name='com.badlogic.gdx.controllers' />
    <inherits name='com.badlogic.gdx.controllers.controllers-gwt' />
    <inherits name="com.google.gwt.logging.Logging"/>

    <inherits name='com.ram52.princess1.GdxDefinition' />
    
    <collapse-all-properties />
    
    <add-linker name="xsiframe"/>   
    <set-configuration-property name="devModeRedirectEnabled" value="true"/>
    <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/> 
</module>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The solution is to change the Tile Layer Format in the property of the .tmx file and remove zip compression. I used "Tiled" to edit the property.

enter image description here

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda