Jump to content

[1.3.2] [Solved] Help going from Eclipse code to .zip


TheDragon

Recommended Posts

  I have been following some basic tutorials, and I have successfully made a little mod where you use 3 paper to make 3 paper cones, then a paper cone with snow ball and melon slice, gives you a melon slushy.

 

  The mod works perfectly when I run it through Eclipse, but I am lost as to what I need to do for my mod to be in a .zip form to be distributed for use in the \mod folder.

 

  Thanks for any help or links.

Link to comment
Share on other sites

From the readme - mcp file inside the mcp directory/docs:

 

3) Modding

- Modify the sourcecode in the "src\minecraft" folder or in the "src\minecraft_server" folder.

 

4) Compile

- Start the "recompile.bat" script in this folder.

 

5) Testing

- To test the modified game, start the "startclient.bat" script

- To test the modified server, start the "startserver.bat" script

 

6) Obfuscation

- Decompile the code, modify and recompile.

- Start "reobfuscate.bat" to start the reobfuscation step, it will automatically detect changed classes and reobfuscate them.

- Your obfuscated classes are now available in "reobf\minecraft" and "reobf\minecraft_server", ready to be injected in MC.

- Make sure to delete the META-INF folder in minecraft.jar, otherwise the game will just black-screen when you start it.

 

So backup the files you have edited, then recompile, reobfuscate the code and everything is ready to go.

Take the files, zip them up and done ;)

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

Link to comment
Share on other sites

Thank you so much, it worked, and my mod is now working as a .zip.

 

Only problem now, is that my textures didnt transfer.

 

I'm not entirely sure where I should put them.  I have seen inside the .zip of other mods, and their textures are in neat little folders and such, so I know I shouldnt have to put them in any jar file.

 

Here are the paths on my system...

 

This is where my textures are stored when running the mod through Eclipse

C:\Users\Lance\Desktop\Forge Modding\mcp72\eclipse\Minecraft\bin

 

This is the path I use inside my code to load the txtures

public static String ITEMS_PNG = "/item.png";

public static String BLOCK_PNG = "/block.png";

 

After reobfuscation, my source was outputted in this directory

C:\Users\Lance\Desktop\Forge Modding\mcp72\reobf\minecraft\tutorial

 

So, hopefully this will be enough information for someone to determine where in my .zip file my textures should go, and if I need to change the directory in code where it is loading from.

 

Thanks

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.

Announcements



×
×
  • Create New...

Important Information

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