簡體   English   中英

libgdx 0.9.8,無法運行粒子編輯器

[英]libgdx 0.9.8, can't run Particle Editor

我已經下載了libgdx 0.9.8,並嘗試從gdx-tools JAR( https://code.google.com/p/libgdx/wiki/ParticleEditor )運行粒子編輯器:

java -cp gdx.jar;gdx-natives.jar;gdx-backend-lwjgl.jar;gdx-backend-lwjgl-natives.jar;extensions\gdx-tools\gdx-tools.jar com.badlogic.gdx.tools.particleeditor.ParticleEditor

但我不斷收到以下錯誤:

java -cp gdx.jar;gdx-natives.jar;gdx-backend-lwjgl.jar;gdx-backend
-lwjgl-natives.jar;extensions\gdx-tools\gdx-tools.jar com.badlogic.gdx.tools.par
ticleeditor.ParticleEditor
com.badlogic.gdx.utils.GdxRuntimeException: File not found: default.fnt (Interna
l)
        at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:127)
        at com.badlogic.gdx.graphics.g2d.BitmapFont$BitmapFontData.<init>(Bitmap
Font.java:711)
        at com.badlogic.gdx.graphics.g2d.BitmapFont.<init>(BitmapFont.java:114)
        at com.badlogic.gdx.graphics.g2d.BitmapFont.<init>(BitmapFont.java:106)
        at com.badlogic.gdx.tools.particleeditor.ParticleEditor$Renderer.create(
ParticleEditor.java:326)
        at com.badlogic.gdx.backends.lwjgl.LwjglCanvas.create(LwjglCanvas.java:1
86)
        at com.badlogic.gdx.backends.lwjgl.LwjglCanvas$1.addNotify(LwjglCanvas.j
ava:90)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at java.awt.Container.addNotify(Container.java:2576)
        at javax.swing.JComponent.addNotify(JComponent.java:4693)
        at javax.swing.JRootPane.addNotify(JRootPane.java:738)
        at java.awt.Container.addNotify(Container.java:2576)
        at java.awt.Window.addNotify(Window.java:664)
        at java.awt.Frame.addNotify(Frame.java:470)
        at java.awt.Window.show(Window.java:860)
        at java.awt.Component.show(Component.java:1591)
        at java.awt.Component.setVisible(Component.java:1543)
        at java.awt.Window.setVisible(Window.java:843)

我的錯誤在哪里,如何解決?

似乎jar文件缺少以下資源的內容: https : //github.com/libgdx/libgdx/tree/master/extensions/gdx-tools/assets

這個問題似乎在每晚構建中已解決。 萬一您仍然需要0.9.8,可以解壓縮gdx-tools.jar,下載並復制所有文件,將其復制到jar文件的根文件夾下,然后將其重新打包。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM