Jump to content

Recommended Posts

Posted

I have been making a mc forge mod for a while now, it works fine on mcp, and i recompiled and re-obfuscated it and tried to load it onto minecraft(Clean .minecraft with only forge installed).

 

I get this error:

 

  Reveal hidden contents

 

 

I did some research (for like 2 hours) and found no solution.

A lot of forum posts say to make sure that the classes for a mod are in the right place in the .zip, well mine ARE.

 

Please HELP! :'(

If the error is in the code then i can post that!

Posted
  On 6/20/2013 at 8:57 AM, CaptainMiner said:

I have been making a mc forge mod for a while now, it works fine on mcp, and i recompiled and re-obfuscated it and tried to load it onto minecraft(Clean .minecraft with only forge installed).

 

I get this error:

 

  Reveal hidden contents

 

 

I did some research (for like 2 hours) and found no solution.

A lot of forum posts say to make sure that the classes for a mod are in the right place in the .zip, well mine ARE.

 

Please HELP! :'(

If the error is in the code then i can post that!

 

Have a look at those errors:

 

  Reveal hidden contents

 

 

These are the last two exceptions in your trace. I don't know which IDE you are using, but it seems you have an exact duplicate of a method, i.e. name and parameters are the exact same. Eclipse should warn you about that and actually not even compile.

 

So either the error is there, or maybe something is going wrong during compilation. Please post the code of your TileEntityPortalSpawner, four eyes tend to see better than two. ;)

Posted

First of all, thanks for replying :)

 

I did notice that, i am using eclipse and i thought it should warn me too.  :(

Here is the TileEntityPortalSpawner code i cant see a duplicate method but maybe i'm missing something(I have been looking at code for the past 2 days)

 

 

  Reveal hidden contents

 

 

I'm very messy when i code  ;D

Posted
  On 6/20/2013 at 2:35 PM, CaptainMiner said:

First of all, thanks for replying :)

 

I did notice that, i am using eclipse and i thought it should warn me too.  :(

Here is the TileEntityPortalSpawner code i cant see a duplicate method but maybe i'm missing something(I have been looking at code for the past 2 days)

 

You have weird method names similar to this one's:

public boolean func_94041_b(int par1, ItemStack par2ItemStack)
    {
        return par1 == 2 ? false : (par1 == 1 ? isItemFuel(par2ItemStack) : true);
    }

Neither the implemented interface IInventory nor the extended class TileEntity declare those, so where do you get these names from? Any reason they are in a pattern similar to the method reobfuscation one?

I'd suggest, unless I overlooked something, that the exception might be exactly there. When re-obfuscating, one of the other properly named and overridden methods could be named like one of these...

 

Punch your re-obfuscated TileEntityPortalSpawner.class file in here and review for duplicates, maybe my theory is right.

 

P.S.: Don't download, just navigate to "Live Demo" and drag'n'drop.

Posted

;D Thank You  ;D

 

Those weird methods were copied from: Minecraft TileEntitys and other open source mod TileEntitys, i removed all the ones that i didnt know what they were for and it worked :D.

It turns out leaving things when im not sure what they are isnt always the best solution.

Your name: "FlameAtronach93" will be on the credits list when this mod is released!

 

My new TileEntityPortalSpawner code (For reference if any one else has this problem):

 

  Reveal hidden contents

 

Posted
  On 6/20/2013 at 3:14 PM, CaptainMiner said:
;D Thank You  ;D

 

Those weird methods were copied from: Minecraft TileEntitys and other open source mod TileEntitys, i removed all the ones that i didnt know what they were for and it worked :D.

It turns out leaving things when im not sure what they are isnt always the best solution.

 

Your welcome. ;D Glad I could help.

 

  Quote
Your name: "FlameAtronach93" will be on the credits list when this mod is released!

That's nice.

 

I hate to ask, but would you mind hitting that "Thank You" link, too? I plan to stay a little longer on these forums, and some positive Karma would be just as nice. ;)

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



×
×
  • Create New...

Important Information

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