Posted December 20, 20168 yr Guess who? Its me again! Simple question, can anyone tell me why and how to fix this problem: https://postimg.org/image/543h9f6bb/ Why doesn't the very bottom of my GUI load in? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Is your texture the right size/ complete? Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
December 20, 20168 yr Author Is your texture the right size/ complete? My GUI texture is 176 x 195 I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Can you make a screenshot and show the file? Maybe the texture is exactly what you have there? Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
December 20, 20168 yr Author https://postimg.org/image/txaa7tpsf/ Straight out of preview. I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Then I don't know, sorry Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
December 20, 20168 yr Author The full texture file must always be 256x256, otherwise you need to do some stuff differently. Moreover unless your actual GUI size is 176x166 you must set xSize and ySize fields in your gui constructor. The full file is 256x256 I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr The full texture file must always be 256x256, otherwise you need to do some stuff differently. Moreover unless your actual GUI size is 176x166 you must set xSize and ySize fields in your gui constructor. The full file is 256x256 What about the actual image you want to display. Ie most vanilla guis are only actually 176x166. And Moreover unless your actual GUI size is 176x166 you must set xSize and ySize fields in your gui constructor. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
December 20, 20168 yr Author The full texture file must always be 256x256, otherwise you need to do some stuff differently. Moreover unless your actual GUI size is 176x166 you must set xSize and ySize fields in your gui constructor. The full file is 256x256 What about the actual image you want to display. Ie most vanilla guis are only actually 176x166. And Moreover unless your actual GUI size is 176x166 you must set xSize and ySize fields in your gui constructor. Wait wait, ok, so, the full image, including transparent background, is 256x256. Now, the GUI portion of the image is 176x195. Does this mean I have to set custom xSize and ySize values? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author Yes. Alright! Got the whole GUI on, and the whole container is working! Now, new problem! Whenever I put an item into my chest, it puts it to ALL slots. http://gifmaker.cc/PlayGIFAnimation.php?folder=2016122007Qwb7lW4kOtkg67s24yWT82&file=output_bafjiL.gif I feel I made another stupid error I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Yes. Alright! Got the whole GUI on, and the whole container is working! Now, new problem! Whenever I put an item into my chest, it puts it to ALL slots. http://gifmaker.cc/PlayGIFAnimation.php?folder=2016122007Qwb7lW4kOtkg67s24yWT82&file=output_bafjiL.gif I feel I made another stupid error Code... VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
December 20, 20168 yr Author GitHub: https://github.com/EcapeMC/ThingsMod-1.10.2/tree/master/src/main Sorry I thought I already had a link to it in this thread. I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author First of all, are you serious? You know for loops are a thing? Yes? You pointed all those Slots at the same slot ID in your inventory. What did you expect? One, Yes i know Loops are a think. I'm old fashioned. I also like copy pasta. It's fun... 2, where did I do that? Is that all the 0s in the addSlotToContainer? Do I need to make them all different numbers? (Increasing?) I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author 2, where did I do that? Is that all the 0s in the addSlotToContainer? Do I need to make them all different numbers? (Increasing?)Dude... Look at the parameter names. Understand what they mean. If you don't understand one, don't just put random numbers there, ask. Don't write code you do not understand. Alright, I do not understand. That first invenSize I do not understand. I know the second and third are for coordinates of the gui image. How exactly does one make these chest slots not all equal? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author That first invenSize I do not understand.There is no "invenSize" anywhere in the code that I can see. https://github.com/EcapeMC/ThingsMod-1.10.2/blob/master/src/main/java/com/github/escapemc/thingsmod/hardlib/api/internal/CommonContainer.java#L14 Inside of CommonContainer, here. How exactly does one make these chest slots not all equal?You point them at different slots in your inventory. Currently you tell every one of them to point at the first slot in the inventory. The code then does what you tell it to do: it makes all Slots show the contents of the first slot in your inventory. Wait, if they point at the first slot in my inventory, 1) where and how did I do that..? and 2) look at this then https://postimg.org/image/3pfesptlb/ No hoppers in my inventory I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Oh jesus christ. He went and copied a bunch of my classes rather than using them as reference. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 20, 20168 yr Author look at this then https://postimg.org/image/3pfesptlb/ No hoppers in my inventory I have no idea what you are trying to say. I see plenty of hoppers. No no, in my inventory, not in the chest. https://github.com/EcapeMC/ThingsMod-1.10.2/blob/master/src/main/java/com/github/escapemc/thingsmod/hardlib/api/internal/CommonContainer.java#L14 Inside of CommonContainer, here.It is used to detect whether a slot lies outside the inventory (i.e. in the player inventory) or not. It specifies how many slots (except the player inventory slots) are in the GUI. Did you not write this code?! Partially; I had MUCH help from Draco18s. Alright here. I redid much of the work for the CommonContainer, ContainerTestChest, so I would make this process automated using a "loop." In the process, I have managed to make it so when I right click the block, it does not bring up the GUI, but rather give me this error in the console: [17:21:09] [server thread/FATAL]: Error executing task java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_101] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_101] at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:742) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:687) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) [integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:536) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101] Caused by: java.lang.NullPointerException at com.github.escapemc.thingsmod.container.ContainerTestChest.<init>(ContainerTestChest.java:18) ~[ContainerTestChest.class:?] at com.github.escapemc.thingsmod.handlers.GuiHandler.getServerGuiElement(GuiHandler.java:26) ~[GuiHandler.class:?] at net.minecraftforge.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:251) ~[NetworkRegistry.class:?] at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:87) ~[FMLNetworkHandler.class:?] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2723) ~[EntityPlayer.class:?] at com.github.escapemc.thingsmod.blocks.test_chest.onBlockActivated(test_chest.java:64) ~[test_chest.class:?] at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:477) ~[PlayerInteractionManager.class:?] at net.minecraft.network.NetHandlerPlayServer.processRightClickBlock(NetHandlerPlayServer.java:706) ~[NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:68) ~[CPacketPlayerTryUseItemOnBlock.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:13) ~[CPacketPlayerTryUseItemOnBlock.class:?] at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_101] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_101] at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?] ... 5 more I have updated my GitHub: https://github.com/EcapeMC/ThingsMod-1.10.2/tree/master/src/main/java/com/github/escapemc/thingsmod I am sad and confused... And to you Draco, look at them now. I am changing things currently. I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr return new ContainerTestChest(player.inventory, null); null here? seriously? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 20, 20168 yr Author Not sure what I was/am thinking. I guess I skipped over it... I fixed it in both server and client, as well as changed a few things around in the Containers (LOTS of slots... I removed methods I think I do not need, as they were generating waaay to many slots) So far, this is what I have: https://github.com/EcapeMC/ThingsMod-1.10.2/tree/master/src/main/java/com/github/escapemc/thingsmod I now do have a problem, in my chest GUI I have 2 player inventories, and two hotbars, NONE of which are in the places I need them... Do note, I know how to fix the correct placement of the player inventory, and hotbar. I am working on that as you read this post. https://postimg.org/image/4phc9p103/ What I need, is to make the slots that are supposed to be in the chest, be chest slots. I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author UPDATE: I have the Player Inventory and Hotbar working 100%. I now just need a method to create chest inventory slots. Any suggestions/help? Also, I am writing all my code I would need for my ContainerTestChest in CommonContainer for now. Once I get the GUI and Slots all set up, I am getting rid of CommonContainer and transferring the code to ContainerTestChest I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr You add those slots the same way, but intead you need to use SlotItemHandler and your ItemHandler (ItemStackHandler) instead of InventoryPlayer. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
December 20, 20168 yr Author You add those slots the same way, but intead you need to use SlotItemHandler and your ItemHandler (ItemStackHandler) instead of InventoryPlayer. I cannot figure out how. Anything I do makes it unable to compile... Any more hints on to what I need to do? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 21, 20168 yr Author Bump I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 21, 20168 yr If only there was an example you could look at... Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 21, 20168 yr Author If only there was an example you could look at... I've looked at your code and ContainerChest, but for your code, you do not use an automated slot generator for your Sifter or anything that I saw. If there is, please point it out to me. And ContainerChest does not work, but rather gives me the player inventory and hotbar in the chest I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
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.