Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

kenbeannet

Members
  • Joined

  • Last visited

Everything posted by kenbeannet

  1. I wonder if the theory of patching changed in 1.6.4. In reference to this post: http://www.minecraftforum.net/topic/1909746-forgecore-modding-classcircularityerror/ The user changed the way he was using ASM. And now he uses features like ClassPatcher.addPatchesFrom((File)data.get("coremodLocation")); MethodNode methodNode; Label label; if (deobfuscated) { MethodNode methodNode = new MethodNode(1, "registerIcons", "(Lnet/minecraft/client/renderer/texture/IconRegister;)V", null, null); methodNode.visitFieldInsn(178, "poersch/minecraft/bettergrassandleaves/BetterGrassAndLeavesMod", "workingRegisterIconsHook", "Z"); Label label = new Label(); methodNode.visitJumpInsn(154, label); methodNode.visitVarInsn(25, 1); methodNode.visitMethodInsn(184, "poersch/minecraft/bettergrassandleaves/renderer/BlockRendererList", "onRegisterIconsHook", "(Lnet/minecraft/client/renderer/texture/IconRegister;)V"); methodNode.visitLabel(label); methodNode.visitFrame(3, 0, null, 0, null); methodNode.visitInsn(177); ClassPatcher.addPatcherFor("net.minecraft.block.BlockGrass", new InstructionInjector(methodNode, 1)); } else { methodNode = new MethodNode(1, "a", "(Lmt;)V", null, null); methodNode.visitFieldInsn(178, "poersch/minecraft/bettergrassandleaves/BetterGrassAndLeavesMod", "workingRegisterIconsHook", "Z"); label = new Label(); methodNode.visitJumpInsn(154, label); methodNode.visitVarInsn(25, 1); methodNode.visitMethodInsn(184, "poersch/minecraft/bettergrassandleaves/renderer/BlockRendererList", "onRegisterIconsHook", "(Lnet/minecraft/client/renderer/texture/IconRegister;)V"); methodNode.visitLabel(label); methodNode.visitFrame(3, 0, null, 0, null); methodNode.visitInsn(177); ClassPatcher.addPatcherFor("aon", new InstructionInjector(methodNode, 1)); } So he has a folder called patches and it takes that code and injects it into the core somehow? Blah. Im lost. I'll have to back to reading the basics.
  2. Wow. I think I fixed it. You cannot run a core mod with your mod. But you can run a mod with your core mod. (In Development mode speaking terms). Once I ran it the opposite way, the coremod loaded fine in the mod environment. Can anyone elaborate on this?
  3. If you are running the compile and there is no code on line 70, then you are not compiling what you are looking at. Line errors never occur that way. You must be looking at the wrong location. You should post a snipit of your code so we can see exactly the method in question.
  4. Remember, the changes you make have to apply to the server and to the client. If you make changes to the server and not to the client, you will appear to be walking like normal but the server will have you registered far away, vice versa for the opposite. The best way I approached it was apply buffs (potions) to the player as that works well for communication from Server to Client and Client to Server.
  5. Hello Gents, I have been spending some time trying to create a new mod. I have created the foundation of the mod by editing Minecraft code (yes, I know its not allow for distributional, but it was only for testing purposes.). Now that I have the mod working partial, I went and started the core mod using ASM. If I run my core mod by itself, it works great. If I run my mod by itself, it works great. If I run my coremod with my mod, it fails. I've been getting some very weird errors. First java.lang.NoSuchMethodError: ww.<init>(Ljava/lang/String;)V at mods.scourgecraft.creative.CreativeTabBlock.<init>(CreativeTabBlock.java:15) . I did some research by using JD-GUI and noticed that the minecraft.jar actually does not have the normal CreativeTab(String) method in it. Yet, when I decompiled Forge after downloading, the constructor does exist. I am lost on how it appears on the decompile but yet disappears later. I followed guides to modify the core and it works fine by itself, but it seems once I modify the core my normal mod doesn't function with odd errors. Both forge of the coremod and the mod are identical. Any leads to the right direction would be great.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.