Jump to content

Recommended Posts

Posted (edited)

I have an image file in src\main\resources\assets\forgehax and im creating a ResourceLocation as

private ResourceLocation waifu = new ResourceLocation("forgehax","image.png");

and when i use it the code I do

GlStateManager.pushMatrix();
MC.renderEngine.bindTexture(waifu);
drawTexturedModalRect(topX, topY, 100, 100);
GlStateManager.popMatrix();

 

but in the game i get the purple and black texture which means the texture is missing

 

I've confirmed that "forgehax" is the correct modid and that the image extension is lowercase and ive read this post and I still have no idea why this doesnt work

 

What am I doing wrong?

Edited by Babbaj
Posted
1 minute ago, Animefan8888 said:

Is your resources folder marked as a source folder?

dont know how to check but its not a new folder and its used so theres no reason for it not to be

Posted (edited)

[22:27:43] [main/WARN]: Failed to load texture: forgehax:assets/waifu.png
 java.io.FileNotFoundException: forgehax:assets/waifu.png

Edited by Babbaj

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.