-
How do I edit a class without being able to edit it?
IT WORKS! :D Thanks for your help!!
-
How do I edit a class without being able to edit it?
do packages change when they are obfuscated? part of my instructions list I have "net/minecraft/item/ItemStack" I know that ItemStack changes to yd, but does the net/minecraft/item change as well?
-
How do I edit a class without being able to edit it?
ohhhhhhhhhhhhhh I see, I completely forgot about that Thanks!!
-
How do I edit a class without being able to edit it?
well that if statement is the only place where obfuscation matters if it works when obfuscated = false, shouldn't that be the only place where the problem is?
-
How do I edit a class without being able to edit it?
the only other possibility I could find was "bg/a", so I tried that (which didn't work obviously because a method can't have "/") and "bga", which didn't work either.
-
How do I edit a class without being able to edit it?
I tried replacing it with "func_82482_a" and it didn't work either... I know it is reaching the if statement (I put a println right before I set the method name to func_82482_a to make sure it's getting at least that far). Is it not the obfuscated name then?
-
How do I edit a class without being able to edit it?
but why would the deobfuscated work but not the obfuscated one? obfuscated: if (arg0.equals("bg")) { System.out.println("** INSIDE OBFUSCATED DISPENSE BEHAVIOR TRANSFORMER ABOUT TO PATCH: " + arg0); return patchClassASM(arg0, arg2, true); } deobfuscated (this works): if (arg0.equals("net.minecraft.dispenser.BehaviorDefaultDispenseItem")) { System.out.println("***** INSIDE DISPENSE BEHAVIOR TRANSFORMER ABOUT TO PATCH:" + arg0); return patchClassASM(arg0, arg2, false); } in patchClassASM I have this: if (obfuscated == true) targetMethodName = "a"; else targetMethodName = "dispense"; maybe "a" is incorrect? in methods.csv, the method dispense says the "searge" is "func_82482_a"
-
How do I edit a class without being able to edit it?
The obfuscated name can't be the problem From the log: 2013-07-25 10:11:20 [iNFO] [sTDOUT] ** INSIDE OBFUSCATED DISPENSE BEHAVIOR TRANSFORMER ABOUT TO PATCH: bg In my class transformer, I have this: if (arg0.equals("bg")) { System.out.println("** INSIDE OBFUSCATED DISPENSE BEHAVIOR TRANSFORMER ABOUT TO PATCH: " + arg0); so it's getting the obfuscated name
-
How do I edit a class without being able to edit it?
I think I found the problem, the log says I'm missing "mcmod.info" what is that? (by the way I already took into account the obfuscated name)
-
How do I edit a class without being able to edit it?
Thanks! I managed to get my mod working using ASM but it works only in the IDE. When I try to use my mod in the actual client, it finds the mod and recognizes it (it is in the mod list) but the mod doesn't work when I test it... is my jar set up incorrectly or something? did I forget to include a file? right now my jar is located in the "mods" folder in .minecraft and contains two folders, META-INF and mod (my package, which contains my 3 class files). all 3 class files are there, and the meta-inf has the manifest.mf file.
-
How do I edit a class without being able to edit it?
Ok thanks How exactly do I do this? (all I need to do is add a line of code to a method in a class) The only tutorial I can find on access transformers is outdated (it says "As of 1.4.4, a few methods have been changed/removed, I will fix this soon" )
-
How do I edit a class without being able to edit it?
I made a mod, without forge, that involves editing an existing file (BehaviorDefaultDispenseItem). It works fine by itself, but I want to be able to use the mod with forge mods. Since forge doesn't allow editing of existing classes, how exactly would I do this? The only way I can think of doing this is making a new class that is a subclass of behaviordefaultdispenseitem but includes the changes I've made, and a new block that's a subclass of dispenser but uses the new class instead and has the same block id as dispensers (so dispensers in existing maps would have my modifications). However I'm not sure if this would work or if there's a better way of doing something like this (or is what I want to do even possible?).
IPS spam blocked by CleanTalk.