Jump to content

Forjkraft

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by Forjkraft

  1. IT WORKS! :D Thanks for your help!!
  2. 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?
  3. ohhhhhhhhhhhhhh I see, I completely forgot about that Thanks!!
  4. 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?
  5. 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.
  6. 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?
  7. 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"
  8. 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
  9. 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)
  10. 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.
  11. 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" )
  12. 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?).
×
×
  • Create New...

Important Information

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