Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How do I release my Mod?


kauan99
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

In Your next install You forgot to delete meta inf before adding forge, didn't You?

 

But I would rather download src version to match universal, and then copy my code to newest src version, not the opposite. But then, if you get universal to work with the same version, try if Your mod works well.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

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
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.

 Share



×
×
  • Create New...

Important Information

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