No, I dont have a slot class for my 5x5 table so it should not be necessary. I am not seeing an issue in the code, I could be wrong. Best I can say is to double check your work and review my code I have up for the tutorial, it is the exact code I am using.
2013-08-05 20:33:42 [INFO] [Minecraft-Server] Preparing spawn area: 15%
2013-08-05 20:33:43 [INFO] [Minecraft-Server] Preparing spawn area: 31%
2013-08-05 20:33:44 [INFO] [Minecraft-Server] Preparing spawn area: 48%
2013-08-05 20:33:49 [INFO] [STDOUT] loading single player
2013-08-05 20:33:49 [INFO] [Minecraft-Server] Player639[/127.0.0.1:0] logged in with entity id 244 at (1198.699999988079, 56.20000004768367, -33.69999998807907)
2013-08-05 20:33:49 [INFO] [Minecraft-Server] Player639 joined the game
2013-08-05 20:33:49 [INFO] [STDOUT] Setting up custom skins
2013-08-05 20:33:53 [WARNING] [Minecraft-Server] Can't keep up! Did the system time change, or is the server overloaded?
2013-08-05 20:33:53 [INFO] [Minecraft-Server] Saving and pausing game...
2013-08-05 20:33:53 [INFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
2013-08-05 20:33:54 [INFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether
2013-08-05 20:33:54 [INFO] [Minecraft-Server] Saving chunks for level 'New World'/The End
2013-08-05 20:33:54 [INFO] [Minecraft-Server] Saving chunks for level 'New World'/Endless
2013-08-05 20:34:02 [INFO] [STDOUT] 0 recipes
2013-08-05 20:34:06 [INFO] [STDERR] net.minecraft.util.ReportedException: Ticking memory connection
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:63)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-08-05 20:34:06 [INFO] [STDERR] Caused by: java.lang.IndexOutOfBoundsException: Index: 59, Size: 45
2013-08-05 20:34:06 [INFO] [STDERR] at java.util.ArrayList.rangeCheck(Unknown Source)
2013-08-05 20:34:06 [INFO] [STDERR] at java.util.ArrayList.get(Unknown Source)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.inventory.Container.slotClick(Container.java:303)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.network.NetServerHandler.handleWindowClick(NetServerHandler.java:910)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.network.packet.Packet102WindowClick.processPacket(Packet102WindowClick.java:46)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
2013-08-05 20:34:06 [INFO] [STDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
2013-08-05 20:34:06 [INFO] [STDERR] ... 6 more
2013-08-05 20:34:06 [SEVERE] [Minecraft-Server] Encountered an unexpected exception ReportedException
net.minecraft.util.ReportedException: Ticking memory connection
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:63)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: java.lang.IndexOutOfBoundsException: Index: 59, Size: 45
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at net.minecraft.inventory.Container.slotClick(Container.java:303)
at net.minecraft.network.NetServerHandler.handleWindowClick(NetServerHandler.java:910)
at net.minecraft.network.packet.Packet102WindowClick.processPacket(Packet102WindowClick.java:46)
at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
... 6 more
2013-08-05 20:34:06 [SEVERE] [Minecraft-Server] This crash report has been saved to: C:\Users\*******\Desktop 4\stillMod1\forge\mcp\jars\.\crash-reports\crash-2013-08-05_20.34.06-server.txt
2013-08-05 20:34:06 [INFO] [Minecraft-Server] Stopping server
2013-08-05 20:34:06 [INFO] [Minecraft-Server] Saving players
2013-08-05 20:34:06 [INFO] [STDOUT] ---- Minecraft Crash Report ----
2013-08-05 20:34:06 [INFO] [STDOUT] // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
2013-08-05 20:34:06 [INFO] [STDOUT]
2013-08-05 20:34:06 [INFO] [STDOUT] Time: 8/5/13 8:34 PM
2013-08-05 20:34:06 [INFO] [STDOUT] Description: Ticking memory connection
2013-08-05 20:34:06 [INFO] [STDOUT]
2013-08-05 20:34:06 [INFO] [STDOUT] java.lang.IndexOutOfBoundsException: Index: 59, Size: 45
2013-08-05 20:34:06 [INFO] [STDOUT] at java.util.ArrayList.rangeCheck(Unknown Source)
2013-08-05 20:34:06 [INFO] [STDOUT] at java.util.ArrayList.get(Unknown Source)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.inventory.Container.slotClick(Container.java:303)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.handleWindowClick(NetServerHandler.java:910)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.network.packet.Packet102WindowClick.processPacket(Packet102WindowClick.java:46)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-08-05 20:34:06 [INFO] [STDOUT]
2013-08-05 20:34:06 [INFO] [STDOUT]
2013-08-05 20:34:06 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2013-08-05 20:34:06 [INFO] [STDOUT] ---------------------------------------------------------------------------------------
2013-08-05 20:34:06 [INFO] [STDOUT]
2013-08-05 20:34:06 [INFO] [STDOUT] -- Head --
2013-08-05 20:34:06 [INFO] [STDOUT] Stacktrace:
2013-08-05 20:34:06 [INFO] [STDOUT] at java.util.ArrayList.rangeCheck(Unknown Source)
2013-08-05 20:34:06 [INFO] [STDOUT] at java.util.ArrayList.get(Unknown Source)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.inventory.Container.slotClick(Container.java:303)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.handleWindowClick(NetServerHandler.java:910)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.network.packet.Packet102WindowClick.processPacket(Packet102WindowClick.java:46)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
2013-08-05 20:34:06 [INFO] [STDOUT]
2013-08-05 20:34:06 [INFO] [STDOUT] -- Ticking connection --
2013-08-05 20:34:06 [INFO] [STDOUT] Details:
2013-08-05 20:34:06 [INFO] [STDOUT] Connection: net.minecraft.network.NetServerHandler@df13a5
2013-08-05 20:34:06 [INFO] [STDOUT] Stacktrace:
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
2013-08-05 20:34:06 [INFO] [STDOUT] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-08-05 20:34:06 [INFO] [STDOUT]
2013-08-05 20:34:06 [INFO] [STDOUT] -- System Details --
2013-08-05 20:34:06 [INFO] [STDOUT] Details:
2013-08-05 20:34:06 [INFO] [STDOUT] Minecraft Version: 1.6.2
2013-08-05 20:34:06 [INFO] [STDOUT] Operating System: Windows Vista (x86) version 6.0
2013-08-05 20:34:06 [INFO] [STDOUT] Java Version: 1.7.0_15, Oracle Corporation
2013-08-05 20:34:06 [INFO] [STDOUT] Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
2013-08-05 20:34:06 [INFO] [STDOUT] Memory: 790934552 bytes (754 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
2013-08-05 20:34:06 [INFO] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2013-08-05 20:34:06 [INFO] [STDOUT] AABB Pool Size: 1706 (95536 bytes; 0 MB) allocated, 1340 (75040 bytes; 0 MB) used
2013-08-05 20:34:06 [INFO] [STDOUT] Suspicious classes: FML and Forge are installed
2013-08-05 20:34:06 [INFO] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 63
2013-08-05 20:34:06 [INFO] [Minecraft-Server] Player639 left the game
2013-08-05 20:34:06 [INFO] [STDOUT] FML: MCP v8.04 FML v6.2.35.804 Minecraft Forge 9.10.0.804 4 mods loaded, 4 mods active
2013-08-05 20:34:06 [INFO] [STDOUT] mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-08-05 20:34:06 [INFO] [STDOUT] FML{6.2.35.804} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-08-05 20:34:06 [INFO] [STDOUT] Forge{9.10.0.804} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-08-05 20:34:06 [INFO] [STDOUT] weaponsandmore{0.0.0.1} [weaponsandmore] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-08-05 20:34:06 [INFO] [STDOUT] Profiler Position: N/A (disabled)
2013-08-05 20:34:06 [INFO] [STDOUT] Vec3 Pool Size: 326 (18256 bytes; 0 MB) allocated, 202 (11312 bytes; 0 MB) used
2013-08-05 20:34:06 [INFO] [STDOUT] Player Count: 1 / 8; [EntityPlayerMP['Player639'/244, l='New World', x=1198.70, y=56.20, z=-33.70]]
2013-08-05 20:34:06 [INFO] [STDOUT] Type: Integrated Server (map_client.txt)
2013-08-05 20:34:06 [INFO] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'
2013-08-05 20:34:06 [INFO] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\
*******\Desktop 4\stillMod1\forge\mcp\jars\.\crash-reports\crash-2013-08-05_20.34.06-server.txt
2013-08-05 20:34:06 [INFO] [Minecraft-Server] Stopping server
2013-08-05 20:34:06 [INFO] [Minecraft-Server] Saving players
2013-08-05 20:34:06 [INFO] [Minecraft-Server] Player639 left the game
2013-08-05 20:34:06 [INFO] [Minecraft-Server] Saving worlds
2013-08-05 20:34:06 [INFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
AL lib: (EE) alc_cleanup: 1 device not closed
I have tried copying and pasting your exact code, and re-writing it out.
I have never had this problem before, and have tried various things to fix it, but it keeps crashing.
I am using Forge 9.10.0.804
I have tried copying and pasting your exact code, and re-writing it out.
I have never had this problem before, and have tried various things to fix it, but it keeps crashing.
I am using Forge 9.10.0.804
Okay, well I tried to be as clear as possible with these tuts, but I guess I just dont understand where you guys are having an issue. I suppose I will do what I dont want to or dont think I should have to considering no one will learn that way. I suppose I will have to post my src files for these tables. Copy and pasting teaches nothing in my opinion which is why I tried to explain and point out all the spots that needed changed. So tonight I will post my src for the 5x5 only and see how that goes....
Thanks for the help with that, I did point that out to the first respondent above with an issue, the location for the interactive block is in the container and he said it wasnt the issue. The only other thing it could be is an improperly registered GUIHandler or some other mistake that can easily be found by reviewing my code in the main posts. Also the solution to the interactive block is pointed out in those posts stating that if not changed the GUI will not open.
Keep getting an fatal error when it tries to open it, I attempted to adapt the examples so they would work on a keypress instead of a block right click, have been trying to figure this out for a while now...
Okay, sorry for not getting back to you sooner, I wanted to make sure I had a well thought out answer for you. First, your GUI Handler is not set up correctly, no matter which way you make your block or how you want to activate your block, you will need a proper handler for your GUI. Yours is missing all the information on your container and GUI and Tile if that is needed as well. You cant just have it using the GUI id, as it does nothing but tell it a number, it needs to know what you will be interacting with.
Next you will need a key binder class, a packet handler to handle the key press, even if this is not going to be a MP mod, minecraft has a built in server and an unregistered key press with out a packet handler will cause a crash. You will also need to find some way in your block of getting the player distance from the block, unless you plan to allow players to open the GUI from anywhere in the world.
Now, I have not seen many do this the way you are trying to attempt, mostly because of all that is involved in the task. I also have no idea how to make it all work after you have those pieces together, so from there I wont be able to help at all, I only know about the key press events and packet handling because of making a chicken rideable and flyable in a mod I used to work on. This will not be an easy task and I hope you get it solved, but I would recommend first getting the table to work and then filling in the extras to make it work the way you want, this way you will have a working GUI first and you will know it works. Then if it does not work after trying to add in the key command you know where the mistakes are instead of trying to read crash logs and showing code that for one reason or another is incorrect.
I wish you luck with this, and if you should succeed please let me know so I can post it here for others with the same issue, this is not the first time I have been asked to help with this and I am sorry I can not help further.
Happy to help. I will also be making two more tables, thanks to the_slayer98 and smokesick (i believe is the name) who I have helped with some very unique tables and they are willing to allow me to provide a tutorial with some details on the code, not going to spoil the surprise, but these are something I have been asked to do several times so.....they will be coming this week I think...
I got the workbench to open, but recipes won't work
Here's my code (in the craftingmanager I tried 2 different approaches of recipes and both didn't work)
I am not sure what I am missing, but I am not seeing the error either. What version of MC is this for and also what forge version are you using? And could you pm a link to me for your class files, I can load it in eclipse and see if I can find the reason...
I actually have code given to me from Smokesick and the_slayer whom I have helped get theirs working. One is an odd shaped table, 2x4-3x5-4x5 and so on. The other is a table like you want. Neither of these Will be exactly what you are looking for like that, but the second one has multiple crafting matrix and close to what you are looking for, you will just have to play with it....
WTF what do i do wrong??
P.S: Does not even work with normal stuff without the addons...
PICS:
Okay, first, can we try to explain the issue without making this my problem? The code I have posted works 100%, perhaps you should check out my better crafting thread, as I have this 5x5 table there, and also in my builder mod, both using the same code. I even updated the issue with the GUI not lining up with the slots when going from windowed mode to full screen. You have to make your own GUI.png, but the code is sound. As for your issue.....
From looking at the pic you posted with your recipe, you have it upside down....the recipe goes from left to right (top to bottom). Based on your pic and the code, your recipe code is backwards or upside down......
You need to move the positions of the containers to fit the position of the GUI.
This is trial and error, and you will have to do it yourself.
That is if the icons are off to the side.
If that's just your doing then for the recipe you are doing it wrongly as mentioned above.
Actually when I originally posted the code for the 5x5, the GUI had a bug that when in windowed mode(the one I play in mainly, using a 32 inch TV/Monitor) it seemed fine. In full screen it would shift the slots over to the left for some odd reason. Anyway the bug is fixed now (has been for a bit now) and thought that was what he meant. Also though like you said, lots of trial and error to get them just right in custom GUI's. There is also lots of patience as I found, especially when doing GUI's that are all text based and no slots.
This is for you and all else who wants to try and make a table or a furnace or similar from my tutorials. These are easy to do, they are deemed a bit more advanced by some, however if you can look through the MC code and already have mc decompiled in your eclipse setup and have done other tutorials and have some comfort with what you are doing you can easily fill in the blanks by looking at the vanilla code for a table or furnace or whatever you are making. I will not answer anymore, or try to solve anymore easy issues like this. This answer could have easily been found by looking at the crafting manager for the basic table in mc.....if you are going to create the table and have the recipes in your crafting manager for your table then add this to your manager class...
this.func_92051_a(new ItemStack(Block.dirt, 64), new Object[] {"DP", Character.valueOf('P'), Block.dirt, Character.valueOf('D'), Item.diamond});
The above is an example of a recipe in the manager class, or if you want it in the mod class use this....
YourCraftingManager.getInstance().addRecipe(new ItemStack(Block.dirt, 64), new Object[] {"DP", Character.valueOf('P'), Block.dirt, Character.valueOf('D'), Item.diamond});
Remember that "YourCraftingManager" is the name of the class you gave to your crafting manager.
@Everyone having troubles. Please refer to the workbench code in MC, all the tutorials on the main page are not there for you to just copy and paste, you should try to refer to something similar and try to learn something on your own instead of asking for me or others to solve your easily solved problems by going to the MC source code. The only issues I will try to help with from here on out is when things go really wrong. Aside from major crash issues or other completely side ways issues, there will be no further help from me on this. I apologize if this seems rude of me, but this is pretty easy to follow, if you follow from the first tutorial to the last and look at all the code changes for things. You should be able to use this and make anything your mod requires....
Then you did something wrong. But simply stating it doesnt work doesnt help anyone help you solve the problem. What doesnt work? Does it crash? Where is crash log? These things help....
Well first of all, this is another fine example of why I am starting to ignore people. This is not a "I have added a new crafting manager". This is I have downloaded your source and did not change anything and dont know why it doesnt work. After looking at the very top of the manager "You" claimed to make, it is an exact copy of mine. You still did not tell me the problem, and therefore I can not help you. Simple: if you want help, explain the problem.
My thoughts are you did not even try to make your own manager, also you failed to give it a new name, just straight up put the downloaded source in your mod. Sorry, but it will never work this way. You also need to make sure you REMOVE any links to my class files or your imports may not work correctly.....and for your info....this does to work. It is my entire source code from my better table mod....mod class, handler and proxies are all there and class files related to the table as well.....So either go back and learn to make blocks and items and work your way up.....or, pay attention to what I have in the tutorial, read 5 or 6 times or more and understand the code, then try to make the table. All the info required is there, its up to you to figure out how to use it, just like everyone else does....
Just a tip....dont just take source code and then blame others when you can not make it work.....
If the frowny is for me, I do apologize. However, my source code that is available for download is a copy of "MY" mod. This does, if dropped in eclipse, works from the start with nothing else to do. All you had to do was look at the code and make you files based on mine and boom you would have a working 5x5 grid. I do not like to provide source because this is the response I get. It doesnt work, okay why? What did you do wrong? Can you follow simple directions? Even the tutorial I posted on this is an exact copy of my work. So, please dont be upset with me, go back and start over and do like I said and drop my source in your set up and review my "working" code to find your mistake....
Still not sure what your proble is, what is happening and when...
I will have to take a longer look at your issue...
Find out how I generate....coolAlias...world structure generation and rotation tool...
No, I dont have a slot class for my 5x5 table so it should not be necessary. I am not seeing an issue in the code, I could be wrong. Best I can say is to double check your work and review my code I have up for the tutorial, it is the exact code I am using.
Find out how I generate....coolAlias...world structure generation and rotation tool...
I have tried copying and pasting your exact code, and re-writing it out.
I have never had this problem before, and have tried various things to fix it, but it keeps crashing.
I am using Forge 9.10.0.804
Okay, well I tried to be as clear as possible with these tuts, but I guess I just dont understand where you guys are having an issue. I suppose I will do what I dont want to or dont think I should have to considering no one will learn that way. I suppose I will have to post my src files for these tables. Copy and pasting teaches nothing in my opinion which is why I tried to explain and point out all the spots that needed changed. So tonight I will post my src for the 5x5 only and see how that goes....
Find out how I generate....coolAlias...world structure generation and rotation tool...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Okay, sorry for not getting back to you sooner, I wanted to make sure I had a well thought out answer for you. First, your GUI Handler is not set up correctly, no matter which way you make your block or how you want to activate your block, you will need a proper handler for your GUI. Yours is missing all the information on your container and GUI and Tile if that is needed as well. You cant just have it using the GUI id, as it does nothing but tell it a number, it needs to know what you will be interacting with.
Next you will need a key binder class, a packet handler to handle the key press, even if this is not going to be a MP mod, minecraft has a built in server and an unregistered key press with out a packet handler will cause a crash. You will also need to find some way in your block of getting the player distance from the block, unless you plan to allow players to open the GUI from anywhere in the world.
Now, I have not seen many do this the way you are trying to attempt, mostly because of all that is involved in the task. I also have no idea how to make it all work after you have those pieces together, so from there I wont be able to help at all, I only know about the key press events and packet handling because of making a chicken rideable and flyable in a mod I used to work on. This will not be an easy task and I hope you get it solved, but I would recommend first getting the table to work and then filling in the extras to make it work the way you want, this way you will have a working GUI first and you will know it works. Then if it does not work after trying to add in the key command you know where the mistakes are instead of trying to read crash logs and showing code that for one reason or another is incorrect.
I wish you luck with this, and if you should succeed please let me know so I can post it here for others with the same issue, this is not the first time I have been asked to help with this and I am sorry I can not help further.
Find out how I generate....coolAlias...world structure generation and rotation tool...
Happy to help. I will also be making two more tables, thanks to the_slayer98 and smokesick (i believe is the name) who I have helped with some very unique tables and they are willing to allow me to provide a tutorial with some details on the code, not going to spoil the surprise, but these are something I have been asked to do several times so.....they will be coming this week I think...
Find out how I generate....coolAlias...world structure generation and rotation tool...
I am not sure what I am missing, but I am not seeing the error either. What version of MC is this for and also what forge version are you using? And could you pm a link to me for your class files, I can load it in eclipse and see if I can find the reason...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Can you maybe make a tutorial for a 3x3 Craftingtable with an additional slot like the Tables from TC?
Find out how I generate....coolAlias...world structure generation and rotation tool...
Okay, first, can we try to explain the issue without making this my problem? The code I have posted works 100%, perhaps you should check out my better crafting thread, as I have this 5x5 table there, and also in my builder mod, both using the same code. I even updated the issue with the GUI not lining up with the slots when going from windowed mode to full screen. You have to make your own GUI.png, but the code is sound. As for your issue.....
From looking at the pic you posted with your recipe, you have it upside down....the recipe goes from left to right (top to bottom). Based on your pic and the code, your recipe code is backwards or upside down......
Find out how I generate....coolAlias...world structure generation and rotation tool...
This is trial and error, and you will have to do it yourself.
That is if the icons are off to the side.
If that's just your doing then for the recipe you are doing it wrongly as mentioned above.
Glad you got it working....at least I hope thats what you meant
Actually when I originally posted the code for the 5x5, the GUI had a bug that when in windowed mode(the one I play in mainly, using a 32 inch TV/Monitor) it seemed fine. In full screen it would shift the slots over to the left for some odd reason. Anyway the bug is fixed now (has been for a bit now) and thought that was what he meant. Also though like you said, lots of trial and error to get them just right in custom GUI's. There is also lots of patience as I found, especially when doing GUI's that are all text based and no slots.
Find out how I generate....coolAlias...world structure generation and rotation tool...
Look at the crafting manager for the minecraft 3x3 table its done the same way, just make sure your recipes are for 5x5
Find out how I generate....coolAlias...world structure generation and rotation tool...
This is for you and all else who wants to try and make a table or a furnace or similar from my tutorials. These are easy to do, they are deemed a bit more advanced by some, however if you can look through the MC code and already have mc decompiled in your eclipse setup and have done other tutorials and have some comfort with what you are doing you can easily fill in the blanks by looking at the vanilla code for a table or furnace or whatever you are making. I will not answer anymore, or try to solve anymore easy issues like this. This answer could have easily been found by looking at the crafting manager for the basic table in mc.....if you are going to create the table and have the recipes in your crafting manager for your table then add this to your manager class...
The above is an example of a recipe in the manager class, or if you want it in the mod class use this....
Remember that "YourCraftingManager" is the name of the class you gave to your crafting manager.
@Everyone having troubles. Please refer to the workbench code in MC, all the tutorials on the main page are not there for you to just copy and paste, you should try to refer to something similar and try to learn something on your own instead of asking for me or others to solve your easily solved problems by going to the MC source code. The only issues I will try to help with from here on out is when things go really wrong. Aside from major crash issues or other completely side ways issues, there will be no further help from me on this. I apologize if this seems rude of me, but this is pretty easy to follow, if you follow from the first tutorial to the last and look at all the code changes for things. You should be able to use this and make anything your mod requires....
Find out how I generate....coolAlias...world structure generation and rotation tool...
Then you did something wrong. But simply stating it doesnt work doesnt help anyone help you solve the problem. What doesnt work? Does it crash? Where is crash log? These things help....
Find out how I generate....coolAlias...world structure generation and rotation tool...
Well first of all, this is another fine example of why I am starting to ignore people. This is not a "I have added a new crafting manager". This is I have downloaded your source and did not change anything and dont know why it doesnt work. After looking at the very top of the manager "You" claimed to make, it is an exact copy of mine. You still did not tell me the problem, and therefore I can not help you. Simple: if you want help, explain the problem.
My thoughts are you did not even try to make your own manager, also you failed to give it a new name, just straight up put the downloaded source in your mod. Sorry, but it will never work this way. You also need to make sure you REMOVE any links to my class files or your imports may not work correctly.....and for your info....this does to work. It is my entire source code from my better table mod....mod class, handler and proxies are all there and class files related to the table as well.....So either go back and learn to make blocks and items and work your way up.....or, pay attention to what I have in the tutorial, read 5 or 6 times or more and understand the code, then try to make the table. All the info required is there, its up to you to figure out how to use it, just like everyone else does....
Just a tip....dont just take source code and then blame others when you can not make it work.....
Find out how I generate....coolAlias...world structure generation and rotation tool...
If the frowny is for me, I do apologize. However, my source code that is available for download is a copy of "MY" mod. This does, if dropped in eclipse, works from the start with nothing else to do. All you had to do was look at the code and make you files based on mine and boom you would have a working 5x5 grid. I do not like to provide source because this is the response I get. It doesnt work, okay why? What did you do wrong? Can you follow simple directions? Even the tutorial I posted on this is an exact copy of my work. So, please dont be upset with me, go back and start over and do like I said and drop my source in your set up and review my "working" code to find your mistake....
Find out how I generate....coolAlias...world structure generation and rotation tool...