Jump to content

Modifying the GuiIngame class with a CoreMod


kirby2ig

Recommended Posts

I have a Minecraft jar mod that modifies the GuiIngame (btz) class and changes the position of the scoreboard on the screen. I used this tutorial with my own modified btz class.

http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571568-tutorial-1-6-2-changing-vanilla-without-editing

When i ran the game with the mod, I got this error.

[20:18:37] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:18:37] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:18:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[20:18:37] [main/INFO] [FML]: Forge Mod Loader version 8.99.174.1483 for Minecraft 1.8 loading
[20:18:37] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Users\Ben\Desktop\runtime\jre-x64\1.8.0_25
[20:18:37] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:18:37] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:18:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:18:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:18:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:18:38] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[20:18:38] [main/INFO] [FML]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
[20:18:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:18:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:18:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:18:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:18:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch net.minecraft.client.main.Main
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionSpec
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cbl
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cbm
[20:18:39] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionParser
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionException
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.MissingRequiredOptionException
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.AbstractOptionSpec
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionDescriptor
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.ArgumentAcceptingOptionSpec
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.AlternativeLongOptionSpec
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.NonOptionArgumentSpec
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.UnconfiguredOptionException
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.HelpFormatter
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.BuiltinHelpFormatter
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.internal.Rows
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.internal.AbbreviationMap
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionParserState
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionParserState$2
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionParserState$1
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.UnrecognizedOptionException
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.ValueConversionException
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.internal.ReflectionException
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionArgumentConversionException
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.ParserRules
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.IllegalOptionSpecificationException
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.NoArgumentOptionSpec
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionSpecBuilder
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.RequiredArgumentOptionSpec
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionalArgumentOptionSpec
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.OptionMissingRequiredArgumentException
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.internal.Reflection
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.ValueConverter
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.internal.Classes
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.internal.MethodInvokingValueConverter
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.internal.Objects
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch joptsimple.internal.ConstructorInvokingValueConverter
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch bsu
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch vn
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch wd
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch aqu
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch ard
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cen
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch net.minecraftforge.event.world.WorldEvent
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch net.minecraftforge.event.world.WorldEvent$Unload
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch ahd
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch xm
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch wv
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch ae
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cio
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cil
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cim
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cin
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cvk
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch btu
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch u
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch bxf
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch bvz
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch bub
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch bwx
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch bwy
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch bwa
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch ho
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch hg
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch id
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cvm
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cvi
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cvl
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch bra
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch tm
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cul
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cui
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch cuk
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:14]: Trying to patch btz
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:transform:16]: Patching btz
[20:18:39] [main/INFO] [sTDOUT]: [me.kirby2ig.scoreboard.ScoreboardAsmTransformer:patchClassInJar:38]: [scoreboardReposition]: Class btz patched!
[20:18:39] [main/ERROR] [LaunchWrapper]: Unable to launch
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiIngame
at net.minecraft.client.main.Main.main(SourceFile:40) ~[Main.class:?]
... 6 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.gui.GuiIngame
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_25]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_25]
at net.minecraft.client.main.Main.main(SourceFile:40) ~[Main.class:?]
... 6 more
Caused by: java.lang.NullPointerException
at org.objectweb.asm.Item.a(Unknown Source) ~[asm-all-5.0.3.jar:5.0.3]
at org.objectweb.asm.ClassWriter.newUTF8(Unknown Source) ~[asm-all-5.0.3.jar:5.0.3]
at org.objectweb.asm.MethodWriter.<init>(Unknown Source) ~[asm-all-5.0.3.jar:5.0.3]
at org.objectweb.asm.ClassWriter.visitMethod(Unknown Source) ~[asm-all-5.0.3.jar:5.0.3]
at org.objectweb.asm.ClassVisitor.visitMethod(Unknown Source) ~[asm-all-5.0.3.jar:5.0.3]
at net.minecraftforge.fml.common.asm.transformers.TerminalTransformer$ExitVisitor.visitMethod(TerminalTransformer.java:55) ~[forge-1.8-11.14.3.1483.jar:?]
at org.objectweb.asm.ClassReader.b(Unknown Source) ~[asm-all-5.0.3.jar:5.0.3]
at org.objectweb.asm.ClassReader.accept(Unknown Source) ~[asm-all-5.0.3.jar:5.0.3]
at org.objectweb.asm.ClassReader.accept(Unknown Source) ~[asm-all-5.0.3.jar:5.0.3]
at net.minecraftforge.fml.common.asm.transformers.TerminalTransformer.transform(TerminalTransformer.java:21) ~[forge-1.8-11.14.3.1483.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_25]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_25]
at net.minecraft.client.main.Main.main(SourceFile:40) ~[Main.class:?]
... 6 more
Exception in thread "main" [20:18:39] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException
[20:18:39] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:25)
[20:18:39] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at java.lang.SecurityManager.checkExit(SecurityManager.java:761)
[20:18:39] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at java.lang.Runtime.exit(Runtime.java:107)
[20:18:39] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at java.lang.System.exit(System.java:968)
[20:18:39] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)
[20:18:39] [main/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: 	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

Any advice?

Link to comment
Share on other sites

Jar modding is not supported as of very long ago (pre-1.6?)

 

Lookup Forge Events, particularly:

RenderGameOverlayEvent

 

Note: Mind that this event has phases - always choose a phase, otherwise code will run multiple times.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Actually, I have never written a mod that is not a jar mod (unless you count a Bukkit plugin as a mod). Maybe it is time for me to move over to Forge. The only time that I have ever used Forge was when I was playing Tekkit.

:o These are the Forge forums...

Maker of the Craft++ mod.

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.



×
×
  • Create New...

Important Information

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