java - LibGDX RuntimeException: Error parsing emitter: Untitled -


i libgdx beginner. code:

@override public void create() {     batch = new spritebatch();     bf = new bitmapfont();     particle = new particleeffect();     particle.load(gdx.files.internal("particle.p"), gdx.files.internal("particle.png")); } 

and getting below error:

java.lang.runtimeexception: error parsing emitter: untitled @ com.badlogic.gdx.graphics.g2d.particleemitter.load(particleemitter.java:970) @ com.badlogic.gdx.graphics.g2d.particleemitter.<init>(particleemitter.java:94) @ com.badlogic.gdx.graphics.g2d.particleeffect.newemitter(particleeffect.java:206) @ com.badlogic.gdx.graphics.g2d.particleeffect.loademitters(particleeffect.java:157) @ com.badlogic.gdx.graphics.g2d.particleeffect.load(particleeffect.java:137) @ com.mygdx.game.mygame.create(mygame.java:35) @ com.badlogic.gdx.backends.android.androidgraphics.onsurfacechanged(androidgraphics.java:275) @ android.opengl.glsurfaceview$glthread.guardedrun(glsurfaceview.java:1512) @ android.opengl.glsurfaceview$glthread.run(glsurfaceview.java:1240) caused by: java.lang.numberformatexception: invalid int: "false" @ java.lang.integer.invalidint(integer.java:137) @ java.lang.integer.parse(integer.java:374) @ java.lang.integer.parseint(integer.java:365) @ java.lang.integer.parseint(integer.java:331) @ com.badlogic.gdx.graphics.g2d.particleemitter.readint(particleemitter.java:993) @ com.badlogic.gdx.graphics.g2d.particleemitter$gradientcolorvalue.load(particleemitter.java:1332) @ com.badlogic.gdx.graphics.g2d.particleemitter.load(particleemitter.java:951) @ com.badlogic.gdx.graphics.g2d.particleemitter.<init>(particleemitter.java:94)  @ com.badlogic.gdx.graphics.g2d.particleeffect.newemitter(particleeffect.java:206)  @ com.badlogic.gdx.graphics.g2d.particleeffect.loademitters(particleeffect.java:157)  @ com.badlogic.gdx.graphics.g2d.particleeffect.load(particleeffect.java:137)  @ com.mygdx.game.mygame.create(mygame.java:35)  @ com.badlogic.gdx.backends.android.androidgraphics.onsurfacechanged(androidgraphics.java:275)  @ android.opengl.glsurfaceview$glthread.guardedrun(glsurfaceview.java:1512)  @ android.opengl.glsurfaceview$glthread.run(glsurfaceview.java:1240) 

the file "particle.p" content : untitled - delay - active: false - duration - lowmin: 3000.0 lowmax: 3000.0 - count - min: 0 max: 200 - emission - lowmin: 0.0 lowmax: 0.0 highmin: 250.0 highmax: 250.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - life - lowmin: 0.0 lowmax: 0.0 highmin: 500.0 highmax: 1000.0 relative: false scalingcount: 3 scaling0: 1.0 scaling1: 1.0 scaling2: 0.3 timelinecount: 3 timeline0: 0.0 timeline1: 0.66 timeline2: 1.0 - life offset - active: false - x offset - active: false - y offset - active: false - spawn shape - shape: point - spawn width - lowmin: 0.0 lowmax: 0.0 highmin: 0.0 highmax: 0.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - spawn height - lowmin: 0.0 lowmax: 0.0 highmin: 0.0 highmax: 0.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - x scale - lowmin: 0.0 lowmax: 0.0 highmin: 32.0 highmax: 32.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - y scale - active: false - velocity - active: true lowmin: 0.0 lowmax: 0.0 highmin: 30.0 highmax: 300.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - angle - active: true lowmin: 90.0 lowmax: 90.0 highmin: 45.0 highmax: 135.0 relative: false scalingcount: 3 scaling0: 1.0 scaling1: 0.0 scaling2: 0.0 timelinecount: 3 timeline0: 0.0 timeline1: 0.5 timeline2: 1.0 - rotation - active: false - wind - active: false - gravity - active: false - tint - colorscount: 3 colors0: 1.0 colors1: 0.12156863 colors2: 0.047058824 timelinecount: 1 timeline0: 0.0 - transparency - lowmin: 0.0 lowmax: 0.0 highmin: 1.0 highmax: 1.0 relative: false scalingcount: 4 scaling0: 0.0 scaling1: 1.0 scaling2: 0.75 scaling3: 0.0 timelinecount: 4 timeline0: 0.0 timeline1: 0.2 timeline2: 0.8 timeline3: 1.0 - options - attached: false continuous: false aligned: false additive: true behind: false premultipliedalpha: false - image path - particle.png

untitled - delay - active: false - duration - lowmin: 3000.0 lowmax: 3000.0 - count - min: 0 max: 200 - emission - lowmin: 0.0 lowmax: 0.0 highmin: 250.0 highmax: 250.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - life - lowmin: 0.0 lowmax: 0.0 highmin: 500.0 highmax: 1000.0 relative: false scalingcount: 3 scaling0: 1.0 scaling1: 1.0 scaling2: 0.3 timelinecount: 3 timeline0: 0.0 timeline1: 0.66 timeline2: 1.0 - life offset - active: false - x offset - active: false - y offset - active: false - spawn shape - shape: point - spawn width - lowmin: 0.0 lowmax: 0.0 highmin: 0.0 highmax: 0.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - spawn height - lowmin: 0.0 lowmax: 0.0 highmin: 0.0 highmax: 0.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - x scale - lowmin: 0.0 lowmax: 0.0 highmin: 32.0 highmax: 32.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - y scale - active: false - velocity - active: true lowmin: 0.0 lowmax: 0.0 highmin: 30.0 highmax: 300.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - angle - active: true lowmin: 90.0 lowmax: 90.0 highmin: 45.0 highmax: 135.0 relative: false scalingcount: 3 scaling0: 1.0 scaling1: 0.0 scaling2: 0.0 timelinecount: 3 timeline0: 0.0 timeline1: 0.5 timeline2: 1.0 - rotation - active: false - wind - active: false - gravity - active: false - tint - colorscount: 3 colors0: 1.0 colors1: 0.12156863 colors2: 0.047058824 timelinecount: 1 timeline0: 0.0 - transparency - lowmin: 0.0 lowmax: 0.0 highmin: 1.0 highmax: 1.0 relative: false scalingcount: 4 scaling0: 0.0 scaling1: 1.0 scaling2: 0.75 scaling3: 0.0 timelinecount: 4 timeline0: 0.0 timeline1: 0.2 timeline2: 0.8 timeline3: 1.0 - options - attached: false continuous: false aligned: false additive: true behind: false premultipliedalpha: false - image path - particle.png `

this file "particle.p" use particle generator generated, don't know whats wrong, can me?

i think found cause of problem, use particle generator , libgdx don't fit.in particle generator has scale , scale x label , scale y label, libgdx text parser parse scale label, cause parsing errors, causing problem


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -