Jump to content

[1.7.10]Weird crash report And TE's not rendering properly [solved]


Alphafox_13

Recommended Posts

it happens randomly idk what causes it

 

java.lang.NullPointerException: Rendering Block Entity
at ships.addon.blocks_items.RenderMast.func_147500_a(RenderMast.java:29)
at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.func_147549_a(SourceFile:100)
at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.func_147544_a(SourceFile:92)
at net.minecraft.client.renderer.RenderGlobal.func_147589_a(RenderGlobal.java:483)
at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1224)
at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1015)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:989)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

Also it wont let me launch debug it just highlights this line of code

 

uMp6gJs.png

 

The  tileentities stop rendering when they think i cant see them?

95lwDwi.png

 

 

Here is my bitbucket:

https://bitbucket.org/AlphaFox/shipsaddon/src

 

and here is the compiled version download:

http://www.mediafire.com/download/h2quv5hqxfuq2ah/Sails.zip

 

And lastly here is the forum thread on MC forums if u want it:

http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/2384775-sails-masts-addon-for-ships-mod-90-complete

Link to comment
Share on other sites

Please Post the relevant code(TileEntity and TileEntitySpecialRenderer) here, the Bitbucket does not allow to see the code without login. (or is it private? Then we cannot help you)

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

sorry i am new to bitbucket and modding in general. It is now public

this is the TileEntitySpecialRenderer

package ships.addon.blocks_items;

import net.minecraft.block.Block;
import net.minecraft.block.BlockAnvil;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.entity.Entity;
import net.minecraft.world.IBlockAccess;
import ships.addon.blocks_items.BlockSail;

import org.lwjgl.opengl.GL11;

import ships.addon.lib.Ref;
import ships.addon.models.AcendingSailModel;
import ships.addon.models.MastModel;
import ships.addon.models.SailModel;

public class RenderSail extends TileEntitySpecialRenderer{

private static final ResourceLocation textureSail = new ResourceLocation(Ref.MODID+":"+"textures/blocks/sail.png");
private SailModel modelSail;
private AcendingSailModel acendingSail;

public RenderSail(){
	this.modelSail = new SailModel();
	this.acendingSail = new AcendingSailModel();
	}

@Override
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f){
GL11.glPushMatrix();
	GL11.glTranslatef((float)x+0.5F,(float)y-0.5F,(float)z+0.5F);
	this.bindTexture(textureSail);
	byte Direction = ((TEsail)tileentity.getWorldObj().getTileEntity(tileentity.xCoord, tileentity.yCoord, tileentity.zCoord)).getValue();
	int dir = 0;
	dir = Direction;
	if(Direction>1&&Direction<=5){dir = Direction-2;}
	else if(Direction>5){dir = Direction-6;}
	GL11.glRotatef((float)dir*90, 0.0F, 1.0F, 0.0F);
	if(Direction>5){GL11.glTranslatef(0.5F,0.0F,0.0F);}
	if(Direction<=1){this.modelSail.renderModel(0.0625F);}
	else if(Direction>1){this.acendingSail.renderModel(0.0625F);}
GL11.glPopMatrix();
}
}

package ships.addon.blocks_items;

import net.minecraft.block.Block;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;

public class TEsail extends TileEntity {
private byte Direction;

//---- Setters and Getters ----\\
public byte getValue() {
    return Direction;
}
public void setValue(byte value) {
    Direction = value;
}

//---- Read and Write ----\\
    public void writeToNBT(NBTTagCompound nbt)
    {
    	nbt.setByte("Direction", this.Direction);
        super.writeToNBT(nbt);
        markForUpdate();
    }
    public void readFromNBT(NBTTagCompound nbt)
    {
    	this.Direction = nbt.getByte("Direction");
        super.readFromNBT(nbt);
    }
    
    //---- Packets ----\\
    @Override
    public Packet getDescriptionPacket(){
    	NBTTagCompound tileTag = new NBTTagCompound();
    	this.writeToNBT(tileTag);
    	return new S35PacketUpdateTileEntity(this.xCoord,this.yCoord,this.zCoord,0,tileTag);   	
    }
@Override
public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt)
{
	this.readFromNBT(pkt.func_148857_g());
}

