6
votes

I downloaded texture packer here https://code.google.com/p/libgdx-texturepacker-gui/downloads/detail?name=gdx-texturepacker-3.2.0.zip&can=2&q=

When I run the .jar file it just shuts down before even displaying the gui. Is anyone experiencing a similar problem? I am running OSX El Capitan.

5
Did you find how to run it? It's not a problem with Java but an error gets displayed: Usage: inputDir [outputDir] [packFileName] [settingsFileName] - WeirdElfB0y
I found out a workaround by providing arguments via configuration editor. But there's no GUI displayed. - WeirdElfB0y
To be honest I just switched to Windows based computer and did all texture making there. That worked. - potato
Well, okay. Thanks anyway. - WeirdElfB0y
I've got the same problem, on a macbook running Siera - magritte

5 Answers

2
votes

The project is quite old so you can try it's successor: gdx-texture-packer-gui.

[The] project is a successor of Aurelien Ribon's project with whole new GUI and features.

You can download the tool here: https://github.com/crashinvaders/gdx-texture-packer-gui/releases

1
votes

Do you have the Java runtime environment installed on your computer or just the Java development kit? I don't use the texture packer, but I had a similar problem with the Android SDK manager (it shut down before displaying the GUI) on a new computer where I had only installed the Java JDK. After installing the JRE then it worked fine.

0
votes

Try this: Create a txt file and change its extension to ".bat". Right click to file and select modify. Copy this into file: "java -jar "C:\Users\fat2019\Desktop\gdx-texturepacker-3.2.0\gdx-texturepacker.jar" Change path to your own where gdx-texturepacker.jar file is. Then save and close. Double click file.

edit: this is for windows.

0
votes

I have the same problem. Using Windows 7 I have to do this:


  1. Go to your java directory and copy your java path

C:\Program Files\Java\jdk1.8.0_40\bin

  1. Right click on my computer,
  2. Click properties
  3. Go to "Advanced system settings" click ,
  4. Click on Environment variables.
  5. Go to System variables section, and you will find an entry called path.
  6. Double click on path
  7. Add a semicolon (;) to the end of that line
  8. After the semicolon paste your path previously copied: C:\Program Files\Java\jdk1.8.0_40\bin
  9. Apply

It must be enough. Your file should run at this point. Double click it and go to the end, put a semicolon and paste your path, apply and ok. It should run now.

0
votes

For Mac I downloaded the free version of https://www.codeandweb.com/texturepacker/download

This saves as .txt rather than .atlas for some reason.

After adding the animation I got errors in batch.draw ... casting to TextureRegion fixed that.

As always, I have no idea if this will cause problems later but there you go. Looks good so far. :)