Jump to content

[1.7.10][SOLVED][NEW PROBLEMS]How to export coremods? | How to start it earlier?


Elix_x

Recommended Posts

Sorry for that maybe simple question, but i couldn't find anything on the web.

How to export coremods?

If i export it as normal mod (gradlew build), i doesn't work when i put it in mods folder.

It works fine in eclipse, but i just can not export it out side.

Thanks for answering this (maybe easy) question!

Link to comment
Share on other sites

Thanks! It helped!

Now i have a question a bit out of topic:

Can i force coremod to launch earlier? Beacuse what i'm doing works fine with just MC, but with other mods, it crashes because it doesn't find a class that isn't edited yet...

Link to comment
Share on other sites

Okay, so:

My mod is changing BiomeGenBase class

and it crashes with different mods like Biomes O Plenty, Twilight forest... (also because they set up biomes registration in pre init and also becuse biomes registration class is instanceof BiomeGenBase):

---- Minecraft Crash Report ----
// There are four lights!

Time: 14.02.15 17:22
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/world/biome/BiomeGenBase
at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:515)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:867)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NoClassDefFoundError: net/minecraft/world/biome/BiomeGenBase
at biomesoplenty.common.items.ItemBiomeFinder.<init>(ItemBiomeFinder.java:31)
at biomesoplenty.common.core.BOPItems.registerItems(BOPItems.java:85)
at biomesoplenty.common.core.BOPItems.init(BOPItems.java:46)
at biomesoplenty.BiomesOPlenty.preInit(BiomesOPlenty.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
... 10 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.world.biome.BiomeGenBase
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 41 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: ard
at org.objectweb.asm.ClassWriter.getCommonSuperClass(Unknown Source)
at org.objectweb.asm.ClassWriter.a(Unknown Source)
at org.objectweb.asm.Frame.a(Unknown Source)
at org.objectweb.asm.Frame.a(Unknown Source)
at org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source)
at org.objectweb.asm.tree.MethodNode.accept(Unknown Source)
at org.objectweb.asm.tree.MethodNode.accept(Unknown Source)
at org.objectweb.asm.tree.ClassNode.accept(Unknown Source)
at code.elix_x.coremods.antiidconflict.AntiIdConflictTransformer.patchBiomeGenBase(AntiIdConflictTransformer.java:285)
at code.elix_x.coremods.antiidconflict.AntiIdConflictTransformer.transform(AntiIdConflictTransformer.java:52)
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279)
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176)
... 43 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 99285720 bytes (94 MB) / 972685312 bytes (927 MB) up to 5261361152 bytes (5017 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx5G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn1G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{7.10.85.1291} [Forge Mod Loader] (forge-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized
Forge{10.13.2.1291} [Minecraft Forge] (forge-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized
BiomesOPlenty{2.1.0} [biomes O' Plenty] (BiomesOPlenty-1.7.10-2.1.0.1004-universal.jar) Unloaded->Constructed->Errored

Link to comment
Share on other sites

The same:

---- Minecraft Crash Report ----
// I just don't know what went wrong 

Time: 14.02.15 18:44
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/world/biome/BiomeGenBase
at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:515)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:867)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NoClassDefFoundError: net/minecraft/world/biome/BiomeGenBase
at biomesoplenty.common.items.ItemBiomeFinder.<init>(ItemBiomeFinder.java:31)
at biomesoplenty.common.core.BOPItems.registerItems(BOPItems.java:85)
at biomesoplenty.common.core.BOPItems.init(BOPItems.java:46)
at biomesoplenty.BiomesOPlenty.preInit(BiomesOPlenty.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
... 10 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.world.biome.BiomeGenBase
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 41 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: ard
at org.objectweb.asm.ClassWriter.getCommonSuperClass(Unknown Source)
at org.objectweb.asm.ClassWriter.a(Unknown Source)
at org.objectweb.asm.Frame.a(Unknown Source)
at org.objectweb.asm.Frame.a(Unknown Source)
at org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source)
at org.objectweb.asm.tree.MethodNode.accept(Unknown Source)
at org.objectweb.asm.tree.MethodNode.accept(Unknown Source)
at org.objectweb.asm.tree.ClassNode.accept(Unknown Source)
at code.elix_x.coremods.antiidconflict.AntiIdConflictTransformer.patchBiomeGenBase(AntiIdConflictTransformer.java:285)
at code.elix_x.coremods.antiidconflict.AntiIdConflictTransformer.transform(AntiIdConflictTransformer.java:52)
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279)
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176)
... 43 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 115258424 bytes (109 MB) / 972685312 bytes (927 MB) up to 5261361152 bytes (5017 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx5G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn1G
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{7.10.85.1291} [Forge Mod Loader] (forge-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized
Forge{10.13.2.1291} [Minecraft Forge] (forge-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized
BiomesOPlenty{2.1.0} [biomes O' Plenty] (BiomesOPlenty-1.7.10-2.1.0.1004-universal.jar) Unloaded->Constructed->Errored

Link to comment
Share on other sites

Aaaa sorry for false post: i put wrong version in mods... And with COMPUTE_MAXS it launches...

How ever now i have another problem:

Method <clinit> isn't found in obfuscated version, how ever in eclipse it is...

EDIT: sorry, i messed up with translator... Now all works fine! THANK YOU VERY VERY VERY MUCH!

Link to comment
Share on other sites

Welcome Back To this Topic!

Now i seriously have problem: crash with COMPUTE_MAXS:

I needed to recieve registartion of each biome. To do that i have to insert code in registerBiomeTypes in BiomeDictionary(forge!)(can't insert in <init> in BiomeGenBase, because fields are not initialized yet), but it crashes:

[13:52:06] [Client thread/INFO] [sTDOUT]: [code.elix_x.coremods.antiidconflict.AntiIdConflictTransformer:transform:48]: *************** Patching BiomeDictionary ***************
[13:52:06] [Client thread/INFO] [sTDOUT]: [code.elix_x.coremods.antiidconflict.AntiIdConflictTransformer:pacthBiomeDictionary:68]: *************** Patching registerBiomeType ***************
[13:52:06] [Client thread/INFO] [sTDOUT]: [code.elix_x.coremods.antiidconflict.AntiIdConflictTransformer:pacthBiomeDictionary:118]: *************** Patching registerBiomeType completed ***************
[13:52:06] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
// Ouch. That hurt 

Time: 15.02.15 13:52
Description: Initializing game

java.lang.NoClassDefFoundError: net/minecraftforge/common/BiomeDictionary
at net.minecraftforge.common.ForgeModContainer.postInit(ForgeModContainer.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:694)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)
at net.minecraft.client.Minecraft.run(Minecraft.java:931)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)
at GradleStart.main(GradleStart.java:45)
Caused by: java.lang.ClassNotFoundException: net.minecraftforge.common.BiomeDictionary
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 35 more
Caused by: java.lang.NullPointerException
at code.elix_x.coremods.antiidconflict.AntiIdConflictTransformer.pacthBiomeDictionary(AntiIdConflictTransformer.java:122)
at code.elix_x.coremods.antiidconflict.AntiIdConflictTransformer.transform(AntiIdConflictTransformer.java:49)
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279)
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176)
... 37 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at net.minecraftforge.common.ForgeModContainer.postInit(ForgeModContainer.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:694)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:586)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:931)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)
at GradleStart.main(GradleStart.java:45)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 800652960 bytes (763 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 8 mods loaded, 8 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized
Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized
antiidconflict{1.0} [Anti Id Conflict] (bin) Unloaded->Constructed->Pre-initialized->Initialized
keysoverhaul{1.0} [Keys Overhaul] (bin) Unloaded->Constructed->Pre-initialized->Initialized
armorsets{1.0} [Armor sets mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized
avoidExplodingCreepers{1.0} [Avoid Exploding Creepers] (bin) Unloaded->Constructed->Pre-initialized->Initialized
toolscompressor{1.0} [Tools compresser] (bin) Unloaded->Constructed->Pre-initialized->Initialized
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: AMD Radeon HD 8570D GL version 4.4.13084 Compatibility Profile Context 14.301.1001.0, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
[13:52:06] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\my\mcmodding\mods\toolscompressor\eclipse\.\crash-reports\crash-2015-02-15_13.52.06-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

And here's my transformer class:

public class AntiIdConflictTransformer implements IClassTransformer{

@Override
public byte[] transform(String className, String transformedName, byte[] bytes) {
	if(className.equals("net.minecraftforge.common.BiomeDictionary")){
		System.out.println("*************** Patching BiomeDictionary ***************");
		bytes = pacthBiomeDictionary(className, bytes);
		System.out.println("*************** Patching BiomeDictionary Completed ***************");
	}
	return bytes;
}

private byte[] pacthBiomeDictionary(String className, byte[] bytes) {
	String registerBiomeType = "registerBiomeType";
	String listSubTags = "listSubTags";

	ClassNode classNode = new ClassNode();
	ClassReader classReader = new ClassReader(bytes);
	classReader.accept(classNode, 0);

	Iterator<MethodNode> methods = classNode.methods.iterator();

	while(methods.hasNext()){
		MethodNode m = methods.next();
		if(m.name.equals(registerBiomeType)){
			System.out.println("*************** Patching registerBiomeType ***************");

			AbstractInsnNode currentNode = null;
			AbstractInsnNode targetNode = null;
			int place = -1;
			int index = -1;

			Iterator<AbstractInsnNode> iter = m.instructions.iterator();

			while (iter.hasNext())
			{
				index++;
				currentNode = iter.next();

				if(currentNode.getOpcode() == Opcodes.INVOKESTATIC){
					targetNode = currentNode;
					place = index;
					break;
				}
			}

			m.instructions.remove(m.instructions.get(place - 1));
			m.instructions.insertBefore(targetNode, createNewListAndFillWith(new VarInsnNode(Opcodes.ALOAD, 0), new VarInsnNode(Opcodes.ALOAD, 1), createMethodNode(Opcodes.INVOKESTATIC, "code/elix_x/coremods/antiidconflict/AntiIdConflictBase", ".registerBiomeTypes", "(Lnet/minecraft/world/biome/BiomeGenBase;[Lnet/minecraftforge/common/BiomeDictionary$Type;)[Lnet/minecraftforge/common/BiomeDictionary$Type;") ));


			System.out.println("*************** Patching registerBiomeType completed ***************");
		}
	}

	ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS);
	classNode.accept(writer);
	return writer.toByteArray();
}

private InsnList createNewListAndFillWith(Object... nodes) {
	InsnList list = new InsnList();
	for(Object node : nodes){
		if(node instanceof AbstractInsnNode){
			list.add((AbstractInsnNode) node);
		}
		if(node instanceof InsnList){
			list.add(list);
		}
	}
	return list;
}

private MethodInsnNode createMethodNode(int opcode, String owner, String name, String desc) {
	return new MethodInsnNode(opcode, owner, name, desc);
}

}

It can't happen because of (maybe) wrongly written and/or inserted code, becuse even without m.instructions.remove/insertBefore it crashes...

Link to comment
Share on other sites

That's interesting! So now i know that this mod exists...

===TIME PASSED===

Actually i wound my own way to handle this... So that's fixed now!

And by the way i just saw in BiomeGenBase class, that biomes limitation is set to 256 (private static final BiomeGenBase[] biomeList = new BiomeGenBase[256];).

Do you know why?

Link to comment
Share on other sites

Ooookay, maybe. I opened 1 random chunk storage and in biomes i saw this:

text view:

0  0  0  0  0  7  7  7  0  0  0  16  16  16  16  16
0  0  0  0  0  7  7  7  7  7  7  16  16  16  16  16
0  0  0  0  0  7  7  7  7  7  7  7  16  16  16  16
0  0  0  0  0  7  7  7  7  7  7  7  7  16  16  16
7  7  7  7  7  7  7  7  7  7  7  7  7  16  16  16
7  7  7  7  7  7  7  7  7  7  7  7  7  16  16  16
7  7  7  7  7  7  7  7  16  16  16  16  16  16  16  16
7  7  7  7  7  7  7  16  16  16  16  16  16  16  16  16
16  16  7  7  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16

What does this mean?

EDIT:

Does it like corresponds block1*1 block 1*2...block16*16?

If so, what 256 limitation have to do with that?

Link to comment
Share on other sites

Ooookay, maybe. I opened 1 random chunk storage and in biomes i saw this:

text view:

0  0  0  0  0  7  7  7  0  0  0  16  16  16  16  16
0  0  0  0  0  7  7  7  7  7  7  16  16  16  16  16
0  0  0  0  0  7  7  7  7  7  7  7  16  16  16  16
0  0  0  0  0  7  7  7  7  7  7  7  7  16  16  16
7  7  7  7  7  7  7  7  7  7  7  7  7  16  16  16
7  7  7  7  7  7  7  7  7  7  7  7  7  16  16  16
7  7  7  7  7  7  7  7  16  16  16  16  16  16  16  16
7  7  7  7  7  7  7  16  16  16  16  16  16  16  16  16
16  16  7  7  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16

What does this mean?

EDIT:

Does it like corresponds block1*1 block 1*2...block16*16?

If so, what 256 limitation have to do with that?

A byte has a max value of 255, meaning it ranges from 0-255, or 256 values. And yes, I think it corresponds blocks like that.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Ooookay, maybe. I opened 1 random chunk storage and in biomes i saw this:

text view:

0  0  0  0  0  7  7  7  0  0  0  16  16  16  16  16
0  0  0  0  0  7  7  7  7  7  7  16  16  16  16  16
0  0  0  0  0  7  7  7  7  7  7  7  16  16  16  16
0  0  0  0  0  7  7  7  7  7  7  7  7  16  16  16
7  7  7  7  7  7  7  7  7  7  7  7  7  16  16  16
7  7  7  7  7  7  7  7  7  7  7  7  7  16  16  16
7  7  7  7  7  7  7  7  16  16  16  16  16  16  16  16
7  7  7  7  7  7  7  16  16  16  16  16  16  16  16  16
16  16  7  7  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16
16  16  16  16  16  16  16  16  16  16  16  16  16  16  16  16

What does this mean?

EDIT:

Does it like corresponds block1*1 block 1*2...block16*16?

If so, what 256 limitation have to do with that?

A byte has a max value of 255, meaning it ranges from 0-255, or 256 values. And yes, I think it corresponds blocks like that.

 

Okay, no i'm understanding more: MC uses byte[256] to store biomes data for all it's 16 blocks... But whay can't they use int instead of byte to avoid that limitation?

Link to comment
Share on other sites

Welcome back!

I'm returning with more problems!

My mod that is going with coremod is showing up in mods list in eclipse (even with returning null in getModContainerClass()), but not in MC outside!

If i return base class in getModContainerClass and extend DummyModConatiner, mod is disabled even if i put this in class:

@Override
public Disableable canBeDisabled()
{
	return Disableable.NEVER;
}

Link to comment
Share on other sites

Now it's active, but preinit,init,postinit are not called.

@EventHandler
public void pei(FMLPreInitializationEvent event) throws Exception{
	preinit(event);
}

@EventHandler
public static void preinit(FMLPreInitializationEvent event) throws Exception
{ 
	System.out.println("PREINIT!");
	mainFolder = new File(event.getModConfigurationDirectory().getPath() + "\\AntiIDConflict");
	mainFolder.mkdir();

	BiomesManager.preinit(event);
	EntitiesManager.preinit(event);

	/*entitiesFolder = new File(mainFolder, "\\entities");
	entitiesFolder.mkdir();*/
}

@EventHandler
public void i(FMLInitializationEvent event) throws Exception{
	init(event);
}

@EventHandler
public static void init(FMLInitializationEvent event)
{ 
	System.out.println("INIT!");
	BiomesManager.init(event);
	EntitiesManager.init(event);
}

@EventHandler
public void poi(FMLPostInitializationEvent event) throws Exception{
	postinit(event);
}

@EventHandler
public static void postinit(FMLPostInitializationEvent event) throws Exception
{ 
	System.out.println("POSTINIT!");
	BiomesManager.postinit(event);
	EntitiesManager.postinit(event);
}

removing @EventHandler from static or not static methods doesn't help.

Link to comment
Share on other sites

Tried: @Subscribe @SubscribeEvent @EventHandler and mix and matching those, still nothing:

@EventHandler
@SubscribeEvent
@Subscribe
public void pei(FMLPreInitializationEvent event) throws Exception{
	preinit(event);
}

@EventHandler
@SubscribeEvent
@Subscribe
public static void preinit(FMLPreInitializationEvent event) throws Exception
{ 
	System.out.println("PREINIT!");
	mainFolder = new File(event.getModConfigurationDirectory().getPath() + "\\AntiIDConflict");
	mainFolder.mkdir();

	BiomesManager.preinit(event);
	EntitiesManager.preinit(event);

	/*entitiesFolder = new File(mainFolder, "\\entities");
	entitiesFolder.mkdir();*/
}

@EventHandler
@SubscribeEvent
@Subscribe
public void i(FMLInitializationEvent event) throws Exception{
	init(event);
}

@EventHandler
@SubscribeEvent
@Subscribe
public static void init(FMLInitializationEvent event)
{ 
	System.out.println("INIT!");
	BiomesManager.init(event);
	EntitiesManager.init(event);
}

@EventHandler
@SubscribeEvent
@Subscribe
public void poi(FMLPostInitializationEvent event) throws Exception{
	postinit(event);
}

@EventHandler
@SubscribeEvent
@Subscribe
public static void postinit(FMLPostInitializationEvent event) throws Exception
{ 
	System.out.println("POSTINIT!");
	BiomesManager.postinit(event);
	EntitiesManager.postinit(event);
}

Link to comment
Share on other sites

Is done other way in 1.8? Instead of registering, i get this in console:

[12:44:17] [Client thread/ERROR] [FML]: Unable to determine registrant mod for TextureAtlasSprite{name='minecraft:white', frameCount=0, rotated=false, x=0, y=0, height=0, width=0, u0=0.0, u1=0.0, v0=0.0, v1=0.0}. This is a critical error and should be impossible
java.lang.Throwable
at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:55) [EventBus.class:?]
at net.minecraftforge.client.model.ModelLoader.<init>(ModelLoader.java:83) [ModelLoader.class:?]
at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have done this now but have got the error:   'food(net.minecraft.world.food.FoodProperties)' in 'net.minecraft.world.item.Item.Properties' cannot be applied to                '(net.minecraftforge.registries.RegistryObject<net.minecraft.world.item.Item>)' public static final RegistryObject<Item> LEMON_JUICE = ITEMS.register( "lemon_juice", () -> new Item( new HoneyBottleItem.Properties().stacksTo(1).food( (new FoodProperties.Builder()) .nutrition(3) .saturationMod(0.25F) .effect(() -> new MobEffectInstance(MobEffects.DAMAGE_RESISTANCE, 1500), 0.01f ) .build() ) )); The code above is from the ModFoods class, the one below from the ModItems class. public static final RegistryObject<Item> LEMON_JUICE = ITEMS.register("lemon_juice", () -> new Item(new Item.Properties().food(ModFoods.LEMON_JUICE)));   I shall keep going between them to try and figure out the cause. I am sorry if this is too much for you to help with, though I thank you greatly for your patience and all the effort you have put in to help me.
    • I have been following these exact tutorials for quite a while, I must agree that they are amazing and easy to follow. I have registered the item in the ModFoods class, I tried to do it in ModItems (Where all the items should be registered) but got errors, I think I may need to revert this and figure it out from there. Once again, thank you for your help! 👍 Just looking back, I have noticed in your code you added ITEMS.register, which I am guessing means that they are being registered in ModFoods, I shall go through the process of trial and error to figure this out.
    • ♈+2349027025197ஜ Are you a pastor, business man or woman, politician, civil engineer, civil servant, security officer, entrepreneur, Job seeker, poor or rich Seeking how to join a brotherhood for protection and wealth here’s is your opportunity, but you should know there’s no ritual without repercussions but with the right guidance and support from this great temple your destiny is certain to be changed for the better and equally protected depending if you’re destined for greatness Call now for enquiry +2349027025197☎+2349027025197₩™ I want to join ILLUMINATI occult without human sacrificeGREATORLDRADO BROTHERHOOD OCCULT , Is The Club of the Riches and Famous; is the world oldest and largest fraternity made up of 3 Millions Members. We are one Family under one father who is the Supreme Being. In Greatorldrado BROTHERHOOD we believe that we were born in paradise and no member should struggle in this world. Hence all our new members are given Money Rewards once they join in order to upgrade their lifestyle.; interested viewers should contact us; on. +2349027025197 ۝ஐℰ+2349027025197 ₩Greatorldrado BROTHERHOOD OCCULT IS A SACRED FRATERNITY WITH A GRAND LODGE TEMPLE SITUATED IN G.R.A PHASE 1 PORT HARCOURT NIGERIA, OUR NUMBER ONE OBLIGATION IS TO MAKE EVERY INITIATE MEMBER HERE RICH AND FAMOUS IN OTHER RISE THE POWERS OF GUARDIANS OF AGE+. +2349027025197   SEARCHING ON HOW TO JOIN THE Greatorldrado BROTHERHOOD MONEY RITUAL OCCULT IS NOT THE PROBLEM BUT MAKE SURE YOU'VE THOUGHT ABOUT IT VERY WELL BEFORE REACHING US HERE BECAUSE NOT EVERYONE HAS THE HEART TO DO WHAT IT TAKES TO BECOME ONE OF US HERE, BUT IF YOU THINK YOU'RE SERIOUS MINDED AND READY TO RUN THE SPIRITUAL RACE OF LIFE IN OTHER TO ACQUIRE ALL YOU NEED HERE ON EARTH CONTACT SPIRITUAL GRANDMASTER NOW FOR INQUIRY +2349027025197   +2349027025197 Are you a pastor, business man or woman, politician, civil engineer, civil servant, security officer, entrepreneur, Job seeker, poor or rich Seeking how to join
    • Hi, I'm trying to use datagen to create json files in my own mod. This is my ModRecipeProvider class. public class ModRecipeProvider extends RecipeProvider implements IConditionBuilder { public ModRecipeProvider(PackOutput pOutput) { super(pOutput); } @Override protected void buildRecipes(Consumer<FinishedRecipe> pWriter) { ShapedRecipeBuilder.shaped(RecipeCategory.MISC, ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()) .pattern("SSS") .pattern("SSS") .pattern("SSS") .define('S', ModItems.COMPRESSED_DIAMOND.get()) .unlockedBy(getHasName(ModItems.COMPRESSED_DIAMOND.get()), has(ModItems.COMPRESSED_DIAMOND.get())) .save(pWriter); ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, ModItems.COMPRESSED_DIAMOND.get(),9) .requires(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()) .unlockedBy(getHasName(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()), has(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get())) .save(pWriter); ShapedRecipeBuilder.shaped(RecipeCategory.MISC, ModItems.COMPRESSED_DIAMOND.get()) .pattern("SSS") .pattern("SSS") .pattern("SSS") .define('S', Blocks.DIAMOND_BLOCK) .unlockedBy(getHasName(ModItems.COMPRESSED_DIAMOND.get()), has(ModItems.COMPRESSED_DIAMOND.get())) .save(pWriter); } } When I try to run the runData client, it shows an error:  Caused by: java.lang.IllegalStateException: Duplicate recipe compressed:compressed_diamond I know that it's caused by the fact that there are two recipes for the ModItems.COMPRESSED_DIAMOND. But I need both of these recipes, because I need a way to craft ModItems.COMPRESSED_DIAMOND_BLOCK and restore 9 diamond blocks from ModItems.COMPRESSED_DIAMOND. Is there a way to solve this?
  • Topics

×
×
  • Create New...

Important Information

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