
david476
Members-
Posts
238 -
Joined
-
Last visited
Everything posted by david476
-
How would I go about doing that?
-
How DOES it render now?
-
I have an entity: package com.DEBmods.modularships; import net.minecraft.entity.Entity; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; public class EntityShipBlock extends Entity{ public EntityShipControl controller; public int Xoff; public int Yoff; public int Zoff; public float rotationRoll; public int counter = 0; public EntityShipBlock(World par1World) { super(par1World); } public boolean canBePushed() { return false; } @Override protected void entityInit() { } @Override protected void readEntityFromNBT(NBTTagCompound var1) { } @Override protected void writeEntityToNBT(NBTTagCompound var1) { } //STUFF FOR onUpdate ONLY!!! public void onUpdate() { //Updates rotation and position if (controller != null) { this.setRotation(this.controller.rotationYaw, this.controller.rotationPitch); this.rotationRoll = this.controller.rotationRoll; this.setPosition(controller.posX, controller.posY, controller.posY); } if (this.counter == 20) { System.out.println("X = " + this.Xoff + " Y = " + this.Yoff + " Z = " + this.Zoff); } //Updates counter if (this.counter >= 20) { this.counter = 0; }else { ++this.counter; } } } When I have one in the world, I get an output like: X = -1 Y = 0 Z = 0 X = 0 Y = 0 Z = 0 (both lines at the same time) and any time I try to use offX, offY, or offZ they act like 0.
-
[unSOLVED] Trigonometry with connected entities
david476 replied to david476's topic in Modder Support
sorry: [20:23:24] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [20:23:24] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [20:23:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [20:23:24] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading [20:23:24] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 [20:23:24] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [20:23:24] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:23:24] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [20:23:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:23:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:23:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [20:23:24] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [20:23:25] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/DEB/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [20:23:25] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [20:23:25] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/DEB/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [20:23:25] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [20:23:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [20:23:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [20:23:25] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [20:23:25] [main/INFO]: Setting user: Player87 [20:23:26] [Client thread/INFO]: LWJGL Version: 2.9.0 [20:23:26] [Client thread/ERROR]: Couldn't set icon javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(Unknown Source) ~[?:1.7.0_51] at net.minecraft.client.Minecraft.readImage(Minecraft.java:639) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:468) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [20:23:27] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [20:23:27] [Client thread/INFO] [FML]: MinecraftForge v10.12.1.1060 Initialized [20:23:27] [Client thread/INFO] [FML]: Replaced 141 ore recipies [20:23:27] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [20:23:27] [Client thread/INFO] [FML]: Searching C:\Users\DEB\Desktop\forge-1.7.2-10.12.1.1060 Advanced\Forge\mods for mods [20:23:27] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [20:23:28] [Client thread/INFO] [deb_modularships]: Mod deb_modularships is missing the required element 'name'. Substituting deb_modularships [20:23:28] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [20:23:28] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:deb_modularships [20:23:29] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [20:23:29] [sound Library Loader/INFO]: Sound engine started [20:23:30] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [20:23:30] [Client thread/INFO]: Created: 256x256 textures/items-atlas DIRT BLOCK >> tile.dirt [20:23:30] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [20:23:30] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:deb_modularships [20:23:30] [Client thread/INFO]: Created: 256x256 textures/items-atlas [20:23:30] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas SoundSystem shutting down... Author: Paul Lamb, www.paulscode.com Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [20:23:31] [sound Library Loader/INFO]: Sound engine started [20:23:31] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms [20:23:33] [server thread/INFO]: Starting integrated minecraft server version 1.7.2 [20:23:33] [server thread/INFO]: Generating keypair [20:23:33] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [20:23:34] [server thread/INFO] [FML]: Loading dimension 0 (test 1-) (net.minecraft.server.integrated.IntegratedServer@587970d) [20:23:34] [server thread/INFO] [FML]: Loading dimension 1 (test 1-) (net.minecraft.server.integrated.IntegratedServer@587970d) [20:23:34] [server thread/INFO] [FML]: Loading dimension -1 (test 1-) (net.minecraft.server.integrated.IntegratedServer@587970d) [20:23:34] [server thread/INFO]: Preparing start region for level 0 [20:23:34] [Netty Client IO #0/INFO] [FML]: Server protocol version 1 [20:23:34] [Netty IO #1/INFO] [FML]: Client protocol version 1 [20:23:34] [Netty IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected] [20:23:34] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [20:23:34] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER [20:23:34] [server thread/INFO] [FML]: [server thread] Server side modded connection established [20:23:34] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [20:23:34] [server thread/INFO]: Player87[local:E:8a9312fd] logged in with entity id 25 at (1398.5, 6.349999964237213, -959.5) [20:23:34] [server thread/INFO]: Player87 joined the game [20:23:35] [server thread/INFO]: Stopping server [20:23:35] [server thread/INFO]: Saving players [20:23:35] [server thread/INFO]: Saving worlds [20:23:35] [server thread/INFO]: Saving chunks for level 'test 1-'/Overworld [20:23:35] [server thread/INFO]: Saving chunks for level 'test 1-'/Nether [20:23:35] [server thread/INFO]: Saving chunks for level 'test 1-'/The End [20:23:35] [server thread/INFO] [FML]: Unloading dimension 0 [20:23:35] [server thread/INFO] [FML]: Unloading dimension -1 [20:23:35] [server thread/INFO] [FML]: Unloading dimension 1 [20:23:35] [Client thread/FATAL]: Reported exception thrown! net.minecraft.util.ReportedException: Rendering entity in world at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:346) ~[RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:278) ~[RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:251) ~[RenderManager.class:?] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:532) ~[RenderGlobal.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1295) ~[EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1094) ~[EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1022) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:910) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.NullPointerException at modularships.renderstuff.RenderShipBlock.doRender(RenderShipBlock.java:37) ~[RenderShipBlock.class:?] at modularships.renderstuff.RenderShipBlock.doRender(RenderShipBlock.java:81) ~[RenderShipBlock.class:?] at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:300) ~[RenderManager.class:?] ... 14 more ---- Minecraft Crash Report ---- // This doesn't make any sense! Time: 4/26/14 8:23 PM Description: Rendering entity in world java.lang.NullPointerException: Rendering entity in world at modularships.renderstuff.RenderShipBlock.doRender(RenderShipBlock.java:37) at modularships.renderstuff.RenderShipBlock.doRender(RenderShipBlock.java:81) at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:300) at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:278) at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:251) at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:532) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1295) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1094) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1022) at net.minecraft.client.Minecraft.run(Minecraft.java:910) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at modularships.renderstuff.RenderShipBlock.doRender(RenderShipBlock.java:37) at modularships.renderstuff.RenderShipBlock.doRender(RenderShipBlock.java:81) -- Entity being rendered -- Details: Entity Type: entityshipblock (com.DEBmods.modularships.EntityShipBlock) Entity ID: 9 Entity Name: entity.entityshipblock.name Entity's Exact location: 1397.50, 5.50, -959.50 Entity's Block location: World: (1397,5,-960), Chunk: (at 5,0,0 in 87,-60; contains blocks 1392,0,-960 to 1407,255,-945), Region: (2,-2; contains chunks 64,-64 to 95,-33, blocks 1024,0,-1024 to 1535,255,-513) Entity's Momentum: 0.00, 0.00, 0.00 -- Renderer details -- Details: Assigned renderer: modularships.renderstuff.RenderShipBlock@4aa3a04 Location: -1.00,-2.47,0.00 - World: (-1,-3,0), Chunk: (at 15,-1,0 in -1,0; contains blocks -16,0,0 to -1,255,15), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Rotation: 90.0 Delta: 0.9168632 Stacktrace: at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:300) at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:278) at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:251) at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:532) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1295) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player87'/25, l='MpServer', x=1398.50, y=7.97, z=-959.50]] Chunk stats: MultiplayerChunkCache: 110, 110 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (1389,4,-955), Chunk: (at 13,0,5 in 86,-60; contains blocks 1376,0,-960 to 1391,255,-945), Region: (2,-2; contains chunks 64,-64 to 95,-33, blocks 1024,0,-1024 to 1535,255,-513) Level time: 384 game time, 384 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 17 total; [EntitySlime['Slime'/3, l='MpServer', x=1330.93, y=4.00, z=-1006.51], EntitySlime['Slime'/4, l='MpServer', x=1343.74, y=4.00, z=-901.47], EntitySlime['Slime'/5, l='MpServer', x=1356.35, y=4.33, z=-917.60], EntityShipBlock['entity.entityshipblock.name'/9, l='MpServer', x=1397.50, y=5.50, z=-959.50], EntitySlime['Slime'/10, l='MpServer', x=1411.33, y=4.33, z=-883.17], EntitySlime['Slime'/11, l='MpServer', x=1435.22, y=4.00, z=-1008.88], EntitySlime['Slime'/12, l='MpServer', x=1426.77, y=4.00, z=-994.92], EntitySlime['Slime'/13, l='MpServer', x=1430.04, y=4.00, z=-996.37], EntitySlime['Slime'/14, l='MpServer', x=1430.61, y=4.57, z=-1000.08], EntitySlime['Slime'/15, l='MpServer', x=1439.01, y=4.00, z=-990.27], EntityClientPlayerMP['Player87'/25, l='MpServer', x=1398.50, y=7.97, z=-959.50], EntitySlime['Slime'/17, l='MpServer', x=1438.44, y=4.00, z=-930.31], EntitySlime['Slime'/16, l='MpServer', x=1435.56, y=4.00, z=-989.51], EntitySlime['Slime'/18, l='MpServer', x=1437.96, y=4.00, z=-900.88], EntitySlime['Slime'/21, l='MpServer', x=1470.66, y=5.08, z=-996.89], EntitySlime['Slime'/20, l='MpServer', x=1443.46, y=4.00, z=-915.26], EntityShipControl['entity.entityshipcontrol.name'/26, l='MpServer', x=1398.50, y=5.50, z=-959.50]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:412) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2521) at net.minecraft.client.Minecraft.run(Minecraft.java:932) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 304486728 bytes (290 MB) / 556793856 bytes (531 MB) up to 1905262592 bytes (1817 MB) JVM Flags: 0 total; AABB Pool Size: 20003 (1120168 bytes; 1 MB) allocated, 944 (52864 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 5 mods loaded, 5 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available deb_modularships{1.0} [deb_modularships] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: GeForce GTX 550 Ti/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: ~~ERROR~~ NullPointerException: null Profiler Position: N/A (disabled) Vec3 Pool Size: 263 (14728 bytes; 0 MB) allocated, 184 (10304 bytes; 0 MB) used Anisotropic Filtering: Off (1) #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\DEB\Desktop\forge-1.7.2-10.12.1.1060 Advanced\Forge\.\crash-reports\crash-2014-04-26_20.23.35-client.txt AL lib: (EE) alc_cleanup: 1 device not closed -
[unSOLVED] Trigonometry with connected entities
david476 replied to david476's topic in Modder Support
update, realized some of my mistakes, now crashes on render. package modularships.renderstuff; import net.minecraft.client.renderer.entity.Render; import net.minecraft.entity.Entity; import com.DEBmods.modularships.EntityShipBlock; import com.DEBmods.modularships.modularshipsINIT; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class RenderShipBlock extends Render { private static final ResourceLocation texture = new ResourceLocation(modularshipsINIT.MODID + ":textures/entity/shipblockentity.png"); /** instance of modelShipBlock for rendering */ protected ModelShipBlock modelShipBlock; public RenderShipBlock() { this.shadowSize = 0.5F; this.modelShipBlock = new ModelShipBlock(); } /** * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then * handing it off to a worker function which does the actual work. In all probability, the class Render is generic * (Render<T extends Entity) and this method has signature public void func_76986_a(T entity, double d, double d1, * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. */ public void doRender(EntityShipBlock par1EntityShipBlock, double par2, double par4, double par6, float par8, float par9) { //modelShipBlock.Block.setRotationPoint(16 * par1EntityShipBlock.Xoff, 16 + (16 * par1EntityShipBlock.Yoff), 16 * par1EntityShipBlock.Zoff); modelShipBlock.Block.setRotationPoint((float)par1EntityShipBlock.controller.posX, (float)par1EntityShipBlock.controller.posY, (float)par1EntityShipBlock.controller.posZ); modelShipBlock.Block.offsetX = par1EntityShipBlock.Xoff; modelShipBlock.Block.offsetY = par1EntityShipBlock.Yoff; modelShipBlock.Block.offsetZ = par1EntityShipBlock.Zoff; float EntityPitch = par1EntityShipBlock.rotationPitch; GL11.glPushMatrix(); GL11.glTranslatef((float)par2, (float)par4, (float)par6); this.modelShipBlock.Block.rotateAngleY = (float) (-1 * Math.toRadians(par8 - 180)); GL11.glRotatef(par8 - 180, 0.0F, 1.0F, 0.0F); //GL11.glRotatef(EntityPitch, 0.0F, 0.0F, 1.0F); float f4 = 0.75F; GL11.glScalef(f4, f4, f4); GL11.glScalef(1.0F / f4, 1.0F / f4, 1.0F / f4); this.bindEntityTexture(par1EntityShipBlock); GL11.glScalef(-1.0F, -1.0F, 1.0F); this.modelShipBlock.render(par1EntityShipBlock, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); GL11.glPopMatrix(); //System.out.println(16 * par1EntityShipBlock.Xoff + " " + 16 + (16 * par1EntityShipBlock.Yoff) + " " + 16 * par1EntityShipBlock.Zoff); } /** * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. */ protected ResourceLocation getEntityTexture(EntityShipBlock par1EntityShipBlockShipBlock) { return texture; } /** * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. */ protected ResourceLocation getEntityTexture(Entity par1EntityShipBlock) { return this.getEntityTexture((EntityShipBlock)par1EntityShipBlock); } /** * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic * (Render<T extends Entity) and this method has signature public void func_76986_a(T entity, double d, double d1, * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. */ public void doRender(Entity par1EntityShipBlock, double par2, double par4, double par6, float par8, float par9) { this.doRender((EntityShipBlock)par1EntityShipBlock, par2, par4, par6, par8, par9); } } -
[unSOLVED] Trigonometry with connected entities
david476 replied to david476's topic in Modder Support
Figured out the errors, they were caused by something else. Now it just rotates around itself like it did before. Render Class: package modularships.renderstuff; import net.minecraft.client.renderer.entity.Render; import net.minecraft.entity.Entity; import com.DEBmods.modularships.EntityShipBlock; import com.DEBmods.modularships.modularshipsINIT; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class RenderShipBlock extends Render { private static final ResourceLocation texture = new ResourceLocation(modularshipsINIT.MODID + ":textures/entity/shipblockentity.png"); /** instance of modelShipBlock for rendering */ protected ModelShipBlock modelShipBlock; public RenderShipBlock() { this.shadowSize = 0.5F; this.modelShipBlock = new ModelShipBlock(); } /** * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then * handing it off to a worker function which does the actual work. In all probability, the class Render is generic * (Render<T extends Entity) and this method has signature public void func_76986_a(T entity, double d, double d1, * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. */ public void doRender(EntityShipBlock par1EntityShipBlock, double par2, double par4, double par6, float par8, float par9) { modelShipBlock.Block.setRotationPoint(-par1EntityShipBlock.Xoff, 16-par1EntityShipBlock.Yoff, -par1EntityShipBlock.Zoff); float EntityPitch = par1EntityShipBlock.rotationPitch; GL11.glPushMatrix(); GL11.glTranslatef((float)par2, (float)par4, (float)par6); this.modelShipBlock.Block.rotateAngleY = (float) (-1 * Math.toRadians(par8 - 180)); //GL11.glRotatef(par8 - 180, 0.0F, 1.0F, 0.0F); //GL11.glRotatef(EntityPitch, 0.0F, 0.0F, 1.0F); float f4 = 0.75F; GL11.glScalef(f4, f4, f4); GL11.glScalef(1.0F / f4, 1.0F / f4, 1.0F / f4); this.bindEntityTexture(par1EntityShipBlock); GL11.glScalef(-1.0F, -1.0F, 1.0F); this.modelShipBlock.render(par1EntityShipBlock, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); GL11.glPopMatrix(); } /** * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. */ protected ResourceLocation getEntityTexture(EntityShipBlock par1EntityShipBlockShipBlock) { return texture; } /** * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. */ protected ResourceLocation getEntityTexture(Entity par1EntityShipBlock) { return this.getEntityTexture((EntityShipBlock)par1EntityShipBlock); } /** * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic * (Render<T extends Entity) and this method has signature public void func_76986_a(T entity, double d, double d1, * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. */ public void doRender(Entity par1EntityShipBlock, double par2, double par4, double par6, float par8, float par9) { this.doRender((EntityShipBlock)par1EntityShipBlock, par2, par4, par6, par8, par9); } } Model Class: package modularships.renderstuff; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelShipBlock extends ModelBase { //fields ModelRenderer Block; public ModelShipBlock() { textureWidth = 64; textureHeight = 32; Block = new ModelRenderer(this, 0, 0); Block.addBox(-8F, -8F, -8F, 16, 16, 16); Block.setRotationPoint(0F, 16F, 0F); Block.setTextureSize(64, 32); Block.mirror = true; setRotation(Block, 0F, 0F, 0F); } public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7) { super.render(par1Entity, par2, par3, par4, par5, par6, par7); setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity); Block.render(par7); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity) { super.setRotationAngles(par1, par2, par3, par4, par5, par6, par7Entity); } } -
[unSOLVED] Trigonometry with connected entities
david476 replied to david476's topic in Modder Support
ideas? -
[unSOLVED] Trigonometry with connected entities
david476 replied to david476's topic in Modder Support
I was thinking I could do this by modifying the rotation point in the model file to the location of the controller but I'm getting crashes when I create the entity. Spawning method: public void becomeEntity(World world, EntityShipControl controller, int x, int y, int z, int contX, int contY, int contZ) { int newx = x; int newy = y; int newz = z; EntityShipBlock shipblockentity = new EntityShipBlock(world); shipblockentity.setPositionAndRotation(x + 0.5, y + 1.5, z + 0.5, controller.rotationYaw + 20, 0); shipblockentity.controller = controller; shipblockentity.Xoff = x - contX; shipblockentity.Yoff = y - contY; shipblockentity.Zoff = z - contZ; world.spawnEntityInWorld(shipblockentity); world.setBlockToAir(x, y, z); newx=newx+1; if (world.getBlock(newx, newy, newz) instanceof BlockShipBlock) { System.out.println("called"); BlockShipBlock xplusblock = (BlockShipBlock) world.getBlock(newx, newy, newz); xplusblock.becomeEntity(world, controller, newx, newy, newz, contX, contY, contZ); } newx=newx-2; if (world.getBlock(newx, newy, newz) instanceof BlockShipBlock) { System.out.println("called"); BlockShipBlock xminusblock = (BlockShipBlock) world.getBlock(newx, newy, newz); xminusblock.becomeEntity(world, controller, newx, newy, newz, contX, contY, contZ); } newx=newx+1; newy=newy+1; if (world.getBlock(newx, newy, newz) instanceof BlockShipBlock) { System.out.println("called"); BlockShipBlock yplusblock = (BlockShipBlock) world.getBlock(newx, newy, newz); yplusblock.becomeEntity(world, controller, newx, newy, newz, contX, contY, contZ); } newy=newy-2; if (world.getBlock(newx, newy, newz) instanceof BlockShipBlock) { System.out.println("called"); BlockShipBlock yminusblock = (BlockShipBlock) world.getBlock(newx, newy, newz); yminusblock.becomeEntity(world, controller, newx, newy, newz, contX, contY, contZ); } newy=newy+1; newz=newz+1; if (world.getBlock(newx, newy, newz) instanceof BlockShipBlock) { System.out.println("called"); BlockShipBlock zplusblock = (BlockShipBlock) world.getBlock(newx, newy, newz); zplusblock.becomeEntity(world, controller, newx, newy, newz, contX, contY, contZ); } newz=newz-2; if (world.getBlock(newx, newy, newz) instanceof BlockShipBlock) { System.out.println("called"); BlockShipBlock zminusblock = (BlockShipBlock) world.getBlock(newx, newy, newz); zminusblock.becomeEntity(world, controller, newx, newy, newz, contX, contY, contZ); } newz=newz+1; } Entity Class: package com.DEBmods.modularships; import net.minecraft.entity.Entity; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; public class EntityShipBlock extends Entity{ EntityShipControl controller; public int Xoff; public int Yoff; public int Zoff; public EntityShipBlock(World par1World) { super(par1World); } public boolean canBePushed() { return false; } @Override protected void entityInit() { } @Override protected void readEntityFromNBT(NBTTagCompound var1) { } @Override protected void writeEntityToNBT(NBTTagCompound var1) { } //STUFF FOR onUpdate ONLY!!! public void onUpdate() { //Sets up controller files /*if (this.controller == null) { controller = this.worldObj.getEntityByID(this.controllerid); }*/ //Updates rotation based on the controller //this.setRotation(this.controller.rotationYaw, this.controller.rotationPitch); } } Render Class: package modularships.renderstuff; import net.minecraft.client.renderer.entity.Render; import net.minecraft.entity.Entity; import com.DEBmods.modularships.EntityShipBlock; import com.DEBmods.modularships.modularshipsINIT; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class RenderShipBlock extends Render { private static final ResourceLocation texture = new ResourceLocation(modularshipsINIT.MODID + ":textures/entity/shipblockentity.png"); /** instance of modelShipBlock for rendering */ protected ModelShipBlock modelShipBlock; public RenderShipBlock() { this.shadowSize = 0.5F; this.modelShipBlock = new ModelShipBlock(); } /** * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then * handing it off to a worker function which does the actual work. In all probability, the class Render is generic * (Render<T extends Entity) and this method has signature public void func_76986_a(T entity, double d, double d1, * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. */ public void doRender(EntityShipBlock par1EntityShipBlock, double par2, double par4, double par6, float par8, float par9) { modelShipBlock.Block.setRotationPoint(-par1EntityShipBlock.Xoff, 16-par1EntityShipBlock.Yoff, -par1EntityShipBlock.Zoff); float EntityPitch = par1EntityShipBlock.rotationPitch; GL11.glPushMatrix(); GL11.glTranslatef((float)par2, (float)par4, (float)par6); GL11.glRotatef(par8 - 180, 0.0F, 1.0F, 0.0F); GL11.glRotatef(EntityPitch, 0.0F, 0.0F, 1.0F); float f4 = 0.75F; GL11.glScalef(f4, f4, f4); GL11.glScalef(1.0F / f4, 1.0F / f4, 1.0F / f4); this.bindEntityTexture(par1EntityShipBlock); GL11.glScalef(-1.0F, -1.0F, 1.0F); this.modelShipBlock.render(par1EntityShipBlock, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); GL11.glPopMatrix(); } /** * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. */ protected ResourceLocation getEntityTexture(EntityShipBlock par1EntityShipBlockShipBlock) { return texture; } /** * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. */ protected ResourceLocation getEntityTexture(Entity par1EntityShipBlock) { return this.getEntityTexture((EntityShipBlock)par1EntityShipBlock); } /** * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic * (Render<T extends Entity) and this method has signature public void func_76986_a(T entity, double d, double d1, * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. */ public void doRender(Entity par1EntityShipBlock, double par2, double par4, double par6, float par8, float par9) { this.doRender((EntityShipBlock)par1EntityShipBlock, par2, par4, par6, par8, par9); } } Model Class (if you need it): package modularships.renderstuff; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelShipBlock extends ModelBase { //fields ModelRenderer Block; public ModelShipBlock() { textureWidth = 64; textureHeight = 32; Block = new ModelRenderer(this, 0, 0); Block.addBox(-8F, -8F, -8F, 16, 16, 16); Block.setRotationPoint(0F, 16F, 0F); Block.setTextureSize(64, 32); Block.mirror = true; setRotation(Block, 0F, 0F, 0F); } public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7) { super.render(par1Entity, par2, par3, par4, par5, par6, par7); setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity); Block.render(par7); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity) { super.setRotationAngles(par1, par2, par3, par4, par5, par6, par7Entity); } } Crash if I just stay in the world after spawning the entity: [20:43:46] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [20:43:46] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [20:43:46] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [20:43:46] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading [20:43:46] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 [20:43:46] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [20:43:46] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:43:46] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [20:43:46] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:43:46] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:43:46] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [20:43:46] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [20:43:47] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/DEB/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [20:43:47] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [20:43:47] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/DEB/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [20:43:47] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [20:43:47] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [20:43:47] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [20:43:47] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [20:43:47] [main/INFO]: Setting user: Player207 [20:43:48] [Client thread/INFO]: LWJGL Version: 2.9.0 [20:43:48] [Client thread/ERROR]: Couldn't set icon javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(Unknown Source) ~[?:1.7.0_51] at net.minecraft.client.Minecraft.readImage(Minecraft.java:639) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:468) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [20:43:49] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [20:43:49] [Client thread/INFO] [FML]: MinecraftForge v10.12.1.1060 Initialized [20:43:49] [Client thread/INFO] [FML]: Replaced 141 ore recipies [20:43:49] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [20:43:49] [Client thread/INFO] [FML]: Searching C:\Users\DEB\Desktop\forge-1.7.2-10.12.1.1060 Advanced\Forge\mods for mods [20:43:49] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [20:43:51] [Client thread/INFO] [deb_modularships]: Mod deb_modularships is missing the required element 'name'. Substituting deb_modularships [20:43:51] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [20:43:51] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:deb_modularships [20:43:51] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [20:43:52] [sound Library Loader/INFO]: Sound engine started [20:43:52] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [20:43:52] [Client thread/INFO]: Created: 256x256 textures/items-atlas DIRT BLOCK >> tile.dirt [20:43:52] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [20:43:52] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:deb_modularships [20:43:52] [Client thread/INFO]: Created: 256x256 textures/items-atlas [20:43:53] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas SoundSystem shutting down... Author: Paul Lamb, www.paulscode.com Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [20:43:53] [sound Library Loader/INFO]: Sound engine started [20:43:54] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms [20:43:57] [server thread/INFO]: Starting integrated minecraft server version 1.7.2 [20:43:57] [server thread/INFO]: Generating keypair [20:43:57] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [20:43:58] [server thread/INFO] [FML]: Loading dimension 0 (Copy of test 1-) (net.minecraft.server.integrated.IntegratedServer@4adeee3d) [20:43:58] [server thread/INFO] [FML]: Loading dimension 1 (Copy of test 1-) (net.minecraft.server.integrated.IntegratedServer@4adeee3d) [20:43:58] [server thread/INFO] [FML]: Loading dimension -1 (Copy of test 1-) (net.minecraft.server.integrated.IntegratedServer@4adeee3d) [20:43:58] [server thread/INFO]: Preparing start region for level 0 [20:43:58] [Netty Client IO #0/INFO] [FML]: Server protocol version 1 [20:43:58] [Netty IO #1/INFO] [FML]: Client protocol version 1 [20:43:58] [Netty IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected] [20:43:58] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [20:43:58] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER [20:43:58] [server thread/INFO] [FML]: [server thread] Server side modded connection established [20:43:58] [server thread/INFO]: Player207[local:E:c6e010b4] logged in with entity id 11 at (1381.078784686256, 4.0, -950.7350518453463) [20:43:58] [server thread/INFO]: Player207 joined the game [20:43:58] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established called called [20:44:51] [server thread/ERROR]: Encountered an unexpected exception java.lang.NoClassDefFoundError: net/minecraft/entity/Entity$1 at net.minecraft.entity.Entity.addEntityCrashInfo(Entity.java:2463) ~[Entity.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1578) ~[Entity.class:?] at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(IntegratedPlayerList.java:35) ~[integratedPlayerList.class:?] at net.minecraft.server.management.ServerConfigurationManager.saveAllPlayerData(ServerConfigurationManager.java:915) ~[serverConfigurationManager.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:625) ~[MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) [MinecraftServer$2.class:?] [20:44:51] [server thread/ERROR]: This crash report has been saved to: C:\Users\DEB\Desktop\forge-1.7.2-10.12.1.1060 Advanced\Forge\.\crash-reports\crash-2014-04-25_20.44.51-server.txt [20:44:51] [server thread/INFO]: Stopping server [20:44:51] [server thread/INFO]: Saving players ---- Minecraft Crash Report ---- // I feel sad now Time: 4/25/14 8:44 PM Description: Exception in server tick loop java.lang.NoClassDefFoundError: net/minecraft/entity/Entity$1 at net.minecraft.entity.Entity.addEntityCrashInfo(Entity.java:2463) at net.minecraft.entity.Entity.writeToNBT(Entity.java:1578) at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(IntegratedPlayerList.java:35) at net.minecraft.server.management.ServerConfigurationManager.saveAllPlayerData(ServerConfigurationManager.java:915) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:625) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 315791056 bytes (301 MB) / 810024960 bytes (772 MB) up to 1905262592 bytes (1817 MB) JVM Flags: 0 total; AABB Pool Size: 5457 (305592 bytes; 0 MB) allocated, 5432 (304192 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 5 mods loaded, 5 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available deb_modularships{1.0} [deb_modularships] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Profiler Position: N/A (disabled) Vec3 Pool Size: 622 (34832 bytes; 0 MB) allocated, 622 (34832 bytes; 0 MB) used Player Count: 1 / 8; [EntityPlayerMP['Player207'/11, l='Copy of test 1-', x=1378.50, y=6.35, z=-949.50]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-04-25_20.44.51-server.txt [20:44:51] [Client Shutdown Thread/INFO]: Stopping server [20:44:51] [Client Shutdown Thread/INFO]: Saving players Exception in thread "Client Shutdown Thread" java.lang.NoClassDefFoundError: net/minecraft/entity/Entity$1 at net.minecraft.entity.Entity.addEntityCrashInfo(Entity.java:2463) at net.minecraft.entity.Entity.writeToNBT(Entity.java:1578) at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(IntegratedPlayerList.java:35) at net.minecraft.server.management.ServerConfigurationManager.saveAllPlayerData(ServerConfigurationManager.java:915) at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:398) at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:255) at net.minecraft.client.Minecraft.stopIntegratedServer(Minecraft.java:2670) at net.minecraft.client.main.Main$2.run(Main.java:102) AL lib: (EE) alc_cleanup: 1 device not closed Crash if I close the world after spawning an entity: [20:49:45] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [20:49:45] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [20:49:45] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [20:49:45] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading [20:49:45] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 [20:49:45] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [20:49:45] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:49:45] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [20:49:45] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:49:45] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [20:49:45] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [20:49:45] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [20:49:46] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/DEB/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [20:49:46] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [20:49:46] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/DEB/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [20:49:46] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [20:49:46] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [20:49:46] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [20:49:46] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [20:49:47] [main/INFO]: Setting user: Player365 [20:49:47] [Client thread/INFO]: LWJGL Version: 2.9.0 [20:49:47] [Client thread/ERROR]: Couldn't set icon javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(Unknown Source) ~[?:1.7.0_51] at net.minecraft.client.Minecraft.readImage(Minecraft.java:639) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:468) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [20:49:48] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [20:49:48] [Client thread/INFO] [FML]: MinecraftForge v10.12.1.1060 Initialized [20:49:48] [Client thread/INFO] [FML]: Replaced 141 ore recipies [20:49:48] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [20:49:48] [Client thread/INFO] [FML]: Searching C:\Users\DEB\Desktop\forge-1.7.2-10.12.1.1060 Advanced\Forge\mods for mods [20:49:49] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [20:49:50] [Client thread/INFO] [deb_modularships]: Mod deb_modularships is missing the required element 'name'. Substituting deb_modularships [20:49:50] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [20:49:50] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:deb_modularships [20:49:50] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [20:49:51] [sound Library Loader/INFO]: Sound engine started [20:49:51] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [20:49:51] [Client thread/INFO]: Created: 256x256 textures/items-atlas DIRT BLOCK >> tile.dirt [20:49:51] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [20:49:51] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:deb_modularships [20:49:51] [Client thread/INFO]: Created: 256x256 textures/items-atlas [20:49:52] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas SoundSystem shutting down... Author: Paul Lamb, www.paulscode.com Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [20:49:52] [sound Library Loader/INFO]: Sound engine started [20:49:53] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms [20:49:55] [server thread/INFO]: Starting integrated minecraft server version 1.7.2 [20:49:55] [server thread/INFO]: Generating keypair [20:49:55] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [20:49:55] [server thread/INFO] [FML]: Loading dimension 0 (Copy of test 1-) (net.minecraft.server.integrated.IntegratedServer@13df82e8) [20:49:55] [server thread/INFO] [FML]: Loading dimension 1 (Copy of test 1-) (net.minecraft.server.integrated.IntegratedServer@13df82e8) [20:49:55] [server thread/INFO] [FML]: Loading dimension -1 (Copy of test 1-) (net.minecraft.server.integrated.IntegratedServer@13df82e8) [20:49:55] [server thread/INFO]: Preparing start region for level 0 [20:49:56] [Netty Client IO #0/INFO] [FML]: Server protocol version 1 [20:49:56] [Netty IO #1/INFO] [FML]: Client protocol version 1 [20:49:56] [Netty IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected] [20:49:56] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [20:49:56] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER [20:49:56] [server thread/INFO] [FML]: [server thread] Server side modded connection established [20:49:56] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [20:49:56] [server thread/INFO]: Player365[local:E:1952f66b] logged in with entity id 11 at (1381.078784686256, 4.0, -950.7350518453463) [20:49:56] [server thread/INFO]: Player365 joined the game [20:49:58] [server thread/INFO]: Saving and pausing game... [20:49:58] [server thread/INFO]: Saving chunks for level 'Copy of test 1-'/Overworld [20:49:58] [server thread/INFO]: Saving chunks for level 'Copy of test 1-'/Nether [20:49:58] [server thread/INFO]: Saving chunks for level 'Copy of test 1-'/The End [20:49:59] [server thread/INFO]: Stopping server [20:49:59] [server thread/INFO]: Saving players [20:49:59] [server thread/INFO]: Saving worlds [20:49:59] [server thread/INFO]: Saving chunks for level 'Copy of test 1-'/Overworld [20:49:59] [server thread/INFO]: Saving chunks for level 'Copy of test 1-'/Nether [20:49:59] [server thread/INFO]: Saving chunks for level 'Copy of test 1-'/The End [20:49:59] [server thread/INFO] [FML]: Unloading dimension 0 [20:49:59] [server thread/INFO] [FML]: Unloading dimension -1 [20:49:59] [server thread/INFO] [FML]: Unloading dimension 1 [20:50:03] [server thread/INFO]: Starting integrated minecraft server version 1.7.2 [20:50:03] [server thread/INFO]: Generating keypair [20:50:03] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [20:50:03] [server thread/INFO] [FML]: Loading dimension 0 (Copy of test 1-) (net.minecraft.server.integrated.IntegratedServer@2540d625) [20:50:03] [server thread/INFO] [FML]: Loading dimension 1 (Copy of test 1-) (net.minecraft.server.integrated.IntegratedServer@2540d625) [20:50:03] [server thread/INFO] [FML]: Loading dimension -1 (Copy of test 1-) (net.minecraft.server.integrated.IntegratedServer@2540d625) [20:50:03] [server thread/INFO]: Preparing start region for level 0 [20:50:03] [Netty Client IO #1/INFO] [FML]: Server protocol version 1 [20:50:03] [Netty IO #3/INFO] [FML]: Client protocol version 1 [20:50:03] [Netty IO #3/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected] [20:50:03] [Netty IO #3/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [20:50:03] [Netty Client IO #1/INFO] [FML]: Attempting connection with missing mods [] at SERVER [20:50:03] [server thread/INFO] [FML]: [server thread] Server side modded connection established [20:50:03] [server thread/INFO]: Player365[local:E:e7198f67] logged in with entity id 15713 at (1381.078784686256, 4.0, -950.7350518453463) [20:50:03] [server thread/INFO]: Player365 joined the game [20:50:03] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established called called [20:50:06] [server thread/INFO]: Saving and pausing game... [20:50:13] [server thread/ERROR]: Encountered an unexpected exception java.lang.NoClassDefFoundError: net/minecraft/entity/Entity$1 at net.minecraft.entity.Entity.addEntityCrashInfo(Entity.java:2463) ~[Entity.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1578) ~[Entity.class:?] at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(IntegratedPlayerList.java:35) ~[integratedPlayerList.class:?] at net.minecraft.server.management.ServerConfigurationManager.saveAllPlayerData(ServerConfigurationManager.java:915) ~[serverConfigurationManager.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:112) ~[integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) [MinecraftServer$2.class:?] [20:50:13] [server thread/ERROR]: This crash report has been saved to: C:\Users\DEB\Desktop\forge-1.7.2-10.12.1.1060 Advanced\Forge\.\crash-reports\crash-2014-04-25_20.50.13-server.txt [20:50:13] [server thread/INFO]: Stopping server [20:50:13] [server thread/INFO]: Saving players [20:50:21] [server thread/ERROR]: Exception stopping the server java.lang.NoClassDefFoundError: net/minecraft/entity/Entity$1 at net.minecraft.entity.Entity.addEntityCrashInfo(Entity.java:2463) ~[Entity.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1578) ~[Entity.class:?] at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(IntegratedPlayerList.java:35) ~[integratedPlayerList.class:?] at net.minecraft.server.management.ServerConfigurationManager.saveAllPlayerData(ServerConfigurationManager.java:915) ~[serverConfigurationManager.class:?] at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:398) ~[MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:255) ~[integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:531) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) [MinecraftServer$2.class:?] [20:50:21] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded. ---- Minecraft Crash Report ---- // I bet Cylons wouldn't have this problem. Time: 4/25/14 8:50 PM Description: Exception in server tick loop java.lang.NoClassDefFoundError: net/minecraft/entity/Entity$1 at net.minecraft.entity.Entity.addEntityCrashInfo(Entity.java:2463) at net.minecraft.entity.Entity.writeToNBT(Entity.java:1578) at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(IntegratedPlayerList.java:35) at net.minecraft.server.management.ServerConfigurationManager.saveAllPlayerData(ServerConfigurationManager.java:915) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:112) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 137309592 bytes (130 MB) / 609746944 bytes (581 MB) up to 1905262592 bytes (1817 MB) JVM Flags: 0 total; AABB Pool Size: 2475 (138600 bytes; 0 MB) allocated, 2312 (129472 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 5 mods loaded, 5 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available deb_modularships{1.0} [deb_modularships] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available Profiler Position: N/A (disabled) Vec3 Pool Size: 344 (19264 bytes; 0 MB) allocated, 325 (18200 bytes; 0 MB) used Player Count: 1 / 8; [EntityPlayerMP['Player365'/15713, l='Copy of test 1-', x=1378.50, y=6.35, z=-950.50]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-04-25_20.50.13-server.txt AL lib: (EE) alc_cleanup: 1 device not closed -
did you look at the second image (the link)?
-
[unSOLVED] Trigonometry with connected entities
david476 replied to david476's topic in Modder Support
Never mind, I don't get them... Could somebody just give or link the equations I need? I also no nothing about matrices, this is all way over my head. Thanks... -
[1.7] World crashes on save after I added NBT
david476 replied to david476's topic in Modder Support
Now it crashes when I create the entity. new code: package com.DEBmods.modularships; import net.minecraft.entity.Entity; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; public class EntityShipBlock extends Entity{ int controllerid; public int Xoff; public int Yoff; public int Zoff; public EntityShipBlock(World par1World) { super(par1World); } public boolean canBePushed() { return false; } @Override protected void entityInit() { } @Override protected void readEntityFromNBT(NBTTagCompound var1) { this.controllerid = var1.getInteger("controllerid"); } @Override protected void writeEntityToNBT(NBTTagCompound var1) { var1.setInteger("controllerid", this.controllerid); } public Entity getController() { return this.worldObj.getEntityByID(this.controllerid); } //STUFF FOR onUpdate ONLY!!! public void onUpdate() { //Sets up controller files /*if (this.controller == null) { controller = this.worldObj.getEntityByID(this.controllerid); }*/ //Updates rotation based on the controller if (this.controllerid > 1) { this.setRotation(this.getController().rotationYaw, this.getController().rotationPitch); } } } new crash report: at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] at com.DEBmods.modularships.EntityShipControl.writeEntityToNBT(EntityShipControl.java:43) ~[EntityShipControl.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1562) ~[Entity.class:?] [15:52:30] [Client thread/FATAL]: Reported exception thrown! net.minecraft.util.ReportedException: Ticking entity at net.minecraft.world.World.updateEntities(World.java:2079) ~[World.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:2062) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:994) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:910) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.NullPointerException at com.DEBmods.modularships.EntityShipBlock.onUpdate(EntityShipBlock.java:50) ~[EntityShipBlock.class:?] at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2254) ~[World.class:?] at net.minecraft.world.World.updateEntity(World.java:2214) ~[World.class:?] at net.minecraft.world.World.updateEntities(World.java:2064) ~[World.class:?] ... 10 more ---- Minecraft Crash Report ---- // Don't be sad, have a hug! <3 Time: 4/25/14 3:52 PM Description: Ticking entity java.lang.NullPointerException: Ticking entity at com.DEBmods.modularships.EntityShipBlock.onUpdate(EntityShipBlock.java:50) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2254) at net.minecraft.world.World.updateEntity(World.java:2214) at net.minecraft.world.World.updateEntities(World.java:2064) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2062) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:994) at net.minecraft.client.Minecraft.run(Minecraft.java:910) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.DEBmods.modularships.EntityShipBlock.onUpdate(EntityShipBlock.java:50) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2254) at net.minecraft.world.World.updateEntity(World.java:2214) -- Entity being ticked -- Details: Entity Type: entityshipblock (com.DEBmods.modularships.EntityShipBlock) Entity ID: 27352 Entity Name: entity.entityshipblock.name Entity's Exact location: 1378.50, 5.50, -945.50 Entity's Block location: World: (1378,5,-946), Chunk: (at 2,0,14 in 86,-60; contains blocks 1376,0,-960 to 1391,255,-945), Region: (2,-2; contains chunks 64,-64 to 95,-33, blocks 1024,0,-1024 to 1535,255,-513) Entity's Momentum: 0.00, 0.00, 0.00 Stacktrace: at net.minecraft.world.World.updateEntities(World.java:2064) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player481'/121, l='MpServer', x=1378.50, y=7.97, z=-944.50]] Chunk stats: MultiplayerChunkCache: 225, 225 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (1389,4,-955), Chunk: (at 13,0,5 in 86,-60; contains blocks 1376,0,-960 to 1391,255,-945), Region: (2,-2; contains chunks 64,-64 to 95,-33, blocks 1024,0,-1024 to 1535,255,-513) Level time: 2931 game time, 2931 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 59 total; [EntityClientPlayerMP['Player481'/121, l='MpServer', x=1378.50, y=7.97, z=-944.50], EntitySlime['Slime'/2195, l='MpServer', x=1446.53, y=4.32, z=-941.19], EntityShipBlock['entity.entityshipblock.name'/27352, l='MpServer', x=1378.50, y=5.50, z=-945.50], EntitySlime['Slime'/36, l='MpServer', x=1301.93, y=4.95, z=-1014.49], EntitySlime['Slime'/37, l='MpServer', x=1311.66, y=4.00, z=-966.94], EntitySlime['Slime'/41, l='MpServer', x=1308.94, y=4.00, z=-864.28], EntityPig['Pig'/46, l='MpServer', x=1327.47, y=4.00, z=-998.85], EntitySheep['Sheep'/47, l='MpServer', x=1323.78, y=4.00, z=-977.64], EntityChicken['Chicken'/51, l='MpServer', x=1326.63, y=4.00, z=-957.41], EntitySheep['Sheep'/50, l='MpServer', x=1321.03, y=4.00, z=-954.91], EntityChicken['Chicken'/49, l='MpServer', x=1321.19, y=4.00, z=-955.78], EntityPig['Pig'/48, l='MpServer', x=1318.13, y=4.00, z=-987.72], EntitySheep['Sheep'/55, l='MpServer', x=1326.19, y=4.00, z=-938.41], EntitySheep['Sheep'/54, l='MpServer', x=1325.94, y=4.00, z=-941.41], EntityChicken['Chicken'/53, l='MpServer', x=1316.63, y=4.00, z=-934.38], EntitySheep['Sheep'/52, l='MpServer', x=1325.97, y=4.00, z=-936.78], EntitySlime['Slime'/58, l='MpServer', x=1324.50, y=4.00, z=-921.03], EntitySlime['Slime'/57, l='MpServer', x=1311.08, y=4.00, z=-928.69], EntitySheep['Sheep'/56, l='MpServer', x=1327.22, y=4.00, z=-936.97], EntityPig['Pig'/63, l='MpServer', x=1334.72, y=4.00, z=-993.50], EntityShipControl['entity.entityshipcontrol.name'/27330, l='MpServer', x=1378.50, y=5.50, z=-944.50], EntitySlime['Slime'/62, l='MpServer', x=1326.06, y=4.00, z=-1011.16], EntitySheep['Sheep'/68, l='MpServer', x=1329.81, y=4.00, z=-982.31], EntitySheep['Sheep'/69, l='MpServer', x=1331.59, y=4.00, z=-985.50], EntitySheep['Sheep'/70, l='MpServer', x=1332.16, y=4.00, z=-981.81], EntityPig['Pig'/71, l='MpServer', x=1334.06, y=4.00, z=-990.53], EntitySlime['Slime'/23968, l='MpServer', x=1431.60, y=4.00, z=-901.40], EntityPig['Pig'/64, l='MpServer', x=1333.50, y=4.00, z=-986.50], EntityPig['Pig'/65, l='MpServer', x=1338.74, y=4.00, z=-980.22], EntityPig['Pig'/66, l='MpServer', x=1335.44, y=4.00, z=-980.84], EntityPig['Pig'/67, l='MpServer', x=1331.38, y=4.00, z=-977.13], EntitySheep['Sheep'/76, l='MpServer', x=1338.53, y=4.00, z=-939.84], EntitySlime['Slime'/79, l='MpServer', x=1354.04, y=4.00, z=-963.03], EntitySheep['Sheep'/72, l='MpServer', x=1325.39, y=4.00, z=-953.65], EntityChicken['Chicken'/73, l='MpServer', x=1334.63, y=4.00, z=-953.41], EntitySlime['Slime'/74, l='MpServer', x=1346.61, y=5.06, z=-948.59], EntitySheep['Sheep'/75, l='MpServer', x=1342.79, y=4.00, z=-941.69], EntitySlime['Slime'/87, l='MpServer', x=1367.43, y=5.01, z=-1015.19], EntitySlime['Slime'/81, l='MpServer', x=1341.52, y=4.00, z=-917.50], EntitySlime['Slime'/80, l='MpServer', x=1349.73, y=4.00, z=-960.66], EntitySlime['Slime'/83, l='MpServer', x=1358.84, y=4.00, z=-887.38], EntitySlime['Slime'/82, l='MpServer', x=1343.63, y=4.69, z=-894.84], EntityCow['Cow'/93, l='MpServer', x=1365.13, y=4.00, z=-900.91], EntitySlime['Slime'/92, l='MpServer', x=1364.66, y=4.00, z=-912.13], EntityHorse['Horse'/95, l='MpServer', x=1367.50, y=4.00, z=-903.50], EntityCow['Cow'/94, l='MpServer', x=1370.75, y=4.00, z=-899.34], EntitySlime['Slime'/89, l='MpServer', x=1367.21, y=4.32, z=-982.68], EntitySlime['Slime'/88, l='MpServer', x=1368.76, y=4.82, z=-1001.99], EntitySlime['Slime'/91, l='MpServer', x=1380.24, y=4.00, z=-911.94], EntitySlime['Slime'/90, l='MpServer', x=1370.69, y=4.00, z=-978.22], EntityCow['Cow'/100, l='MpServer', x=1363.81, y=4.00, z=-890.84], EntitySheep['Sheep'/98, l='MpServer', x=1363.41, y=4.00, z=-895.13], EntitySheep['Sheep'/99, l='MpServer', x=1374.72, y=4.00, z=-889.56], EntitySlime['Slime'/96, l='MpServer', x=1368.06, y=4.00, z=-909.88], EntityCow['Cow'/97, l='MpServer', x=1362.38, y=4.00, z=-894.03], EntitySlime['Slime'/117, l='MpServer', x=1429.88, y=5.00, z=-963.84], EntitySlime['Slime'/116, l='MpServer', x=1440.06, y=4.00, z=-999.66], EntitySlime['Slime'/115, l='MpServer', x=1392.84, y=4.00, z=-970.65], EntitySlime['Slime'/13937, l='MpServer', x=1392.28, y=4.00, z=-986.72]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:412) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2521) at net.minecraft.client.Minecraft.run(Minecraft.java:932) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 441762120 bytes (421 MB) / 557842432 bytes (532 MB) up to 1905262592 bytes (1817 MB) JVM Flags: 0 total; AABB Pool Size: 20003 (1120168 bytes; 1 MB) allocated, 1069 (59864 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 5 mods loaded, 5 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available deb_modularships{1.0} [deb_modularships] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: GeForce GTX 550 Ti/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: ~~ERROR~~ NullPointerException: null Profiler Position: N/A (disabled) Vec3 Pool Size: 361 (20216 bytes; 0 MB) allocated, 132 (7392 bytes; 0 MB) used Anisotropic Filtering: Off (1) #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\DEB\Desktop\forge-1.7.2-10.12.1.1060 Advanced\Forge\.\crash-reports\crash-2014-04-25_15.52.30-client.txt AL lib: (EE) alc_cleanup: 1 device not closed -
Ya, it might be when the middle leaves the screen. Is there like an always render option or something?
-
Just give it a tile entity and render that. Make the block invisible. Try http://www.minecraftforge.net/wiki/Custom_Tile_Entity_Renderer and its requirements!
-
[1.7] World crashes on save after I added NBT
david476 replied to david476's topic in Modder Support
OH GOD IM AN IDIOT!!! Thanks! -
[1.6.4]"GameRegistry.registerBlock()" Problem
david476 replied to JustDaniel's topic in Modder Support
Sure! -
[1.6.4]"GameRegistry.registerBlock()" Problem
david476 replied to JustDaniel's topic in Modder Support
You need to put in in an Init method like: @EventHandler public void preInit(FMLPreInitializationEvent event) { GameRegistry.registerBlock(provaBlocco, "provaBlocco"); } -
That says it! Here is my entity file and console after the crash. The entity was working fine before I tried to add NBT. package com.DEBmods.modularships; import net.minecraft.entity.Entity; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; public class EntityShipBlock extends Entity{ int controllerid; public int Xoff; public int Yoff; public int Zoff; public EntityShipBlock(World par1World) { super(par1World); } public boolean canBePushed() { return false; } @Override protected void entityInit() { } @Override protected void readEntityFromNBT(NBTTagCompound var1) { var1.getInteger("controllerid"); } @Override protected void writeEntityToNBT(NBTTagCompound var1) { var1.setInteger("controllerid", this.controllerid); } public Entity getController() { return this.worldObj.getEntityByID(this.controllerid); } //STUFF FOR onUpdate ONLY!!! public void onUpdate() { //Sets up controller files /*if (this.controller == null) { controller = this.worldObj.getEntityByID(this.controllerid); }*/ //Updates rotation based on the controller if (this.getController() != null) { this.setRotation(this.getController().rotationYaw, this.getController().rotationPitch); } } } 07:40:01] [server thread/INFO]: Saving and pausing game... [07:40:09] [server thread/ERROR]: Encountered an unexpected exception java.lang.NoClassDefFoundError: net/minecraft/entity/Entity$1 at net.minecraft.entity.Entity.addEntityCrashInfo(Entity.java:2463) ~[Entity.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1578) ~[Entity.class:?] at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(IntegratedPlayerList.java:35) ~[integratedPlayerList.class:?] at net.minecraft.server.management.ServerConfigurationManager.saveAllPlayerData(ServerConfigurationManager.java:915) ~[serverConfigurationManager.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:112) ~[integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) [MinecraftServer$2.class:?] [07:40:09] [server thread/ERROR]: This crash report has been saved to: C:\Users\DEB\Desktop\forge-1.7.2-10.12.1.1060 Advanced\Forge\.\crash-reports\crash-2014-04-25_07.40.09-server.txt [07:40:09] [server thread/INFO]: Stopping server [07:40:09] [server thread/INFO]: Saving players [07:40:16] [server thread/ERROR]: Exception stopping the server java.lang.NoClassDefFoundError: net/minecraft/entity/Entity$1 at net.minecraft.entity.Entity.addEntityCrashInfo(Entity.java:2463) ~[Entity.class:?] at net.minecraft.entity.Entity.writeToNBT(Entity.java:1578) ~[Entity.class:?] at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(IntegratedPlayerList.java:35) ~[integratedPlayerList.class:?] at net.minecraft.server.management.ServerConfigurationManager.saveAllPlayerData(ServerConfigurationManager.java:915) ~[serverConfigurationManager.class:?] at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:398) ~[MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:255) ~[integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:531) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) [MinecraftServer$2.class:?] [07:40:16] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded. ---- Minecraft Crash Report ---- // This doesn't make any sense! Time: 4/25/14 7:40 AM Description: Exception in server tick loop java.lang.NoClassDefFoundError: net/minecraft/entity/Entity$1 at net.minecraft.entity.Entity.addEntityCrashInfo(Entity.java:2463) at net.minecraft.entity.Entity.writeToNBT(Entity.java:1578) at net.minecraft.server.integrated.IntegratedPlayerList.writePlayerData(IntegratedPlayerList.java:35) at net.minecraft.server.management.ServerConfigurationManager.saveAllPlayerData(ServerConfigurationManager.java:915) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:112) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:742) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 387983336 bytes (370 MB) / 811073536 bytes (773 MB) up to 1905262592 bytes (1817 MB) JVM Flags: 0 total; AABB Pool Size: 2705 (151480 bytes; 0 MB) allocated, 2439 (136584 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 5 mods loaded, 5 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available deb_modularships{1.0} [deb_modularships] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Profiler Position: N/A (disabled) Vec3 Pool Size: 333 (18648 bytes; 0 MB) allocated, 273 (15288 bytes; 0 MB) used Player Count: 1 / 8; [EntityPlayerMP['Player463'/121, l='test 1-', x=1379.50, y=6.35, z=-944.50]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-04-25_07.40.09-server.txt AL lib: (EE) alc_cleanup: 1 device not closed
-
ideas?
-
Here: http://s28.postimg.org/obaqg796l/javaw_2014_04_24_21_43_06_09.png[/img] http://s28.postimg.org/vsjxveypp/javaw_2014_04_24_21_43_07_54.png
-
Ideas?
-
Quick question. I've noticed that my and other people's entities (extend entity class) are invisible when viewed at specific directions. Any quick solutions anyone knows?
-
[unSOLVED] Trigonometry with connected entities
david476 replied to david476's topic in Modder Support
Thank you everyone! -
[unSOLVED] Trigonometry with connected entities
david476 replied to david476's topic in Modder Support
It looks like there are some equations on https://www.chrobotics.com/library/understanding-euler-angles that could work... (Under: The complete rotation matrix for moving from the inertial frame to the body frame) Are you saying that in equations like these the rotations are in radians? -
[unSOLVED] Trigonometry with connected entities
david476 replied to david476's topic in Modder Support
OK... I think I'm getting the Spherical coordinate system and how to convert it to X, Y, Z with: (I think the symbol is phi) x=r*sin(theta)*cos(phi) y=r*sin(theta)*sin(phi) z=r*cos(theta) where theta = yaw and phi= pitch but how would you factor in the roll? (I would like to have it for my entity even though most don't) Also, are you sure rotation is in radians? From my limited testing it seems like they are in degrees. When I set the pitch to 5 it looks like it should... Sorry I know so little about this stuff, thanks for the help!