Posted August 12, 201312 yr I have a weird system for texturing in my mod and I'd like to make it so that if texture packers include a png file with a certain name it will override my weird texturing system. I know in java there's a file.exists() function but that doesn't seem to work in a compiled jar.
August 12, 201312 yr in a compiled jar. <the more you know >jar files are only zipped file with a different extension btw</the more you know > but, you can use JarEntry or ZipEntry class to check the content of your jar how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 12, 201312 yr Author Why would a texture maker put his png file in a jar ? Good point. But hopefully you kinda know what I mean. I want my mod to check he current texture pack and if there is a png file with a certain name than overwrite my weird texturing system and use that png instead. How could I do this?
August 12, 201312 yr isnt it the same thing as a texture pack ? how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 12, 201312 yr Author Not really. What I'm doing currently is that each of my items has two different textures that are recolored depending on different variables. I have gotten requests from texture packers that I have an option for them to not use the default coloring system and instead use there own textures.
August 12, 201312 yr well you can always use JarEntry or ZipEntry to check the content of a jar how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 12, 201312 yr Author well you can always use JarEntry or ZipEntry to check the content of a jar But as GotoLink mentioned earlier, which I completely forgot, texture packers don't use jars.
August 12, 201312 yr I have a weird system for texturing in my mod and I'd like to make it so that if texture packers include a png file with a certain name it will override my weird texturing system. I know in java there's a file.exists() function but that doesn't seem to work in a compiled jar. yeah ok, sooo .. whats the problem now ? how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 12, 201312 yr Not really. What I'm doing currently is that each of my items has two different textures that are recolored depending on different variables. I have gotten requests from texture packers that I have an option for them to not use the default coloring system and instead use there own textures. I thought this issue was already handled by Minecraft due to 1.6 changes ? All a texture maker would have to do is make a resource pack with the same folder system as your mod: assets/modid/textures...
August 15, 201312 yr Author Well as I mentioned earlier I have a weird texture system so if a texturer packer wanted to support my mod they'd have to work with that. Maybe what I need to do is add a mcmeta file similar to how mojang does it. How might I do that?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.