-
Posts
852 -
Joined
-
Last visited
Everything posted by Bektor
-
Hello. I'm currently updating my mod to 1.7.2, but now I'm getting the following error every time if I create a new world or if I load a world:
-
Ok, it doen't work really. It works only because there is a button that isn't used currently. If this button is uncomment then it crashs again with the same crash. package com.minecolonies.client.gui; import net.minecraft.block.Block; import net.minecraft.client.gui.GuiButton; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import com.minecolonies.MineColonies; import com.minecolonies.lib.EnumGUI; import com.minecolonies.util.LanguageHandler; public class GuiHutDeliveryMan extends GuiBase { //IDs for Information protected final int idSettings = 5; //IDs for Settings protected final int idGoldToBlacksmith = 0, idDiamondToBlacksmith = 1, idStoneToStonemason = 2, idSandToStonemason = 3, idNetherrackToStonemason = 4, idQuartzToStonemason = 5, idArmorToGuards = 6, idWeaponToGuards = 7, idVisitCitizenChests = 8, idInformation = 9; protected EntityPlayer player; protected World world; protected int x, y, z; private int span = 4, page = 0; public GuiHutDeliveryMan(int page, EntityPlayer player, World world, int x, int y, int z) { super(); this.page = page; this.player = player; this.world = world; this.x = x; this.y = y; this.z = z; } private void addDeliverySettingElements() { int smallButton = 30; int xl = (width - xSize) / 2 + xSize / 3 - 5; int xr = xl + xSize / 3; int y = middleY + span; int textPaddTop = 6, textPaddRight = 3; String yes = LanguageHandler.format("com.minecolonies.gui.yes"); String no = LanguageHandler.format("com.minecolonies.gui.no"); String information = LanguageHandler.format("com.minecolonies.gui.workerHuts.information"); String toBlacksmith = LanguageHandler.format("com.minecolonies.gui.deliverymanHut.toBlacksmith"); String toStonemason = LanguageHandler.format("com.minecolonies.gui.deliverymanHut.toStonemason"); String toGuards = LanguageHandler.format("com.minecolonies.gui.deliverymanHut.toGuards"); String visitCitizenChests = LanguageHandler.format("com.minecolonies.gui.deliverymanHut.visitCitizenChests"); addLabel(toBlacksmith, middleX - fontRenderer.getStringWidth(toBlacksmith) / 2, y + textPaddTop); y += buttonHeight; addIcon(new ItemStack(Item.ingotGold, 1), xl - 16 - textPaddRight, y + (buttonHeight - 16) / 2); addButton(0, no, xl, y, smallButton, buttonHeight); addIcon(new ItemStack(Item.diamond, 1), xr - 16 - textPaddRight, y + (buttonHeight - 16) / 2); addButton(1, no, xr, y, smallButton, buttonHeight); y += buttonHeight + buttonSpan + 1; addLabel(toStonemason, middleX - fontRenderer.getStringWidth(toStonemason) / 2, y + textPaddTop); y += buttonHeight; addIcon(new ItemStack(Block.cobblestone, 1), xl - 16 - textPaddRight, y + (buttonHeight - 16) / 2); addButton(2, yes, xl, y, smallButton, buttonHeight); addIcon(new ItemStack(Block.sand, 1), xr - 16 - textPaddRight, y + (buttonHeight - 16) / 2); addButton(3, no, xr, y, smallButton, buttonHeight); y += buttonHeight + buttonSpan; addIcon(new ItemStack(Block.netherrack, 1), xl - 16 - textPaddRight, y + (buttonHeight - 16) / 2); addButton(4, yes, xl, y, smallButton, buttonHeight); //addIcon(new ItemStack(Item.quartz, 1), xr - 16 - textPaddRight, y + (buttonHeight - 16) / 2); addButton(5, no, xr, y, smallButton, buttonHeight); y += buttonHeight + buttonSpan + 1; addLabel(toGuards, middleX - fontRenderer.getStringWidth(toGuards) / 2, y + textPaddTop); y += buttonHeight; addIcon(new ItemStack(Item.plateIron, 1), xl - 16 - textPaddRight, y + (buttonHeight - 16) / 2); addButton(6, no, xl, y, smallButton, buttonHeight); addIcon(new ItemStack(Item.swordIron, 1), xr - 16 - textPaddRight, y + (buttonHeight - 16) / 2); addButton(7, no, xr, y, smallButton, buttonHeight); y += buttonHeight + buttonSpan + 1; addLabel(visitCitizenChests, middleX - fontRenderer.getStringWidth(visitCitizenChests) / 2, y + textPaddTop); y += textPaddTop + 10; addButton(8, no, middleX - smallButton / 2, y, smallButton, buttonHeight); addButton(9, information, middleX - buttonWidth / 2, middleY + ySize - 34, buttonWidth, buttonHeight); } @Override protected void addElements() { super.addElements(); switch(page) { case 0: addDefaultWorkerLayout(LanguageHandler.format("com.minecolonies.gui.workerHuts.deliverymansHut"), "John R. Jones", "xx (yy)", "xxxxxxxx", span); String settings = LanguageHandler.format("com.minecolonies.gui.workerHuts.settings"); addButton(idSettings, settings, middleX - buttonWidth / 2, middleY + ySize - 34, buttonWidth, buttonHeight); break; case 1: addDeliverySettingElements(); break; } } @Override protected void actionPerformed(GuiButton guiButton) { //Actions for Information Tab if(page == 0) { switch(guiButton.id) { case idHireWorker: ((GuiButton) buttonList.get(idFireWorker)).enabled = true; break; case idFireWorker: GuiButton hireButton = (GuiButton) buttonList.get(idHireWorker); if(hireButton.enabled) { hireButton.enabled = false; } else { guiButton.enabled = false; hireButton.enabled = true; } break; case idRecallWorker: break; case idBuildBuilding: break; case idRepairBuilding: break; case idSettings: player.openGui(MineColonies.instance, EnumGUI.WAREHOUSE_SETTINGS.getID(), world, x, y, z); break; } } else if(page == 1) { switch(guiButton.id) { case idGoldToBlacksmith: break; case idInformation: player.openGui(MineColonies.instance, EnumGUI.WAREHOUSE.getID(), world, x, y, z); break; } } } } Well, by "readding" this button all ids under this button changes (+1).
-
The ids startinb by 0, if you look in my code. Ok, to put the ids it self to the buttons fixed this problem, but why works it for every other Gui?
-
Hello! Everytime when I open a Gui and then clicking on the settings button, the game crashs with this error: ---- Minecraft Crash Report ---- // Why did you do that? Time: 24.05.14 19:42 Description: Updating screen events java.lang.IndexOutOfBoundsException: Index: 6, Size: 5 at java.util.ArrayList.rangeCheckForAdd(Unknown Source) at java.util.ArrayList.add(Unknown Source) at com.minecolonies.client.gui.GuiBase.addButton(GuiBase.java:55) at com.minecolonies.client.gui.GuiBase.addButton(GuiBase.java:47) at com.minecolonies.client.gui.GuiHutDeliveryMan.addDeliverySettingElements(GuiHutDeliveryMan.java:83) at com.minecolonies.client.gui.GuiHutDeliveryMan.addElements(GuiHutDeliveryMan.java:110) at com.minecolonies.client.gui.GuiBase.initGui(GuiBase.java:135) at net.minecraft.client.gui.GuiScreen.setWorldAndResolution(GuiScreen.java:94) at net.minecraft.client.Minecraft.displayGuiScreen(Minecraft.java:732) at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:392) at cpw.mods.fml.common.FMLCommonHandler.showGuiScreen(FMLCommonHandler.java:333) at cpw.mods.fml.common.network.NetworkRegistry.openLocalGui(NetworkRegistry.java:328) at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:357) at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480) at com.minecolonies.client.gui.GuiHutDeliveryMan.actionPerformed(GuiHutDeliveryMan.java:145) at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:69) at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:128) at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:107) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1566) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910) at net.minecraft.client.Minecraft.run(Minecraft.java:838) at net.minecraft.client.main.Main.main(Main.java:101) 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:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at java.util.ArrayList.rangeCheckForAdd(Unknown Source) at java.util.ArrayList.add(Unknown Source) at com.minecolonies.client.gui.GuiBase.addButton(GuiBase.java:55) at com.minecolonies.client.gui.GuiBase.addButton(GuiBase.java:47) at com.minecolonies.client.gui.GuiHutDeliveryMan.addDeliverySettingElements(GuiHutDeliveryMan.java:83) at com.minecolonies.client.gui.GuiHutDeliveryMan.addElements(GuiHutDeliveryMan.java:110) at com.minecolonies.client.gui.GuiBase.initGui(GuiBase.java:135) at net.minecraft.client.gui.GuiScreen.setWorldAndResolution(GuiScreen.java:94) at net.minecraft.client.Minecraft.displayGuiScreen(Minecraft.java:732) at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:392) at cpw.mods.fml.common.FMLCommonHandler.showGuiScreen(FMLCommonHandler.java:333) at cpw.mods.fml.common.network.NetworkRegistry.openLocalGui(NetworkRegistry.java:328) at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:357) at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480) at com.minecolonies.client.gui.GuiHutDeliveryMan.actionPerformed(GuiHutDeliveryMan.java:145) at net.minecraft.client.gui.GuiScreen.mouseClicked(GuiScreen.java:69) at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:128) at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:107) -- Affected screen -- Details: Screen name: com.minecolonies.client.gui.GuiHutDeliveryMan -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Gamer_ABC'/265, l='MpServer', x=76,45, y=64,62, z=150,94]] Chunk stats: MultiplayerChunkCache: 190 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (24,64,156), Chunk: (at 8,4,12 in 1,9; contains blocks 16,0,144 to 31,255,159), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 4939 game time, 4939 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: 133 total; [EntityClientPlayerMP['Gamer_ABC'/265, l='MpServer', x=76,45, y=64,62, z=150,94], EntityVillager['Villager'/78, l='MpServer', x=-2,88, y=71,00, z=107,34], EntityVillager['Villager'/80, l='MpServer', x=-3,78, y=72,00, z=100,63], EntityVillager['Villager'/82, l='MpServer', x=-1,94, y=71,00, z=112,50], EntityHorse['Horse'/83, l='MpServer', x=-0,44, y=68,00, z=164,66], EntityZombie['Zombie'/87, l='MpServer', x=6,31, y=31,00, z=93,50], EntityHorse['Horse'/88, l='MpServer', x=13,81, y=73,00, z=89,03], EntityVillager['Villager'/89, l='MpServer', x=7,50, y=73,00, z=93,94], EntityVillager['Villager'/90, l='MpServer', x=8,54, y=71,00, z=99,41], EntityVillager['Villager'/91, l='MpServer', x=3,91, y=71,00, z=106,50], EntityVillager['Villager'/92, l='MpServer', x=13,75, y=66,00, z=108,50], EntityVillager['Villager'/93, l='MpServer', x=1,53, y=71,00, z=104,53], EntityVillager['Villager'/94, l='MpServer', x=15,94, y=68,50, z=105,50], EntityVillager['Villager'/95, l='MpServer', x=1,44, y=72,00, z=98,31], EntityEnderman['Enderman'/96, l='MpServer', x=10,00, y=28,00, z=126,94], EntityVillager['Villager'/98, l='MpServer', x=3,16, y=70,00, z=113,00], EntityBat['Bat'/99, l='MpServer', x=14,69, y=16,10, z=136,75], EntityPig['Pig'/101, l='MpServer', x=6,56, y=69,00, z=128,53], EntityZombie['Zombie'/102, l='MpServer', x=10,13, y=39,00, z=155,31], EntityPig['Pig'/103, l='MpServer', x=13,38, y=64,00, z=146,41], EntityHorse['Horse'/104, l='MpServer', x=12,38, y=64,00, z=158,75], EntityPig['Pig'/105, l='MpServer', x=15,06, y=64,00, z=146,28], EntityChicken['Chicken'/106, l='MpServer', x=12,56, y=66,00, z=167,59], EntityChicken['Chicken'/107, l='MpServer', x=6,47, y=70,00, z=181,47], EntityBat['Bat'/108, l='MpServer', x=9,25, y=32,10, z=219,25], EntityHorse['Horse'/110, l='MpServer', x=20,09, y=67,00, z=104,02], EntityHorse['Horse'/111, l='MpServer', x=18,16, y=68,00, z=99,16], EntityItem['item.item.leather'/112, l='MpServer', x=18,53, y=68,13, z=100,47], EntityEnderman['Enderman'/113, l='MpServer', x=29,28, y=25,00, z=124,47], EntityEnderman['Enderman'/114, l='MpServer', x=20,59, y=20,00, z=141,00], EntityZombie['Zombie'/115, l='MpServer', x=29,34, y=20,00, z=144,97], EntityZombie['Zombie'/116, l='MpServer', x=28,47, y=20,00, z=145,00], EntityItem['item.item.seeds'/117, l='MpServer', x=27,78, y=64,13, z=159,09], EntityPig['Pig'/118, l='MpServer', x=18,06, y=64,00, z=147,03], EntityChicken['Chicken'/119, l='MpServer', x=18,06, y=66,00, z=170,16], EntityChicken['Chicken'/120, l='MpServer', x=31,75, y=69,00, z=165,22], EntityItem['item.item.seeds'/121, l='MpServer', x=25,16, y=67,13, z=186,88], EntityZombie['Zombie'/125, l='MpServer', x=40,62, y=20,00, z=73,50], EntityHorse['Horse'/126, l='MpServer', x=39,00, y=65,00, z=94,84], EntityHorse['Horse'/127, l='MpServer', x=33,88, y=65,00, z=95,28], EntityBat['Bat'/128, l='MpServer', x=30,33, y=23,55, z=96,10], EntityEnderman['Enderman'/129, l='MpServer', x=36,38, y=50,00, z=104,38], EntityHorse['Horse'/130, l='MpServer', x=34,28, y=64,00, z=99,16], EntityHorse['Horse'/131, l='MpServer', x=37,06, y=65,00, z=100,66], EntityHorse['Horse'/132, l='MpServer', x=34,28, y=64,00, z=101,03], EntityBat['Bat'/133, l='MpServer', x=37,43, y=23,09, z=114,82], EntityZombie['Zombie'/134, l='MpServer', x=32,50, y=34,00, z=115,94], EntityCreeper['Creeper'/135, l='MpServer', x=35,50, y=19,00, z=136,00], EntityBat['Bat'/136, l='MpServer', x=46,69, y=12,10, z=190,75], EntityBat['Bat'/137, l='MpServer', x=39,75, y=46,10, z=226,75], EntitySkeleton['Skeleton'/143, l='MpServer', x=63,69, y=48,00, z=72,28], EntityHorse['Horse'/144, l='MpServer', x=56,19, y=65,00, z=100,50], EntityCreeper['Creeper'/145, l='MpServer', x=48,03, y=55,00, z=188,53], EntitySquid['Squid'/146, l='MpServer', x=49,62, y=48,16, z=204,54], EntitySkeleton['Skeleton'/148, l='MpServer', x=66,47, y=24,00, z=76,66], EntitySkeleton['Skeleton'/149, l='MpServer', x=64,53, y=49,00, z=73,00], EntitySkeleton['Skeleton'/150, l='MpServer', x=69,06, y=50,00, z=79,44], EntityHorse['Horse'/151, l='MpServer', x=76,56, y=71,00, z=73,34], EntitySkeleton['Skeleton'/152, l='MpServer', x=72,19, y=12,00, z=84,61], EntityZombie['Zombie'/153, l='MpServer', x=76,50, y=27,00, z=93,25], EntityCreeper['Creeper'/154, l='MpServer', x=72,50, y=27,00, z=89,50], EntityHorse['Horse'/155, l='MpServer', x=70,16, y=63,00, z=107,16], EntityHorse['Horse'/156, l='MpServer', x=65,21, y=65,00, z=101,82], EntityHorse['Horse'/157, l='MpServer', x=67,22, y=64,00, z=103,63], EntityHorse['Horse'/158, l='MpServer', x=64,25, y=64,00, z=108,53], EntitySquid['Squid'/159, l='MpServer', x=72,41, y=47,25, z=128,09], EntityCreeper['Creeper'/160, l='MpServer', x=74,50, y=26,00, z=195,06], EntitySpider['Spider'/161, l='MpServer', x=69,16, y=27,00, z=207,44], EntitySquid['Squid'/162, l='MpServer', x=70,53, y=49,00, z=193,47], EntityZombie['Zombie'/163, l='MpServer', x=64,69, y=42,00, z=208,50], EntityZombie['Zombie'/164, l='MpServer', x=75,66, y=36,00, z=209,72], EntityHorse['Horse'/168, l='MpServer', x=80,41, y=71,00, z=72,16], EntityHorse['Horse'/169, l='MpServer', x=86,75, y=69,00, z=75,56], EntityHorse['Horse'/170, l='MpServer', x=84,38, y=69,00, z=76,44], EntityCreeper['Creeper'/171, l='MpServer', x=82,63, y=18,00, z=82,00], EntityCreeper['Creeper'/172, l='MpServer', x=95,59, y=58,00, z=84,31], EntityHorse['Horse'/173, l='MpServer', x=94,84, y=67,00, z=84,53], EntityHorse['Horse'/174, l='MpServer', x=90,06, y=68,00, z=86,16], EntityHorse['Horse'/175, l='MpServer', x=92,16, y=68,00, z=87,28], EntityHorse['Horse'/176, l='MpServer', x=84,91, y=65,00, z=82,06], EntityZombie['Zombie'/177, l='MpServer', x=81,78, y=24,00, z=96,53], EntityCreeper['Creeper'/178, l='MpServer', x=87,94, y=15,00, z=122,84], EntitySquid['Squid'/179, l='MpServer', x=79,71, y=48,02, z=120,69], EntitySquid['Squid'/180, l='MpServer', x=80,50, y=50,74, z=124,31], EntityCreeper['Creeper'/181, l='MpServer', x=95,31, y=25,00, z=183,31], EntityCreeper['Creeper'/182, l='MpServer', x=94,31, y=25,00, z=183,94], EntityCreeper['Creeper'/183, l='MpServer', x=95,50, y=25,00, z=185,50], EntityBat['Bat'/190, l='MpServer', x=104,25, y=33,10, z=72,53], EntityCreeper['Creeper'/191, l='MpServer', x=105,13, y=34,00, z=77,63], EntityZombie['Zombie'/192, l='MpServer', x=98,97, y=38,00, z=71,53], EntityHorse['Horse'/193, l='MpServer', x=100,38, y=65,00, z=79,03], EntityZombie['Zombie'/194, l='MpServer', x=98,47, y=30,00, z=81,28], EntityZombie['Zombie'/195, l='MpServer', x=101,47, y=30,00, z=87,53], EntityBat['Bat'/196, l='MpServer', x=101,02, y=28,87, z=80,11], EntityCreeper['Creeper'/197, l='MpServer', x=108,56, y=37,00, z=80,44], EntityHorse['Horse'/198, l='MpServer', x=96,13, y=66,00, z=86,19], EntityZombie['Zombie'/199, l='MpServer', x=111,31, y=14,00, z=182,47], EntityZombie['Zombie'/200, l='MpServer', x=104,47, y=25,00, z=182,16], EntitySquid['Squid'/201, l='MpServer', x=105,87, y=52,41, z=174,84], EntitySquid['Squid'/202, l='MpServer', x=105,15, y=57,08, z=200,34], EntityCreeper['Creeper'/203, l='MpServer', x=98,97, y=28,00, z=215,50], EntitySkeleton['Skeleton'/207, l='MpServer', x=115,50, y=14,00, z=75,22], EntityCreeper['Creeper'/208, l='MpServer', x=113,38, y=28,82, z=83,69], EntitySkeleton['Skeleton'/209, l='MpServer', x=120,50, y=25,00, z=103,97], EntityCreeper['Creeper'/210, l='MpServer', x=114,50, y=27,00, z=108,50], EntityZombie['Zombie'/211, l='MpServer', x=125,22, y=26,00, z=124,50], EntitySquid['Squid'/212, l='MpServer', x=124,56, y=48,25, z=157,61], EntityZombie['Zombie'/213, l='MpServer', x=113,27, y=14,00, z=181,48], EntitySquid['Squid'/214, l='MpServer', x=119,47, y=46,39, z=183,89], EntitySquid['Squid'/215, l='MpServer', x=127,11, y=46,00, z=182,53], EntityCreeper['Creeper'/216, l='MpServer', x=115,60, y=17,00, z=228,62], EntityBat['Bat'/221, l='MpServer', x=136,75, y=30,10, z=76,75], EntityZombie['Zombie'/223, l='MpServer', x=130,91, y=25,00, z=127,34], EntitySquid['Squid'/224, l='MpServer', x=128,28, y=50,44, z=136,98], EntitySkeleton['Skeleton'/225, l='MpServer', x=132,30, y=11,00, z=190,44], EntitySkeleton['Skeleton'/226, l='MpServer', x=131,72, y=14,00, z=189,50], EntitySkeleton['Skeleton'/227, l='MpServer', x=134,63, y=17,00, z=189,06], EntitySquid['Squid'/228, l='MpServer', x=141,59, y=46,35, z=188,50], EntityCreeper['Creeper'/229, l='MpServer', x=133,07, y=28,00, z=192,32], EntityCreeper['Creeper'/230, l='MpServer', x=130,88, y=24,00, z=204,09], EntityCreeper['Creeper'/231, l='MpServer', x=132,53, y=25,00, z=201,31], EntitySkeleton['Skeleton'/232, l='MpServer', x=133,38, y=25,00, z=203,13], EntityZombie['Zombie'/233, l='MpServer', x=139,84, y=23,00, z=207,28], EntitySkeleton['Skeleton'/234, l='MpServer', x=135,06, y=20,00, z=229,56], EntityZombie['Zombie'/242, l='MpServer', x=154,41, y=35,00, z=81,03], EntityZombie['Zombie'/243, l='MpServer', x=152,56, y=26,00, z=111,99], EntityCreeper['Creeper'/244, l='MpServer', x=145,50, y=29,00, z=101,50], EntityBat['Bat'/245, l='MpServer', x=155,31, y=35,10, z=101,47], EntityBat['Bat'/247, l='MpServer', x=145,75, y=13,10, z=135,25], EntitySkeleton['Skeleton'/249, l='MpServer', x=145,54, y=27,13, z=133,49], EntityBat['Bat'/250, l='MpServer', x=150,25, y=17,10, z=132,75], EntityBat['Bat'/252, l='MpServer', x=146,47, y=18,10, z=144,25], EntityBat['Bat'/253, l='MpServer', x=152,91, y=16,25, z=144,41]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2312) at net.minecraft.client.Minecraft.run(Minecraft.java:856) at net.minecraft.client.main.Main.main(Main.java:101) 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:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) -- System Details -- Details: Minecraft Version: 1.6.4 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_05, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 133770256 bytes (127 MB) / 355991552 bytes (339 MB) up to 3810525184 bytes (3634 MB) JVM Flags: 0 total; AABB Pool Size: 15302 (856912 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 18, tcache: 0, allocated: 3, tallocated: 63 FML: MCP v8.11 FML v6.99.19.964 Minecraft Forge 9.11.1.964 4 mods loaded, 4 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{6.99.19.964} [Forge Mod Loader] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{9.11.1.964} [Minecraft Forge] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available minecolonies{@VERSION@} [MineColonies] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: GeForce GTX 660/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Pack: Default Current Language: Pirate Speak (PIRATE) Profiler Position: N/A (disabled) Vec3 Pool Size: 8580 (480480 bytes; 0 MB) allocated, 17 (952 bytes; 0 MB) used Here is the code: GuiHutDeliveryMan and GuiBase I hope that you can help me! Bektor
-
Thanks.
-
Hello! I've created a small language handler, but one method in it returns nothing! public static String format(String key, Object... args) { String keys = LanguageRegistry.instance().getStringLocalization(key); System.out.println(keys); String complete = String.format(keys, args); System.out.println(complete); return complete; } Don't worry about of how it looks, it looks some time ago better, because I edited it, to find out why my chat messages are empty. Well, this method gets two things: "item.caliper.message.line", distance The first one is a value inside the en_US.lang file, the second one is a variable that must be placed inside the text. Here is the .lang file: item.caliper.message.line=That's a %d block line. So the output that must be sended by the chat should look something like this: That's a 10 block line. Well, only if the variable distance is 10. I hope that you can help me. Bektor
-
Oh and one quick question. I'm creating this mod for Minecraft 1.7 and 1.6, so exists the io.netty packages in 1.6 too or how must I handle it there?
-
Ok, thanks. I will post here back, if I get more problems with it and it would be nice if anyone can find out how to fix it that eclipse can't find the classes from io.netty
-
Ok, my problem is that eclipse can't find the classes from io.netty. It says only create class/interface.... And how do I riegister a channel for my mod?
-
Ok, so I get the netty library by installing forge, right? If so, then why are then the classes are missing?
-
Hello, I saw an tutorial about forge (http://www.minecraftforge.net/wiki/Netty_Packet_Handling) that uses the Netty framework (http://netty.io/index.html) and so I need help with the installation of the framework, because I have searched in google and looked on the website from Netty framework/project and everything that I found didn't worked, has not enough informations or i didn't understand it. So I hope that you can help me! Bektor
-
[SOLVED] Mod Downgrading - NBT Data questions/problems
Bektor replied to Bektor's topic in Modder Support
Ok, thanks. Well now I don't get an error after I changed some more lines that gaves me an error after I used tagAt . I hope that this will work, because I can't test it, because there I need to add many many other lines... -
[SOLVED] Mod Downgrading - NBT Data questions/problems
Bektor replied to Bektor's topic in Modder Support
Well I searched already but I dindn't find a method that do the same thing, only methods for 1.7 but nothing for 1.6. -
[SOLVED] Mod Downgrading - NBT Data questions/problems
Bektor replied to Bektor's topic in Modder Support
Ok, but what is with "getCompoundTagAt"? NBTTagCompound nbtTagOwnersCompound = nbtTagOwnersList.getCompoundTagAt(i); -
[SOLVED] Mod Downgrading - NBT Data questions/problems
Bektor replied to Bektor's topic in Modder Support
Ok, I found some other things that are different from 1.7 to 1.6. So how must look like this code in 1.6? @Override public void readFromNBT(NBTTagCompound nbtTagCompound) { super.readFromNBT(nbtTagCompound); this.cityName = nbtTagCompound.getString("cityName"); NBTTagList nbtTagOwnersList = nbtTagCompound.getTagList("owners", Constants.NBT.TAG_COMPOUND); this.owners = new ArrayList<UUID>(); for(int i = 0; i < nbtTagOwnersList.tagCount(); i++) { NBTTagCompound nbtTagOwnersCompound = nbtTagOwnersList.getCompoundTagAt(i); UUID uuid = UUID.fromString(nbtTagOwnersCompound.getString("owner")); owners.add(i, uuid); System.out.println("UUID Size = " + this.owners.size()); System.out.println("UUID name = " + this.owners.get(i).toString()); } } I hope that you guys can help me! Bektor -
[SOLVED] Mod Downgrading - NBT Data questions/problems
Bektor replied to Bektor's topic in Modder Support
Read up on the newest updates by Mojang. Players are no longer identified by their username, but by a UUID (google it if you don't know what it is -.-), to ultimately support changing your username. @OP: The Constants class is not present in 1.6.4 yet, because it's not technically needed. Only in 1.7 take NBTTagLists their component type. With UUIDs, yes, use usernames for that in 1.6. Ok, thanks. But which class must I use for the usernames? I think its EntityPlayer, but I'm not 100% sure and so I want not to test it out, because if it isn't EntityPlayer then I have to change a log of code. Oh and how must then this line look like? NBTTagList nbtTagOwnersList = nbtTagCompound.getTagList("owners", Constants.NBT.TAG_COMPOUND); Must I only remove the "Constants.NBT.TAG_COMPOUND" or must I replace it with something different or change it? And if yes, in what must I change this line? -
Oh well, that a thema where I'm missing a tutorial. Well I think a year ago I had the same question and didn't find a tutorial or anything that would help me and so I gave there for one year up.
-
Hello guys. I have one problem. There is a mod for Minecraft 1.7.2 and the problem is that I want to downgrade it to 1.6.4, because its easier to downgrade it instead of working with the buggy 1.6.4 source and because of many guys from the community want a 1.6.4 version. (well it takes not so much time...) Oh and aswell, its allowed from the mod creators. So my problem: In Minecraft Forge 1.7.2 there is a class called "net.minecraftforge.common.util.Constants". https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/common/util/Constants.java I want now to know if such a class exits in 1.6.4 and if not what must I change here? @Override public void readFromNBT(NBTTagCompound nbtTagCompound) { super.readFromNBT(nbtTagCompound); this.cityName = nbtTagCompound.getString("cityName"); NBTTagList nbtTagOwnersList = nbtTagCompound.getTagList("owners", Constants.NBT.TAG_COMPOUND); this.owners = new ArrayList<UUID>(); for(int i = 0; i < nbtTagOwnersList.tagCount(); i++) { NBTTagCompound nbtTagOwnersCompound = nbtTagOwnersList.getCompoundTagAt(i); UUID uuid = UUID.fromString(nbtTagOwnersCompound.getString("owner")); owners.add(i, uuid); System.out.println("UUID Size = " + this.owners.size()); System.out.println("UUID name = " + this.owners.get(i).toString()); } } Oh and is it right that I must change "UUID" to EntityPlayer? Bektor
-
Well, there are currently 292 mods for minecraft 1.7.2 and the most of them are forge mods. (about 90% or 95%) From my mod I have currently rewritten 20.97% to Minecraft Forge 1.7.2 (well 20.97% from version Alpha 0.0.9)
-
[1.7.2 - FIXED] Crafting Error NullPointerException
Bektor replied to Bektor's topic in Modder Support
Thanks, that fixed it. :D ;D -
[1.7.2 - FIXED] Crafting Error NullPointerException
Bektor replied to Bektor's topic in Modder Support
Here is the code and the new log: https://www.dropbox.com/sh/jc4b0brt5mihx5i/xEvZEYXiN9 I hope that you can help me know. -
[1.7.2 - FIXED] Crafting Error NullPointerException
Bektor replied to Bektor's topic in Modder Support
Where see you the "****"? And what did you mean with "Underscore, space, numbersign, numbersign?"? -
[1.7.2 - FIXED] Crafting Error NullPointerException
Bektor replied to Bektor's topic in Modder Support
The code and the crash is the same as befor. I tested only some new method with the CraftingManager, but I removed this methods again, because the same crash appeard. Well with I tested some new methods, I mean that I tested everything what all of you guys wanted that I use this method and test it then to see if the error is there then too. -
[1.7.2 - FIXED] Crafting Error NullPointerException
Bektor replied to Bektor's topic in Modder Support
Ok, I had used now the debugger and the line "if(Loader.isModLoaded("mod_cobalt"))" was marked and Minecraft got a black screen. Well, "CMSstuff.cobaltingot" is still null I think, because this items and blocks are not from my mod and I have only the API from this mod. But if I have recompiled it, that I have my mod as a .jar and the other mods and if I run with both Minecraft, the error appears again, but then "CMSstuff.cobaltingot" isn't null, because the other mod use and register it then. Oh and I had used Forge version 1024 but then I updated to Forge 10.12.0.1032 for some reasons, but with both versions, this error appears. -
[1.7.2 - FIXED] Crafting Error NullPointerException
Bektor replied to Bektor's topic in Modder Support
Well I've tested it with "_" and without "_". Oh and with normal spaces: " " I've tested it too.