Jump to content

[1.5.2] Mod crashes after reobfuscation - noSuchMethod exception.


mokonaModoki

Recommended Posts

When launching the mod from eclipse it works just fine, but after reobf and trying to launch zip* version,  it crashes.

It is unable to bindCustomTileEntityRenderer.

Here is the log: http://pastebin.com/JntNes0G

 

Help required)

Link to comment
Share on other sites

nope, never do that, i dont have access to pastebin as my work blocks it.

 

can you use

 

spoilers

 

and include your client proxy and main mod class?

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

Allright. There it goes:

 

Crash report:

 

 

 

    ---- Minecraft Crash Report ----

    // Don't do that.

   

    Time: 05.07.13 22:34

    Description: Failed to start game

   

    cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: cpw.mods.fml.client.registry.ClientRegistry.bindTileEntitySpecialRenderer(Ljava/lang/Class;Lbje;)V

            at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)

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

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

            at net.minecraft.client.Minecraft.startGame(Minecraft.java:448)

            at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

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

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

    Caused by: java.lang.NoSuchMethodError: cpw.mods.fml.client.registry.ClientRegistry.bindTileEntitySpecialRenderer(Ljava/lang/Class;Lbje;)V

            at mokonaDesu.alchemypp.client.ClientProxy.registerRenderers(ClientProxy.java:13)

            at mokonaDesu.alchemypp.AlchemyPP.load(AlchemyPP.java:54)

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

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

            ... 5 more

   

   

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

    ---------------------------------------------------------------------------------------

   

    -- System Details --

    Details:

            Minecraft Version: 1.5.2

            Operating System: Windows 7 (amd64) version 6.1

            Java Version: 1.7.0_05, Oracle Corporation

            Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

            Memory: 882790184 bytes (841 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)

            JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

            AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

            Suspicious classes: FML and Forge are installed

            IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

            FML: MCP v7.51 FML v5.2.12.712 Minecraft Forge 7.8.0.712 4 mods loaded, 4 mods active

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

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

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

            AlchemyPlusPlus{indev} [AlchemyPlusPlus] (AlchemyPP.zip) Unloaded->Constructed->Pre-initialized->Errored

            LWJGL: 2.4.2

            OpenGL: ATI Radeon HD 3200 Graphics  GL version 2.1.8787, ATI Technologies Inc.

            Is Modded: Definitely; Client brand changed to 'fml,forge'

            Type: Client (map_client.txt)

            Texture Pack: Default

            Profiler Position: N/A (disabled)

            Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

 

 

 

main mod class:

 

package mokonaDesu.alchemypp;

 

import mokonaDesu.alchemypp.blocks.BlockRegistry;

import mokonaDesu.alchemypp.client.APPClientPacketHandler;

import mokonaDesu.alchemypp.client.ClientProxy;

import mokonaDesu.alchemypp.gui.APPGuiHandler;

import mokonaDesu.alchemypp.items.ItemRegistry;

import mokonaDesu.alchemypp.tileentities.TileEntityLiquidMixer;

import mokonaDesu.alchemypp.tileentities.TileEntityPotionContainer;

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.network.NetworkMod.SidedPacketHandler;

import cpw.mods.fml.common.network.NetworkRegistry;

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;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

 

@Mod(modid = "AlchemyPlusPlus", name = "AlchemyPlusPlus", version = "indev")

@NetworkMod(clientSideRequired = true, serverSideRequired = false,

clientPacketHandlerSpec =

@SidedPacketHandler(channels = {"AlchemyPlusPlus"}, packetHandler = APPClientPacketHandler.class),

serverPacketHandlerSpec =

@SidedPacketHandler(channels = {"AlchemyPlusPlus"}, packetHandler = APPServerPacketHandler.class))

 

 

public class AlchemyPP {

@Instance("AlchemyPlusPlus")

public static AlchemyPP instance = new AlchemyPP();

public static APPGuiHandler guiHandler = new APPGuiHandler();

public static APPWorldGenerator worldGen = new APPWorldGenerator();

 

@SidedProxy(clientSide="mokonaDesu.alchemypp.client.ClientProxy", serverSide="mokonaDesu.alchemypp.CommonProxy")

public static CommonProxy proxy;

 

@PreInit

public void preInit(FMLPreInitializationEvent event) {

//TODO: Compile the list of modules to be loaded

}

 

@Init

public void load(FMLInitializationEvent event) {

 

GameRegistry.registerTileEntity(TileEntityPotionContainer.class, "potionKegTE");

GameRegistry.registerTileEntity(TileEntityLiquidMixer.class, "LiquidMixerTE");

 

proxy.registerRenderers();

 

BlockRegistry.registerBlocks();

ItemRegistry.registerItems();

 

BlockRegistry.registerBlockRecipes();

ItemRegistry.registerItemRecipes();

 

NetworkRegistry.instance().registerGuiHandler(AlchemyPP.instance, this.guiHandler);

GameRegistry.registerWorldGenerator(worldGen);

}

 

@PostInit

public void postInit(FMLPostInitializationEvent event) { }

 

}

 

 

 

Client Proxy class:

 

package mokonaDesu.alchemypp.client;

 

import cpw.mods.fml.client.registry.ClientRegistry;

import cpw.mods.fml.client.registry.RenderingRegistry;

import net.minecraftforge.client.MinecraftForgeClient;

import mokonaDesu.alchemypp.CommonProxy;

import mokonaDesu.alchemypp.renderer.TileEntityPotionContainerRenderer;

 

public class ClientProxy extends CommonProxy {

 

@Override

public void registerRenderers() {

ClientRegistry.bindTileEntitySpecialRenderer(mokonaDesu.alchemypp.tileentities.TileEntityPotionContainer.class, new TileEntityPotionContainerRenderer());

}

}

 

 

 

Note that the mod is working allright when launched from eclipse. Only zipped version crashes.

Link to comment
Share on other sites

did it change in 1.5.2 (im still 1.5.1) because im suing RenderingRegistry.registerTileEntitySpecialRenderer... or somethign like that (client proxy line 13)

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

hen .. cant tell then, what is it saying if you use RenderingRegistry.registerTileEntitySpecialRenderer ??

edit: nvm i saw in the javadoc that it doesnt even exists anymore.

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

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.



×
×
  • Create New...

Important Information

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