Jump to content

KeeganDeathman

Forge Modder
  • Posts

    434
  • Joined

  • Last visited

Everything posted by KeeganDeathman

  1. Well, I placed in a breakpoint, and the game still crashed.
  2. Well, the container doesn't do much with slots, it simply acts as a medium between which the server and client TEs can interface. I'll try that, and report back what happens
  3. Ill try it with different combos of cases
  4. I am not quite sure. I would think so as thermal foundation is loaded in the server i noticed the error on. It is there so that I don't call anything non-existent. TF is not required to run my mod, but if it is detected, compatibility is set up.
  5. @EventHandler public void load(FMLInitializationEvent event) { //Blah blah, other stuff if(Loader.isModLoaded("Thermalfoundation")) { GameRegistry.registerTileEntity(TileEntityRFToLV.class, "TileEntityRFToLV");
  6. I am recieving an error on my power converter(my power system to RF), missing a mapping. But I did in fact register my tile entity.
  7. WorkSurfaceShapedRecipes doesn't easily convert to IRecipe. Make it do so.
  8. First off, this mod does not use packets, the mod it extends does, but this one does not. Also, the class that is erroring is in no way connected to packets of my creation. I have this code: @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) { if(!world.isRemote) { if(!player.isSneaking()) { TileEntityDLLaptop te = (TileEntityDLLaptop)world.getTileEntity(x, y, z); if(!te.noTablet) { player.inventory.addItemStackToInventory(te.tabletItem); te.noTablet = true; te.setTabletItem(null); world.markBlockForUpdate(x, y, z); } else if(player.inventory.getCurrentItem() != null && player.inventory.getCurrentItem().isItemEqual(new ItemStack(DLStuff.itemUnProgrammedDPad))) { player.inventory.decrStackSize(player.inventory.currentItem, 1); te.setTabletItem(new ItemStack(DLStuff.itemUnProgrammedDPad)); te.noTablet = false; world.markBlockForUpdate(x, y, z); } player.openGui(DLStuff.instance, 0, world, x, y, z); return true; } } return false; } As long as if(!te.noTablet) { player.inventory.addItemStackToInventory(te.tabletItem); te.noTablet = true; te.setTabletItem(null); world.markBlockForUpdate(x, y, z); } else if(player.inventory.getCurrentItem() != null && player.inventory.getCurrentItem().isItemEqual(new ItemStack(DLStuff.itemUnProgrammedDPad))) { player.inventory.decrStackSize(player.inventory.currentItem, 1); te.setTabletItem(new ItemStack(DLStuff.itemUnProgrammedDPad)); te.noTablet = false; world.markBlockForUpdate(x, y, z); } comes before the gui call, when I right click, the game crashes. Here's that: ---- Minecraft Crash Report ---- // I let you down. Sorry Time: 12/12/14 5:03 PM Description: Ticking memory connection java.lang.NullPointerException: Ticking memory connection at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:657) at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74) at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122) at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:657) at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74) at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122) at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) -- Ticking connection -- Details: Connection: net.minecraft.network.NetworkManager@709a4d14 Stacktrace: at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_67, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 864862712 bytes (824 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 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.85.1240 Minecraft Forge 10.13.2.1240 5 mods loaded, 5 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.10.85.1240} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1240.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1240} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1240.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available labstuff{2.2} [LabStuff] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available dlstuff{1.0} [DeathmanLabsStuff] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Player Count: 1 / 8; [EntityPlayerMP['KeeganDeathman'/0, l='DLStuff', x=1292.30, y=56.00, z=892.40]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge'
  9. I can get like, back in 1.2.5 because tekkit classic, but beta? BETA?
  10. In Forge, there are events. If you subscribe a void to an event, it is called whenever the event is. So there is an event for the player being alive. Every tick the player is alive, all subscribers are ran. You want every tick, and you want to make sure your on the client. But yes, do NOT edit base classes or you will get your topics locked, your mods looked down upon, and possibly your account removed.
  11. Oh yeah, I originally had a whole gui for the drives of the computer but scratched it due to, problems. Maybe I'll have it so if your holding a tablet, it gets put in. And then if I can get it to be able to call the gui from the tablet if block, I should be good.
  12. Oh, right. Gonna have to find a work around then, but wait, if I cant why does it work?
  13. If the lcontrol is pressed and your not sneaking when you right click the laptop, it checks to see if it is false(I found a weird bug where i had to change the boolean to reflect if there wan't a tablet, so to render it needs to be false) and if it is it adds the tile entities store tablet item to your inventory and sets the TEs to null. It then sets noTablet to true. If noTablet was true(meaning the port is open) it takes the dPad from you, sets the tablet item, and sets noTablet to false. I also have a addCraftingToCrafters and releated methods setup in the container, but to call it the GUI must be opened. I can't send a packet because server to client packets don't work because you said I'd never need them. //no lcontrol if statement else if(!player.isSneaking() && Keyboard.isKeyDown(Keyboard.KEY_LCONTROL)) { TileEntityDLLaptop te = (TileEntityDLLaptop)world.getTileEntity(x, y, z); if(!te.noTablet) { player.inventory.addItemStackToInventory(te.tabletItem); te.noTablet = true; te.setTabletItem(null); world.markBlockForUpdate(x, y, z); player.openGui(DLStuff.instance, 0, world, x, y, z); return true; } else if(player.inventory.getCurrentItem() != null && player.inventory.getCurrentItem().isItemEqual(new ItemStack(DLStuff.itemUnProgrammedDPad))) { player.inventory.decrStackSize(player.inventory.currentItem, 1); te.setTabletItem(new ItemStack(DLStuff.itemUnProgrammedDPad)); te.noTablet = false; world.markBlockForUpdate(x, y, z); player.openGui(DLStuff.instance, 0, world, x, y, z); return true; } return false; } public void detectAndSendChanges() { super.detectAndSendChanges(); for (int i = 0; i < this.crafters.size(); ++i) { ICrafting icrafting = (ICrafting)this.crafters.get(i); if (this.lastTablet != this.tile.isTablet()) { int tabletInt; if(this.tile.isTablet()) tabletInt = 1; else tabletInt = 0; icrafting.sendProgressBarUpdate(this, 0, tabletInt); } } this.lastTablet = tile.isTablet(); } @SideOnly(Side.CLIENT) public void updateProgressBar(int p_75137_1_, int p_75137_2_) { if (p_75137_1_ == 0) { boolean tablet; if(p_75137_2_ == 0) tablet = true; else tablet = false; this.tile.setTablet(tablet); System.out.println("Updated client tablet, " + tablet); } } public void addCraftingToCrafters(ICrafting p_75132_1_) { super.addCraftingToCrafters(p_75132_1_); int tabletInt; if(this.tile.isTablet()) tabletInt = 1; else tabletInt = 0; p_75132_1_.sendProgressBarUpdate(this, 0, tabletInt); }
  14. to be specific I get this error: java.lang.NullPointerException: Ticking memory connection at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:620)
  15. I fixed it but you have to open the gui to update it. I tried adding the call to open the gui to the statements in the block where I check to see if I'm taking out or putting in a tablet, but that didnt work. Help?
  16. There is no minecraft.jar in 1.7.10, so what are you doing? What do you mean by rollback? And if your making your own client, as in laucher, you dont need to mess with the base code. Period. If your editing the game, bad idea. Making a mod file is what happens when you run 'gradlew build' your mod file is in build/libs Also, NEVER edit base classes.
  17. Oh your right. I think I remember doing this with the power furnace. Off to do that!
  18. The renderer always gets it as false. Therefore the tablet extension doesn't render
  19. Bad! Bad! No editing base classes! You'll have to subscribe to the event and listen in your own class.
  20. okay well if it is not static it doesn't work.
  21. What about the boolean in the tile entity? Should that be static or no, cause currently I can't get the renderer to get it to be true, even if I put in a tablet
  22. Why are you messing around with minecraft.jar? What Mc version Why are you messing with the jar file directly and not making a mod file, because if you don't your not using forge Why are you change base classes. If it isn't a base class, then you can't have it as it's never referenced
  23. How would I do that? Does the way I do it now not work?
  24. Hey, update, I still don't have an answer
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.