Jump to content

Need help with world not rendering


sudwood

Recommended Posts

Hello, I have been having a problem with my mod since I updated to mc 1.6.2. I'm using forge version 791 and since I updated if I enter a world in survival mode or switch to survival after entering, the world stops rendering. If i create a world as a survival world it  renders the world for half a second before it stops rendering it. If i disable the entirety of my mod it stops having the error but I am unable to pinpoint where the error is because the console is not showing any errors while minecraft is running. bellow are screenshots of a world generated as a creative world the second being after I switched to survival mode.

 

Console output:

 

 

 

Aug 02, 2013 2:27:15 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker

2013-08-02 14:27:15 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.2.29.791 for Minecraft 1.6.2 loading

2013-08-02 14:27:15 [iNFO] [ForgeModLoader] Java is OpenJDK 64-Bit Server VM, version 1.7.0_40, running on Linux:amd64:3.9.9-1-ARCH, installed at /usr/lib/jvm/java-7-openjdk/jre

2013-08-02 14:27:15 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2013-08-02 14:27:16 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg

2013-08-02 14:27:16 [iNFO] [sTDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg

2013-08-02 14:27:17 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!

2013-08-02 14:27:17 [iNFO] [ForgeModLoader] Launching wrapped minecraft

2013-08-02 14:27:18 [iNFO] [Minecraft-Client] Setting user: Player807

2013-08-02 14:27:18 [iNFO] [Minecraft-Client] (Session ID is null)

2013-08-02 14:27:19 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2013-08-02 14:27:19 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2013-08-02 14:27:20 [iNFO] [sTDOUT]

2013-08-02 14:27:20 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-08-02 14:27:20 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-08-02 14:27:20 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-08-02 14:27:20 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-08-02 14:27:20 [iNFO] [sTDOUT] MinecraftForge v9.10.0.791 Initialized

2013-08-02 14:27:20 [iNFO] [ForgeModLoader] MinecraftForge v9.10.0.791 Initialized

2013-08-02 14:27:20 [iNFO] [sTDOUT] OpenAL initialized.

2013-08-02 14:27:20 [iNFO] [sTDOUT] Replaced 101 ore recipies

2013-08-02 14:27:20 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-08-02 14:27:20 [iNFO] [ForgeModLoader] Reading custom logging properties from /home/will/Documents/MinecraftModding/forge/mcp/jars/config/logging.properties

2013-08-02 14:27:20 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-08-02 14:27:20 [iNFO] [ForgeModLoader] Searching /home/will/Documents/MinecraftModding/forge/mcp/jars/mods for mods

2013-08-02 14:27:20 [iNFO] [sTDOUT]

2013-08-02 14:27:23 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-08-02 14:27:23 [iNFO] [mcp] Activating mod mcp

2013-08-02 14:27:23 [iNFO] [FML] Activating mod FML

2013-08-02 14:27:23 [iNFO] [Forge] Activating mod Forge

2013-08-02 14:27:23 [iNFO] [mysticadditions] Activating mod mysticadditions

2013-08-02 14:27:23 [WARNING] [Mystic Additions] Mod Mystic Additions is missing a pack.mcmeta file, things may not work well

2013-08-02 14:27:23 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Mystic Additions

2013-08-02 14:27:23 [iNFO] [sTDOUT]

2013-08-02 14:27:23 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-08-02 14:27:23 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-08-02 14:27:23 [iNFO] [sTDOUT]

2013-08-02 14:27:23 [iNFO] [sTDOUT]

2013-08-02 14:27:23 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-08-02 14:27:23 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2013-08-02 14:27:23 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2013-08-02 14:27:23 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-08-02 14:27:23 [iNFO] [sTDOUT] Loading Version 1.1.0 of Mystic Additions

2013-08-02 14:27:23 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-08-02 14:27:23 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-08-02 14:27:23 [iNFO] [sTDOUT] OpenAL initialized.

2013-08-02 14:27:23 [iNFO] [sTDOUT]

2013-08-02 14:27:24 [iNFO] [sTDOUT] 0 recipes

2013-08-02 14:27:24 [iNFO] [sTDOUT] 0 recipes

2013-08-02 14:27:25 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods

2013-08-02 14:27:25 [WARNING] [Mystic Additions] Mod Mystic Additions is missing a pack.mcmeta file, things may not work well

2013-08-02 14:27:25 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Mystic Additions

2013-08-02 14:27:25 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_2216_null.png

2013-08-02 14:27:25 [iNFO] [sTDOUT]

2013-08-02 14:27:25 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-08-02 14:27:25 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-08-02 14:27:25 [iNFO] [sTDOUT]

2013-08-02 14:27:25 [iNFO] [sTDOUT]

2013-08-02 14:27:25 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-08-02 14:27:26 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-08-02 14:27:26 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-08-02 14:27:26 [iNFO] [sTDOUT] OpenAL initialized.

2013-08-02 14:27:26 [iNFO] [sTDOUT]

2013-08-02 14:27:27 [sEVERE] [Minecraft-Client] Realms: Invalid session id

2013-08-02 14:27:37 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.2

2013-08-02 14:27:37 [iNFO] [Minecraft-Server] Generating keypair

2013-08-02 14:27:37 [iNFO] [Minecraft-Server] Converting map!

2013-08-02 14:27:37 [iNFO] [Minecraft-Server] Scanning folders...

2013-08-02 14:27:37 [iNFO] [Minecraft-Server] Total conversion count is 0

2013-08-02 14:27:41 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@2dbd9563)

