Jump to content

[SOLVED] [1.8] Eclipse Ignoring Mod Being Worked On


saxon564

Recommended Posts

I have recently started updating my mod Mo Chickens to MC1.8 and for some reason, eclipse doesn't want to load the mod into the eclipse client when I try to test that the mod will work in 1.8. I have cross checked it with another mod I am working on, and see nothing that should be preventing it from using the mod.

 

here is my main class:

 

 

package me.saxon564.mochickens;

import me.saxon564.mochickens.compatability.AdvancedGenetics;
import me.saxon564.mochickens.compatability.Thaumcraft;
import me.saxon564.mochickens.configs.FileManager;
import me.saxon564.mochickens.configs.GeneralConfig;
import me.saxon564.mochickens.configs.chickens.BeefyChickenConfig;
import me.saxon564.mochickens.configs.chickens.BlazingChickenConfig;
import me.saxon564.mochickens.configs.chickens.ClayChickenConfig;
import me.saxon564.mochickens.configs.chickens.CoalChickenConfig;
import me.saxon564.mochickens.configs.chickens.CookieChickenConfig;
import me.saxon564.mochickens.configs.chickens.CreeperChickenConfig;
import me.saxon564.mochickens.configs.chickens.DiamondChickenConfig;
import me.saxon564.mochickens.configs.chickens.EmeraldChickenConfig;
import me.saxon564.mochickens.configs.chickens.EnchantedChickenConfig;
import me.saxon564.mochickens.configs.chickens.EnderChickenConfig;
import me.saxon564.mochickens.configs.chickens.GiantChickenConfig;
import me.saxon564.mochickens.configs.chickens.GlowingChickenConfig;
import me.saxon564.mochickens.configs.chickens.GoldChickenConfig;
import me.saxon564.mochickens.configs.chickens.IronChickenConfig;
import me.saxon564.mochickens.configs.chickens.LapisChickenConfig;
import me.saxon564.mochickens.configs.chickens.NuuwChickenConfig;
import me.saxon564.mochickens.configs.chickens.QuartzChickenConfig;
import me.saxon564.mochickens.configs.chickens.RainbowChickenConfig;
import me.saxon564.mochickens.configs.chickens.RedstoneChickenConfig;
import me.saxon564.mochickens.configs.chickens.SkeletonChickenConfig;
import me.saxon564.mochickens.configs.chickens.SnowChickenConfig;
import me.saxon564.mochickens.configs.txts.ItemFile;
import me.saxon564.mochickens.entities.mobs.EntityBeefyChicken;
import me.saxon564.mochickens.entities.mobs.EntityBlazingChicken;
import me.saxon564.mochickens.entities.mobs.EntityClayChicken;
import me.saxon564.mochickens.entities.mobs.EntityCoalChicken;
import me.saxon564.mochickens.entities.mobs.EntityCookieChicken;
import me.saxon564.mochickens.entities.mobs.EntityCreeperChicken;
import me.saxon564.mochickens.entities.mobs.EntityDiamondChicken;
import me.saxon564.mochickens.entities.mobs.EntityEmeraldChicken;
import me.saxon564.mochickens.entities.mobs.EntityEnchantedChicken;
import me.saxon564.mochickens.entities.mobs.EntityEnderChicken;
import me.saxon564.mochickens.entities.mobs.EntityGiantChicken;
import me.saxon564.mochickens.entities.mobs.EntityGlowingChicken;
import me.saxon564.mochickens.entities.mobs.EntityGoldChicken;
import me.saxon564.mochickens.entities.mobs.EntityIronChicken;
import me.saxon564.mochickens.entities.mobs.EntityLapisChicken;
import me.saxon564.mochickens.entities.mobs.EntityNuuwChicken;
import me.saxon564.mochickens.entities.mobs.EntityQuartzChicken;
import me.saxon564.mochickens.entities.mobs.EntityRainbowChicken;
import me.saxon564.mochickens.entities.mobs.EntityRedstoneChicken;
import me.saxon564.mochickens.entities.mobs.EntitySkeletonChicken;
import me.saxon564.mochickens.entities.mobs.EntitySnowChicken;
import me.saxon564.mochickens.proxies.CommonProxyMoChickens;
import me.saxon564.mochickens.recipes.CraftingRecipes;
import me.saxon564.mochickens.registers.RegisterBiomes;
import me.saxon564.mochickens.registers.RegisterBlocks;
import me.saxon564.mochickens.registers.RegisterChickens;
import me.saxon564.mochickens.registers.RegisterDimensions;
import me.saxon564.mochickens.registers.RegisterEggs;
import me.saxon564.mochickens.registers.RegisterItems;
import me.saxon564.mochickens.registers.RegisterOreDict;
import me.saxon564.mochickens.registers.RegisterSpawns;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.passive.EntityBat;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.config.Configuration;
import cpw.mods.fml.common.Loader;
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.Optional;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;


