-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run map slicer via command line #10
Comments
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: