planetguy Posted January 20, 2014 Posted January 20, 2014 Basically what it says: fixes common errors in updating mods to Minecraft 1.7. The script (should work on Linux boxes, possibly Macs too): #!/bin/bash #Work from a clean copy, not one the script has been used on before. git checkout . g="/g" for line in $(cat ../replacements) do sedCmd='s/'$line'/g' echo $sedCmd find . -name "*.java" -print | xargs sed -i $sedCmd done Note that, without data files, it does nothing. Here's the data file I used for Gizmos. It contains some usually useful and some mod-specific entries. It cut down Gizmos from over 1000 errors to 465. Name it "replacements" and put it a directory above the script. ForgeSubscribe/SubscribeEvent getBlockTileEntity/func_147438_o Icon/IIcon ItemStack.Block\./ItemStack\(\(Block\)Block.field_149771_c.getObject\(" drawGuiContainerBackgroundLayer/func_146976_a this.mc.getTextureManager()/Minecraft.getMinecraft().getTextureManager() IIIcon/IIcon IIIIcon/IIcon this.blockIIcon/this.field_149761_L registerIIcon/registerIcon setUnlocalizedName/func_149663_c setCreativeTab(/func_149647_a( getTabIIconItem/getTabIconItem getIIcon(/getIcon( Item.blazePowder/Items.blaze_powder Item.ingotIron/Items.iron_ingot Item.pickaxeIron/Items.iron_pickaxe getInvName/func_145825_b isInvNameLocalized/func_145818_k_ SlotConcealmentItems/SlotConcealmentItem itemIIcon/itemIcon super(par1)/super() net.minecraftforge.event.SubscribeEvent;/cpw.mods.fml.common.eventhandler.SubscribeEvent; \([a-z]*\)\.getTagList(/(NBTTagList)\1.getTag( NBTTagList(/NBTTagList(). (\"\([a-z]*\));/(\"\1\");
planetguy Posted February 11, 2014 Author Posted February 11, 2014 Probably mostly unnecessary now; the latest Forge has much-improved deobfuscation data.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now