Jump to content

Recommended Posts

Posted

Hello, I've recently created a mod in Eclipse, and inside Eclipse it runs just fine.

But when I recompile and reobfuscate it, put it in a zip and run minecraft with it: minecraft crashes.

My mod zip looks like this:

 

[map] mods > [Map] DennisMod > [map]client > ClientProxy.class

wk.class                                        [map] COMMON > (all my mod classes)

wl$1.class

wl.class

 

What am I doing wrong?

Crash report (My mod's name is Dennis' Mod, if that helps):

 

  Reveal hidden contents

 

 

P.S. 1:

I did also edit 2 classes from vanilla minecraft (at least I think they are from vanilla):

1. EnumToolMaterial (I added two new ToolMaterials)

2. Item (I added a item from my mod to the item list)

 

P.S. 2: Don't say that I have to delete the wk.class ,wl$1.class & wl.class because I already tried that.

Posted

1. base-class editing mods can't go into the mods folder as zips, they have to go into the minecraft.jar

2. base-editing is bad, very bad practice since there are a lot of ways to avoid it, like Reflection, ASM (if you're good) or just using hooks already in place. ("One shall not simply edit base classes")

3. Your edits are absolutely unnecessary! Look up basic modding, there is explained how to register items / new tools: http://www.minecraftforge.net/wiki/Tutorials

If not, then google it.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted
  On 5/4/2013 at 9:43 PM, SanAndreasP said:

1. base-class editing mods can't go into the mods folder as zips, they have to go into the minecraft.jar

2. base-editing is bad, very bad practice since there are a lot of ways to avoid it, like Reflection, ASM (if you're good) or just using hooks already in place. ("One shall not simply edit base classes")

3. Your edits are absolutely unnecessary! Look up basic modding, there is explained how to register items / new tools: http://www.minecraftforge.net/wiki/Tutorials

If not, then google it.

Thanks, I'll try that :)

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.