Mojang / slicer

Resource pack migration tool for Minecraft 1.14
MIT License
174 stars 7 forks source link

Cannot run map slicer via command line #10

Closed muzikbike closed 6 months ago

muzikbike commented 7 months ago

Here's a test folder containing a 1.20.1 icons.png and 1.20.4 map_icons.png: simpleassetstest.zip

With the 1.20.2-1.1.3 gui splitter jar file and the 1.20.5-1.1.4 map icon splitter jar file in the same directory as the assets, running a command via Windows PowerShell (I may test cygwin later) will correctly allow the 1.20.2 slicer to cut up the icons.png file, but will return an error when trying to use 1.20.5's slicer.

Command used: java -jar [name of jar].jar [directory containing the assets folder] [directory containing the assets folder]/output [directory containing the assets folder]/remainder

When using the 1.20.2 splitter, all works fine. 1.20.5's splitter, however, gives this error:

Error: Could not find or load main class com.mojang.slicer.Main Caused by: java.lang.ClassNotFoundException: com.mojang.slicer.Main

I have no idea if I have something configured wrong behind the scenes, but the fact that one jar runs and the other faceplants is concerning.

jedenastka commented 7 months ago

A workaround until it gets fixed is to run the JAR like this:

java -cp slicer-1.20.5-1.1.4-SNAPSHOT.jar slicer.Main