2013-08-02 14:27:41 [WARNING] [Minecraft-Server] Unable to find spawn biome

2013-08-02 14:27:41 [iNFO] [ForgeModLoader] Loading dimension 2 (New World) (net.minecraft.server.integrated.IntegratedServer@2dbd9563)

2013-08-02 14:27:41 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@2dbd9563)

2013-08-02 14:27:42 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@2dbd9563)

2013-08-02 14:27:42 [iNFO] [Minecraft-Server] Preparing start region for level 0

2013-08-02 14:27:43 [iNFO] [Minecraft-Server] Preparing spawn area: 25%

2013-08-02 14:27:44 [iNFO] [Minecraft-Server] Preparing spawn area: 54%

2013-08-02 14:27:45 [iNFO] [Minecraft-Server] Preparing spawn area: 80%

2013-08-02 14:27:46 [iNFO] [Minecraft-Server] Player807[/127.0.0.1:0] logged in with entity id 0 at (316.5, 4.0, 1283.5)

2013-08-02 14:27:46 [iNFO] [Minecraft-Server] Player807 joined the game

2013-08-02 14:27:46 [iNFO] [sTDOUT] Setting up custom skins

2013-08-02 14:27:57 [iNFO] [Minecraft-Client] [CHAT] Saved screenshot as 2013-08-02_14.27.57.png

2013-08-02 14:28:01 [iNFO] [Minecraft-Server] [Player807: Set own game mode to Survival Mode]

2013-08-02 14:28:01 [iNFO] [Minecraft-Client] [CHAT] Your game mode has been updated

2013-08-02 14:28:02 [iNFO] [Minecraft-Client] [CHAT] Saved screenshot as 2013-08-02_14.28.02.png

2013-08-02 14:28:07 [iNFO] [Minecraft-Server] Saving and pausing game...

2013-08-02 14:28:07 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

2013-08-02 14:28:07 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether

2013-08-02 14:28:07 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End

2013-08-02 14:28:07 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The Dimensional Warp

 

 

 

 

 

Creative mode:

 

creativemode.png

 

 

Survival mode:

 

survivalmode.png

 

 

 

Thanks for any and all help provided!  :D

Link to comment
Share on other sites

1 your images are not working

 

2 are you doing any special rendering code ?

 

 

tile entity special renderer

RenderPlayerEvent

ISimpleBlockRenderingHandler

RenderGameOverlayEvent

Class<? extends Render>

 

if yes please post that code

 

ps:i personally would think you forgot to ass pushMatrix popmatrix to your RenderGameOverlayEvent but maybe its not it

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

To answer your first question, yes my textures do indeed work if I am in creative mode.

 

As to your second

Here is the link to my github: https://github.com/Sudwood/Mystic-Additions all rendering code is in the client folder.

 

For those who don't want to go to another link:

 

Overlay code:

 

package client.sudwood.mysticadditions;

import java.util.EnumSet;

import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;

import com.sudwood.mysticadditions.items.energy.IItemMysticRechargeable;
import com.sudwood.mysticadditions.items.energy.IItemMysticRechargeableArmor;

import cpw.mods.fml.common.ITickHandler;
import cpw.mods.fml.common.TickType;

