Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi everyone,

 

So a couple of days ago i recompiled and deobfuscated my mod fine in the current version of forge that i have. (forge 9.10.0.804 and with that automatically comes the mcp installation)

 

So i made some changes after this and i wanted to test that aswell, but suddenly it gave errors (about 100) in the minecraft source saying the following:

symbol: class IconRegister
location: class BlockFenceGate (one of the many)
E:\McpFolders\Soul Forest Mod 1.6.2\forge\mcp\src\minecraft_server\net\minecraft\util\ChatMessageComponent.java:260: warning: non-varargs call of varargs method with inexact argument type for last parameter:
var7.append(StatCollector.translateToLocalFormatted(this.field_111090_h, var13));

cast to Object for a varargs call
cast to Object[] for a non-varargs call and to suppress this warning

// Well i am not sure what the last thing actually means but i don't want to go change 100 errors in the minecraft source...

 

If anyone knows what causes this and how to fix it please help.

 

Edit: the problem below is now fixed.

 

I also have a little problem with recompile addinformation "colours" i have found this: http://www.minecraftwiki.net/wiki/Formatting_codes

where the codes to get coloured information are listed, so i used that in eclipse whic looks something like:

par3List.add("§3Max Uses");

when recompiling that it says that it doesn't recognise the "§" as a symbol. So while it is sayd to be used and works in eclipse, it can't be recompiled. Any idea how to fix that?

Is there a list of colour codes as you discribe them

yeah, EnumChatFormating has a list

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

-hydroflame, author of the forge revolution-

Your error says that line

var7.append(StatCollector.translateToLocalFormatted(this.field_111090_h, var13));

has wrong arg.

From looking at StatCollector class, var13 should be an array of objects.

  • Author

Well, its not that i don't want to change errors and stuff but this is within minecraft classes which i did never change at all, i just get those when i have just installed forge along with mcp (fresh) and put my mod files in, when i recompile i get those errors...

@GotoLink, im pretty sure a single argument count for a method declared

 

public void myMethod(Object ... args){
    //hi link 
}

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

-hydroflame, author of the forge revolution-

@OwnAgePau

Maybe you are calling this method from somewhere, just saying.

 

@Hydroflame

It depends on your version of Java, actually. But I agree it should work this way.

It depends on your version of Java

oh ... the more i learn

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

-hydroflame, author of the forge revolution-

  • Author

So i am calling that method iconRegister and it comes up with an error in BlockFence? and BlockEnderChest?? If i were to call a method that would throw errors wouldn't that be in IconRegister.java ?

 

Edit:

 

@GotoLink

Well i tried recompiling the minecraft source without my mod, same errors.

right click minecraft project > property -> java compiler

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

-hydroflame, author of the forge revolution-

  • Author

I am not sure what this means : Use compliance from execution environment 'JavaSE-1.6' on 'Java Build Path'. Does that mean its still on java 1.6? and if so how would i change that to the newest version?

 

Edit:  i found where to change it and it now says 1.7, but it still shows these 100 errors.

uninstall 1.6 ...

and add 1.7 to your PATH

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

-hydroflame, author of the forge revolution-

yeah i meant add 1.7 on your PATH and remove 1.6 from it :)

1.6 and 1.7 i think have 2 very different install folder

 

linux or windows ?

 

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

-hydroflame, author of the forge revolution-

  • Author

Windows, and theres no 1.6 on my path anymore i think it got replaced automatically or something.

I tried finding any jdk or jre1.6 but i can't find any. If there are more then 2 installation folders (as i have program files and program files(86x) which both contain a Java folder with jdk1.7.0_17 and jre1.7, then i am not sure where these 1.6 folders would be located.

try uninstalling it from the construction pannel ? (or wtv the fuck its called in windows )

 

build panel?

control panel ?

construction panel?

admin panel ?

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

-hydroflame, author of the forge revolution-

  • Author

Well unfortunately theres only Java 7 Update 16, Java 7 Update 25, SE Dev kit 7 Update 17, Se Dev kit 7 Update 17 (64 bit) and SE Dev kit 7 Update 25(64 bit) to select from.

 

Edit: i am not sure if this has anything to do with it, but when i had this new forge and mcp setup i did recompiled and reobfuscated sucessfully once, but once i tried to run minecraft with my mod it wouldn't start. So i downloaded the newest JDK (which untill then was 1.6) and then i could run my minecraft, but now i can't recompile the source.

well idk, but if you want a solution thatll work for sure, delete all java, backup your source, reinstall forge (because i think it looks whats your current java version is at install time), reinstall java 7 ONLY and might as well grab the latest version of eclipse ("kepler" i think )

 

and recopy your code in the mcp/src/miencraft folder :P

 

 

beside that im out of idea xD

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

-hydroflame, author of the forge revolution-

  • Author

I have tried reinstalling forge, and immidiately after installing i tried decompiling but that didn't work when it tried recompiling the source it gave the same 100 errors. It has nothing to do with eclipse, but i have no clue on what could fix it... i need some serious help here.

did you first removed everything java related on yoru computer ?

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

-hydroflame, author of the forge revolution-

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.