ItsAMysteriousYT Posted July 21, 2015 Posted July 21, 2015 This method closes the game with a nullpointerexception - why? public void actionPerformed(GuiButton b) { switch (b.id) { case 0: RLMPlayerProps props = RLMPlayerProps.get(FMLClientHandler.instance().getClientPlayerEntity()); if(props!=null){ props.name=namefield.getText(); props.surname=surnamefield.getText(); mc.displayGuiScreen(new GuiGamestart()); }else { RLMPlayerProps.register(Minecraft.getMinecraft().thePlayer); return; } break; } confirmClicked(true, 0); } Quote
ItsAMysteriousYT Posted July 21, 2015 Author Posted July 21, 2015 Now it is in the other class: public static final void register(EntityPlayer player) { player.registerExtendedProperties(EXT_PROP_NAME, new RLMPlayerProps()); } i think the player is not initialised Quote
ItsAMysteriousYT Posted July 21, 2015 Author Posted July 21, 2015 Here is the Crash: [19:39:17] [main/INFO] [GradleStart]: Extra: [[email protected],password=l9WQEDJHfnos] [19:39:17] [main/INFO] [GradleStart]: Found and added coremod: api.player.forge.RenderPlayerAPIPlugin [19:39:17] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/MO/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, [email protected],password=l9WQEDJHfnos, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [19:39:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [19:39:18] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [19:39:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [19:39:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [19:39:18] [main/INFO] [FML]: Forge Mod Loader version 8.0.69.1354 for Minecraft 1.8 loading [19:39:18] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_51, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_51 [19:39:18] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [19:39:18] [main/INFO] [FML]: Found a command line coremod : api.player.forge.RenderPlayerAPIPlugin [19:39:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [19:39:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [19:39:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [19:39:18] [main/INFO] [GradleStart]: Injecting location in coremod api.player.forge.RenderPlayerAPIPlugin [19:39:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [19:39:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [19:39:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [19:39:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [19:39:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [19:39:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [19:39:18] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [19:39:20] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [19:39:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [19:39:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [19:39:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [19:39:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [19:39:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [19:39:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [19:39:20] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [19:39:21] [main/INFO] [sTDOUT]: [net.minecraft.client.main.Main:main:59]: Completely ignored arguments: [-email, [email protected],password=l9WQEDJHfnos] [19:39:21] [Client thread/INFO]: Setting user: Player771 [19:39:26] [Client thread/INFO]: LWJGL Version: 2.9.1 [19:39:27] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [19:39:27] [Client thread/INFO] [FML]: MinecraftForge v11.14.1.1354 Initialized [19:39:27] [Client thread/INFO] [FML]: Replaced 204 ore recipies [19:39:27] [Client thread/INFO] [FML]: Preloading CrashReport classes [19:39:27] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [19:39:27] [Client thread/WARN] [FML]: Enabling removal of erroring Entities - USE AT YOUR OWN RISK [19:39:27] [Client thread/INFO] [FML]: Searching D:\Programmieren\Real Life Mod-Update To 1.8\eclipse\mods for mods [19:39:32] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [19:39:32] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, RenderPlayerAPI, reallifemod] at CLIENT [19:39:32] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, RenderPlayerAPI, reallifemod] at SERVER [19:39:33] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Real Life Mod [19:39:34] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [19:39:34] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [19:39:34] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [19:39:35] [Client thread/INFO] [FML]: Applying holder lookups [19:39:35] [Client thread/INFO] [FML]: Holder lookups applied [19:39:35] [Client thread/INFO] [sTDOUT]: [tv.twitch.StandardCoreAPI:<init>:16]: If on Windows, make sure to provide all of the necessary dll's as specified in the twitchsdk README. Also, make sure to set the PATH environment variable to point to the directory containing the dll's. [19:39:35] [Client thread/ERROR]: Couldn't initialize twitch stream [19:39:35] [sound Library Loader/INFO]: Starting up SoundSystem... [19:39:35] [Thread-7/INFO]: Initializing LWJGL OpenAL [19:39:35] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [19:39:35] [Thread-7/INFO]: OpenAL initialized. [19:39:36] [sound Library Loader/INFO]: Sound engine started [19:39:39] [Client thread/INFO]: Created: 1024x1024 textures-atlas [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMTelevision#facing=north not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMTelevision#facing=east not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMTelevision#facing=south not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=east not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=east not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#inventory not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=west not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=north not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=south not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=east not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=south not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=north not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#inventory not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#inventory not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=west not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=west not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=north not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=south not found [19:39:40] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMTelevision#facing=west not found [19:39:41] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [19:39:41] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Real Life Mod [19:39:41] [Client thread/INFO]: SoundSystem shutting down... [19:39:42] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [19:39:42] [sound Library Loader/INFO]: Starting up SoundSystem... [19:39:42] [Thread-9/INFO]: Initializing LWJGL OpenAL [19:39:42] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [19:39:42] [Thread-9/INFO]: OpenAL initialized. [19:39:42] [sound Library Loader/INFO]: Sound engine started [19:39:44] [Client thread/INFO]: Created: 1024x1024 textures-atlas [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMTelevision#facing=north not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMTelevision#facing=east not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMTelevision#facing=south not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=east not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=east not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#inventory not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=west not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=north not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=south not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=east not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=south not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=north not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#inventory not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#inventory not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=west not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=west not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=north not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=south not found [19:39:45] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMTelevision#facing=west not found [19:41:09] [Client thread/FATAL]: Reported exception thrown! net.minecraft.util.ReportedException: Updating screen events at net.minecraft.client.Minecraft.runTick(Minecraft.java:1766) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1080) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:376) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: java.lang.NullPointerException at itsamysterious.mods.reallifemod.core.lifesystem.RLMPlayerProps.register(RLMPlayerProps.java:32) ~[RLMPlayerProps.class:?] at itsamysterious.mods.reallifemod.core.gui.GuiModInit.actionPerformed(GuiModInit.java:96) ~[GuiModInit.class:?] at itsamysterious.mods.reallifemod.core.gui.GuiModInit.keyTyped(GuiModInit.java:118) ~[GuiModInit.class:?] at net.minecraft.client.gui.GuiScreen.handleKeyboardInput(GuiScreen.java:628) ~[GuiScreen.class:?] at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:579) ~[GuiScreen.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1752) ~[Minecraft.class:?] ... 11 more [19:41:09] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:660]: ---- Minecraft Crash Report ---- // Ouch. That hurt Time: 21.07.15 19:41 Description: Updating screen events java.lang.NullPointerException: Updating screen events at itsamysterious.mods.reallifemod.core.lifesystem.RLMPlayerProps.register(RLMPlayerProps.java:32) at itsamysterious.mods.reallifemod.core.gui.GuiModInit.actionPerformed(GuiModInit.java:96) at itsamysterious.mods.reallifemod.core.gui.GuiModInit.keyTyped(GuiModInit.java:118) at net.minecraft.client.gui.GuiScreen.handleKeyboardInput(GuiScreen.java:628) at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:579) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1752) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1080) at net.minecraft.client.Minecraft.run(Minecraft.java:376) at net.minecraft.client.main.Main.main(Main.java:117) 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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at itsamysterious.mods.reallifemod.core.lifesystem.RLMPlayerProps.register(RLMPlayerProps.java:32) at itsamysterious.mods.reallifemod.core.gui.GuiModInit.actionPerformed(GuiModInit.java:96) at itsamysterious.mods.reallifemod.core.gui.GuiModInit.keyTyped(GuiModInit.java:118) at net.minecraft.client.gui.GuiScreen.handleKeyboardInput(GuiScreen.java:628) at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:579) -- Affected screen -- Details: Screen name: itsamysterious.mods.reallifemod.core.gui.GuiModInit Stacktrace: at net.minecraft.client.Minecraft.runTick(Minecraft.java:1752) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1080) at net.minecraft.client.Minecraft.run(Minecraft.java:376) at net.minecraft.client.main.Main.main(Main.java:117) 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 net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 851567648 bytes (812 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.10 FML v8.0.69.1354 Minecraft Forge 11.14.1.1354 5 mods loaded, 5 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available FML{8.0.69.1354} [Forge Mod Loader] (forgeSrc-1.8-11.14.1.1354.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available Forge{11.14.1.1354} [Minecraft Forge] (forgeSrc-1.8-11.14.1.1354.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available RenderPlayerAPI{1.4} [Render Player API] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available reallifemod{0.32} [Real Life Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available Loaded coremods (and transformers): RenderPlayerAPIPlugin (RenderPlayerAPI-1.8-1.4.jar) api.player.forge.RenderPlayerAPITransformer Launched Version: 1.8 LWJGL: 2.9.1 OpenGL: GeForce GTX 760/PCIe/SSE2 GL version 4.5.0 NVIDIA 352.86, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (UK) Profiler Position: N/A (disabled) [19:41:09] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:660]: #@!@# Game crashed! Crash report saved to: #@!@# D:\Programmieren\Real Life Mod-Update To 1.8\eclipse\.\crash-reports\crash-2015-07-21_19.41.09-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release Quote
larsgerrits Posted July 21, 2015 Posted July 21, 2015 Don't register the IExtendedEntityProperties every time you click a button. Register it once and get it every time you need it. Here's a tutorial by coolAlias. Quote 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/
Recommended Posts
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.