Jump to content

lin7889

Members
  • Posts

    5
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

lin7889's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I'm now running atomicstryker's simplyhax source code for transformer testing in IntelliJ with minecraft 1.7.2 workspace. I think I do the right things. Here is the MANIFEST.MF Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.4 Created-By: 1.7.0 (Oracle Corporation) FMLCorePlugin: atomicstryker.simplyhax.SHFMLCorePlugin And SHFMLCorePlugin.java package atomicstryker.simplyhax; import java.util.Map; import cpw.mods.fml.relauncher.IFMLLoadingPlugin; public class SHFMLCorePlugin implements IFMLLoadingPlugin { @Override public String[] getASMTransformerClass() { return new String[] { "atomicstryker.simplyhax.SHTransformer" }; } @Override public String getModContainerClass() { return null; } @Override public String getSetupClass() { return null; } @Override public void injectData(Map<String, Object> data) { } @Override public String getAccessTransformerClass() { return null; } } SHTransformer.java public class SHTransformer implements IClassTransformer { /* class net.minecraft.src.EntityPlayerSP */ private final String classNamePlayerObfusc = "bex"; private final String classNamePlayer = "net.minecraft.client.entity.EntityPlayerSP"; @Override public byte[] transform(String name, String newName, byte[] bytes) { System.out.println("transforming: "+name); // I saw nothing about transforming in output window. if (name.equals(classNamePlayerObfusc)) { return handleTransform(bytes, true); } else if (name.equals(classNamePlayer)) { return handleTransform(bytes, false); } return bytes; }
  2. I had already read this tutorial about access transformer(http://www.minecraftforge.net/wiki/Using_Access_Transformers), it only told me how to change modifiers of fields or methods by using "*_at.cfg" , not using a Class which extends from AccessTransformer . Previously, the file "META-INF\MANIFEST.MF" can help forge to find the transformer class. But now, it didn't work. The codes in transformer class has never been run. I'm really confused. I'm hoping someone can help me to figure it out. thanks
  3. It works! but I dont know how to use opengl to bind texture with the integer allocateAndSetupTexture returned . now I just use allocateAndSetupTexture in DrawScreen than to draw .After that reset and delete. I think it will cause lag.
  4. I'm trying to render a Picture download from internet like player's skin or another picture and than render it to gui. I'm waitting for help. thx
  5. I'm going to find something I need but I found that maybe I can help u I upload the picture .this gui and button this made by texture. it is rectangle but you can also make another shape you just make a new class extends GuiButton and override the DrawScreen Method. use BindTexture method to bind a png than use drawTexturedModalRect. really easy . Im now making the Animation of Gui .
×
×
  • Create New...

Important Information

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