Jump to content

Recommended Posts

Posted

Hello, pardon my English.

 

Well, I coded a mod (my first one, as a study on mods. I was following some tutorials). All it does is to add a few new recipes (based on the tutorials I read that's probably one of the simplest tasks). The mod runs fine when I click the green button on eclipse and all the recipes are working. I then copy the folder generated under \forge\mcp\reobf\minecraft to the mods folder under .minecraft (%AppData%\Roaming\.minecraft\mods). I run minecraft and after mojang logo my minecraft window shows an error regarding my mod (Minecraft crashed... etc).

 

So, my folder structure as found under \forge\mcp\reobf is as follows:

minecraft\

    kauan\

          MoreRecipes\

              client\

                    ClientProxy.class

              CommonProxy.class

              MoreRecipes.class

 

(I hope that's clear enough)

I think CommonProxy and ClientProxy classes are useless for my mod but I have them anyway, because I was following tutorials.

 

these are my classes

 

CommonProxy (this one is pretty much empty)

 

 

package kauan.MoreRecipes;

public class CommonProxy
{
public void registerRenders()
{

}
}

 

 

 

ClientProxy (even more empty than the one above)

 

 

[/code]

package kauan.MoreRecipes.client;

 

import kauan.MoreRecipes.CommonProxy;

 

public class ClientProxy extends CommonProxy

{

 

}

[/code]

 

 

 

MoreRecipes

 

 

package kauan.MoreRecipes;

import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
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;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid="MoreRecipes", name="MoreRecipes", version="0.0.0")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class MoreRecipes
{
//The instance of the mod, used by Forge
@Instance("MoreRecipes")
public static MoreRecipes instance;

@SidedProxy(clientSide="kauan.MoreRecipes.client.ClientProxy", serverSide="kauan.MoreRecipes.CommonProxy")
public static CommonProxy proxy;

@PreInit
public void preInit(FMLPreInitializationEvent event)
{

}

@Init
public void load(FMLInitializationEvent event)
{
	ItemStack dirtBlock = new ItemStack(Block.dirt);
	ItemStack gravelBlock = new ItemStack(Block.gravel);
	ItemStack cobbleStoneBlock = new ItemStack(Block.cobblestone);
	ItemStack sandStoneBlock = new ItemStack(Block.sandStone);
	ItemStack obsidianBlock = new ItemStack(Block.obsidian);
	ItemStack emeraldItem = new ItemStack(Item.emerald);
	ItemStack ironItem = new ItemStack(Item.ingotIron);

	ItemStack clayOutput = new ItemStack(Item.clay, 4);
	GameRegistry.addShapelessRecipe(clayOutput,
			dirtBlock, dirtBlock, dirtBlock,
			dirtBlock, dirtBlock, dirtBlock,
			dirtBlock, dirtBlock, dirtBlock);

	ItemStack gravelOutput = new ItemStack(Block.gravel, 6);
	GameRegistry.addRecipe(gravelOutput, "xyx", "xzx", "xyx",
			'x', dirtBlock, 'y', sandStoneBlock, 'z', cobbleStoneBlock);

	ItemStack diamondOutput = new ItemStack(Item.diamond);
	GameRegistry.addRecipe(diamondOutput, "xxx", "xyx", "xxx",
			'x', obsidianBlock, 'y', emeraldItem);

	ItemStack goldOutput = new ItemStack(Item.ingotGold, 4);
	GameRegistry.addRecipe(goldOutput, " x ", "xyx", "xxx",
			'x', ironItem, 'y', emeraldItem);

}

@PostInit
public void postInit(FMLPostInitializationEvent event)
{

}

}

 

 

 

i tryed copy-pasting the "kauan" folder to \.minecraft\mods, tryed the same with the "MoreRecipes" folder, and none of that worked. Now the error part of the log (I don't believe i have to paste the whole log... it's really long. So I'll just put here the begining wich contains information about the version of forge and stuff, and the error part).

 

 

 

2013-03-24 20:23:28 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.608 for Minecraft 1.5.1 loading

2013-03-24 20:23:28 [iNFO] [ForgeModLoader] Java is Java HotSpot Client VM, version 1.7.0_17, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jre7

2013-03-24 20:23:28 [FINE] [ForgeModLoader] Java classpath at launch is /C:/Users/Gwyrion/AppData/Local/Temp/e4j6DDA.tmp_dir/MinecraftSP.jar

2013-03-24 20:23:28 [FINE] [ForgeModLoader] Java library path at launch is C:\Windows\SysWOW64;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_17\bin;C:\Program Files\Java\jre7\bin;c:\program files (x86)\java\jre7\bin;.

2013-03-24 20:23:28 [FINE] [ForgeModLoader] Enabling runtime deobfuscation

 

.

. (more stuff here)

.

 

2013-03-24 20:23:32 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue

2013-03-24 20:23:32 [sEVERE] [ForgeModLoader]

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML [Forge Mod Loader] (coremods) Unloaded->Constructed

Forge [Minecraft Forge] (coremods) Unloaded->Constructed

MoreRecipes [MoreRecipes] (kauan) Unloaded->Errored

2013-03-24 20:23:32 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-03-24 20:23:32 [sEVERE] [ForgeModLoader] Caught exception from MoreRecipes

java.lang.ClassNotFoundException: kauan.MoreRecipes.MoreRecipes

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446)

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.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

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.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:407)

