Skip to content

Instantly share code, notes, and snippets.

@StillManic
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save StillManic/10b56ed1d84d15dadebe to your computer and use it in GitHub Desktop.

Select an option

Save StillManic/10b56ed1d84d15dadebe to your computer and use it in GitHub Desktop.
public class BlockTrackRenderHandler implements ISimpleBlockRenderingHandler {
int renderId = -1;
public BlockTrackRenderHandler(int renderId) {
this.renderId = renderId;
}
@Override
public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer) {
if (block instanceof BlockTrack) {
BlockTrack track = (BlockTrack) block;
CoasterStyle style = track.getStyle();
// IModelCustom modelCustom = AdvancedModelLoader.loadModel(style.getModelLocation());
// OBJModel objModel = (OBJModel) modelCustom;
// objModel.materialLibrary.getMaterial(objModel.materialLibrary.getMaterialNames().get(0)).getTexture().getTextureLocation();
// renderer.minecraftRB.getTextureManager().bindTexture(new ResourceLocation(RC2.getPackContainingStyle(track.getStyle()).getDirectory(), ));
GL11.glPushMatrix();
// objModel.renderPart(track.getPieceName());
// Tessellator.instance.startDrawingQuads();
style.getModel().renderPart(track.getPieceName());
// Tessellator.instance.draw();
GL11.glPopMatrix();
// renderer.setOverrideBlockTexture(renderer.minecraftRB.getTextureMapBlocks().registerIcon());
}
}
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
RC2.logger.info("rendering world block!");
BlockTrack track = (BlockTrack) block;
CoasterStyle style = track.getStyle();
// IModelCustom modelCustom = AdvancedModelLoader.loadModel(style.getModelLocation());
// IModelCustom modelCustom = AdvancedModelLoader.loadModel(new ResourceLocation(Reference.PACKS_DIR + style.getModelLocation().getResourcePath()));
// OBJModel objModel = (OBJModel) modelCustom;
// ForgeDirection direction = ForgeDirection.getOrientation(world.getBlockMetadata(x, y, z));
GL11.glPushMatrix();
GL11.glTranslatef(x, y, z);
GL11.glPushMatrix();
// GL11.glRotatef(0, 0, 1, 0);
// objModel.renderPart(track.getPieceName());
// Tessellator.instance.startDrawingQuads();
style.getModel().renderPart(track.getPieceName());
// Tessellator.instance.draw();
GL11.glPopMatrix();
GL11.glPopMatrix();
return true;
}
@Override
public boolean shouldRender3DInInventory(int modelId) {
return true;
}
@Override
public int getRenderId() {
return this.renderId;
}
}
[16:32:49] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// I blame Dinnerbone.
Time: 8/8/15 4:32 PM
Description: Loading screen debug info
This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 760094184 bytes (724 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.200.1062.1002' Renderer: 'AMD Radeon HD 7800 Series'
[16:32:49] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[16:32:49] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1492 Initialized
[16:32:49] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[16:32:49] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[16:32:49] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[16:32:49] [Client thread/INFO] [FML]: Searching C:\Users\Gerald\Documents\GitHub\Rollercoaster2\run\mods for mods
[16:33:00] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[16:33:00] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, rc2] at CLIENT
[16:33:00] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, rc2] at SERVER
[16:33:01] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§4§lRollercoaster 2
[16:33:01] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[16:33:01] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[16:33:01] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[16:33:01] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[16:33:01] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[16:33:01] [Client thread/INFO] [rcteam.rc2.RC2]: Registering pack: default
[16:33:01] [Client thread/INFO] [rcteam.rc2.RC2]: Registering Styles
[16:33:01] [Client thread/INFO] [rcteam.rc2.RC2]: test_coaster
[16:33:01] [Client thread/INFO] [rcteam.rc2.RC2]: model.mtl
[16:33:01] [Client thread/INFO] [rcteam.rc2.RC2]: model.obj
[16:33:01] [Client thread/INFO] [rcteam.rc2.RC2]: style.json
[16:33:01] [Client thread/INFO] [rcteam.rc2.RC2]: Style null: false
[16:33:01] [Client thread/INFO] [rcteam.rc2.RC2]: Model null: false
[16:33:01] [Client thread/INFO] [rcteam.rc2.RC2]: Style registered: test_coaster
[16:33:01] [Client thread/INFO] [FML]: Applying holder lookups
[16:33:01] [Client thread/INFO] [FML]: Holder lookups applied
[16:33:01] [Client thread/INFO] [FML]: Injecting itemstacks
[16:33:01] [Client thread/INFO] [FML]: Itemstack injection complete
[16:33:01] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[16:33:01] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[16:33:02] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[16:33:02] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[16:33:02] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[16:33:02] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[16:33:02] [Sound Library Loader/INFO]: Sound engine started
[16:33:03] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
[16:33:03] [Client thread/INFO]: Created: 16x16 textures/items-atlas
[16:33:03] [Client thread/INFO] [FML]: Injecting itemstacks
[16:33:03] [Client thread/INFO] [FML]: Itemstack injection complete
[16:33:04] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[16:33:04] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§4§lRollercoaster 2
[16:33:04] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[16:33:04] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[16:33:04] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[16:33:04] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[16:33:04] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com
[16:33:04] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[16:33:04] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[16:33:04] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[16:33:05] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[16:33:05] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[16:33:05] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[16:33:05] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[16:33:05] [Sound Library Loader/INFO]: Sound engine started
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN minecraft
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft is missing 5 textures
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft has 3 locations:
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: mod FML resources at C:\Users\Gerald\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1492-1.7.10\forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: mod Forge resources at C:\Users\Gerald\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1492-1.7.10\forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain minecraft are:
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: textures/blocks/MISSING_ICON_BLOCK_168_test_coaster.large_corner_left.png
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: textures/blocks/MISSING_ICON_BLOCK_166_test_coaster.small_corner.png
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: textures/blocks/MISSING_ICON_BLOCK_167_test_coaster.medium_corner.png
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: textures/blocks/MISSING_ICON_BLOCK_165_test_coaster.straight.png
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: textures/blocks/MISSING_ICON_BLOCK_169_test_coaster.large_corner_right.png
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain minecraft
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[16:33:06] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[16:33:29] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
[16:33:29] [Server thread/INFO]: Generating keypair
[16:33:30] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[16:33:30] [Server thread/INFO] [FML]: Applying holder lookups
[16:33:30] [Server thread/INFO] [FML]: Holder lookups applied
[16:33:30] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@7f86dcdf)
[16:33:30] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@7f86dcdf)
[16:33:30] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@7f86dcdf)
[16:33:30] [Server thread/INFO]: Preparing start region for level 0
[16:33:30] [Server thread/INFO]: Changing view distance to 12, from 10
[16:33:31] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
[16:33:31] [Netty IO #1/INFO] [FML]: Client protocol version 2
[16:33:31] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : rc2@v0.1,FML@7.10.99.99,Forge@10.13.4.1492,mcp@9.05
[16:33:31] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[16:33:31] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[16:33:31] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[16:33:31] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[16:33:31] [Server thread/INFO]: shadekiller666[local:E:63418644] logged in with entity id 0 at (-1091.08170987887, 61.7559956972524, 44.40264300383713)
[16:33:31] [Server thread/INFO]: shadekiller666 joined the game
[16:33:32] [Client thread/WARN]: Failed to load texture: minecraft:builtin/white
java.io.FileNotFoundException: minecraft:builtin/white
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35) ~[SimpleTexture.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45) [TextureManager.class:?]
at rcteam.rc2.util.OBJModel$Group.render(OBJModel.java:838) [OBJModel$Group.class:?]
at rcteam.rc2.util.OBJModel.renderPart(OBJModel.java:234) [OBJModel.class:?]
at rcteam.rc2.client.rendering.BlockTrackRenderHandler.renderInventoryBlock(BlockTrackRenderHandler.java:42) [BlockTrackRenderHandler.class:?]
at cpw.mods.fml.client.registry.RenderingRegistry.renderInventoryBlock(RenderingRegistry.java:125) [RenderingRegistry.class:?]
at net.minecraft.src.FMLRenderAccessLibrary.renderInventoryBlock(FMLRenderAccessLibrary.java:59) [FMLRenderAccessLibrary.class:?]
at net.minecraft.client.renderer.RenderBlocks.renderBlockAsItem(RenderBlocks.java:8361) [RenderBlocks.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:463) [RenderItem.class:?]
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585) [RenderItem.class:?]
at net.minecraft.client.gui.GuiIngame.renderInventorySlot(GuiIngame.java:973) [GuiIngame.class:?]
at net.minecraftforge.client.GuiIngameForge.renderHotbar(GuiIngameForge.java:209) [GuiIngameForge.class:?]
at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:144) [GuiIngameForge.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1114) [EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1068) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[16:33:50] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 17080ms behind, skipping 341 tick(s)
[16:33:50] [Client thread/FATAL]: Unreported exception thrown!
java.lang.IllegalStateException: Already tesselating!
at net.minecraft.client.renderer.Tessellator.startDrawing(Tessellator.java:257) ~[Tessellator.class:?]
at net.minecraft.client.renderer.Tessellator.startDrawingQuads(Tessellator.java:247) ~[Tessellator.class:?]
at rcteam.rc2.util.OBJModel$Group.render(OBJModel.java:846) ~[OBJModel$Group.class:?]
at rcteam.rc2.util.OBJModel.renderPart(OBJModel.java:234) ~[OBJModel.class:?]
at rcteam.rc2.client.rendering.BlockTrackRenderHandler.renderWorldBlock(BlockTrackRenderHandler.java:64) ~[BlockTrackRenderHandler.class:?]
at cpw.mods.fml.client.registry.RenderingRegistry.renderWorldBlock(RenderingRegistry.java:118) ~[RenderingRegistry.class:?]
at net.minecraft.src.FMLRenderAccessLibrary.renderWorldBlock(FMLRenderAccessLibrary.java:53) ~[FMLRenderAccessLibrary.class:?]
at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:389) ~[RenderBlocks.class:?]
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:207) ~[WorldRenderer.class:?]
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1641) ~[RenderGlobal.class:?]
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263) ~[EntityRenderer.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087) ~[EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1068) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[16:33:50] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
// I'm sorry, Dave.
Time: 8/8/15 4:33 PM
Description: Unexpected error
java.lang.IllegalStateException: Already tesselating!
at net.minecraft.client.renderer.Tessellator.startDrawing(Tessellator.java:257)
at net.minecraft.client.renderer.Tessellator.startDrawingQuads(Tessellator.java:247)
at rcteam.rc2.util.OBJModel$Group.render(OBJModel.java:846)
at rcteam.rc2.util.OBJModel.renderPart(OBJModel.java:234)
at rcteam.rc2.client.rendering.BlockTrackRenderHandler.renderWorldBlock(BlockTrackRenderHandler.java:64)
at cpw.mods.fml.client.registry.RenderingRegistry.renderWorldBlock(RenderingRegistry.java:118)
at net.minecraft.src.FMLRenderAccessLibrary.renderWorldBlock(FMLRenderAccessLibrary.java:53)
at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:389)
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:207)
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1641)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1068)
at net.minecraft.client.Minecraft.run(Minecraft.java:962)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraft.client.renderer.Tessellator.startDrawing(Tessellator.java:257)
at net.minecraft.client.renderer.Tessellator.startDrawingQuads(Tessellator.java:247)
at rcteam.rc2.util.OBJModel$Group.render(OBJModel.java:846)
at rcteam.rc2.util.OBJModel.renderPart(OBJModel.java:234)
at rcteam.rc2.client.rendering.BlockTrackRenderHandler.renderWorldBlock(BlockTrackRenderHandler.java:64)
at cpw.mods.fml.client.registry.RenderingRegistry.renderWorldBlock(RenderingRegistry.java:118)
at net.minecraft.src.FMLRenderAccessLibrary.renderWorldBlock(FMLRenderAccessLibrary.java:53)
at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:389)
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:207)
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1641)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['shadekiller666'/0, l='MpServer', x=-1091.08, y=63.38, z=44.40]]
Chunk stats: MultiplayerChunkCache: 45, 45
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (-1089,4,66), Chunk: (at 15,0,2 in -69,4; contains blocks -1104,0,64 to -1089,255,79), Region: (-3,0; contains chunks -96,0 to -65,31, blocks -1536,0,0 to -1025,255,511)
Level time: 24635 game time, 2150 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: 1 total; [EntityClientPlayerMP['shadekiller666'/0, l='MpServer', x=-1091.08, y=63.38, z=44.40]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2567)
at net.minecraft.client.Minecraft.run(Minecraft.java:991)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 734847856 bytes (700 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1492 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar)
UCHIJAAAA Forge{10.13.4.1492} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1492-1.7.10.jar)
UCHIJAAAA rc2{v0.1} [§4§lRollercoaster 2] (Rollercoaster2)
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.200.1062.1002' Renderer: 'AMD Radeon HD 7800 Series'
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: AMD Radeon HD 7800 Series GL version 4.5.13399 Compatibility Profile Context 15.200.1062.1002, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
[16:33:50] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Gerald\Documents\GitHub\Rollercoaster2\run\.\crash-reports\crash-2015-08-08_16.33.50-client.txt
[16:33:50] [Client Shutdown Thread/INFO]: Stopping server
[16:33:50] [Client Shutdown Thread/INFO]: Saving players
Disconnected from the target VM, address: '127.0.0.1:62981', transport: 'socket'
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Process finished with exit code -1
public void render(OBJModel model) {
Tessellator tessellator = Tessellator.instance;
// tessellator.startDrawingQuads();
for (Face face : this.faces) {
Minecraft.getMinecraft().getTextureManager().bindTexture(model.materialLibrary.getMaterial(face.getMaterialName()).getTexture().getTextureLocation());
Normal normal = face.getNormal();
if (!model.getMaterialLibrary().getMaterial(face.getMaterialName()).isWhite()) {
Vector4f color = model.getMaterialLibrary().getMaterial(face.getMaterialName()).getColor();
tessellator.setColorRGBA_F(color.x, color.y, color.z, color.w);
}
// tessellator.startDrawingQuads();
for (int i = 0; i < face.getVertices().length; i++) {
tessellator.startDrawingQuads();
if (face.getNormals() != null && face.getNormals().length > 0) {
tessellator.setNormal(face.getNormals()[i].getNormal().x, face.getNormals()[i].getNormal().y, face.getNormals()[i].getNormal().z);
} else {
tessellator.setNormal(normal.getNormal().x, normal.getNormal().y, normal.getNormal().z);
}
if (face.getTextureCoordinates() != null && face.getTextureCoordinates().length > 0) {
tessellator.addVertexWithUV(face.getVertices()[i].getPosition().x, face.getVertices()[i].getPosition().y, face.getVertices()[i].getPosition().z, face.getTextureCoordinates()[i].getPosition().x, face.getTextureCoordinates()[i].getPosition().y);
} else {
tessellator.addVertex(face.getVertices()[i].getPosition().x, face.getVertices()[i].getPosition().y, face.getVertices()[i].getPosition().z);
}
if (model.getMaterialLibrary().getMaterial(face.getMaterialName()).isWhite()) {
Vector4f color = model.getMaterialLibrary().getMaterial(face.getVertices()[i].getMaterialName()).getColor();
tessellator.setColorRGBA_F(color.x, color.y, color.z, color.w);
}
tessellator.draw();
// tessellator.setColorRGBA_F(face.getVertices()[i].getMaterial().getColor().x, face.getVertices()[i].getMaterial().getColor().y, face.getVertices()[i].getMaterial().getColor().z, face.getVertices()[i].getMaterial().getColor().w);
}
// tessellator.draw();
}
Minecraft.getMinecraft().getTextureManager().bindTexture(TextureMap.locationBlocksTexture);
}
@Override
public void renderAll() {
this.materialLibrary.getGroups().forEach((s, group) -> group.render(this));
}
@Override
public void renderOnly(String... groupNames) {
Lists.newArrayList(groupNames).forEach(s -> renderPart(s));
}
@Override
public void renderPart(String partName) {
this.materialLibrary.getGroups().get(partName).render(this);
}
@Override
public void renderAllExcept(String... excludedGroupNames) {
this.materialLibrary.getGroups().values().stream().filter(group -> !Lists.newArrayList(excludedGroupNames).contains(group.getName())).forEach(group1 -> group1.render(this));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment