Babbaj Posted July 22, 2017 Posted July 22, 2017 (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 July 22, 2017 by Babbaj Quote
Animefan8888 Posted July 22, 2017 Posted July 22, 2017 8 minutes ago, Babbaj said: What am I doing wrong? Show an image of your package explorer. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Babbaj Posted July 22, 2017 Author Posted July 22, 2017 Just now, Animefan8888 said: Show an image of your package explorer. Quote
Animefan8888 Posted July 22, 2017 Posted July 22, 2017 2 minutes ago, Babbaj said: Is your resources folder marked as a source folder? Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Babbaj Posted July 22, 2017 Author Posted July 22, 2017 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 Quote
Babbaj Posted July 22, 2017 Author Posted July 22, 2017 literally the same as a tutorial video end my life Quote
Babbaj Posted July 22, 2017 Author Posted July 22, 2017 (edited) [22:27:43] [main/WARN]: Failed to load texture: forgehax:assets/waifu.png java.io.FileNotFoundException: forgehax:assets/waifu.png Edited July 22, 2017 by Babbaj Quote
Babbaj Posted July 22, 2017 Author Posted July 22, 2017 I ended up getting it to work also every time i compiled the image became corrupted and i had to manually replace it with winrar 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.