at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)

at net.minecraft.client.Minecraft.run(Minecraft.java:729)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NullPointerException

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)

... 32 more

2013-03-24 20:23:42 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: kauan.MoreRecipes.MoreRecipes

2013-03-24 20:23:42 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)

2013-03-24 20:23:42 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:512)

2013-03-24 20:23:42 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)

2013-03-24 20:23:42 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:407)

2013-03-24 20:23:42 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)

2013-03-24 20:23:42 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729)

2013-03-24 20:23:42 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-03-24 20:23:42 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: kauan.MoreRecipes.MoreRecipes

2013-03-24 20:23:42 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211)

2013-03-24 20:23:42 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source)

2013-03-24 20:23:42 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source)

2013-03-24 20:23:42 [iNFO] [sTDERR] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56)

2013-03-24 20:23:42 [iNFO] [sTDERR] at java.lang.Class.forName0(Native Method)

2013-03-24 20:23:42 [iNFO] [sTDERR] at java.lang.Class.forName(Unknown Source)

2013-03-24 20:23:42 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446)

2013-03-24 20:23:42 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-24 20:23:42 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-24 20:23:42 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-24 20:23:42 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-24 20:23:42 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-03-24 20:23:42 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-03-24 20:23:42 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-03-24 20:23:42 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-03-24 20:23:42 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-03-24 20:23:42 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

2013-03-24 20:23:42 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-24 20:23:42 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-24 20:23:42 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-24 20:23:42 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-24 20:23:42 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-03-24 20:23:42 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-03-24 20:23:42 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-03-24 20:23:42 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-03-24 20:23:42 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-03-24 20:23:42 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

2013-03-24 20:23:42 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)

2013-03-24 20:23:42 [iNFO] [sTDERR] ... 5 more

2013-03-24 20:23:42 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException

2013-03-24 20:23:42 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)

2013-03-24 20:23:42 [iNFO] [sTDERR] ... 32 more

 

 

 

I'm a newbie, this is my first try, I hope my post is all according to the forum rules. Thanks in advance.

 

WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons

Posted

Put your folder, aka "kauan" into a ZIP folder.

 

Drag that ZIP folder into your mods folder.

 

IT MUST BE A "ZIP".

 

EDIT: Do not put the minecraft folder in it, it's just for declaring the location.

 

minecraft is a location, as well as minecraftforge, so don't put that in.

Posted

Put your folder, aka "kauan" into a ZIP folder.

 

Drag that ZIP folder into your mods folder.

 

IT MUST BE A "ZIP".

 

EDIT: Do not put the minecraft folder in it, it's just for declaring the location.

 

minecraft is a location, as well as minecraftforge, so don't put that in.

 

Thanks for your help.

Well, I turned my kauan folder into a kauan.zip file. I still get an error although a different one:

 

 

 

(begining is the same as before, not sure about the middle... here's the error part)

 

2013-03-24 20:51:39 [FINEST] [MoreRecipes] Sending event FMLInitializationEvent to mod MoreRecipes

2013-03-24 20:51:39 [FINEST] [MoreRecipes] Sent event FMLInitializationEvent to mod MoreRecipes

2013-03-24 20:51:39 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

2013-03-24 20:51:39 [sEVERE] [ForgeModLoader]

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

MoreRecipes [MoreRecipes] (kauan.zip) Unloaded->Constructed->Pre-initialized->Errored

2013-03-24 20:51:39 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-03-24 20:51:39 [sEVERE] [ForgeModLoader] Caught exception from MoreRecipes

java.lang.NoSuchFieldError: field_71979_v

at kauan.MoreRecipes.MoreRecipes.load(MoreRecipes.java:38)

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:515)

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.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

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.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:444)

