Jump to content

ScarabCoder

Members
  • Posts

    24
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

ScarabCoder's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. So... The access token? The access token is used directly with Mojang's API to change things like the skin, while the client token is used to gain access to the access token as well as basic user info.
  2. Well, my fault for not looking long enough. That's what I'm looking for! Probably don't know, but is the Session.getToken() an access token or a client token?
  3. I'm having ideas for a mod which implements the Mojang API, but needs to be authenticated. In order to make an user requests to the API, I need the access token. Creating an access token cancels out any existing ones, including the current user's session, effectively logging them. Is there any way to simply use the existing one generated on launcher startup? It should be in Minecraft somewhere, I just don't know where.
  4. Thanks, that was a bit obvious. I guess they changed it back to sendMessage (used to be like that < 1.9)
  5. Hello, Rather a silly question, should be easy to answer though. Normally, to send a local chat message, I would use Minecraft.getMinecraft.thePlayer.addChatComponentMessage(). I realize that "thePlayer" was changed to "player", but "addChatComponentMessage()" no longer seems to exist. How is it done now? Thanks!
  6. Hello, I am trying to compile a mod with dependencies shaded into it, but when I try loading the compiled mod with Minecraft Forge it gives me an error with the method Minecraft.getMinecraft() not being found. I'm using the same version of Forge that I compiled with. Full stacktrace: MultiMC version: 0.4.11-751 Minecraft folder is: instances/1.9.2/minecraft Java path is: C:/ProgramData/Oracle/Java/javapath/java.exe Java Arguments: [-XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump, -Xms512m, -Xmx1024m, -Duser.language=en, -jar, C:/Users/owner/Documents/MultiMC/jars/NewLaunch.jar] Minecraft process ID: 27748 Using onesix launcher. Main Class: net.minecraft.launchwrapper.Launch Native path: C:/Users/owner/Documents/MultiMC/instances/1.9.2/natives Traits: [] Libraries: C:/Users/owner/Documents/MultiMC/libraries/com/mojang/netty/1.6/netty-1.6.jar C:/Users/owner/Documents/MultiMC/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar C:/Users/owner/Documents/MultiMC/libraries/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar C:/Users/owner/Documents/MultiMC/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar C:/Users/owner/Documents/MultiMC/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar C:/Users/owner/Documents/MultiMC/libraries/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar C:/Users/owner/Documents/MultiMC/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar C:/Users/owner/Documents/MultiMC/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar C:/Users/owner/Documents/MultiMC/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar C:/Users/owner/Documents/MultiMC/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar C:/Users/owner/Documents/MultiMC/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar C:/Users/owner/Documents/MultiMC/libraries/io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.jar C:/Users/owner/Documents/MultiMC/libraries/com/google/guava/guava/17.0/guava-17.0.jar C:/Users/owner/Documents/MultiMC/libraries/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar C:/Users/owner/Documents/MultiMC/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar C:/Users/owner/Documents/MultiMC/libraries/commons-codec/commons-codec/1.9/commons-codec-1.9.jar C:/Users/owner/Documents/MultiMC/libraries/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar C:/Users/owner/Documents/MultiMC/libraries/com/mojang/authlib/1.5.22/authlib-1.5.22.jar C:/Users/owner/Documents/MultiMC/libraries/com/mojang/realms/1.9.3/realms-1.9.3.jar C:/Users/owner/Documents/MultiMC/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar C:/Users/owner/Documents/MultiMC/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar C:/Users/owner/Documents/MultiMC/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar C:/Users/owner/Documents/MultiMC/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar C:/Users/owner/Documents/MultiMC/libraries/it/unimi/dsi/fastutil/7.0.12_mojang/fastutil-7.0.12_mojang.jar C:/Users/owner/Documents/MultiMC/libraries/org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.jar C:/Users/owner/Documents/MultiMC/libraries/org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.jar C:/Users/owner/Documents/MultiMC/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar C:/Users/owner/Documents/MultiMC/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar C:/Users/owner/Documents/MultiMC/libraries/org/lwjgl/lwjgl/lwjgl/2.9.1/lwjgl-2.9.1.jar C:/Users/owner/Documents/MultiMC/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.1/lwjgl_util-2.9.1.jar C:/Users/owner/Documents/MultiMC/libraries/net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar C:/Users/owner/Documents/MultiMC/libraries/java3d/vecmath/1.5.2/vecmath-1.5.2.jar C:/Users/owner/Documents/MultiMC/libraries/lzma/lzma/0.0.1/lzma-0.0.1.jar C:/Users/owner/Documents/MultiMC/libraries/org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar C:/Users/owner/Documents/MultiMC/libraries/org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar C:/Users/owner/Documents/MultiMC/libraries/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar C:/Users/owner/Documents/MultiMC/libraries/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar C:/Users/owner/Documents/MultiMC/libraries/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar C:/Users/owner/Documents/MultiMC/libraries/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar C:/Users/owner/Documents/MultiMC/libraries/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar C:/Users/owner/Documents/MultiMC/libraries/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar C:/Users/owner/Documents/MultiMC/libraries/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar C:/Users/owner/Documents/MultiMC/libraries/com/typesafe/config/1.2.1/config-1.2.1.jar C:/Users/owner/Documents/MultiMC/libraries/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar C:/Users/owner/Documents/MultiMC/libraries/jline/jline/2.13/jline-2.13.jar C:/Users/owner/Documents/MultiMC/libraries/org/ow2/asm/asm-all/5.0.3/asm-all-5.0.3.jar C:/Users/owner/Documents/MultiMC/libraries/net/minecraft/launchwrapper/1.12/launchwrapper-1.12.jar C:/Users/owner/Documents/MultiMC/libraries/net/minecraftforge/forge/1.10.2-12.18.0.2007-1.10.0/forge-1.10.2-12.18.0.2007-1.10.0-universal.jar C:/Users/owner/Documents/MultiMC/versions/1.10.2/1.10.2.jar Mods: sem-1.0 Params: [--username, <PROFILE NAME>, --version, MultiMC5, --gameDir, C:/Users/owner/Documents/MultiMC/instances/1.9.2/minecraft, --assetsDir, C:/Users/owner/Documents/MultiMC/assets, --assetIndex, 1.10, --uuid, <PROFILE ID>, --accessToken, <ACCESS TOKEN>, --userType, mojang, --versionType, Forge, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker] Window size: 854 x 480 Preparing native libraries... Extracting jinput-platform-2.0.5-natives-windows.jar Extracting lwjgl-platform-2.9.1-natives-windows.jar 2016-07-07 12:08:11,089 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [12:08:12] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:08:12] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:08:12] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [12:08:12] [main/INFO]: Forge Mod Loader version 12.18.0.2007 for Minecraft 1.10.2 loading [12:08:12] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_91, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_91 [12:08:12] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:08:12] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:08:12] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:08:12] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:08:12] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:08:15] [main/INFO]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557 [12:08:16] [main/INFO]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc [12:08:16] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:08:16] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:08:17] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [12:08:17] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [12:08:17] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-07-07 12:08:19,056 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-07 12:08:20,026 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [12:08:21] [Client thread/INFO]: Setting user: <PROFILE NAME> [12:08:29] [Client thread/INFO]: LWJGL Version: 2.9.1 [12:08:30] [Client thread/INFO]: [net.minecraftforge.fml.client.SplashProgress:start:219]: ---- Minecraft Crash Report ---- // Who set us up the TNT? Time: 7/7/16 12:08 PM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.10.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_91, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 471069784 bytes (449 MB) / 651165696 bytes (621 MB) up to 954728448 bytes (910 MB) JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms512m -Xmx1024m IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 362.00' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' [12:08:31] [Client thread/INFO]: MinecraftForge v12.18.0.2007 Initialized [12:08:31] [Client thread/INFO]: Replaced 233 ore recipes [12:08:31] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer [12:08:31] [Client thread/INFO]: Searching C:\Users\owner\Documents\MultiMC\instances\1.9.2\minecraft\mods for mods [12:08:34] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load [12:08:35] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, sem] at CLIENT [12:08:35] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, sem] at SERVER [12:08:36] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Beam Interactive, Faithful Full.zip [12:08:36] [Client thread/INFO]: Processing ObjectHolder annotations [12:08:36] [Client thread/INFO]: Found 423 ObjectHolder annotations [12:08:36] [Client thread/INFO]: Identifying ItemStackHolder annotations [12:08:36] [Client thread/INFO]: Found 0 ItemStackHolder annotations [12:08:36] [Client thread/INFO]: Configured a dormant chunk cache size of 0 [12:08:36] [Client thread/INFO]: Applying holder lookups [12:08:36] [Client thread/INFO]: Holder lookups applied [12:08:36] [Client thread/INFO]: Injecting itemstacks [12:08:36] [Client thread/INFO]: Itemstack injection complete [12:08:36] [Client thread/ERROR]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue [12:08:36] [Client thread/ERROR]: States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forge-1.10.2-12.18.0.2007-1.10.0-universal.jar) UCH Forge{12.18.0.2007} [Minecraft Forge] (forge-1.10.2-12.18.0.2007-1.10.0-universal.jar) UCE sem{1.0} [beam Interactive] (sem-1.0.jar) [12:08:36] [Client thread/ERROR]: The following problems were captured during this phase [12:08:36] [Forge Version Check/INFO]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [12:08:36] [Client thread/ERROR]: Caught exception from sem java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.getMinecraft()Lnet/minecraft/client/Minecraft; at com.scarabcoder.ereijan.Events.<init>(Events.java:34) ~[Events.class:?] at com.scarabcoder.ereijan.Main.preInit(Main.java:33) ~[Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:577) ~[forge-1.10.2-12.18.0.2007-1.10.0-universal.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:235) ~[forge-1.10.2-12.18.0.2007-1.10.0-universal.jar:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:213) ~[forge-1.10.2-12.18.0.2007-1.10.0-universal.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:593) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:255) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:439) [bcx.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:351) [bcx.class:?] at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] 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:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:310) [NewLaunch.jar:?] at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:395) [NewLaunch.jar:?] at org.multimc.EntryPoint.listen(EntryPoint.java:170) [NewLaunch.jar:?] at org.multimc.EntryPoint.main(EntryPoint.java:54) [NewLaunch.jar:?] [12:08:37] [Client thread/INFO]: [net.minecraft.init.Bootstrap:func_179870_a:560]: ---- Minecraft Crash Report ---- // Shall we play a game? Time: 7/7/16 12:08 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderException: java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.getMinecraft()Lnet/minecraft/client/Minecraft; at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:186) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:596) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:255) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:439) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:351) at net.minecraft.client.main.Main.main(SourceFile:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:310) at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:395) at org.multimc.EntryPoint.listen(EntryPoint.java:170) at org.multimc.EntryPoint.main(EntryPoint.java:54) Caused by: java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.getMinecraft()Lnet/minecraft/client/Minecraft; at com.scarabcoder.ereijan.Events.<init>(Events.java:34) at com.scarabcoder.ereijan.Main.preInit(Main.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:577) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:235) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:213) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:593) ... 18 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.10.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_91, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 358350288 bytes (341 MB) / 739246080 bytes (705 MB) up to 954728448 bytes (910 MB) JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms512m -Xmx1024m IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.32 Powered by Forge 12.18.0.2007 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forge-1.10.2-12.18.0.2007-1.10.0-universal.jar) UCH Forge{12.18.0.2007} [Minecraft Forge] (forge-1.10.2-12.18.0.2007-1.10.0-universal.jar) UCE sem{1.0} [beam Interactive] (sem-1.0.jar) Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 362.00' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' [12:08:37] [Client thread/INFO]: [net.minecraft.init.Bootstrap:func_179870_a:560]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\owner\Documents\MultiMC\instances\1.9.2\minecraft\crash-reports\crash-2016-07-07_12.08.37-client.txt Process exited with code -1. build.gradle, if relevant: // For those who want the bleeding edge buildscript { repositories { jcenter() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' repositories { maven { name = "beam" url = "https://maven.beam.pro/content/repositories/snapshots" } } /* // for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot plugins { id "net.minecraftforge.gradle.forge" version "2.0.2" } */ version = "1.0" group= "com.scarabcoder.ereijan" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "sem" minecraft { version = "1.10.2-12.18.0.2007-1.10.0" runDir = "run" // the mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not allways work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20160518" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. } configurations { shade compile.extendsFrom shade } dependencies { shade "pro.beam:api:1.10.1-SNAPSHOT" shade "pro.beam:interactive:1.5.1-SNAPSHOT" } processResources { // this will ensure that this task is redone when the versions change. inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' // replace version and mcversion expand 'version':project.version, 'mcversion':project.minecraft.version } // copy everything else, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } jar { configurations.shade.each { dep -> from(project.zipTree(dep)){ exclude 'META-INF', 'META-INF/**' } } } apply plugin: "java" targetCompatibility = "1.8" sourceCompatibility = "1.8" The part of events.java that is giving the error: package com.scarabcoder.ereijan; import java.awt.AWTException; import java.awt.Robot; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutionException; import org.apache.commons.io.FileUtils; import org.lwjgl.input.Keyboard; import com.scarabcoder.ereijan.gui.ControlPanel; import com.scarabcoder.ereijan.gui.GuiLogin; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiMainMenu; import net.minecraftforge.client.event.RenderGameOverlayEvent; import net.minecraftforge.fml.common.eventhandler.EventPriority; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.InputEvent.KeyInputEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; import pro.beam.api.BeamAPI; import pro.beam.interactive.net.packet.Protocol; import pro.beam.interactive.net.packet.Protocol.Report.TactileInfo; import pro.beam.interactive.robot.RobotBuilder; import scala.actors.threadpool.Arrays; public class Events { private int counter = 0; public Minecraft mc = Minecraft.getMinecraft();
  7. Oh my GOODNESS. Thank you so much! Didn't know it needed an alpha.
  8. Bump. drawRect is still not working. I've looked everywhere, no one knows why. It's not being drawn behind anything either.
  9. Sorry, I put it in initGui() temporarily when trying it in different methods. I put super.drawScreen() at the end of the method, but Draco18s says doing that will just draw the background over it.
  10. I tried moving super.drawScreen to be executed before I drawRect(), but it didn't work. Can you give me an example?
  11. My Gui class (contains my own API stuff): package com.scarabcoder.ereijan.gui; import java.io.IOException; import java.util.List; import org.lwjgl.opengl.GL11; import com.mojang.realmsclient.gui.ChatFormatting; import com.scarabcoder.ereijan.Main; import com.scarabcoder.ereijan.ScarabUtil.MPlayer; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.GuiTextField; public class GUIMineBook extends GuiScreen{ private GuiTextField text; MPlayer player; List<MPlayer> friends; List<MPlayer> friendRE; List<MPlayer> friendRS; public GUIMineBook(){ initVars(); } public void initGui() { this.text = new GuiTextField(1, this.fontRendererObj, this.width / 3, 25, this.width / 3 - 26, 20); text.setMaxStringLength(200); this.text.setFocused(false); this.buttonList.add(new GuiButton(1, this.width / 3 * 2 - 20, 25, 20, 20, ">")); this.buttonList.add(new GuiButton(2, this.width - (this.width / 6), 0, this.width / 6, 20, "Refresh")); this.buttonList.add(new GuiButton(3, 0, 0, this.width / 6, 20, "Back to Game")); this.drawRect(5, 5, 20, 20, 0xFFFFFF); } public void updateScreen() { super.updateScreen(); this.text.updateCursorCounter(); } public void initVars(){ this.player = Main.getMPlayer(); this.friends = player.getFriends(); this.friendRE = player.getFriendRequestManager().getFriendRequests(); this.friendRS = player.getFriendRequestManager().getSentFriendRequests(); } @Override public void drawScreen(int mouseX, int mouseY, float partialTicks){ this.drawBackground(0); this.text.drawTextBox(); this.drawCenteredString(fontRendererObj, ChatFormatting.BOLD + "MINEBOOK", this.width / 2, 10, 0x32CD32); this.drawCenteredString(fontRendererObj, "FRIEND REQUESTS", this.width / 7, 30, 0xFFFFFF); this.drawCenteredString(fontRendererObj, "FRIENDS", this.width - (this.width / 7), 30, 0xFFFFFF); this.drawHorizontalLine(0, this.width, 65, 0x111); super.drawScreen(mouseX, mouseY, partialTicks); } protected void mouseClicked(int x, int y, int btn) { try { super.mouseClicked(x, y, btn); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } this.text.mouseClicked(x, y, btn); } protected void keyTyped(char par1, int par2) { try { super.keyTyped(par1, par2); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } this.text.textboxKeyTyped(par1, par2); } }
  12. I'm trying to use the draw methods, but none of them seem to work. Nothing appears in the GUI besides what I already put there (buttons, text field, etc). Do I need to put it in a special method?
  13. I normally don't ask how to do something, but I've googled everywhere and asked tons of people to no avail. Could you give me an example of how to shade with gradle please? I would really appreciate it if you could. I've been working hours on this problem and (like I said) asked others. I would really like to know the answer to my problem.
×
×
  • Create New...

Important Information

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