From 99ad4dc61d3557c6d0c5156c7620ec170e50bc76 Mon Sep 17 00:00:00 2001 From: FireBall1725 Date: Mon, 29 Sep 2014 21:06:27 -0400 Subject: [PATCH 1/3] Downgraded forge to 1208 to fix compatiblity with forge multiparts --- build.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.properties b/build.properties index a722f6ad..7d7ab532 100644 --- a/build.properties +++ b/build.properties @@ -8,7 +8,7 @@ archivesBaseName=appliedenergistics2 # Versions # ######################################################### minecraft_version=1.7.10 -forge_version=10.13.1.1217 +forge_version=10.13.1.1208 ######################################################### # APIs used for development # From c0b2664331aa39af9ad90dec3437aceaa108dc91 Mon Sep 17 00:00:00 2001 From: FireBall1725 Date: Mon, 29 Sep 2014 21:10:01 -0400 Subject: [PATCH 2/3] this is what happens when i dont verify the forge version on the website --- build.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.properties b/build.properties index 7d7ab532..575d8274 100644 --- a/build.properties +++ b/build.properties @@ -8,7 +8,7 @@ archivesBaseName=appliedenergistics2 # Versions # ######################################################### minecraft_version=1.7.10 -forge_version=10.13.1.1208 +forge_version=10.13.0.1208 ######################################################### # APIs used for development # From e2e8ecb213f22df9709baf757cbc06e35d3b8942 Mon Sep 17 00:00:00 2001 From: FireBall1725 Date: Mon, 29 Sep 2014 21:18:59 -0400 Subject: [PATCH 3/3] fixed errors, will need to be updated for newer forge versions --- src/main/java/appeng/transformer/asm/ASMTweaker.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/appeng/transformer/asm/ASMTweaker.java b/src/main/java/appeng/transformer/asm/ASMTweaker.java index da9d5975..58d83349 100644 --- a/src/main/java/appeng/transformer/asm/ASMTweaker.java +++ b/src/main/java/appeng/transformer/asm/ASMTweaker.java @@ -79,7 +79,9 @@ public class ASMTweaker implements IClassTransformer MethodNode newNode = new MethodNode( Opcodes.ACC_PUBLIC, "func_146977_a_original", mn.desc, mn.signature, new String[0] ); newNode.instructions.add( new VarInsnNode( Opcodes.ALOAD, 0 ) ); newNode.instructions.add( new VarInsnNode( Opcodes.ALOAD, 1 ) ); - newNode.instructions.add( new MethodInsnNode( Opcodes.INVOKESPECIAL, classNode.name, mn.name, mn.desc, false ) ); + //newNode.instructions.add( new MethodInsnNode( Opcodes.INVOKESPECIAL, classNode.name, mn.name, mn.desc, false ) ); + // TODO: Update for newer forge + newNode.instructions.add( new MethodInsnNode( Opcodes.INVOKESPECIAL, classNode.name, mn.name, mn.desc ) ); newNode.instructions.add( new InsnNode( Opcodes.RETURN ) ); log( newNode.name + newNode.desc + " - New Method" ); classNode.methods.add( newNode ); @@ -101,7 +103,9 @@ public class ASMTweaker implements IClassTransformer if ( n.name.equals( "func_146977_a" ) || (n.name.equals( "a" ) && n.desc.equals( "(Lzk;)V" )) ) { log( n.name + n.desc + " - Invoke Virtual" ); - mn.instructions.insertBefore( n, new MethodInsnNode( Opcodes.INVOKEVIRTUAL, n.owner, n.name, n.desc, false ) ); + //mn.instructions.insertBefore( n, new MethodInsnNode( Opcodes.INVOKEVIRTUAL, n.owner, n.name, n.desc, false ) ); + // TODO: Update for newer forge + mn.instructions.insertBefore( n, new MethodInsnNode( Opcodes.INVOKEVIRTUAL, n.owner, n.name, n.desc ) ); mn.instructions.remove( in ); break; }