at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)

at net.minecraft.client.Minecraft.run(Minecraft.java:729)

at java.lang.Thread.run(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.NoSuchFieldError: field_71979_v

2013-03-24 20:51:49 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)

2013-03-24 20:51:49 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)

2013-03-24 20:51:49 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

2013-03-24 20:51:49 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:444)

2013-03-24 20:51:49 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)

2013-03-24 20:51:49 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729)

2013-03-24 20:51:49 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] Caused by: java.lang.NoSuchFieldError: field_71979_v

2013-03-24 20:51:49 [iNFO] [sTDERR] at kauan.MoreRecipes.MoreRecipes.load(MoreRecipes.java:38)

2013-03-24 20:51:49 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-24 20:51:49 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

2013-03-24 20:51:49 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-24 20:51:49 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-03-24 20:51:49 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-03-24 20:51:49 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-03-24 20:51:49 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-03-24 20:51:49 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-03-24 20:51:49 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

2013-03-24 20:51:49 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-24 20:51:49 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-24 20:51:49 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-03-24 20:51:49 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-03-24 20:51:49 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-03-24 20:51:49 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-03-24 20:51:49 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-03-24 20:51:49 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

2013-03-24 20:51:49 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

2013-03-24 20:51:49 [iNFO] [sTDERR] ... 5 more

 

 

 

Looks like there's something wrong with my code, as if I'm referencing something that doesn't exist? But what confuses me is that this very same code runs fine when I execute it by pressing the green little arrow on eclipse...

WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons

Posted

Again, pardon my English. It's the best I can do.

 

I'm sorry about the title of this thread. When I started it I thought the issue was related to deployment, but I'm no longer sure.

 

Well, I made a few radical tests. One of them was to replace all the content inside the load method by this meaningless computations:

 

 

public void load(FMLInitializationEvent event)
{
     int x = 2;
     int y = 3;
     int z = x + y;
}

 

I then deployed the kauan folder as a zip (thanks for the tip coolboy4531) and put it into my mods folder under .minecraft. Minecraft loaded my mod successfully.

 

So I have a feeling I'm putting my zip folder in the right place. Then I changed the code again, replacing again the body of the load method, this time with the following:

 

public void load(FMLInitializationEvent event)
{
     Block dirt = Block.dirt;
}

 

And this time I got the exact same error as above ("java.lang.NoSuchFieldError: field_71979_v" and all that)

 

I believe I reduced the problem as much as possible, but since I'm  a real newbie at mod coding (I started just a few hours ago) I can't figure out what's wrong with my mod. Please, could anyone help me with this? I'm really lost, i mean, how can a line so simple generate an error?

 

I'm not a Java Programer or anything but I checked the definition of the Block class and it's fields. It seems to me that what I'm trying is a legal operation. The class is public and the field dirt is marked as public static final. As far as I know theres nothing sintatically wrong with that little line of code.

 

As I said I'm not a Java programer (honestly I'm no programer at all, just a curious 13 years old kid), so I'm guessing it may have something to do to the static fields of the Block class not being available at the time the load method is called? I don't know neither when this method is called nor when the static construction of a Java class takes place.

 

Well these are my rambling thoughts on that matter. Please, I'd really apreciate any help at all from the comunity. Thanks in advance.

WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons

Posted

Thanks for your answer, I think this problem has something to do with what you said.

 

I had the recommended src but the latest universal, so they were not of the same version. Regardless of that, forge was running normally, but my mod was causing a crash. Without my mod in the mod folder forge loaded and I could play minecraft normally. It even downloaded it's required libraries on first load

 

Now I downloaded the matching universal and minecraft won't finish loading (and no sign of forge's little window, no library download, just nothing from forge).

 

This is what I've done: I extracted the newly downloaded universal zip file (matching my src) to a folder and copied the contents of that folder into \.minecraft\bin\minecraft.jar. Then i deleted from the META-INF folder any files with "MOJANG" in their name (leaving only MANIFEST.MF, FORGE.SF, FORGE.DSA)

 

