Everything posted by ResaloliPT
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
the lines with null are on my previous post and the var "instance" (no qoutes) is null i may got it wrong and sory about that updating code in 1 min
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
at com.resaloli.eim.content.crafting.CraftingManagerdualCraftingTable.<init>(CraftingManagerdualCraftingTable.java:36) ~[CraftingManagerdualCraftingTable.class:?] > recipes.addAll(CraftingManager.getInstance().getRecipeList()); at com.resaloli.eim.content.crafting.CraftingManagerdualCraftingTable.<clinit>(CraftingManagerdualCraftingTable.java:26) ~[CraftingManagerdualCraftingTable.class:?] > private static final CraftingManagerdualCraftingTable instance = new CraftingManagerdualCraftingTable(); when using debug + breakpoint i see that instance = null maybe i need to register it on registry? if thats the case how its done? there where a couple of changes to 1.8 that removed the old registry of craftingmanager if im not wrong + when droping 1 item to teh grid all the grid slots copies the item and when removing 1 it also makes all items disapear that must mean all the grid slots has the same ID but that is not true...
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
well tried everything on my knowlegde and i still get this dam error that is anoying me, here is a start click on result slot then start of grid then end of grid and then same to inventory and then to hotbar "[com.resaloli.eim.content.container.ContainerdualCraftingTable:slotClick:57]: SlotN: " comes from here: @Override public ItemStack slotClick(int slotId, int clickedButton, int mode, EntityPlayer playerIn){ System.out.println("SlotN: " + slotId); return null; } so dont worry about that here is the crashlog: Added DCTSlot and DCTCrafting Classes
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
Thx for teh explanation gimme aobut 10 mins to test that out will Reply to this post the results EDIT: cant get it working on the container when i change slot to my customslot it get a error on addSlotToContainer not accepting my customslot could u show me some snippets of code to show me the right way ?
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
well it is overriten pls take a look on my craftingmanager and see if theres a problem with my recipes i am importing all vanilla recipes and adding a custom(1 dirt to 1 diamondblock for testing porpuses) + could u give me some explanation on how i can bound my custom slots to the tileentity cause at the mid of the player inventory im getting out of bounds 45 of 45(0 + 25 +(19 of 27) are working) code up in 1 min
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
well i did some some changes to container, and worldobj is now containing WorldServer duno if this is the right contents + im not getting any output on the craftResult slot code up in 1 min
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
I didnt get it fully, but basically if you are using custom Slots you need to add regular slots for the Player Inv. (with ID's starting from 0!) and use your own slots for the Contianer (with ID's starting from 0 as wel!). for an exapmle see my ContainerClass. One thing I mentioned earlier was moving the Player inv. SlotID's upwards. NEVER DO THAT! that was a huge misstake from me! since there is only a limited ID range for the Player inv. therefore its higly recommended to either use Custom CraftingSlots, or the Vanilla variants. To clarify some things, your TileEntity doesn't store any Slot whatsoever! Basically it holds on to an array of Itemstacks. the confusion starts cause some methods are using the word Slot (for example getStackInSlot()). if you noticed, all the methods around the ItemStacks are only calling from the array, and no Slots are involved. Therefore you need to remeber one thing. The TileEntity only saves data from the TileEntity! e.g. itemStacks from the player, are from the Player, so don't save that in a tileEntity ever! The container Class is a helper Class for communication between Client and Server. values are stored on the server, but are rendererd on the Client side. The container itself can't store any data, though its enough for single use only (e.g. vanilla crafting table) but since you want to store data, you need the TileEntity as well So the Container Class creates the Slots, but don't know the content, and it gets it from the TileEntity. thats why start asigning ID's from 0 for your custom Contianer may become in handy (since the index of the Slots are equal to the index of the Array that way!). To sum up the changes I would recommend to apply: - Create your own SlotType. - Creat the Container Inv. from the CustomSlots and regular slots(for player inv. Only) - Changing the value of the ItemStack array inside the TileEntity to 26 (instead of 61) - Changing the methods Calling for any ID above 26 (cause the ID offset!) I think it would solve a lot of problems. ps. when using custom Slots, the parm. EntityPlayer can be left out, and replaced with tileEntity well ill do some testes and will reply back EDIT: ok no slots problems now im getting a null worldobj.... on this line this.craftResult.setInventorySlotContents(0, CraftingManagerdualCraftingTable.getInstance().findMatchingRecipe(this.craftMatrix, this.worldObj)); Code up on pastebin in 1 min
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
sure will do they are up in 1 min. links will be on OP Thread EDIT: updated classes and uploaded to my pastebin acc
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
omg u genius thx can now move items freely now i get no crash and just this error(hope its the last) when opening the gui: [20:56:55] [main/INFO]: Extra: [] [20:56:55] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/ResaloliPT/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [20:56:55] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:56:55] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:56:55] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [20:56:55] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [20:56:55] [main/INFO]: Forge Mod Loader version 8.0.37.1334 for Minecraft 1.8 loading [20:56:55] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_45 [20:56:55] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [20:56:55] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [20:56:55] [main/INFO]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [20:56:55] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [20:56:55] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [20:56:55] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [20:56:55] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [20:56:55] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [20:56:55] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [20:56:55] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [20:56:55] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [20:56:57] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing [20:56:57] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [20:56:57] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [20:56:58] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [20:56:58] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [20:56:58] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [20:56:58] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main} [20:56:58] [Client thread/INFO]: Setting user: Player9 [20:57:01] [Client thread/INFO]: LWJGL Version: 2.9.1 [20:57:02] [Client thread/INFO]: Attempting early MinecraftForge initialization [20:57:02] [Client thread/INFO]: MinecraftForge v11.14.1.1334 Initialized [20:57:02] [Client thread/INFO]: Replaced 204 ore recipies [20:57:02] [Client thread/INFO]: Completed early MinecraftForge initialization [20:57:02] [Client thread/INFO]: Searching C:\Users\ResaloliPT\Desktop\Programming\Java\Minecraft\MCP\eclipse\mods for mods [20:57:03] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load [20:57:03] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, extrasinminecraft] at CLIENT [20:57:03] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, extrasinminecraft] at SERVER [20:57:04] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Extras In Minecraft [20:57:04] [Client thread/INFO]: Processing ObjectHolder annotations [20:57:04] [Client thread/INFO]: Found 384 ObjectHolder annotations [20:57:04] [Client thread/INFO]: Configured a dormant chunk cache size of 0 [20:57:04] [Client thread/INFO]: [com.resaloli.eim.ExtrasInMinecraft:preInit:67]: PreIniting EIM [20:57:04] [Client thread/INFO]: Applying holder lookups [20:57:04] [Client thread/INFO]: Holder lookups applied [20:57:04] [sound Library Loader/INFO]: Starting up SoundSystem... [20:57:04] [Thread-7/INFO]: Initializing LWJGL OpenAL [20:57:04] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [20:57:05] [Thread-7/INFO]: OpenAL initialized. [20:57:05] [sound Library Loader/INFO]: Sound engine started [20:57:07] [Client thread/INFO]: Created: 512x512 textures-atlas [20:57:08] [Client thread/INFO]: [com.resaloli.eim.ExtrasInMinecraft:load:92]: Done! [20:57:08] [Client thread/INFO]: [com.resaloli.eim.ExtrasInMinecraft:initialize:77]: Initing EIM [20:57:08] [Client thread/INFO]: [com.resaloli.eim.ExtrasInMinecraft:postInit:86]: PostIniting EIM [20:57:08] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods [20:57:08] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Extras In Minecraft [20:57:09] [Client thread/INFO]: SoundSystem shutting down... [20:57:09] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [20:57:09] [sound Library Loader/INFO]: Starting up SoundSystem... [20:57:09] [Thread-9/INFO]: Initializing LWJGL OpenAL [20:57:09] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [20:57:09] [Thread-9/INFO]: OpenAL initialized. [20:57:09] [sound Library Loader/INFO]: Sound engine started [20:57:11] [Client thread/INFO]: Created: 512x512 textures-atlas [20:57:14] [server thread/INFO]: Starting integrated minecraft server version 1.8 [20:57:14] [server thread/INFO]: Generating keypair [20:57:15] [server thread/INFO]: Injecting existing block and item data into this server instance [20:57:15] [server thread/INFO]: Applying holder lookups [20:57:15] [server thread/INFO]: Holder lookups applied [20:57:15] [server thread/INFO]: Loading dimension 0 (Teste) (net.minecraft.server.integrated.IntegratedServer@24218a78) [20:57:15] [server thread/INFO]: Loading dimension 1 (Teste) (net.minecraft.server.integrated.IntegratedServer@24218a78) [20:57:15] [server thread/INFO]: Loading dimension -1 (Teste) (net.minecraft.server.integrated.IntegratedServer@24218a78) [20:57:15] [server thread/INFO]: Preparing start region for level 0 [20:57:16] [server thread/INFO]: Changing view distance to 12, from 10 [20:57:16] [Netty Local Client IO #0/INFO]: Server protocol version 1 [20:57:16] [Netty Server IO #1/INFO]: Client protocol version 1 [20:57:16] [Netty Server IO #1/INFO]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected] [20:57:16] [Netty Local Client IO #0/INFO]: [Netty Local Client IO #0] Client side modded connection established [20:57:16] [server thread/INFO]: [server thread] Server side modded connection established [20:57:16] [server thread/INFO]: Player9[local:E:4e47d2d8] logged in with entity id 70 at (1245.1225309750705, 5.0, 1151.4942584365008) [20:57:16] [server thread/INFO]: Player9 joined the game [20:57:18] [Client thread/FATAL]: Exception caught executing FutureTask: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 61 java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 61 at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_45] at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_45] at net.minecraftforge.fml.common.FMLCommonHandler.callFuture(FMLCommonHandler.java:710) [FMLCommonHandler.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1011) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:345) [Minecraft.class:?] at net.minecraft.client.main.Main.main(SourceFile:120) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: java.lang.ArrayIndexOutOfBoundsException: 61 at net.minecraft.inventory.InventoryCrafting.setInventorySlotContents(SourceFile:102) ~[inventoryCrafting.class:?] at net.minecraft.inventory.Slot.putStack(Slot.java:68) ~[slot.class:?] at net.minecraft.inventory.Container.putStacksInSlots(Container.java:527) ~[Container.class:?] at net.minecraft.client.network.NetHandlerPlayClient.handleWindowItems(NetHandlerPlayClient.java:1082) ~[NetHandlerPlayClient.class:?] at net.minecraft.network.play.server.S30PacketWindowItems.func_180732_a(SourceFile:49) ~[s30PacketWindowItems.class:?] at net.minecraft.network.play.server.S30PacketWindowItems.processPacket(SourceFile:11) ~[s30PacketWindowItems.class:?] at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_45] at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_45] at net.minecraftforge.fml.common.FMLCommonHandler.callFuture(FMLCommonHandler.java:709) ~[FMLCommonHandler.class:?] ... 11 more + i got this on my crafting manager on its constructer this.addShapelessRecipe(new ItemStack(Blocks.diamond_block), new ItemStack(Blocks.dirt)); and i cant get it to work.. need it to be along side with others? but redirecting to my craftingmanager?(will test that now)
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
Helloo and thx again for ur help the big method of slotClick() thats from vanilla i copied to fill with breakpoints but its not being called so i have my custom sltos on tileEntity and hotbat+inv on playerInv so that MAY mean that only my customs slots are on the tileEntity right? + how can i add my result to tileEntity since it its constructer is SlotCrafting(EntityPlayer, InventoryCrafting, IInventory, slotID, X, Y), it requires entityplayer and not tileentity thx for your reply so i need to remove the World.isremote and always when onblockactivated call opengui?
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
Ok, so I dont know if you've updated you've updated your code yet but this line will cause trouble when adding ID's this.addSlotToContainer(new Slot(this.craftMatrix, i+j*36, 8+i*18, 7+j*18)); youre using a nested for-loop to asign 5 slots to each row (5 rows total). But this way row 0 starts at id 0.(hey, first 5 slots!) Second row starts on 36, third row starts on 72 etc.... this is what I ment with id conflicts!, easier work around is adding these slots first so no offset is needed. Or do it like this (i+j*5)+36. ya when i was goin to to the video i noticed that i already changed the formula to: (36 + i) + (j * 4) i did alreaid edited the OP didnt knwo if u had noticed that well posting to YT the new video gimme 10 mins+- will edit this thead EDIT: here is the updated video
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
arent guis open on client and containers on servers? or i got a miss understood? well ill search more about that, thx gimme a few mins and ill edit this thread
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
thx for helping me out well its a 5 x 5 crafting but i can still get some ideas from there and btw i know what the error means i just dont know how it apears, im goin to port some vanilla code adapt it and then fill it with breakpoints to see why it crashes EDIT: game dont crash when droping items on the grid + keeping the inventory but i found a few dupe bugs but i will wonder them later for now i have the others to fix that are more important getting error codes while droping at some slots crash report of just 5 drops on crafting grid: + will do a video for better demo gimme 30mins and video will be posted on YT as always updated code on op thread
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
sry for late responce but im only available from 5pm(gmt +0) and thx for all help given(even little things help) also all code updates goin to op post and while im waiting for any responce will try few things to fix this if i get it ill post the solution not true since i can control the items if i hadnt start it on server not even on normal inv i could move the items Acording to you post on solution 1 well the thing is slots are all unike(if not pls explain me since i didnt get this container thing well yet) from what i read on this block of code of Container public void bindTEInventory(){ //craftingGrid for(int j = 0; j < 5; j++){ for(int i = 0; i < 5; i++){ this.addSlotToContainer(new Slot(this.craftMatrix, i+j*36, 8+i*18, 7+j*18)); } } //result this.addSlotToContainer(new SlotCrafting(playerInv.player, this.craftMatrix, this.craftMatrix, 61, 123, 68)); } public void bindPlayerInventory(){ //Hotbar for(int i = 0; i < 9; i++){ this.addSlotToContainer(new Slot(playerInv, i, 8+i* 18, 159)); } //inventory for(int j = 0; j < 3; j++){ for(int i = 0; i < 9; i++){ this.addSlotToContainer(new Slot(playerInv, 9 +i+j*9, 8+i*18, 101+j*18)); } } so changed some code and now the slots are this way: hotbar: 0 to 8 inv: 9 to 35 crafting grid: 36 to 61 result: 61 droped something on 1st slot on grid (marked as a X) X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 and i got this error: EDIT: updated TileEntity + Container
-
[Help 1.8(1.7.10 Aceptable i can adapt)] Bugs Everyhere! Help pls
Hi comunity of Minecraft Forge this is my first post here and also not native so dont expect much from my english, so it wont be the best now lets get goin. So the bugs List is: 1 - of a craftingGrid 5x5 can only use an corner of 3x3 2- tileentity not saving to nbt Thx in advance! If its needed more just ask! Here is the Sources: BIGZ updated pushed all code to github because why not Codez Here
IPS spam blocked by CleanTalk.