@Mod(modid = MoChickensReference.MODID, name = MoChickensReference.MODNAME, version = MoChickensReference.VERSION)
public class MoChickens {
@SidedProxy(clientSide = "me.saxon564.mochickens.client.ClientProxyMoChickens", serverSide = "me.saxon564.mochickens.proxies.CommonProxyMoChickens")
public static CommonProxyMoChickens proxy;

@Instance("mochickens")
public static MoChickens instance;

public static Class[] egg = new Class[500];
public static int eggNum = 0;
public static Configuration[] configs = new Configuration[500];

// Initialize Items
public static Item tamingDisc;
public static Item innerTamingDisc;
public static Item coalStick;
public static Item ironStick;
public static Item goldStick;
public static Item redstoneStick;
public static Item lapisStick;
public static Item diamondStick;
public static Item emeraldStick;
public static Item quartzStick;
public static Item randomEgg;
public static Item itemRedstoneFeather;
public static Item itemCoalFeather;
public static Item itemIronFeather;
public static Item itemGoldFeather;
public static Item itemLapisFeather;
public static Item itemDiamondFeather;
public static Item itemEmeraldFeather;
public static Item itemQuartzFeather;
public static Item itemEnchantedFeather;
public static Item itemLighter;

// Initialize Blocks
public static Block blockFeatherPortal;
public static Block blockFeatherBlock;
public static Block blockRedstoneFeatherBlock;
public static Block blockCoalFeatherBlock;
public static Block blockIronFeatherBlock;
public static Block blockGoldFeatherBlock;
public static Block blockLapisFeatherBlock;
public static Block blockDiamondFeatherBlock;
public static Block blockEmeraldFeatherBlock;
public static Block blockQuartzFeatherBlock;
public static Block blockEnchantedFeatherBlock;
public static Block blockMasterFeatherBlock;
public static Block blockCoalGemOreBlock;
public static Block blockChickenFire;

public static String path;

//Dimensions
public static int chickenDimensionId;

//Biomes
public static BiomeGenBase biomeChickenForest;
public static BiomeGenBase biomeChickenPlains;
public static int biomeChickenForestId;
public static int biomeChickenPlainsId;

public static int startEntityId = 300;

public static CreativeTabs moChickensTab = new CreativeTabs("MoChickens") {
	public Item getTabIconItem() {
		return Items.egg;
	}
};

@EventHandler
public void preInit(FMLPreInitializationEvent event) {

	path = event.getModConfigurationDirectory().toString() + "\\MoChickens";

	FileManager.PreInit(event);

	RegisterItems.itemRegisters();
	RegisterBlocks.blockRegisters();
	RegisterChickens.entityRegisters();
	RegisterEggs.EggRegisters();
	RegisterDimensions.dimensionRegisters();
	RegisterBiomes.biomeRegisters();

	/*if (Loader.isModLoaded(Thaumcraft.id)) {
		loadThaumcraft();
	}

	if (Loader.isModLoaded(AdvancedGenetics.id)) {
		loadAG();
	}*/
}

/*@Optional.Method(modid = Thaumcraft.id)
private void loadThaumcraft() {
	Thaumcraft.addAspects();
}

@Optional.Method(modid = AdvancedGenetics.id)
private void loadAG() {
	AdvancedGenetics.addAbilities();
}*/

@EventHandler
public void load(FMLInitializationEvent event) {
	CraftingRecipes.CraftingRecipieManager();
	RegisterOreDict.AddOres();
	proxy.registerSounds();
	proxy.registerRenders();
}

@EventHandler
public void postInit(FMLPostInitializationEvent event) {
	FileManager.PostInit(event);

	//RegisterSpawns.generateBiomeData();
	RegisterSpawns.entitySpawns();

	if (GeneralConfig.itemFile) {
	ItemFile.generate(event);
	}

	// Register Random Spawn Egg Entries
	randomSpawnEgg(EntityCoalChicken.class, CoalChickenConfig.config);
	randomSpawnEgg(EntityIronChicken.class, IronChickenConfig.config);
	randomSpawnEgg(EntityGoldChicken.class, GoldChickenConfig.config);
	randomSpawnEgg(EntityLapisChicken.class, LapisChickenConfig.config);
	randomSpawnEgg(EntityRedstoneChicken.class, RedstoneChickenConfig.config);
	randomSpawnEgg(EntityDiamondChicken.class, DiamondChickenConfig.config);
	randomSpawnEgg(EntityEmeraldChicken.class, EmeraldChickenConfig.config);
	randomSpawnEgg(EntityQuartzChicken.class, QuartzChickenConfig.config);
	randomSpawnEgg(EntityGiantChicken.class, GiantChickenConfig.config);
	randomSpawnEgg(EntityClayChicken.class, ClayChickenConfig.config);
	randomSpawnEgg(EntityRainbowChicken.class, RainbowChickenConfig.config);
	randomSpawnEgg(EntitySnowChicken.class, SnowChickenConfig.config);
	randomSpawnEgg(EntityCookieChicken.class, CookieChickenConfig.config);
	randomSpawnEgg(EntitySkeletonChicken.class, SkeletonChickenConfig.config);
	randomSpawnEgg(EntityCreeperChicken.class, CreeperChickenConfig.config);
	randomSpawnEgg(EntityEnderChicken.class, EnderChickenConfig.config);
	randomSpawnEgg(EntityBeefyChicken.class, BeefyChickenConfig.config);
	randomSpawnEgg(EntityGlowingChicken.class, GlowingChickenConfig.config);
	randomSpawnEgg(EntityBlazingChicken.class, BlazingChickenConfig.config);
	randomSpawnEgg(EntityEnchantedChicken.class, EnchantedChickenConfig.config);
	randomSpawnEgg(EntityNuuwChicken.class, NuuwChickenConfig.config);
	randomSpawnEgg(EntityBat.class, null);
	randomSpawnEgg(EntityBat.class, null);
	randomSpawnEgg(EntityBat.class, null);
	randomSpawnEgg(EntityBat.class, null);
	randomSpawnEgg(EntityBat.class, null);
}

public static void randomSpawnEgg(Class c, Configuration config) {
	egg[eggNum] = c;
	configs[eggNum] = config;
	eggNum++;
}
}

 

 

 