I don't get an error or crash, the loading just freezes forever. I'm in a hurry now because I'm late for school, but as soon as I get home I'll check this thread and I'll redo the whole thing again (deleting \.minecraft\bin\ so the launcher can download a fresh one for me).

 

Thanks again! I feel this problem will be solved soon.

 

EDIT: I did that while eating breakfast: deleted \bin and ran minecraft. It downloaded all it needed and the game loaded ok. I loaded one of my saves: everything fine. Then I dragged the files from the universal (the corrected one, matching my src, both of them of version 1.5-7.7.0.582) and again I got the same problem: game loading got stuck with the message "done loading" (same as before). I'm going to school a little less hopeful than I was before this try.

WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons

Posted

Yay! problem solved, thanks a lot for everyone's help.

 

It turned out Senitiel had the solution. All I had to do was to install both src and universal of version 1.5.1-7.7.0.608 (which is not the recommended download but the latest instead). My mod works (sort of, I still need to learn where to put my textures) and Forge is running smoothly. Everything is just great right now.

 

I'll finish working on my silly mod and then I'll have to learn some new modding skills. Any good tutorials out there someone could point out to me? Thanks. A lot. Everyone.

WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons

Posted

I assume you currently have them inn MCP_Directory/src/Minecraft/mods/MODNAME/  etc.

Then you just copy the mods folder and the containing MODNAME folder with all it's contents into your zipfile.

So you get this:

kauan.zip

|

| - mods/MODNAME/    <--- Here! Same folder structrue from here on as you had inn the MCP folder.

 

 

Edit: As for tutorials you could follow the Basic modding series, and then take a look at wuppy's tutorials

If you guys dont get it.. then well ya.. try harder...

Posted

I assume you currently have them inn MCP_Directory/src/Minecraft/mods/MODNAME/  etc.

Then you just copy the mods folder and the containing MODNAME folder with all it's contents into your zipfile.

So you get this:

kauan.zip

|

| - mods/MODNAME/    <--- Here! Same folder structrue from here on as you had inn the MCP folder.

 

 

Edit: As for tutorials you could follow the Basic modding series, and then take a look at wuppy's tutorials

 

Thank you for your answer. I found out that, if you're using eclipse (which is my case), the textures go in \forge\mcp\eclipse\Minecraft\bin\

 

Inside that bin folder you have to create a folder named textures, and inside that folder named textures you have to create 2 other folders, one named items and another named blocks. Inside that 2 folders you put the textures for your mod items and blocks respectively. The texture must have the exact same name that you give to the item/block through the method setUnlocalizedName(String s). It will get automatically loaded and associated with the item/block of same name. No further work needed to run minecraft from eclipse. I dont know about other textures such as GUI textures etc.

 

Now I need to know where those textures go when I deploy my mod. Do they kinda ship in the zip and I tell people "extract these and put them inside minecraft.jar" or what?

 

As for the tutorials, they are outdatted I think. And they are not clear enough on several points. I'm using them though, they are great help.

 

Thanks again!

WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons

Posted
Thank you for your answer. I found out that, if you're using eclipse (which is my case), the textures go in \forge\mcp\eclipse\Minecraft\bin\

 

Yeah that's a work around for it ;) but the correct place is inside the \forge\mcp\src\Minecraft\mods\

folder. See AtomicStryker's Guide to ICONS AND BLOCK TEXTURES for 1.5 There he explains it quite well :) So inn the end a block texture should for working inn eclipse be at this path:

/mcp/src/Minecraft/mods/YOURMODNAMEHERE/textures/blocks/ for Block textures

 

Now if you have the textures folder, then create a folder inside your .zip file and name it "mods". Then inside mods create a new folder called "YOURMODNAMEHERE" Put the textures folder inside that new folder and you are good to go.

 

ofcourse "YOURMODNAMEHERE" must be replace to whatever your mod descriptor is.

Like you had when you registered the icons and textures as on the line below:

iconRegister.registerIcon("YOURMODNAMEHERE:BlockCool");

 

Resulting inn this directory structure for your zip file:

kauan.zip

|-ModName  <- The folder you already have with all your files etc.

|-mods

      |-YOURMODENAMEHERE

          |-textures

              |-blocks

                  |-BlockCool.png

                  |-Block2Cool.png

              |-items

If you guys dont get it.. then well ya.. try harder...

Posted

Hello again.

 

