java - LIBGDX "parsing error emitter" with 2 or more emitters -


i have problem use of particle effect of libgdx 2 or more emitters.

after using particleeditor create .p file, use in code but...when use 1 emitter it's fine more 1, not fine ! :(

here error code in java console :

exception in thread "lwjgl application" java.lang.runtimeexception: error parsing emitter: - delay -     @ com.badlogic.gdx.graphics.g2d.particleemitter.load(particleemitter.java:910)     @ com.badlogic.gdx.graphics.g2d.particleemitter.<init>(particleemitter.java:95)     @ com.badlogic.gdx.graphics.g2d.particleeffect.loademitters(particleeffect.java:154)     @ com.badlogic.gdx.graphics.g2d.particleeffect.load(particleeffect.java:138)     @ com.fasgame.fishtrip.android.screens.gamescreen.show(gamescreen.java:313)     @ com.badlogic.gdx.game.setscreen(game.java:61)     @ com.fasgame.fishtrip.android.screens.mainmenuscreen.render(mainmenuscreen.java:71)     @ com.badlogic.gdx.game.render(game.java:46)     @ com.badlogic.gdx.backends.lwjgl.lwjglapplication.mainloop(lwjglapplication.java:206)     @ com.badlogic.gdx.backends.lwjgl.lwjglapplication$1.run(lwjglapplication.java:114) caused by: java.lang.numberformatexception: input string: "- count -"     @ sun.misc.floatingdecimal.readjavaformatstring(unknown source)     @ sun.misc.floatingdecimal.parsefloat(unknown source)     @ java.lang.float.parsefloat(unknown source)     @ com.badlogic.gdx.graphics.g2d.particleemitter.readfloat(particleemitter.java:929)     @ com.badlogic.gdx.graphics.g2d.particleemitter$rangednumericvalue.load(particleemitter.java:1062)     @ com.badlogic.gdx.graphics.g2d.particleemitter.load(particleemitter.java:866)     ... 9 more 

and here particle effect .p file :

blanc - 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: 500.0 lowmax: 500.0 highmin: 500.0 highmax: 500.0 relative: false scalingcount: 3 scaling0: 1.0 scaling1: 0.47058824 scaling2: 0.0 timelinecount: 3 timeline0: 0.0 timeline1: 0.51369864 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 - scale -  lowmin: 0.0 lowmax: 0.0 highmin: 70.0 highmax: 70.0 relative: true scalingcount: 2 scaling0: 1.0 scaling1: 0.0 timelinecount: 2 timeline0: 0.0 timeline1: 1.0 - 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: 220.0 lowmax: 320.0 highmin: 220.0 highmax: 320.0 relative: false scalingcount: 2 scaling0: 0.0 scaling1: 0.98039216 timelinecount: 2 timeline0: 0.0 timeline1: 1.0 - rotation -  active: false - wind -  active: false - gravity -  active: true lowmin: 0.0 lowmax: 0.0 highmin: 0.0 highmax: 0.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - tint -  colorscount: 3 colors0: 0.50980395 colors1: 0.7647059 colors2: 0.7921569 timelinecount: 1 timeline0: 0.0 - transparency -  lowmin: 0.0 lowmax: 0.0 highmin: 1.0 highmax: 1.0 relative: false scalingcount: 4 scaling0: 1.0 scaling1: 1.0 scaling2: 1.0 scaling3: 1.0 timelinecount: 4 timeline0: 0.0 timeline1: 0.36301368 timeline2: 0.6164383 timeline3: 1.0 - options -  attached: false continuous: true aligned: false additive: true behind: false premultipliedalpha: false pre_particle.png  bleu - 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: 500.0 lowmax: 500.0 highmin: 500.0 highmax: 500.0 relative: false scalingcount: 3 scaling0: 1.0 scaling1: 0.47058824 scaling2: 0.0 timelinecount: 3 timeline0: 0.0 timeline1: 0.51369864 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 - scale -  lowmin: 0.0 lowmax: 0.0 highmin: 70.0 highmax: 70.0 relative: true scalingcount: 2 scaling0: 1.0 scaling1: 0.0 timelinecount: 2 timeline0: 0.0 timeline1: 1.0 - 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: 220.0 lowmax: 320.0 highmin: 220.0 highmax: 320.0 relative: false scalingcount: 2 scaling0: 0.0 scaling1: 0.98039216 timelinecount: 2 timeline0: 0.0 timeline1: 1.0 - rotation -  active: false - wind -  active: false - gravity -  active: true lowmin: 0.0 lowmax: 0.0 highmin: 0.0 highmax: 0.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - tint -  colorscount: 3 colors0: 0.0 colors1: 0.7254902 colors2: 0.7921569 timelinecount: 1 timeline0: 0.0 - transparency -  lowmin: 0.0 lowmax: 0.0 highmin: 1.0 highmax: 1.0 relative: false scalingcount: 6 scaling0: 0.0 scaling1: 1.0 scaling2: 1.0 scaling3: 1.0 scaling4: 1.0 scaling5: 0.0 timelinecount: 6 timeline0: 0.0 timeline1: 0.047945205 timeline2: 0.34246576 timeline3: 0.6712329 timeline4: 0.94520545 timeline5: 1.0 - options -  attached: false continuous: true aligned: false additive: true behind: false premultipliedalpha: false pre_particle.png  bleufonce - 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: 500.0 lowmax: 500.0 highmin: 500.0 highmax: 500.0 relative: false scalingcount: 3 scaling0: 1.0 scaling1: 0.47058824 scaling2: 0.0 timelinecount: 3 timeline0: 0.0 timeline1: 0.51369864 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 - scale -  lowmin: 0.0 lowmax: 0.0 highmin: 70.0 highmax: 70.0 relative: true scalingcount: 2 scaling0: 1.0 scaling1: 0.0 timelinecount: 2 timeline0: 0.0 timeline1: 1.0 - 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: 220.0 lowmax: 320.0 highmin: 220.0 highmax: 320.0 relative: false scalingcount: 2 scaling0: 0.0 scaling1: 0.98039216 timelinecount: 2 timeline0: 0.0 timeline1: 1.0 - rotation -  active: false - wind -  active: false - gravity -  active: true lowmin: 0.0 lowmax: 0.0 highmin: 0.0 highmax: 0.0 relative: false scalingcount: 1 scaling0: 1.0 timelinecount: 1 timeline0: 0.0 - tint -  colorscount: 3 colors0: 0.0 colors1: 0.7294118 colors2: 1.0 timelinecount: 1 timeline0: 0.0 - transparency -  lowmin: 0.0 lowmax: 0.0 highmin: 1.0 highmax: 1.0 relative: false scalingcount: 4 scaling0: 1.0 scaling1: 0.0 scaling2: 0.0 scaling3: 1.0 timelinecount: 4 timeline0: 0.0 timeline1: 0.001 timeline2: 0.5753425 timeline3: 0.79452056 - options -  attached: false continuous: true aligned: false additive: true behind: false premultipliedalpha: false pre_particle.png 

for "- image path -" missing it's normal if let them in doesn't work 1 emitter

ps : i've updated lib last release

i fixed opening particle effect file , deleting lines said:

- image path - 

be sure build of particle editor using same libgdx in project.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -