wow thank you to drinfernoo for helping everyone, to you, I will be doing my first forge tutorial on armor and GUI look for them sometime tonight/today given the timezone, they are complete
I felt like I should hold down the fort in your stead
Should I send you the code and you can have a look at it?
I sent you the code Unless you changed it, and that would probably be a problem. That "mod" runs fine for me in eclipse or loaded in MultiMC. If you just cnp'd my classes into your workspace, that could be causing the problem if you didn't do it right, maybe.
EDIT: I just realized at some point I turned into a Gold Miner lol
Rollback Post to RevisionRollBack
Learn some Java before you mod, and skip over the chapter on ModLoader, straight to MinecraftForge. It's better. Trust me.
Alrighty. Also think you could look at my furnace and see where the problem might be?
Sure Just send me the sources. Also, I had an idea... What if you made a Solar Panel block, a-la RP2, and just powered your other block with it? Or possibly a Solar Capturer or something, that actually stores sunlight as fuel, to use in your furnace?
Rollback Post to RevisionRollBack
Learn some Java before you mod, and skip over the chapter on ModLoader, straight to MinecraftForge. It's better. Trust me.
Ok, Will do, and once you see what my mod is you'll realize that I can't do that. But one thing i would like to do would be like a tank or something that measures that you can store lava into the furnace, and that's how long it burns or whatever.
Do you need all the mod files, or Just the TileEntity, Container, mod_, and Recipes?
First off, by convention, Java has lowercase package names, and it threw me off big time when yours had capitals Java has lowercase package names, Capitalized class/interface names, with methods and fields being mostly camelCase.
Secondly, your @Instance isn't going to like to play well with other mods (a tiny addition):
@Instance
public static mod_RuneScapeCraft instance = new mod_RuneScapeCraft();
//should be
@Instance("RuneScapeCraft")
public static mod_RuneScapeCraft instance = new mod_RuneScapeCraft();
Third, your proxy is set up wrong (a tiny mistake):
@SidedProxy(clientSide = "RuneScapeCraft.Client.ClientProxyRuneScapeCraft", serverSide = "RuneScapeCraft.Common.ClientProxyRuneScapeCraft")
public static CommonProxyRuneScapeCraft proxy;
//should be
@SidedProxy(clientSide = "RuneScapeCraft.Client.ClientProxyRuneScapeCraft", serverSide = "RuneScapeCraft.Common.CommonProxyRuneScapeCraft")
public static CommonProxyRuneScapeCraft proxy;
Then, and though I can't fix it, because I'm not sure what your code is trying to do, I did find your error. I simply read the stack trace:
2012-10-06 22:43:11 [SEVERE] [ForgeModLoader] A critical server error occured handling a packet, kicking net.minecraft.src.NetServerHandler@2a9843ef
java.lang.ClassCastException: net.minecraft.src.Slot cannot be cast to net.minecraft.src.ICrafting
at RuneScapeCraft.Common.ContainerSmeltFurnace.updateCraftingResults(ContainerSmeltFurnace.java:46)
at net.minecraft.src.Container.addCraftingToCrafters(Container.java:48)
at cpw.mods.fml.common.network.NetworkRegistry.openRemoteGui(NetworkRegistry.java:315)
at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:331)
at net.minecraft.src.EntityPlayer.openGui(EntityPlayer.java:2049)
at RuneScapeCraft.Common.BlockSmeltFurnace.onBlockActivated(BlockSmeltFurnace.java:30)
at net.minecraft.src.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:349)
at net.minecraft.src.NetServerHandler.handlePlace(NetServerHandler.java:507)
at net.minecraft.src.Packet15Place.processPacket(Packet15Place.java:78)
at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:78)
at net.minecraft.src.NetServerHandler.networkTick(NetServerHandler.java:76)
at net.minecraft.src.NetworkListenThread.networkTick(NetworkListenThread.java:55)
at net.minecraft.src.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:111)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:643)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:560)
at net.minecraft.src.IntegratedServer.tick(IntegratedServer.java:107)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:466)
at net.minecraft.src.ThreadServerApplication.run(ThreadServerApplication.java:18)
2012-10-06 22:43:11 [INFO] [STDERR] java.io.IOException: Stream Closed
2012-10-06 22:43:11 [INFO] [STDERR] at java.io.RandomAccessFile.seek(Native Method)
2012-10-06 22:43:11 [INFO] [STDERR] at net.minecraft.src.RegionFile.write(RegionFile.java:291)
2012-10-06 22:43:11 [INFO] [STDERR] at net.minecraft.src.RegionFile.write(RegionFile.java:206)
2012-10-06 22:43:11 [INFO] [STDERR] at net.minecraft.src.RegionFileChunkBuffer.close(RegionFileChunkBuffer.java:23)
2012-10-06 22:43:11 [INFO] [STDERR] at java.util.zip.DeflaterOutputStream.close(Unknown Source)
2012-10-06 22:43:11 [INFO] [STDERR] at java.io.FilterOutputStream.close(Unknown Source)
2012-10-06 22:43:11 [INFO] [STDERR] at net.minecraft.src.AnvilChunkLoader.writeChunkNBTTags(AnvilChunkLoader.java:186)
2012-10-06 22:43:11 [INFO] [STDERR] at net.minecraft.src.AnvilChunkLoader.writeNextIO(AnvilChunkLoader.java:171)
2012-10-06 22:43:11 [INFO] [STDERR] at net.minecraft.src.ThreadedFileIOBase.processQueue(ThreadedFileIOBase.java:39)
2012-10-06 22:43:11 [INFO] [STDERR] at net.minecraft.src.ThreadedFileIOBase.run(ThreadedFileIOBase.java:27)
2012-10-06 22:43:11 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
It says that at line 46 of ContainerSmeltFurnace.java, there is an error with trying to cast a Slot to an ICrafting, which doesn't work. That line is this one:
And I'm not sure what you're trying to do here; it's your mod, not mine.
I am also getting a funky error when I load Minecraft:
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 510 item slot already occupied by RuneScapeCraft.Common.ItemHelmRune@2242e18a while adding RuneScapeCraft.Common.ItemHelmRune@54e53c98
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 511 item slot already occupied by RuneScapeCraft.Common.ItemBodyRune@15ed4ab3 while adding RuneScapeCraft.Common.ItemBodyRune@dc33904
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 512 item slot already occupied by RuneScapeCraft.Common.ItemLegsRune@bd43cab while adding RuneScapeCraft.Common.ItemLegsRune@1adb049e
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 513 item slot already occupied by RuneScapeCraft.Common.ItemBootsRune@210c2ed8 while adding RuneScapeCraft.Common.ItemBootsRune@26d777db
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 510 item slot already occupied by RuneScapeCraft.Common.ItemHelmRune@54e53c98 while adding RuneScapeCraft.Common.ItemHelmRune@bfddec9
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 511 item slot already occupied by RuneScapeCraft.Common.ItemBodyRune@dc33904 while adding RuneScapeCraft.Common.ItemBodyRune@482d6445
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 512 item slot already occupied by RuneScapeCraft.Common.ItemLegsRune@1adb049e while adding RuneScapeCraft.Common.ItemLegsRune@1c121308
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 513 item slot already occupied by RuneScapeCraft.Common.ItemBootsRune@26d777db while adding RuneScapeCraft.Common.ItemBootsRune@669f809d
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 510 item slot already occupied by RuneScapeCraft.Common.ItemHelmRune@bfddec9 while adding RuneScapeCraft.Common.ItemHelmRune@71b4f80d
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 511 item slot already occupied by RuneScapeCraft.Common.ItemBodyRune@482d6445 while adding RuneScapeCraft.Common.ItemBodyRune@200957cd
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 512 item slot already occupied by RuneScapeCraft.Common.ItemLegsRune@1c121308 while adding RuneScapeCraft.Common.ItemLegsRune@45636429
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 513 item slot already occupied by RuneScapeCraft.Common.ItemBootsRune@669f809d while adding RuneScapeCraft.Common.ItemBootsRune@44e356
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 510 item slot already occupied by RuneScapeCraft.Common.ItemHelmRune@71b4f80d while adding RuneScapeCraft.Common.ItemHelmRune@2aa9233d
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 511 item slot already occupied by RuneScapeCraft.Common.ItemBodyRune@200957cd while adding RuneScapeCraft.Common.ItemBodyRune@46488fac
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 512 item slot already occupied by RuneScapeCraft.Common.ItemLegsRune@45636429 while adding RuneScapeCraft.Common.ItemLegsRune@45d08940
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 513 item slot already occupied by RuneScapeCraft.Common.ItemBootsRune@44e356 while adding RuneScapeCraft.Common.ItemBootsRune@7de2ec8e
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 510 item slot already occupied by RuneScapeCraft.Common.ItemHelmRune@2aa9233d while adding RuneScapeCraft.Common.ItemHelmRune@3d189f33
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 511 item slot already occupied by RuneScapeCraft.Common.ItemBodyRune@46488fac while adding RuneScapeCraft.Common.ItemBodyRune@1b7bec9b
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 512 item slot already occupied by RuneScapeCraft.Common.ItemLegsRune@45d08940 while adding RuneScapeCraft.Common.ItemLegsRune@64eac235
2012-10-06 22:43:05 [INFO] [STDOUT] CONFLICT @ 513 item slot already occupied by RuneScapeCraft.Common.ItemBootsRune@7de2ec8e while adding RuneScapeCraft.Common.ItemBootsRune@70745955
And I'm not sure where that is coming from either.
Also, your textures aren't showing up in my eclipse. I didn't look at how they are coded, so it could be that I set it up wrong. If they work for you, kudos and no worries on that front
Rollback Post to RevisionRollBack
Learn some Java before you mod, and skip over the chapter on ModLoader, straight to MinecraftForge. It's better. Trust me.
Ok, for that last error no idea why you're getting that because I went through and changed the itemIDs of those, might have done it after I sent you the code, I don't remember.
And for the proxy setup, thanks for catching that, never would have seen that.
And what I'm trying to do is make a furnace that requires 2 ores to make an item, so for Bronze it needs Copper and Tin. To be honest, if it weren't for bronze needing copper and tin, I'd make it not require a fuel cause the others need coal, but a certain amount of coal. But all that code is from this tutorial, that other dude's tutorial, and your code.
By they way, this is my first mod, and I'm making it because it's a good mod to have a learning experience with. It basically has a lot of beginner, intermediate and advanced stuff in there. So I'm not really good at modding ;o)
Ok, for that last error no idea why you're getting that because I went through and changed the itemIDs of those, might have done it after I sent you the code, I don't remember.
And for the proxy setup, thanks for catching that, never would have seen that.
And what I'm trying to do is make a furnace that requires 2 ores to make an item, so for Bronze it needs Copper and Tin. To be honest, if it weren't for bronze needing copper and tin, I'd make it not require a fuel cause the others need coal, but a certain amount of coal. But all that code is from this tutorial, that other dude's tutorial, and your code.
By they way, this is my first mod, and I'm making it because it's a good mod to have a learning experience with. It basically has a lot of beginner, intermediate and advanced stuff in there. So I'm not really good at modding ;o)
What I would do is have a check for fuel (Coal) in the "usual" way, possibly with tweaks, and then have it check the other two slots for Copper and/or Tin. Then, based on what it finds, output your Bronze.
Rollback Post to RevisionRollBack
Learn some Java before you mod, and skip over the chapter on ModLoader, straight to MinecraftForge. It's better. Trust me.
OMG I GOT IT! At line 46, that (ICrafting) thing, was inside this method which was like updateCraftingResult, Well, i commented that out, and it works. Just doesn't have the furnace animations. Thank you so much for your help =o)
Blau's tutorial is good for these, or you can check out my code. I have animations in CombinerGui and BreakdownGui. The tricky part is figuring out the math of how to actually make them display correctly. I think you can see it in the vanilla furnace code, if you're doing it with that same overlay.
Rollback Post to RevisionRollBack
Learn some Java before you mod, and skip over the chapter on ModLoader, straight to MinecraftForge. It's better. Trust me.
yeah the only reason why I didnt cover GUI animations was because of the serious math involved plus I wanted to leave it up to the person to actually make a GUI.png and figure out how to code stuff like that not just tell them exactly what to do
not that its tough its more just having to explain it is tough when all the different possibilities of numbers and combinations, i.e I could have a different texture than one that needs to be implemented thus causing the numbers to be different
Ok, thanks I'll take a look at both, and I don't know what all it is, but I got a program that is like a pixel ruler so I don't know if the math'll be that hard with that.
Ok, thanks I'll take a look at both, and I don't know what all it is, but I got a program that is like a pixel ruler so I don't know if the math'll be that hard with that.
Also, if you use an image editing program that tells you which pixel you are pointing at, just open your image, and... yeah. That.
Rollback Post to RevisionRollBack
Learn some Java before you mod, and skip over the chapter on ModLoader, straight to MinecraftForge. It's better. Trust me.
Asyncronous, any word on Packets for crafting? Mostly how Enchantment table works? Still stuck on my creation T_T. I sorta figured out how to do a packet (which uses static variables, however that causes my altar to only allow 1 to be placed in the world. Else problems occur with 2 or more).
And to anyone else, Besides work benches and Furances, is Icraft class needed and over all what does it do?
Should I send you the code and you can have a look at it?
I felt like I should hold down the fort in your stead
I sent you the code Unless you changed it, and that would probably be a problem. That "mod" runs fine for me in eclipse or loaded in MultiMC. If you just cnp'd my classes into your workspace, that could be causing the problem if you didn't do it right, maybe.
EDIT: I just realized at some point I turned into a Gold Miner lol
I also plan on making another Furnace type thing with just 1 Input and 1 Output and using the sun as fuel. Is this possible?
Probably... You would want to check what time of day it is, and base your fuel on that.
Sure Just send me the sources. Also, I had an idea... What if you made a Solar Panel block, a-la RP2, and just powered your other block with it? Or possibly a Solar Capturer or something, that actually stores sunlight as fuel, to use in your furnace?
Do you need all the mod files, or Just the TileEntity, Container, mod_, and Recipes?
First off, by convention, Java has lowercase package names, and it threw me off big time when yours had capitals Java has lowercase package names, Capitalized class/interface names, with methods and fields being mostly camelCase.
Secondly, your @Instance isn't going to like to play well with other mods (a tiny addition):
Third, your proxy is set up wrong (a tiny mistake):
Then, and though I can't fix it, because I'm not sure what your code is trying to do, I did find your error. I simply read the stack trace:
And I'm not sure what you're trying to do here; it's your mod, not mine.
I am also getting a funky error when I load Minecraft:
Also, your textures aren't showing up in my eclipse. I didn't look at how they are coded, so it could be that I set it up wrong. If they work for you, kudos and no worries on that front
And for the proxy setup, thanks for catching that, never would have seen that.
And what I'm trying to do is make a furnace that requires 2 ores to make an item, so for Bronze it needs Copper and Tin. To be honest, if it weren't for bronze needing copper and tin, I'd make it not require a fuel cause the others need coal, but a certain amount of coal. But all that code is from this tutorial, that other dude's tutorial, and your code.
By they way, this is my first mod, and I'm making it because it's a good mod to have a learning experience with. It basically has a lot of beginner, intermediate and advanced stuff in there. So I'm not really good at modding ;o)
What I would do is have a check for fuel (Coal) in the "usual" way, possibly with tweaks, and then have it check the other two slots for Copper and/or Tin. Then, based on what it finds, output your Bronze.
EDIT: Page 9!!!
Blau's tutorial is good for these, or you can check out my code. I have animations in CombinerGui and BreakdownGui. The tricky part is figuring out the math of how to actually make them display correctly. I think you can see it in the vanilla furnace code, if you're doing it with that same overlay.
Also, if you use an image editing program that tells you which pixel you are pointing at, just open your image, and... yeah. That.
Asyncronous
Asyncronous, any word on Packets for crafting? Mostly how Enchantment table works? Still stuck on my creation T_T. I sorta figured out how to do a packet (which uses static variables, however that causes my altar to only allow 1 to be placed in the world. Else problems occur with 2 or more).And to anyone else, Besides work benches and Furances, is Icraft class needed and over all what does it do?