public class ClientTickHandler implements ITickHandler {

@Override
public void tickStart(EnumSet<TickType> type, Object... tickData) {


}

@Override
public void tickEnd(EnumSet<TickType> type, Object... tickData) {

	if(type.contains(TickType.RENDER))
	{

		overlayTick(Minecraft.getMinecraft().thePlayer);

	}
}

@Override
public EnumSet<TickType> ticks() {
	// TODO Auto-generated method stub
	return EnumSet.of(TickType.RENDER);
}

@Override
public String getLabel() {
	// TODO Auto-generated method stub
	return null;
}

public void overlayTick(EntityPlayer player)
{

	if(player!=null)
	{
	NBTTagCompound tag1 = player.getEntityData();

	boolean doesNeedCharge = false;
	int nump = 0;
	int charge =0;
	for(int i = 0; i<4; i++ )
	{
		if(player!=null&&player.inventory.armorItemInSlot(i)!=null)
		{

		ItemStack tempStack = player.inventory.armorItemInSlot(i);
		if(player.inventory.armorItemInSlot(i).getTagCompound()==null)
		  {
			player.inventory.armorItemInSlot(i).setTagCompound(new NBTTagCompound());
		  }
		NBTTagCompound tag = player.inventory.armorItemInSlot(i).getTagCompound();
		if(tempStack.getItem() instanceof IItemMysticRechargeableArmor)
		{
		doesNeedCharge = true;
		charge += tag.getInteger("CurrentCharge");
		nump+= tag.getInteger("MaxStorage");
		}
		}
	}
	if(player!=null&&player.inventory.getCurrentItem()!=null)
	{
		ItemStack tempStack = player.inventory.getCurrentItem();
		if(tempStack.getItem() instanceof IItemMysticRechargeable)
		{
		if(player.inventory.getCurrentItem().getTagCompound()==null)
		  {
			player.inventory.getCurrentItem().setTagCompound(new NBTTagCompound());
		  }
		NBTTagCompound tag = player.inventory.getCurrentItem().getTagCompound();
		doesNeedCharge = true;
		charge += tag.getInteger("CurrentCharge");
		nump+= tag.getInteger("MaxStorage");

		}
	}

	if(player!=null&&doesNeedCharge)
		Minecraft.getMinecraft().fontRenderer.drawString(charge+"/"+nump+" MyJ", 1, 1, 16777215);
	}

}




}

 

 

Common Proxy:

 

package client.sudwood.mysticadditions;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.renderer.entity.RenderBiped;
import client.sudwood.mysticadditions.renderers.RenderLiquidStorage;
import client.sudwood.mysticadditions.renderers.RenderMysticArrow;
import client.sudwood.mysticadditions.renderers.RenderMysticCrystalGenerator;
import client.sudwood.mysticadditions.renderers.RenderMysticECapacitorBase;
import client.sudwood.mysticadditions.renderers.RenderMysticExplosiveArrow;
import client.sudwood.mysticadditions.renderers.RenderMysticFireArrow;
import client.sudwood.mysticadditions.renderers.RenderMysticFreezeArrow;
import client.sudwood.mysticadditions.renderers.RenderMysticGenerator;
import client.sudwood.mysticadditions.renderers.RenderMysticLightningArrow;
import client.sudwood.mysticadditions.renderers.RenderMysticMagicOrb;
import client.sudwood.mysticadditions.renderers.RenderMysticRedGrinder;
import client.sudwood.mysticadditions.renderers.RenderMysticRedStorageMrk2;
import client.sudwood.mysticadditions.renderers.RenderMysticTeleArrow;
import client.sudwood.mysticadditions.renderers.RenderSteelShuriken;

import com.sudwood.mysticadditions.entity.EntityEarthMiniBoss;
import com.sudwood.mysticadditions.entity.EntityFireMiniBoss;
import com.sudwood.mysticadditions.entity.EntityMysticWaterOrb;
import com.sudwood.mysticadditions.entity.EntityMysticWindOrb;
import com.sudwood.mysticadditions.entity.EntityWaterMiniBoss;
import com.sudwood.mysticadditions.tileentity.TileEntityLiquidStorage;
import com.sudwood.mysticadditions.tileentity.TileEntityMysticCrystalGenerator;
import com.sudwood.mysticadditions.tileentity.TileEntityMysticRedGenerator;
import com.sudwood.mysticadditions.tileentity.TileEntityMysticRedGrinder;
import com.sudwood.mysticadditions.tileentity.TileEntityMysticRedStorage;
import com.sudwood.mysticadditions.tileentity.TileEntityMysticRedStorageMrk2;

