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\"); Quote
planetguy Posted February 11, 2014 Author Posted February 11, 2014 Probably mostly unnecessary now; the latest Forge has much-improved deobfuscation data. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.