Does anyone know why it may be doing this? I have tried rebuilding my workspace several times and that has not worked. I have done everything I can think of and am at a dead end. If you need any other code, I will happily share it with you.

Link to comment
Share on other sites

none at all, heres the console logs to back my claim of no errors.

 

 

 

[02:12:18] [main/INFO] [GradleStart]: Extra: []
[02:12:18] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Zak/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[02:12:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[02:12:18] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[02:12:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[02:12:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[02:12:18] [main/INFO] [FML]: Forge Mod Loader version 8.0.76.1390 for Minecraft 1.8 loading
[02:12:18] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_60-ea, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_60\jre
[02:12:18] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[02:12:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[02:12:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[02:12:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[02:12:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[02:12:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[02:12:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[02:12:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[02:12:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[02:12:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[02:12:19] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[02:12:22] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[02:12:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[02:12:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[02:12:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[02:12:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[02:12:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[02:12:23] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[02:12:24] [Client thread/INFO]: Setting user: Player268
[02:12:28] [Client thread/INFO]: LWJGL Version: 2.9.1
[02:12:28] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[02:12:28] [Client thread/INFO] [FML]: MinecraftForge v11.14.1.1390 Initialized
[02:12:28] [Client thread/INFO] [FML]: Replaced 204 ore recipies
[02:12:28] [Client thread/INFO] [FML]: Preloading CrashReport classes
[02:12:29] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[02:12:29] [Client thread/INFO] [FML]: Config directory created successfully
[02:12:29] [Client thread/INFO] [FML]: Searching C:\Users\Zak\Desktop\coding\mcp\1.8\MoChickens\eclipse\mods for mods
[02:12:32] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[02:12:33] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Waila] at CLIENT
[02:12:33] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Waila] at SERVER
[02:12:33] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Waila
[02:12:33] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[02:12:33] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
[02:12:33] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[02:12:33] [Client thread/INFO] [FML]: Applying holder lookups
[02:12:33] [Client thread/INFO] [FML]: Holder lookups applied
[02:12:34] [sound Library Loader/INFO]: Starting up SoundSystem...
[02:12:34] [Thread-6/INFO]: Initializing LWJGL OpenAL
[02:12:34] [Thread-6/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[02:12:34] [Thread-6/INFO]: OpenAL initialized.
[02:12:34] [sound Library Loader/INFO]: Sound engine started
[02:12:38] [Client thread/INFO]: Created: 512x512 textures-atlas
[02:12:39] [Client thread/WARN] [FML]: =============================================================
[02:12:39] [Client thread/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML!
[02:12:39] [Client thread/WARN] [FML]: Offendor: mcp/mobius/waila/gui/truetyper/TrueTypeFont.loadImage(Ljava/awt/image/BufferedImage;)I
[02:12:39] [Client thread/WARN] [FML]: Use FMLCommonHandler.exitJava instead
[02:12:39] [Client thread/WARN] [FML]: =============================================================
[02:12:40] [Client thread/INFO] [sTDOUT]: [mcp.mobius.waila.gui.truetyper.TrueTypeFont:<init>:99]: TrueTypeFont loaded: java.awt.Font[family=Minecraftia,name=Minecraftia Regular,style=plain,size=14] - AntiAlias = true
[02:12:40] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[02:12:40] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Waila
[02:12:40] [Client thread/INFO]: SoundSystem shutting down...
[02:12:40] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[02:12:40] [sound Library Loader/INFO]: Starting up SoundSystem...
[02:12:40] [Thread-10/INFO]: Initializing LWJGL OpenAL
[02:12:40] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[02:12:40] [Thread-10/INFO]: OpenAL initialized.
[02:12:41] [sound Library Loader/INFO]: Sound engine started
[02:12:43] [Client thread/INFO]: Created: 512x512 textures-atlas
[02:12:52] [Client thread/INFO]: Stopping!
[02:12:52] [Client thread/INFO]: SoundSystem shutting down...
[02:12:52] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

I just tried deleting everything but my source files and rebuilding my environment from scratch, and that did nothing.

Link to comment
Share on other sites

I run the command 'gradlew setupDecompWorkspace eclipse' as I have been doing since 1.6 and I launch using the 'run client' option in eclipse.

 

my build.gradle file looks like this:

 

 

buildscript {
    repositories {
        mavenCentral()
        maven {
            name = "forge"
            url = "http://files.minecraftforge.net/maven"
        }
        maven {
            name = "sonatype"
            url = "https://oss.sonatype.org/content/repositories/snapshots/"
        }
    }
    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
    }
}

repositories {
    maven { // The repo from which to get waila
        name "Mobius Repo"
        url "http://mobiusstrip.eu/maven"
    }
    maven { // the repo from which to get NEI and stuff 
        name 'CB Repo'
        url "http://chickenbones.net/maven"
    }
}

apply plugin: 'forge'

version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"

minecraft {
    version = "1.8-11.14.1.1336"
    runDir = "eclipse"
    
    // the mappings can be changed at any time, and must be in the following format.
    // snapshot_YYYYMMDD   snapshot are built nightly.
    // stable_#            stables are built at the discretion of the MCP team.
    // Use non-default mappings at your own risk. they may not allways work.
    // simply re-run your setup task after changing the mappings to update your workspace.
    mappings = "snapshot_20141130"
}

dependencies {
    // you may put jars on which you depend on in ./libs
    // or you may define them like so..
    //compile "some.group:artifact:version:classifier"
    //compile "some.group:artifact:version"
      
    // real examples
    //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
    //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

    // for more info...
    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
    // http://www.gradle.org/docs/current/userguide/dependency_management.html

	//compile "codechicken:CodeChickenLib:1.8-1.1.2.115"
	//compile "codechicken:CodeChickenCore:1.8-1.0.5.36"
	compile "mcp.mobius.waila:Waila:1.6.0_B1_1.8.1:dev"
	//compile "codechicken:NotEnoughItems:1.8-1.0.5.104"

}

processResources
{
    // this will ensure that this task is redone when the versions change.
    inputs.property "version", project.version
    inputs.property "mcversion", project.minecraft.version

    // replace stuff in mcmod.info, nothing else
    from(sourceSets.main.resources.srcDirs) {
        include 'mcmod.info'
                
        // replace version and mcversion
        expand 'version':project.version, 'mcversion':project.minecraft.version
    }
        
    // copy everything else, thats not the mcmod.info
    from(sourceSets.main.resources.srcDirs) {
        exclude 'mcmod.info'
    }
}

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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