//---- Mark for Update ----\\
public void markForUpdate() {
    this.worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
}

Link to comment
Share on other sites

Ok well i have solved half the problem 

//Shape1.mirror = true;

http://www.minecraftforge.net/forum/index.php/topic,29024.0.html

pointed me in the right direction. What is Shape1.mirror supposed to do anyway?

 

 

however i am still getting the disapearing TE problem http://prntscr.com/6mrtsl

whenever i tun my screen to far it seems to assume i cant see the block anymore then it hides it.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Sakura38 Menghadirkan Situs Link Slot Deposit 1000 Gampang Menang Di Tahun 2024 Anda Memiliki Peluang Lebih Tinggi Untuk Meraih Kemenangan. Jadilah Bagian Dari Kesuksesan Kami Dan Bergabunglah Sekarang Untuk Memenangkan Hadiah-hadiah Fantastis   ▶️▶️ KLIK DISINI DAFTAR SEKARANG ◀️◀️ ▶️▶️ KLIK DISINI LINK ALTERNATIF DAFTAR AKUN 1 ◀️◀️ ▶️▶️ KLIK DISINI LINK ALTERNATIF DAFTAR AKUN 2 ◀️◀️ 💥Rahasia Mudah Dapat Perkalian Besar💥 💸Modal Receh Jamin AUTO JEPE 💸 ⚡Deposit Scan QRIS Proses Hanya 2 Detik !, WD Pasti LAND Kilat⚡ 🎰RTP & Pola GACOR Akurat🎰
    • Jagex held the Winter Summit towards the end of the year, where it revealed its content plans for 2023. Old School RuneScape recently got its Grandmaster Quest which serves as an expansion of Desert Treasure, a quest which is nearly twenty years old. If you were in the game the time Desert Treasure came out, you can imagine how thrilled a lot of players of OSRS gold were when the sequel was revealed. Desert Treasure II will make its way into Old School RuneScape during the summer of 2023. it's expected to introduce new bosses and content. There will be even more social elements that will be added to the Woodcutting game that has been a favorite with gamers. There's a new quest called the Secret of the North, which is a master-level quest is now available in the game and comes with some amazing boss fights that are only for solo players. Additionally, the Bounty Hunters miniature game returning to the game, which is sure to delight PvP players. I am sure there will be more games to come out by 2024 or later. RuneScape will not be going away and there's plenty of new content available to enjoy each year. The gameplay, the content, advancement systems, environments and even the music do not need introduction. I'd lie if I claimed that the game doesn't show its age. However, OSRS remains an enjoyable experience loved by the players and hasn't changed for over two decades. I've had plenty of unpleasant experiences in RuneScape and was cheated to death by "friends" earlier in the days, but we grow and learn. Even though it's a long-running MMORPG The game has a huge player base and there are many loyal players who have played for a long time. I had been away playing for a long time and yet it took me just a few minutes to locate helpful players who came together and assisted me. RuneScape is one of the most friendly communities I've seen across all gaming. my experience as a player was mostly positive, even in 2023. We're all aware of how much of the community devotes itself to skills, and it appears that we aren't seeing the final of the skills system yet. The new skill still to be announced and will be available in the coming months. Additionally, the minigames and side-activities are not left out by the game's developers, and they are constantly adding more features to the game. Over two decades of material is available, and, at the rate that it is going I'm not able to even guess how long the game will flourish. The community is active in its part in providing feedback and requests for more features for the old game. In the age of next-generation gaming, OSRS and RuneScape still retain the interest of a lot of players and keep them returning every day. I would highly suggest RuneScape in addition to Old School RuneScape to new players of 2023. but there's a caveat. The MMORPG genre has changed dramatically throughout the years, and it isn't easy to suggest RuneScape to those who are familiar with contemporary graphics and the extravagant environments that many of MMORPGs and live-services have to offer. However, if graphics aren't important to you and you are looking for a game that is fun, then consider giving it a shot and it's definitely worth the time. If you're a veteran who gave up RuneScape and cheap OSRS gold and is contemplating returning it, I highly recommend that you play the latest game's content. Like I said, RuneScape respects your time and, even if it's been more than a decade since the last time you played, you'll not have any issues jumping in to the action and starting it over and over. The process of preparing for new features took approximately a week. I had the chance to play the brand-new Secrets of the North content even after a lengthy hiatus.
    • Electronic Arts is making some much-needed changes to its soccer annual game EAFC 24 Coins. The addition of cross-play between PC, PS5. Stadia as well as Xbox Series X/S gamers and also players from PS4 as well as Xbox One players, is very thrilling. Cross-play has been demanded in FIFA by players for quite a long time. But as exciting as it may be, EA is actually holding off on providing full support for the technology. Particularly, FC 24 is not offering cross-play in its well-known Pro Clubs game mode. A confirmed statement from EA has stated that FC 24's cross-play feature will not be available for Pro Clubs in the foreseeable time. The reason according to EA is to ensure that "product innovativeness is of high top quality." Furthermore, Pro Clubs, according to EA is a degree of technical complexity that is higher than what developers can handle at the moment. "Technical complexity" is a subtle method of describing the scenario. The Pro Clubs of FIFA permit the use of up to 22 players in an online multiplayer game that includes between 2 and 11 real players in each team. Connecting 22 players on one platform isn't a simple task and adding interplay of the four platforms can make difficult. In the real world, the platforms pose less complicated than 22 players, however EA is just exploring cross-play, and therefore it's plausible when they say that additional time is required. It isn't stopping FIFA fans from feeling dissatisfied and angry about the situation However. Demands for cross-play being made available to FC 24 Pro Clubs are being circulated across the web and FIFA YouTuber JCC encouraging players to join support the cause. JCC along with other well-known players within the FIFA community are complaining that EA of placing the importance of FIFA Ultimate Team above the core experience like Pro Clubs. The company is very grateful that it has responded to the growing discontent within members of the FIFA community, saying it is aware of the criticism. Electronic Arts then points to its FIFA Twitter account to receive future updates on its plans for future games. This isn't a guarantee at all but it's about the closest a game's creator can get to say that something is being developed. FC 24 is all but certain to not have cross-play features for Pro Clubs at launch, or during the game's release. Maybe Pro Club cross-play will end being tested in FC 24 similar to how the basic cross-play was implemented in cheap EAFC 24 Coins. More likely, the feature will be a bit further away to be released by EA Sports FC's launch in 2023 or even later. It's also possible that FIFA fans are right and that EA's priority lies in FUT. It's the responsibility of EA to prove the criticism is not true.
    • SENSA69 💯 Daftar Link Slot Gacor Hari Ini Bisa Judi Slot Online KLIK DISINI >>> DAFTAR DAN LOGIN KLIK DISINI >>>   DAFTAR AKUN GACOR KLIK DISINI >>> DAFTAR AKUN VVIP KLIK DISINI >>>  LINK ALTERNATIF KLIK DISINI >>> AKUN GACOR SCATTER HITAM SENSA69 adalah slot gacor winrate 100% dengan server thailand dan akun pro. Dapatkan akses menuju kemenangan ke puluhan sampai ratusan juta rupiah hanya dalam hitungan menit. 3 web yang kami hadirkan ini adalah yang terbaik dengan histori kemenangan tertinggi di satu Asia Tenggara. Member-member dari web ini selalu kembali karena tim admin dan CS yang profesional serta kemenangan berapapun pasti akan dibayar. RTP slot gacor juga sudah disiapkan agar kalian tidak bingung lagi mau main apa dan di jam berapa. Semua fasilitas seperti deposit dana dan pulsa sudah disiapkan juga untuk kemudahan para slotters. Jadi tunggu apalagi? Raih kemenangan kalian disini sekarang juga!
  • Topics

×
×
  • Create New...

Important Information

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