Jump to content

Recommended Posts

Posted

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.

Posted
in a compiled jar.

<the more you know :D>jar files are only zipped file with a different extension btw</the more you know :D>

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-

Posted
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?

Posted

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.

Posted

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.

Posted
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 xD ?

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

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...

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.