Well, I don't register icons or anything like that for my custom blocks and items. I put them in the folders I mentioned and I'm good to go. It works fine too when you put the needed textures inside minecraft.jar\textures.

 

All I had to do was to drag my \forge\mcp\eclipse\Minecraft\bin\textures folder (wich, as you remember, contains 2 folders, one named "blocks" and the other named "items") inside minecraft.jar and, as expected, my textures folder merged with minecraft.jar\textures, adding my textures to their correct locations:

 

a) the textures in \forge\mcp\eclipse\Minecraft\bin\textures\blocks were copied to minecraft.jar\textures\blocks

b) the textures in \forge\mcp\eclipse\Minecraft\bin\textures\items got copied into minecraft.jar\texture\items

 

Well, since I'm not a pro mod coder and I'm just doing it for fun, I think I'll stick with this aproach until some situation arrises where this is not enough anymore. Thanks for your info on registering icons, though! I'll keep that in mind for when I need something more advanced.

WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons

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

    • In 1.20.1, while creating an addon(mod) for Epic Fight, I tried to runclient and it crashed with the following error rg.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [mixins.epicfight.json:MixinEntityRenderer] from phase [DEFAULT] in config [ mixins.epicfight.json] FAILED during APPLY Could you please tell me how to solve this problem? build.gradle   plugins { id 'eclipse' id 'idea' id 'maven-publish' id 'net.minecraftforge.gradle' version '[6.0,6.2)' //id 'org.parchmentmc.librarian.forgegradle' version '1.+' //id 'org.spongepowerd.mixin' version '0.8.5' } version = mod_version group = mod_group_id base { archivesName = mod_id } // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17. java.toolchain.languageVersion = JavaLanguageVersion.of(17) println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}" minecraft { // The mappings can be changed at any time and must be in the following format. // Channel: Version: // official MCVersion Official field/method names from Mojang mapping files // parchment YYYY.MM.DD-MCVersion Open community-sourced parameter names and javadocs layered on top of official // // You must be aware of the Mojang license when using the 'official' or 'parchment' mappings. // See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md // // Parchment is an unofficial project maintained by ParchmentMC, separate from MinecraftForge // Additional setup is needed to use their mappings: https://parchmentmc.org/docs/getting-started // // Use non-default mappings at your own risk. They may not always work. // Simply re-run your setup task after changing the mappings to update your workspace. mappings channel: mapping_channel, version: mapping_version // When true, this property will have all Eclipse/IntelliJ IDEA run configurations run the "prepareX" task for the given run configuration before launching the game. // In most cases, it is not necessary to enable. // enableEclipsePrepareRuns = true // enableIdeaPrepareRuns = true // This property allows configuring Gradle's ProcessResources task(s) to run on IDE output locations before launching the game. // It is REQUIRED to be set to true for this template to function. // See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html copyIdeResources = true // When true, this property will add the folder name of all declared run configurations to generated IDE run configurations. // The folder name can be set on a run configuration using the "folderName" property. // By default, the folder name of a run configuration is the name of the Gradle project containing it. // generateRunFolders = true // This property enables access transformers for use in development. // They will be applied to the Minecraft artifact. // The access transformer file can be anywhere in the project. // However, it must be at "META-INF/accesstransformer.cfg" in the final mod jar to be loaded by Forge. // This default location is a best practice to automatically put the file in the right place in the final jar. // See https://docs.minecraftforge.net/en/latest/advanced/accesstransformers/ for more information. // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Default run configurations. // These can be tweaked, removed, or duplicated as needed. runs { // applies to all the run configs below configureEach { workingDirectory project.file('run') // Recommended logging data for a userdev environment // The markers can be added/remove as needed separated by commas. // "SCAN": For mods scan. // "REGISTRIES": For firing of registry events. // "REGISTRYDUMP": For getting the contents of all registries. property 'forge.logging.markers', 'REGISTRIES' // Recommended logging level for the console // You can set various levels here. // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels property 'forge.logging.console.level', 'debug' mods { "${mod_id}" { source sourceSets.main } } } client { // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. property 'forge.enabledGameTestNamespaces', mod_id } server { property 'forge.enabledGameTestNamespaces', mod_id args '--nogui' } // This run config launches GameTestServer and runs all registered gametests, then exits. // By default, the server will crash when no gametests are provided. // The gametest system is also enabled by default for other run configs under the /test command. gameTestServer { property 'forge.enabledGameTestNamespaces', mod_id } data { // example of overriding the workingDirectory set in configureEach above workingDirectory project.file('run-data') // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') } } } // Include resources generated by data generators. sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { // Put repositories for dependencies here // ForgeGradle automatically adds the Forge maven and Maven Central for you maven { url "https://cursemaven.com" content { includeGroup "curse.maven" } } // If you have mod jar dependencies in ./libs, you can declare them as a repository like so. // See https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver // flatDir { // dir 'libs' // } } dependencies { // Specify the version of Minecraft to use. // Any artifact can be supplied so long as it has a "userdev" classifier artifact and is a compatible patcher artifact. // The "userdev" classifier will be requested and setup by ForgeGradle. // If the group id is "net.minecraft" and the artifact id is one of ["client", "server", "joined"], // then special handling is done to allow a setup of a vanilla dependency without the use of an external repository. minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" // Example mod dependency with JEI - using fg.deobf() ensures the dependency is remapped to your development mappings // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}") // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-forge-api:${jei_version}") // runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}-forge:${jei_version}") implementation fg.deobf("curse.maven:epic-fight-mod-405076:5922122") annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' // Example mod dependency using a mod jar from ./libs with a flat dir repository // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar // The group id is ignored when searching -- in this case, it is "blank" // implementation fg.deobf("blank:coolmod-${mc_version}:${coolmod_version}") // For more info: // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } // This block of code expands all declared replace properties in the specified resource targets. // A missing property will result in an error. Properties are expanded using ${} Groovy notation. // When "copyIdeResources" is enabled, this will also run before the game launches in IDE environments. // See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html tasks.named('processResources', ProcessResources).configure { var replaceProperties = [ minecraft_version: minecraft_version, minecraft_version_range: minecraft_version_range, forge_version: forge_version, forge_version_range: forge_version_range, loader_version_range: loader_version_range, mod_id: mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version, mod_authors: mod_authors, mod_description: mod_description, ] inputs.properties replaceProperties filesMatching(['META-INF/mods.toml', 'pack.mcmeta']) { expand replaceProperties + [project: project] } } // Example for how to get properties into the manifest for reading at runtime. tasks.named('jar', Jar).configure { manifest { attributes([ 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors, 'Specification-Version' : '1', // We are version 1 of ourselves 'Implementation-Title' : project.name, 'Implementation-Version' : project.jar.archiveVersion, 'Implementation-Vendor' : mod_authors, 'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } // This is the preferred method to reobfuscate your jar file finalizedBy 'reobfJar' } // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing: // tasks.named('publish').configure { // dependsOn 'reobfJar' // } // Example configuration to allow publishing using the maven-publish plugin publishing { publications { register('mavenJava', MavenPublication) { artifact jar } } repositories { maven { url "file://${project.projectDir}/mcmodsrepo" } maven { url "https://cursemaven.com" content { includeGroup "curse.maven" } } } } tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation }  
    • I have a custom 3d model which works perfectly. BUT I want it to be held diffrently on the players hand when the item is being used. My JSON file under assets/examplemod/items looks like this: { "model": { "type": "minecraft:condition", "on_false": { "type": "minecraft:model", "model": "examplemod:item/example_item" }, "on_true": { "type": "minecraft:model", "model": "examplemod:item/example_item_using" }, "property": "minecraft:using_item" } }   This works fine until the item is used. The correct model will be displayed but with a full black texture instead of the actuall texture. Any idea why? (I want to use the exact same texture for both items, because their model is the same just diffrent displays on firstperson_righthand and firstperson_lefthand). The models JSON's are fully blockbench files inlcuding the elements, display, textures with texture_size.   Also is this the correct way to do it? Because it feels so dumb to change the exact same model just for a diffrent right- and lefthand view.   (fyi: ItemUseAnimation is BLOCK for this item)
    • I just backed up my world then tried to create new mod with currently equipped mod but with new world still made same error. Sooo I think it's not world error. also It's working fine on singleplayer. + but it made some another weird error with new world
    • Maybe the file is too large - you can upload the log file via Mediafire
    • Create a new instance and start with Embeddium + Oculus Then add new mods one by one or in groups The "IncompatibleClassChangeError: class net.coderbot.iris.gui.option.ShadowDistanceOption" often appears in connection with an incompatible mod
  • Topics

×
×
  • Create New...

Important Information

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