-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
fails to find textures: "java.io.FileNotFoundException: Couldn't find assets/minecraft/textures/..." #179
Comments
additional info:
minecraft server version running Version 115 of j-mc-2-obj |
Does it work ok with the gui, not using command line? Do you have minecraft 1.18 installed, seems like it can't find the minecraft .jar. If you do have it, maybe try setting the 1.18.jar file as the --texturepack argument. |
oh of course. That makes sense. My minecraft server is in this folder
despite it still being included in the I guess
|
You're right, I changed it to --resourcepack, didn't update the help printout. It does have to be the client .jar because the server doesn't inclue any models or textures. Technically you could use/create a resource pack instead, as long as it includes models and textures for all the blocks you want to export. |
Update command line help text Should address #179
alright. I tried downloading what I believe is the default resource pack. I got it here https://texture-packs.com/resourcepack/default-pack/. I have tried every variation of this command java -jar jMc2Obj-115.jar --output=output --chunks=-1,-1,1,1 --resourcepack=~/minecraft-default-texture-pack-1.18/ minecraft-server/world e.g.
They all produce the same initial error. folder structure of the resource pack in question: tree.txt |
update: I tried one more command where my cwd is in the resource pack in question. root:~/minecraft-default-texture-pack-1.18# java -jar ~/minecraft-discord-bot/obj-exporter/jMc2Obj-115.jar --output=/root/obj-output --chunks=-1,-1,1,1 --resourcepack=~/minecraft-default-texture-pack-1.18/pack.mcmeta ~/minecraft-discord-bot/minecraft-server/world so errors like this one:
dont make a lot of sense since the path it is erroring on is exactly the path in the cwd. root:~/minecraft-default-texture-pack-1.18# ls assets/minecraft/textures/block/lava_still.png
assets/minecraft/textures/block/lava_still.png all I can think of is that somewhere in this program we are setting the cwd to something else |
I think your problem is because you are not specifying the pack with a real path but instead with the tilde which according to this will not always be expanded to a full path depending on your shell so jmc can't find the pack. if in the home directory I have these files
Trying these different versions of the command you see the ~ causes the problem:
They all work except the last one with the ~ The files in the zip look like it should work instead of just the actual minecraft jar. Also as a note, I would recommend pointing it to the zip/jar file, it should work pointing to an extracted pack folder or the pack.mcmeta within an extracted pack folder but it's not so well tested. |
I ran this command:
obj-exporter# java -jar jMc2Obj-115.jar --output=output --chunks=-1,-1,1,1 minecraft-server/world
(where
minecraft-server
is a minecraft server running 1.18, andworld
is the world folder.these are the logs I received:
j-mc-2-obj-error.log
it is worth noting that this was a server running 1.17 that I upgraded to 1.18. There are both 1.17 and 1.18 generated chunks being converted to obj.
The text was updated successfully, but these errors were encountered: