Posted April 6, 20178 yr Hello everyone. I'm getting trouble with my TileEntity. Here is my crash report: https://gist.github.com/letruongthinh/cfe53052b3b289502973deb28c65f71a My Inventory Base code: https://gist.github.com/letruongthinh/7f2dd5df5ae401aca54f7deb3085f9f9 My InventoryTile code: https://gist.github.com/letruongthinh/594b82c891f6796f3994bb012993b63d My Tile Base code: https://gist.github.com/letruongthinh/9cf3622a35e9069332e0c74c85aee15b
April 6, 20178 yr Quote java.lang.ArrayIndexOutOfBoundsException: 20 You're trying to get a slot index that is bigger than the size of the array. It's most likely a mistake with the slot indexing in your container, it can be tricky to get right. I'd recommend stepping through the construction of your container slots in the debugger to find out which indexes they are being associated with and where it goes wrong. If you want more help please post your ContainerBase and ContainerConstructor classes.
April 6, 20178 yr Don't use IInventory, use the IItemHandler capability. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
April 6, 20178 yr Author 36 minutes ago, Jay Avery said: You're trying to get a slot index that is bigger than the size of the array. It's most likely a mistake with the slot indexing in your container, it can be tricky to get right. I'd recommend stepping through the construction of your container slots in the debugger to find out which indexes they are being associated with and where it goes wrong. If you want more help please post your ContainerBase and ContainerConstructor classes. Now it doesn't open the gui. Here is my ContainerBase code: https://gist.github.com/letruongthinh/21f58eb3c04fac917d72ed35190397d0 My ContainerConstructor code: https://gist.github.com/letruongthinh/649c2ace3a7dd7fed501b421df50478e
April 6, 20178 yr Author Just now, Jay Avery said: What have you changed? Well, I changed the SLOT_PLAN to 0, SLOLT_CRAFT_RESULT to 1, and SLOT_CRAFT_MATRIX to 2 in the InventoryConstructor.
April 6, 20178 yr Just now, lethinh said: Well, I changed the SLOT_PLAN to 0, SLOLT_CRAFT_RESULT to 1, and SLOT_CRAFT_MATRIX to 2 in the InventoryConstructor. And that change alone has resulted in your GUI not opening?
April 6, 20178 yr Author Just now, Jay Avery said: And that change alone has resulted in your GUI not opening? Yes!
April 6, 20178 yr Author It shows these error lines: [21:04:27] [File IO Thread/ERROR]: Failed to save chunk java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:347) ~[?:1.8.0_51] at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323) ~[?:1.8.0_51] at net.minecraft.nbt.NBTTagCompound.writeEntry(NBTTagCompound.java:555) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.write(NBTTagCompound.java:29) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagList.write(NBTTagList.java:37) ~[NBTTagList.class:?] at net.minecraft.nbt.NBTTagCompound.writeEntry(NBTTagCompound.java:556) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.write(NBTTagCompound.java:29) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.writeEntry(NBTTagCompound.java:556) ~[NBTTagCompound.class:?] at net.minecraft.nbt.NBTTagCompound.write(NBTTagCompound.java:29) ~[NBTTagCompound.class:?] at net.minecraft.nbt.CompressedStreamTools.writeTag(CompressedStreamTools.java:126) ~[CompressedStreamTools.class:?] at net.minecraft.nbt.CompressedStreamTools.write(CompressedStreamTools.java:116) ~[CompressedStreamTools.class:?] at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkData(AnvilChunkLoader.java:252) ~[AnvilChunkLoader.class:?] at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeNextIO(AnvilChunkLoader.java:230) [AnvilChunkLoader.class:?] at net.minecraft.world.storage.ThreadedFileIOBase.processQueue(ThreadedFileIOBase.java:48) [ThreadedFileIOBase.class:?] at net.minecraft.world.storage.ThreadedFileIOBase.run(ThreadedFileIOBase.java:36) [ThreadedFileIOBase.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
April 6, 20178 yr Can you post the entire log? (code tags and a spoiler will make it easier to read too)
April 6, 20178 yr Author Just now, Jay Avery said: Can you post the entire log? (code tags and a spoiler will make it easier to read too) My fml-client-latest.log: https://gist.github.com/letruongthinh/39a43b171466c9a97cec851b27871e23 My latest.log: https://gist.github.com/letruongthinh/0030e677c0918872b176a3ddb6d4eec7
April 6, 20178 yr I can't tell exactly what that crash means, but it's most likely another form of the same problem - something to do with bad slot indexes getting noticed when being written to NBT. Why did you change those slot indexes? I'd still recommend stepping through the container construction with the debugger and carefully watch the slots being added to see if they are indexed as you expect.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.