Jump to content

Compiled textures not working


Recommended Posts

I'm assuming your .xml file to go with your .tex file isn't valid

Try making a .xml file with the same name as your .tex file with the contents:
 

<?xml version="1.0" encoding="utf-8"?>
<Atlas>
	<Texture filename="modicon.tex" />
	<Elements>
		<Element name="modicon.tex" u1="0.001" u2="0.999" v2="0.999" v1="0.001" variant="" />
	</Elements>
</Atlas>

except replace Texture filename, and Element name with your .tex picture name

Added brownie points:

Make your .tex file's name, .xml file's name, <Texture filename>, and <Element name> all the same thing, all lowercase, and all one word with no special characters.

Edited by Bigfootmech
Link to comment
Share on other sites

8 hours ago, eeerasdxdasfdds said:

When ever I put in the code that you said in the .xml file, and made my .tex file's name, .xml file's name, <Texture filename>, and <Element name> all the same thing, It still doesn't show up in the game.

Pretty sure the image has to be a power of 2, 256x256 or 512x512 IIRC, the auto compiler or log file (one of the two) usually say like "MODICON.TEX IS NOT A POWER OF 2" (forgive me if I'm wrong)

Link to comment
Share on other sites

5 hours ago, JustCrimson said:

Pretty sure the image has to be a power of 2, 256x256 or 512x512 IIRC, the auto compiler or log file (one of the two) usually say like "MODICON.TEX IS NOT A POWER OF 2" (forgive me if I'm wrong)

The texture I'm working with is a 64x64 item texture. 64 is a power of 2 yet it still doesn't work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...