Posted January 18, 201312 yr I'm having issues with my textures getting preloaded. Quite often I get the error message "texture.png not preloaded, will cause render glitches!" and about half the times this happens all my textures will just be white in game. Reloading the textures by pressing f3 + t fixes it but its really quite annoying and the error message gives no details as to why they aren't being preloaded properly. I had a look through the code to see where this error was happening and it comes from the onTextureLoadPre method in ForgeHookClient.java. The error message is printed if Tessellator.renderingWorldRenderer is true. There must be some other factor causing this as no other mods are doing this. I just can't figure out what the actual error is as there is no exception or anything. Is there something wrong with my texture file? Here is a link to it: https://dl.dropbox.com/u/36807085/BlockTextures.png Thanks
January 18, 201312 yr Author That's what I am doing. My code for that is here: public class ClientProxy extends CommonProxy{ @Override public void registerRenderThings(){ MinecraftForgeClient.preloadTexture("/undergroundBiomes/textures/BlockTextures.png"); MinecraftForgeClient.preloadTexture("/undergroundBiomes/textures/Items.png"); } } [/code/
January 18, 201312 yr Author Yep it's called in my init method. And I've checked and changed the file paths many times and I'm pretty sure they are correct. The blocks reference the same paths and the textures sometimes work so the paths must be correct
January 19, 201312 yr Do you have this in-between your @Init method and your class constructor? @SidedProxy(clientSide = "wogCreeperSheep.common.core.WCSClientProxy", serverSide = "wogCreeperSheep.common.core.WCSCommonProxy") public static WCSCommonProxy proxy;
January 19, 201312 yr Author I've managed to fix it. A user on the Minecraft Forum thread pointed out that I had incorrect paths in the preload texture methods I feel pretty stupid for not noticing that. Thanks for the help here. Please disregard this thread
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.