Jump to content

[1.6.4]GuiMainMenu question


pennaverde

Recommended Posts

Hi, i'm trying to edit the client of mc for automatic connect to my server:

 

2nquzhl.jpg

 

I followed these steps:

- downloaded forge 9.11.1 source

- extracted the folder on the desktop

- clicked on install.bat

- edited the code with eclipse (for workbench in eclipse folder)

- saved

- clicked recompile.bat

- then reobfuscate.bat

- I went to take the file .class in the reobf/minecraft folder

I tried to put it: in the minecraft.jar, but crashes, in the mods folder (either. zip. jar) crashed again, and I also tried to use instead reobfuscate.bat, reobfuscate_srg.bat.. but nothing.

I can not apply it to the client.

 

Can someone give me some suggestions plz? :' ((

Link to comment
Share on other sites

Don't edit base classes!!! You can do all those thing without editing base classes!

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

MCP License and terms of use.

 

No warranties. If MCP does not work for you, or causes any damage, it's your problem. Use it at own risk.

 

You are allowed to:

- Use MCP to decompile the Minecraft client and server jar files.

- Use the decompiled source code to create mods for Minecraft.

- Recompile modified versions of Minecraft.

- Reobfuscate the classes of your mod for Minecraft.

 

You are NOT allowed to:

- Use MCP to do anything that violated Mojangs terms of use for Minecraft.

- Release Minecraft versions or modifications that allow you to play without having bought Minecraft from Mojang.

- Release modified or unmodified versions of MCP anywhere.

- Use any of MCPs scripts, tools or data files without explicit written permission.

- Make money with anything based on MCP (excluding Minecraft mods created by using MCP).

- Use MCP to create clients that are used for griefing or exploiting server bugs.

- Release the decompiled source code of Minecraft in any way.

 

 

 

 

Minecraft Forge Public Licence

==============================

 

Version 1.0

 

0. Definitions

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

 

Minecraft: Denotes a copy of the Minecraft game licensed by Mojang AB

 

User: Anybody that interract with the software in one of the following ways:

  - play

  - decompile

  - recompile or compile

  - modify

 

Minecraft Forge: The Minecraft Forge code, in source form, class file form, as

obtained in a standalone fashion or as part of a wider distribution.

 

Dependency: Code required to have Minecraft Forge working properly. That can

include dependencies required to compile the code as well as modifications in

the Minecraft sources that are required to have Minecraft Forge working.

 

1. Scope

--------

 

The present license is granted to any user of Minecraft Forge. As a

prerequisite, a user of Minecraft Forge must own a legally aquired copy of

Minecraft

 

2. Play rights

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

 

The user of Minecraft Forge is allowed to install the software on a client or

a server and to play it without restriction.

 

3. Modification rights

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

 

The user has the right to decompile the source code, look at either the

decompiled version or the original source code, and to modify it.

 

4. Derivation rights

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

 

The user has the rights to derive code from Minecraft Forge, that is to say to

write code that either extends Minecraft Forge class and interfaces,

instantiate the objects declared or calls the functions. This code is known as

"derived" code, and can be licensed with conditions different from Minecraft

Forge.

 

 

5. Distribution rights

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

 

The user of Minecraft Forge is allowed to redistribute Minecraft Forge in

partially, in totallity, or included in a distribution. When distributing

binaries or class files, the user must provide means to obtain the sources of

the distributed version of Minecraft Forge at no costs. This includes the

files as well as any dependency that the code may rely on, including patches to

minecraft original sources.

 

Modification of Minecraft Forge as well as dependencies, including patches to

minecraft original sources, has to remain under the terms of the present

license.

 

The right to distribute Minecraft Forge does not extend to the right to distribute

MCP data files included within Minecraft Forge. These are the property of the MCP

project and should be removed from any customized distribution of Minecraft Forge

or permission sought separately from the MCP team.

 

 

 

 

I find no prohibitions, could you tell me where can I find them? :S

Link to comment
Share on other sites

You can use forge to modify base classes, so your mod can be used with other mods.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

  • 2 weeks later...

So, right now im going to making all tutorials from the wiki(http://www.minecraftforge.net/wiki/Tutorials)

meanwhile, can you tell me better what i must to do for change the main menu in only one button with "join server" and auto connect?

(cause i searched in the web but i have not found anything about it, only Gui ingame menu(like inventory or smelting)... and i need to opening the server quickly)  :'(

PS about GuiOpenEvent i found only this: http://docs.larry1123.net/forge/net/minecraftforge/client/event/GuiOpenEvent.html

can you help me plz? Thanks a lot! =)

 

Link to comment
Share on other sites

Almost done :D

Just one thing, i have to edit this private method, but @Override not works(because method is private), how can i fix that problem?

I can't change in GuiMainMenu.java

 private void addSingleplayerMultiplayerButtons(int par1, int par2)

 

to public or protected, so how can i do that?

 

 
@Override
private void addSingleplayerMultiplayerButtons(int par1, int par2)
    {
        this.buttonList.add(new GuiButton(2, this.width / 2 - 100, par1 + par2 * 1, I18n.getString("This is a button!")));
        //If Minecraft Realms is enabled, halve the size of both buttons and set them next to eachother.
        fmlModButton = new GuiButton(6, this.width / 2 - 100, par1 + par2 * 2, "Mods");
        this.buttonList.add(fmlModButton);

        minecraftRealmsButton = new GuiButton(14, this.width / 2 - 100, par1 + par2 * 2, I18n.getString("menu.online"));
        minecraftRealmsButton.width = 98;
        minecraftRealmsButton.xPosition = this.width / 2 - 100;
        this.buttonList.add(minecraftRealmsButton);
        this.minecraftRealmsButton.drawButton = false;
    }

 

Eclipse say me:

The method addSingleplayerMultiplayerButtons(int, int) of type MyGuiMainMenu must override or implement a supertype method(already try to change default version of java IDE from 1.5 to 1.7)

 

Link to comment
Share on other sites

  • 10 months later...
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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