tlr38usd Posted August 12, 2013 Posted August 12, 2013 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. Quote
GotoLink Posted August 12, 2013 Posted August 12, 2013 Why would a texture maker put his png file in a jar ? Quote
hydroflame Posted August 12, 2013 Posted August 12, 2013 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 Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
tlr38usd Posted August 12, 2013 Author Posted August 12, 2013 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? Quote
hydroflame Posted August 12, 2013 Posted August 12, 2013 isnt it the same thing as a texture pack ? Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
tlr38usd Posted August 12, 2013 Author Posted August 12, 2013 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. Quote
hydroflame Posted August 12, 2013 Posted August 12, 2013 well you can always use JarEntry or ZipEntry to check the content of a jar Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
tlr38usd Posted August 12, 2013 Author Posted August 12, 2013 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. Quote
hydroflame Posted August 12, 2013 Posted August 12, 2013 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 ? Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
GotoLink Posted August 12, 2013 Posted August 12, 2013 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... Quote
tlr38usd Posted August 15, 2013 Author Posted August 15, 2013 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? Quote
Recommended Posts
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.