Jump to content

Recommended Posts

Posted

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:

 

  Reveal hidden contents

 

 

Creative mode:

 

  Reveal hidden contents

 

 

Survival mode:

 

  Reveal hidden contents

 

 

 

Thanks for any and all help provided!  :D

Posted

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-

Posted

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:

 

  Reveal hidden contents

 

 

Common Proxy:

 

  Reveal hidden contents

 

 

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! :)

Posted

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 ?

Posted

But you don't need those values since you are using TileEntitySpecialRenderer's.

They are only needed if you use ISimpleBlockRenderingHandler and RenderingRegistry.registerBlockHandler(id, blockhandler);

Posted

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.

Posted

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 ?

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.