I'd like to start off by saying that this is not my mod, and I am trying to update it for personal use with the 1.7.2 version of forge. It works on the 1.6.2 version of forge.
After adding all the .class files to their respective packages, things such as "ab, acp, ajz, aqw" etc cannot be resolved. My best guess are they were .class files in the version.jar?
I've tried project, clean.
Build automatically is checked.
Here's the code from what I believe is the main class file.
package AttackOnTitanMod;
import AttackOnTitanMod.mods.API.EntityTitanNape;
import AttackOnTitanMod.mods.API.TitanRegistry;
import AttackOnTitanMod.mods.ChainRecipe.ItemChain;
import AttackOnTitanMod.mods.ChainRecipe.ItemChainCloth;
import AttackOnTitanMod.mods.HardSkin.ItemHardSkin;
import AttackOnTitanMod.mods.SignalFlareGun.EntitySignalBulletBlack;
import AttackOnTitanMod.mods.SignalFlareGun.EntitySignalBulletGreen;
import AttackOnTitanMod.mods.SignalFlareGun.EntitySignalBulletRed;
import AttackOnTitanMod.mods.SignalFlareGun.EntitySignalBulletYellow;
import AttackOnTitanMod.mods.SignalFlareGun.ItemSignalBullet;
import AttackOnTitanMod.mods.SignalFlareGun.ItemSignalGun;
import AttackOnTitanMod.mods.TitanWood.BlockTitanTreeWood;
import AttackOnTitanMod.mods.Titans.Entity15mClassTitan;
import AttackOnTitanMod.mods.Titans.Entity4mClassTitan;
import AttackOnTitanMod.mods.Titans.EntityCuteEyeTitan;
import acp;
import ajz;
import aqw;
import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import java.util.logging.Level;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.Property;
import og;
import wg;
import yb;
import yd;
@Mod(modid="AttackOnTitan", name="AttackOnTitan", version="0.0.13")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class mod_AttackOnTitan
{
@Mod.Instance("AttackOnTitan")
public static mod_AttackOnTitan instance;
@SidedProxy(clientSide="AttackOnTitanMod.client.ClientProxy", serverSide="AttackOnTitanMod.server.ServerProxy")
public static CommonProxy proxy;
public static aqw blockHardSkin;
public static yb itemHardSkin;
public static int ID_hardSkinBlock;
public static int ID_hardSkin;
public static aqw titanTreeWood;
public static int ID_titanTreeWood;
public static int ID_titanTreeLeave;
public static int ID_titanTreeSapling;
public static int ID_TitanNape;
public static int ID_cuteEyeTitan;
public static int ID_15mClassTitan;
public static int ID_4mClassTitan;
public static boolean canDespawn;
public static yb itemChain;
public static yb itemChainCloth;
public static int ID_chain;
public static int ID_chainCloth;
public static yb itemSignalGun;
public static int ID_signalGun;
public static yb itemSignalFlare;
public static int ID_signalBullet;
public static int guiID = 0;
public static int ID_blackSignalBulletEntity;
public static int ID_greenSignalBulletEntity;
public static int ID_redSignalBulletEntity;
public static int ID_yellowSignalBulletEntity;
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
Configuration cfg = new Configuration(event.getSuggestedConfigurationFile());
try
{
cfg.load();
ID_hardSkin = cfg.getItem("ID_HardSkin", 15000).getInt();
ID_TitanNape = cfg.get("entity", "ID_TitanNape", 220).getInt();
ID_cuteEyeTitan = cfg.get("entity", "ID_CuteEyeTitan", 221).getInt();
ID_15mClassTitan = cfg.get("entity", "ID_15mClassTitan", 222).getInt();
ID_4mClassTitan = cfg.get("entity", "ID_4mClassTitan", 223).getInt();
canDespawn = cfg.get("system", "CanDespawn", false).getBoolean(false);
ID_chain = cfg.getItem("ID_Chain", 15001).getInt();
ID_chainCloth = cfg.getItem("ID_ChainCloth", 15002).getInt();
ID_blackSignalBulletEntity = cfg.get("entity", "ID_SignalBulletBlack", 224).getInt();
ID_greenSignalBulletEntity = cfg.get("entity", "ID_SignalBulletGreen", 225).getInt();
ID_redSignalBulletEntity = cfg.get("entity", "ID_SignalBulletRed", 226).getInt();
ID_yellowSignalBulletEntity = cfg.get("entity", "ID_SignalBulletYellow", 227).getInt();
ID_signalGun = cfg.getItem("SignalGun", 15003).getInt();
ID_signalBullet = cfg.getItem("SignalFlare", 15004).getInt();
}
catch (Exception e)
{
FMLLog.log(Level.SEVERE, e, "Error Message", new Object[0]);
}
finally
{
cfg.save();
}
}
@Mod.EventHandler
public void load(FMLInitializationEvent event)
{
loadHardSkin();
loadTitan();
loadChainItem();
loadSignalGunBullet();
proxy.registerRenderes();
NetworkRegistry.instance().registerGuiHandler(this, proxy);
}
private void loadSignalGunBullet()
{
itemSignalGun = new ItemSignalGun(ID_signalGun - 256);
LanguageRegistry.addName(itemSignalGun, "Signal Gun");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalGun, 1, 0), "en_US", "Signal Gun");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalGun, 1, 3), "en_US", "Signal Gun");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalGun, 1, 1), "en_US", "Signal Gun");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalGun, 1, 4), "en_US", "Signal Gun");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalGun, 1, 2), "en_US", "Signal Gun");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalGun, 1, 0), "ja_JP", "Signal Gun");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalGun, 1, 3), "ja_JP", "Signal Gun");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalGun, 1, 1), "ja_JP", "Signal Gun");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalGun, 1, 4), "ja_JP", "Signal Gun");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalGun, 1, 2), "ja_JP", "Signal Gun");
itemSignalFlare = new ItemSignalBullet(ID_signalBullet - 256);
LanguageRegistry.instance().addNameForObject(new yd(itemSignalFlare, 1, 3), "en_US", "Black Smoke Bomb");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalFlare, 1, 1), "en_US", "Red Smoke Bomb");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalFlare, 1, 4), "en_US", "Green Smoke Bomb");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalFlare, 1, 2), "en_US", "Yellow Smoke Bomb");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalFlare, 1, 3), "ja_JP", "Black Smoke Bomb");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalFlare, 1, 1), "ja_JP", "Red Smoke Bomb");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalFlare, 1, 4), "ja_JP", "Green Smoke Bomb");
LanguageRegistry.instance().addNameForObject(new yd(itemSignalFlare, 1, 2), "ja_JP", "Yellow Smoke Bomb");
EntityRegistry.registerModEntity(EntitySignalBulletBlack.class, "SignalBulletBlack", ID_blackSignalBulletEntity, this, 16, 1, true);
LanguageRegistry.instance().addStringLocalization("entity.SignalBullet.name", "en_US", "Black Signal Bullet");
LanguageRegistry.instance().addStringLocalization("entity.SignalBullet.name", "ja_JP", "Black Signal Bullet");
EntityRegistry.registerModEntity(EntitySignalBulletGreen.class, "SignalBulletGreen", ID_greenSignalBulletEntity, this, 16, 1, true);
LanguageRegistry.instance().addStringLocalization("entity.SignalBullet.name", "en_US", "Green Signal Bullet");
LanguageRegistry.instance().addStringLocalization("entity.SignalBullet.name", "ja_JP", "Green Signal Bullet"");
EntityRegistry.registerModEntity(EntitySignalBulletRed.class, "SignalBulletRed", ID_redSignalBulletEntity, this, 16, 1, true);
LanguageRegistry.instance().addStringLocalization("entity.SignalBullet.name", "en_US", "Red Signal Bullet");
LanguageRegistry.instance().zaddStringLocalization("entity.SignalBullet.name", "ja_JP", "Red Signal Bullet");
EntityRegistry.registerModEntity(EntitySignalBulletYellow.class, "SignalBulletYellow", ID_yellowSignalBulletEntity, this, 16, 1, true);
LanguageRegistry.instance().addStringLocalization("entity.SignalBullet.name", "en_US", "Yellow Signal Bullet");
LanguageRegistry.instance().addStringLocalization("entity.SignalBullet.name", "ja_JP", "Yellow Signal Bullet");
loadSignalGunBulletRecipe();
}
private void loadSignalGunBulletRecipe()
{
GameRegistry.addRecipe(new yd(itemSignalGun), new Object[] { "I ", " I ", " PP", Character.valueOf('I'), yb.q, Character.valueOf('P'), aqw.C });
GameRegistry.addRecipe(new yd(itemSignalFlare, 1, 3), new Object[] { " ", "IDI", " G ", Character.valueOf('I'), yb.q, Character.valueOf('D'), new yd(yb.aY, 1, 0), Character.valueOf('G'), yb.O });
GameRegistry.addRecipe(new yd(itemSignalFlare, 1, 4), new Object[] { " ", "IDI", " G ", Character.valueOf('I'), yb.q, Character.valueOf('D'), new yd(yb.aY, 1, 2), Character.valueOf('G'), yb.O });
GameRegistry.addRecipe(new yd(itemSignalFlare, 1, 1), new Object[] { " ", "IDI", " G ", Character.valueOf('I'), yb.q, Character.valueOf('D'), new yd(yb.aY, 1, 1), Character.valueOf('G'), yb.O });
GameRegistry.addRecipe(new yd(itemSignalFlare, 1, 2), new Object[] { " ", "IDI", " G ", Character.valueOf('I'), yb.q, Character.valueOf('D'), new yd(yb.aY, 1, 11), Character.valueOf('G'), yb.O });
}
private void loadTitan()
{
EntityRegistry.addSpawn(EntityTitanNape.class, 0, 0, 0, og.a, new acp[0]);
EntityRegistry.registerModEntity(EntityTitanNape.class, "TitanNape", ID_TitanNape, this, 16, 1, true);
LanguageRegistry.instance().addStringLocalization("entity.TitanNape.name", "en_US", "TitanNape");
LanguageRegistry.instance().addStringLocalization("entity.TitanNape.name", "ja_JP", "TitanNape");
TitanRegistry.addEntity(EntityCuteEyeTitan.class, "CuteEyeTitan", ID_cuteEyeTitan, 10, 1, 3, this, "Cute Eye Titan", "Cute Eye Titan");
TitanRegistry.addEntity(Entity15mClassTitan.class, "15mClassTitan", ID_15mClassTitan, 5, 1, 1, this, "15m class Titan", "15m class Titan");
TitanRegistry.addEntity(Entity4mClassTitan.class, "4mClassTitan", ID_4mClassTitan, 13, 1, 5, this, "4m class Titan", "4m class Titan");
}
private void loadHardSkin()
{
itemHardSkin = new ItemHardSkin(ID_hardSkin - 256).b("TitansHardSkin");
LanguageRegistry.instance().addNameForObject(itemHardSkin, "en_US", "Titan's Hard Skin");
LanguageRegistry.instance().addNameForObject(itemHardSkin, "ja_JP", "Titan's Hard Skin");
}
private void loadTitanTree()
{
titanTreeWood = new BlockTitanTreeWood(ID_titanTreeWood, ajz.d);
titanTreeWood.c(10.0F);
titanTreeWood.b(10.0F);
titanTreeWood.c("TitanTreeWood");
GameRegistry.registerBlock(titanTreeWood, "TitanTreeWood");
LanguageRegistry.addName(titanTreeWood, "Titan Tree Wood");
LanguageRegistry.instance().addNameForObject(titanTreeWood, "ja_JP", "Titan Tree Tree");
}
private void loadChainItem()
{
itemChain = new ItemChain(ID_chain - 256).b("Chain");
LanguageRegistry.instance().addNameForObject(itemChain, "en_US", "Chain");
LanguageRegistry.instance().addNameForObject(itemChain, "ja_JP", "Chain");
itemChainCloth = new ItemChainCloth(ID_chainCloth - 256).b("ChainCloth");
LanguageRegistry.instance().addNameForObject(itemChainCloth, "en_US", "Chain Cloth");
LanguageRegistry.instance().addNameForObject(itemChainCloth, "ja_JP", "Chain Cloth");
GameRegistry.addShapelessRecipe(new yd(itemChain, 1), new Object[] { yb.q });
GameRegistry.addShapelessRecipe(new yd(itemChain, 3), new Object[] { itemChainCloth });
GameRegistry.addSmelting(ID_chain, new yd(yb.q, 1), 0.1F);
GameRegistry.addRecipe(new yd(itemChainCloth), new Object[] { " ", "CCC", " ", Character.valueOf('C'), itemChain });
GameRegistry.addRecipe(new yd(wg.ab), new Object[] { "CCC", "C C", " ", Character.valueOf('C'), itemChainCloth });
GameRegistry.addRecipe(new yd(wg.ac), new Object[] { "C C", "CCC", "CCC", Character.valueOf('C'), itemChainCloth });
GameRegistry.addRecipe(new yd(wg.ad), new Object[] { "CCC", "C C", "C C", Character.valueOf('C'), itemChainCloth });
GameRegistry.addRecipe(new yd(wg.ae), new Object[] { " ", "C C", "C C", Character.valueOf('C'), itemChainCloth });
}
}
Install dev Forge for 1.6.2, then use the deobfuscation tables in the /conf folder.
To update into 1.7.2?
Fixed my deobfuscation issue by downloading Minecraft Coder Pack,
Adding the files inside the mod (.class) into a vanilla 1.6.2 jar,
and running the decompile in version 805 of Minecraft Coder Pack
What would I do now to recompile it in 1.7.2 and get it running?
Nevermind, I get it:
but where do I get the new lines for stuff such as:
net.minecraftforge.common.Configuration
That one is fixed by: net.minecraftforge.common.config.Configuration;
Now my new issue is:
ID_hardSkin = cfg.getItem("ID_HardSkin", 15000).getInt();
The method getItem (String, int) is undefined for the type of Configuration.
What would I do now to recompile it in 1.7.2 and get it running?
Nevermind, I get it:
but where do I get the new lines for stuff such as:
net.minecraftforge.common.Configuration
That one is fixed by: net.minecraftforge.common.config.Configuration;
Now my new issue is:
ID_hardSkin = cfg.getItem("ID_HardSkin", 15000).getInt();
The method getItem (String, int) is undefined for the type of Configuration.
First time I attempt anything to do with programming.
I'm surprised I even got this far. x:
I can give you some advice, if this is the first attempt at programming, you will find it hard.
My suggestion is drop updating it, and if you really want to update it, learn some Java first, trust me, it will help a LOT. Updating a mod, especially someone else's, to a new Minecraft version is not an easy thing, especially from 1.6 to 1.7. I'm not kidding, a LOT of things changed between 1.6 and 1.7. Enough to cause mods to break entirely (for a run down on what changed, block and item IDs were removed and modified to support a new String-based ID system, networking changed completely (went from old custom-coded Sockets system to a new Netty system), rendering changed a bit, world generation changed a lot, obfuscation changes, etc etc etc, there's a lot).
I don't mean to sound rude or deter you from doing this, I'm simply giving you a heads up of what it's gonna be like trying to update something from 1.6 to 1.7, which is hefty in itself, even for experienced programmers and modders, without ANY prior programming knowledge.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
Hello, everyone!
I'd like to start off by saying that this is not my mod, and I am trying to update it for personal use with the 1.7.2 version of forge. It works on the 1.6.2 version of forge.
After adding all the .class files to their respective packages, things such as "ab, acp, ajz, aqw" etc cannot be resolved. My best guess are they were .class files in the version.jar?
I've tried project, clean.
Build automatically is checked.
Here's the code from what I believe is the main class file.
How would I go about doing this?
/noob
To update into 1.7.2?Fixed my deobfuscation issue by downloading Minecraft Coder Pack,
Adding the files inside the mod (.class) into a vanilla 1.6.2 jar,
and running the decompile in version 805 of Minecraft Coder Pack
Okay, I decompiled it and got the deobfuscated text
What would I do now to recompile it in 1.7.2 and get it running?
Nevermind, I get it:
but where do I get the new lines for stuff such as:
net.minecraftforge.common.Configuration
That one is fixed by: net.minecraftforge.common.config.Configuration;
Now my new issue is:
ID_hardSkin = cfg.getItem("ID_HardSkin", 15000).getInt();
The method getItem (String, int) is undefined for the type of Configuration.
You aren't very smart aren't you?
First time I attempt anything to do with programming.
I'm surprised I even got this far. x:
That's nice.
1.7.2 doesn't use item id or block id anymore. You can just remove those.
Thanks.
By the way, you're supposed to fix and correct the source code in it's original version...
I can give you some advice, if this is the first attempt at programming, you will find it hard.
My suggestion is drop updating it, and if you really want to update it, learn some Java first, trust me, it will help a LOT. Updating a mod, especially someone else's, to a new Minecraft version is not an easy thing, especially from 1.6 to 1.7. I'm not kidding, a LOT of things changed between 1.6 and 1.7. Enough to cause mods to break entirely (for a run down on what changed, block and item IDs were removed and modified to support a new String-based ID system, networking changed completely (went from old custom-coded Sockets system to a new Netty system), rendering changed a bit, world generation changed a lot, obfuscation changes, etc etc etc, there's a lot).
I don't mean to sound rude or deter you from doing this, I'm simply giving you a heads up of what it's gonna be like trying to update something from 1.6 to 1.7, which is hefty in itself, even for experienced programmers and modders, without ANY prior programming knowledge.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!