import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
public class MysticClientProxy extends com.sudwood.mysticadditions.MysticCommonProxy {

public static int MysticCapacitorRenderId;
public static int MysticGeneratorRenderId;
public static int MysticRedGrinderid;
public static int MysticCrystalGeneratorRenderId;
public static int MysticCapacitormrk2RenderID;
public static int MysticLiquidStorageRenderid;
@Override
public void registerRenderInformation() 
  {  
	//textures




	//rendering
	//RenderingRegistry.instance().registerEntityRenderingHandler(EntityTest.class, new RenderCatTest());
	RenderingRegistry.registerEntityRenderingHandler(com.sudwood.mysticadditions.entity.EntityMysticArrow.class, new RenderMysticArrow());
	RenderingRegistry.registerEntityRenderingHandler(com.sudwood.mysticadditions.entity.EntityMysticTeleArrow.class, new RenderMysticTeleArrow());
	RenderingRegistry.registerEntityRenderingHandler(com.sudwood.mysticadditions.entity.EntityMysticExplosiveArrow.class, new RenderMysticExplosiveArrow());
	RenderingRegistry.registerEntityRenderingHandler(com.sudwood.mysticadditions.entity.EntityMysticFireArrow.class, new RenderMysticFireArrow());
	RenderingRegistry.registerEntityRenderingHandler(com.sudwood.mysticadditions.entity.EntitySteelShuriken.class, new RenderSteelShuriken());
	RenderingRegistry.registerEntityRenderingHandler(com.sudwood.mysticadditions.entity.EntityMysticFreezeArrow.class, new RenderMysticFreezeArrow());
	RenderingRegistry.registerEntityRenderingHandler(com.sudwood.mysticadditions.entity.EntityMysticLightningArrow.class, new RenderMysticLightningArrow());
	RenderingRegistry.registerEntityRenderingHandler(com.sudwood.mysticadditions.entity.EntityMysticKnight.class, new RenderBiped(new ModelBiped(), 0.5F));
	RenderingRegistry.registerEntityRenderingHandler(com.sudwood.mysticadditions.entity.EntityMysticArcher.class, new RenderBiped(new ModelBiped(), 0.5F));
	RenderingRegistry.registerEntityRenderingHandler(com.sudwood.mysticadditions.entity.EntityWindMiniBoss.class, new RenderBiped(new ModelBiped(), 0.5F));
	RenderingRegistry.registerEntityRenderingHandler(EntityMysticWindOrb.class, new RenderMysticMagicOrb());
	RenderingRegistry.registerEntityRenderingHandler(EntityMysticWaterOrb.class, new RenderMysticMagicOrb());
	RenderingRegistry.registerEntityRenderingHandler(EntityFireMiniBoss.class, new RenderBiped(new ModelBiped(), 0.5F));
	RenderingRegistry.registerEntityRenderingHandler(EntityWaterMiniBoss.class, new RenderBiped(new ModelBiped(), 0.5F));
	RenderingRegistry.registerEntityRenderingHandler(EntityEarthMiniBoss.class, new RenderBiped(new ModelBiped(), 0.5F));
	MysticCapacitorRenderId = RenderingRegistry.getNextAvailableRenderId();
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMysticRedStorage.class, new RenderMysticECapacitorBase());

	MysticGeneratorRenderId = RenderingRegistry.getNextAvailableRenderId();

	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMysticRedGenerator.class, new RenderMysticGenerator());

	MysticCrystalGeneratorRenderId = RenderingRegistry.getNextAvailableRenderId();
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMysticCrystalGenerator.class, new RenderMysticCrystalGenerator());

	MysticRedGrinderid = RenderingRegistry.getNextAvailableRenderId();
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMysticRedGrinder.class, new RenderMysticRedGrinder());

	MysticCapacitormrk2RenderID = RenderingRegistry.getNextAvailableRenderId();
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMysticRedStorageMrk2.class, new RenderMysticRedStorageMrk2());

	MysticLiquidStorageRenderid = RenderingRegistry.getNextAvailableRenderId();
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLiquidStorage.class, new RenderLiquidStorage());

}
@Override
public int addArmor(String armor)
{
    return RenderingRegistry.addNewArmourRendererPrefix(armor);
}
}

 

 

As this bug happens even when no items from my mod are in the game either in world or in my inventory, and when I haven't even opened the inventory yet I'm not going to post the tile entity special renders. If any other information is needed please feel free to ask for it. Thanks for all the help! :)

Link to comment
Share on other sites

You are not doing anything with those in your client proxy ?

public static int MysticCapacitorRenderId;
public static int MysticGeneratorRenderId;
public static int MysticRedGrinderid;
public static int MysticCrystalGeneratorRenderId;
public static int MysticCapacitormrk2RenderID;
public static int MysticLiquidStorageRenderid;

 

I have seen some living entities in your code, but there aren't supposed to spawn naturally, are they ?

Link to comment
Share on other sites

Ahh thanks! I just swapped them out and nothing changed with the bug so I don't think that is it. Also figured out that the player cannot move when in survival and with the world not rendering. When on the ground with f3 up the players position doesn't change. However if the player jumps then movement along the x/z is possible.

Link to comment
Share on other sites

I suggest commenting that line in your overlay code

Minecraft.getMinecraft().fontRenderer.drawString(charge+"/"+nump+" MyJ", 1, 1, 16777215);

You should review your code in there, because from what I understand you set a new NBTTagcompound (without any info or tag ?) for each new armor the player is wearing, but only load the data from "instanceof IItemMysticRechargeableArmor".

And line

NBTTagCompound tag1 = player.getEntityData();

is unused.

 

Also, I don't understand why you use render ticks for this. Player ticks or client ticks should be enough ?

Link to comment
Share on other sites

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.