Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

  • 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/

  • 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

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;

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.