Jump to content

Recommended Posts

Posted

Im trying to change some IEEP from a GuiScreen that pops up as soon as the player is spawned in the world. In that Gui, he has to set his name and gender and now i wanna aplly these variables to the EntityProperties. Im trying to do this with packethandling, but it won't work properly.

In the ActionPerformed method i make this:

 

 

@Override

public void actionPerformed(GuiButton b) {

if (b.id == 0) {

if (!(namefield.getText().equals("")) && !(surnamefield.getText().equals(""))&&this.genderGroup.getSelectedbutton()!=null) {

if (RLMPlayerProps.get(Minecraft.getMinecraft().thePlayer) != null) {

RealLifeMod.network.sendToServer(new SetPropertiesPackage(namefield.getText(), surnamefield.getText(), genderGroup.getSelectedbutton().getText()));

}

this.mc.displayGuiScreen(new GuiGamestart());

} else

ErrorMessage = "Please fill both fields!";

}

}

 

 

Posted

Here is my SetProperties Packet:

 

 

package itsamysterious.mods.reallifemod.core.packets;

 

import io.netty.buffer.ByteBuf;

import itsamysterious.mods.reallifemod.core.lifesystem.RLMPlayerProps;

import net.minecraftforge.fml.common.network.ByteBufUtils;

import net.minecraftforge.fml.common.network.simpleimpl.IMessage;

 

public class SetPropertiesPackage implements IMessage{

public String gender;

public String name;

public String surname;

 

protected SetPropertiesPackage(){

 

}

 

public SetPropertiesPackage(String name, String surname, String gender) {

this();

this.name = name;

this.surname = surname;

this.gender = gender;

}

 

@Override

public void fromBytes(ByteBuf buf) {

name = ByteBufUtils.readUTF8String(buf);

surname = ByteBufUtils.readUTF8String(buf);

gender = ByteBufUtils.readUTF8String(buf);

 

}

 

@Override

public void toBytes(ByteBuf buf) {

        ByteBufUtils.writeUTF8String(buf, name);

        ByteBufUtils.writeUTF8String(buf, surname);

        ByteBufUtils.writeUTF8String(buf, gender);

 

 

}

 

}

 

 

 

 

And this is my PacketHandler:

 

 

package itsamysterious.mods.reallifemod.core.packets;

 

import itsamysterious.mods.reallifemod.core.lifesystem.RLMPlayerProps;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.util.IThreadListener;

import net.minecraft.world.World;

import net.minecraft.world.WorldServer;

import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;

import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;

 

public class PacketHandler implements IMessageHandler<SetPropertiesPackage, SetPropertiesPackage>{

 

public PacketHandler() {

super();

}

 

@Override

public SetPropertiesPackage onMessage(final SetPropertiesPackage message, MessageContext ctx) {

final EntityPlayer player = ctx.getServerHandler().playerEntity;

        IThreadListener mainThread = (WorldServer) ctx.getServerHandler().playerEntity.worldObj; // or Minecraft.getMinecraft() on the client

        mainThread.addScheduledTask(

        new Runnable() {

            @Override

            public void run() {

            RLMPlayerProps.get(player).name=message.name;

            RLMPlayerProps.get(player).surname=message.surname;

            RLMPlayerProps.get(player).gender=message.gender;

 

            }

        });

return null;

}

 

 

}

 

 

 

Posted

Did you register the packet?

 

Have you put a print statement on the receiving side to see if it arrives and what it says for the variables when it does?

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

Put a print statement in the packet handler and see what it says there.

 

Right after 'public void run() {'

 

 

Also what you just said made me think of something.  You are sending your information to the server to update extended properties for the player.  Then you are looking in your GUI and seeing it is null, null.  Where are you sending the updated extended properties from the server back to the client?

 

 

 

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

1. You don't need to call this() in constructor (unless it does domething, which it doesn't).

 

2. Same goes for super() - empty constructors don't need it ;_;

 

3. Hint: Don't access same data multiple times - get RLMPlayerProps ONCE, then use instance.

 

4. Finally after simple fixes:

but it won't work properly.

 

What exacly? What can be wrong:

When sending packet: you are passing null/empty strings. (most likely)

When receiving packet: your #get is not working correctly.

 

 

5. Tip: Make server close player's start-game gui, only after name/surname are correct. (packet might not arrive or data might be "bad").

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

Posted

Put a print statement in the packet handler and see what it says there.

 

Right after 'public void run() {'

 

 

Also what you just said made me think of something.  You are sending your information to the server to update extended properties for the player.  Then you are looking in your GUI and seeing it is null, null.  Where are you sending the updated extended properties from the server back to the client?

 

Okay wait, i think i ned a closer explanation for how i need to use those packets. Why send them to server and then to client? Why i cant do sendToAll,cuz that does not work too.

Posted

Okay i made the constructor public and also added a print statement. Nothing chaned. Once i closed the gui, minecraft freezes and the error is shown. Also name+Surname still is null,null.

This is the error i get:

 

 

[16:18:09] [main/INFO] [GradleStart]: username: ItsAMysterious

[16:18:09] [main/INFO] [GradleStart]: Extra: []

[16:18:09] [main/INFO] [GradleStart]: Found and added coremod: api.player.forge.RenderPlayerAPIPlugin

[16:18:09] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/MO/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --username, ItsAMysterious, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]

[16:18:09] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[16:18:09] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[16:18:09] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[16:18:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[16:18:10] [main/INFO] [FML]: Forge Mod Loader version 8.0.69.1354 for Minecraft 1.8 loading

[16:18:10] [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

[16:18:10] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[16:18:10] [main/INFO] [FML]: Found a command line coremod : api.player.forge.RenderPlayerAPIPlugin

[16:18:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[16:18:10] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[16:18:10] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[16:18:10] [main/INFO] [GradleStart]: Injecting location in coremod api.player.forge.RenderPlayerAPIPlugin

[16:18:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:18:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[16:18:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[16:18:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:18:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:18:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[16:18:11] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[16:18:13] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[16:18:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[16:18:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[16:18:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[16:18:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[16:18:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[16:18:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[16:18:14] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[16:18:20] [Client thread/INFO]: Setting user: ItsAMysterious

[16:18:35] [Client thread/INFO]: LWJGL Version: 2.9.1

[16:18:49] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[16:18:49] [Client thread/INFO] [FML]: MinecraftForge v11.14.1.1354 Initialized

[16:18:50] [Client thread/INFO] [FML]: Replaced 204 ore recipies

[16:18:50] [Client thread/INFO] [FML]: Preloading CrashReport classes

[16:18:51] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[16:18:53] [Client thread/WARN] [FML]: Enabling removal of erroring Entities - USE AT YOUR OWN RISK

[16:18:53] [Client thread/INFO] [FML]: Searching D:\Programmieren\Real Life Mod-Update To 1.8\eclipse\mods for mods

[16:19:08] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[16:19:09] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, RenderPlayerAPI, reallifemod] at CLIENT

[16:19:09] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, RenderPlayerAPI, reallifemod] at SERVER

[16:19:10] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Real Life Mod

[16:19:12] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[16:19:12] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[16:19:12] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[16:19:12] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.RealLifeMod:loadVehicles:140]: D:\Programmieren\Real Life Mod-Update To 1.8\eclipse\.\RLM\vehicles

[16:19:12] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.core.vehicles.VehicleFile:loadFromFile:50]: The maxSpeed has been set to:100

[16:19:12] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.core.vehicles.VehicleFile:loadFromFile:55]: The reverseSpeed has been set to:20

[16:19:12] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.core.vehicles.VehicleFile:loadFromFile:60]:  0,0.5,0

[16:19:21] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.core.vehicles.Vehicles:addVehicle:22]: Succesfully loaded lamborghini!

[16:19:21] [Client thread/INFO] [FML]: Applying holder lookups

[16:19:21] [Client thread/INFO] [FML]: Holder lookups applied

[16:19:26] [sound Library Loader/INFO]: Starting up SoundSystem...

[16:19:26] [Thread-6/INFO]: Initializing LWJGL OpenAL

[16:19:26] [Thread-6/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[16:19:27] [Thread-6/INFO]: OpenAL initialized.

[16:19:27] [sound Library Loader/INFO]: Sound engine started

[16:20:00] [Client thread/INFO]: Created: 512x512 textures-atlas

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=east not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=east not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#inventory not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=west not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=north not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=south not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=east not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=south not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:item.lamborghini#inventory not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=north not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#inventory not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#inventory not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=west not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=west not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=north not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=south not found

[16:20:00] [Client thread/ERROR] [FML]: Model definition for location reallifemod:blockparquet#inventory not found

[16:20:01] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.RealLifeMod:loadCoreModules:132]: Reflected:private final java.util.List net.minecraft.client.Minecraft.defaultResourcePacks

[16:20:02] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods

[16:20:02] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Real Life Mod

[16:20:02] [Client thread/INFO]: SoundSystem shutting down...

[16:20:02] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[16:20:02] [sound Library Loader/INFO]: Starting up SoundSystem...

[16:20:03] [Thread-8/INFO]: Initializing LWJGL OpenAL

[16:20:03] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[16:20:03] [Thread-8/INFO]: OpenAL initialized.

[16:20:03] [sound Library Loader/INFO]: Sound engine started

[16:20:05] [Client thread/INFO]: Created: 512x512 textures-atlas

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=east not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=east not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#inventory not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=west not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=north not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=south not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=east not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=south not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:item.lamborghini#inventory not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=north not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#inventory not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#inventory not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=west not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMToilet#facing=west not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:Computer#facing=north not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:RLMDrawer#facing=south not found

[16:20:05] [Client thread/ERROR] [FML]: Model definition for location reallifemod:blockparquet#inventory not found

[16:20:23] [server thread/INFO]: Starting integrated minecraft server version 1.8

[16:20:23] [server thread/INFO]: Generating keypair

[16:20:23] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[16:20:24] [server thread/INFO] [FML]: Applying holder lookups

[16:20:24] [server thread/INFO] [FML]: Holder lookups applied

[16:20:24] [server thread/INFO] [FML]: Loading dimension 0 (AutoTest) (net.minecraft.server.integrated.IntegratedServer@3d490d2d)

[16:20:24] [server thread/INFO] [FML]: Loading dimension 1 (AutoTest) (net.minecraft.server.integrated.IntegratedServer@3d490d2d)

[16:20:24] [server thread/INFO] [FML]: Loading dimension -1 (AutoTest) (net.minecraft.server.integrated.IntegratedServer@3d490d2d)

[16:20:24] [server thread/INFO]: Preparing start region for level 0

[16:20:24] [server thread/INFO]: Changing view distance to 5, from 10

[16:20:25] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2

[16:20:25] [Netty Server IO #1/INFO] [FML]: Client protocol version 2

[16:20:26] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]

[16:20:26] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[16:20:26] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[16:20:26] [server thread/INFO]: ItsAMysterious[local:E:b3efd4c6] logged in with entity id 91 at (-701.8785627668838, 7.8938101136171035, -599.3323428659495)

[16:20:26] [server thread/INFO]: ItsAMysterious joined the game

[16:20:30] [server thread/INFO]: Saving and pausing game...

[16:20:30] [server thread/INFO]: Saving chunks for level 'AutoTest'/Overworld

[16:20:30] [server thread/INFO]: Saving chunks for level 'AutoTest'/Nether

[16:20:30] [server thread/INFO]: Saving chunks for level 'AutoTest'/The End

[16:20:34] [Netty Server IO #1/ERROR] [FML]: FMLIndexedMessageCodec exception caught

io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel reallifemod

at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:4.0.15.Final]

at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:338) [DefaultChannelHandlerContext.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:324) [DefaultChannelHandlerContext.class:4.0.15.Final]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:4.0.15.Final]

at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:4.0.15.Final]

at net.minecraftforge.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:88) [FMLProxyPacket.class:?]

at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:144) [NetworkManager.class:?]

at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:469) [NetworkManager.class:?]

at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:103) [simpleChannelInboundHandler.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:338) [DefaultChannelHandlerContext.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:324) [DefaultChannelHandlerContext.class:4.0.15.Final]

at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleServerSideCustomPacket(NetworkDispatcher.java:412) [NetworkDispatcher.class:?]

at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:240) [NetworkDispatcher.class:?]

at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:50) [NetworkDispatcher.class:?]

at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:103) [simpleChannelInboundHandler.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:338) [DefaultChannelHandlerContext.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:324) [DefaultChannelHandlerContext.class:4.0.15.Final]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:4.0.15.Final]

at io.netty.channel.local.LocalChannel.finishPeerRead(LocalChannel.java:312) [LocalChannel.class:4.0.15.Final]

at io.netty.channel.local.LocalChannel.access$400(LocalChannel.java:44) [LocalChannel.class:4.0.15.Final]

at io.netty.channel.local.LocalChannel$6.run(LocalChannel.java:298) [LocalChannel$6.class:4.0.15.Final]

at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354) [singleThreadEventExecutor.class:4.0.15.Final]

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353) [NioEventLoop.class:4.0.15.Final]

at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [singleThreadEventExecutor$2.class:4.0.15.Final]

at java.lang.Thread.run(Unknown Source) [?:1.8.0_51]

Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel reallifemod

at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:77) ~[FMLIndexedMessageToMessageCodec.class:?]

at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:21) ~[FMLIndexedMessageToMessageCodec.class:?]

at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:4.0.15.Final]

at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:4.0.15.Final]

... 25 more

[16:20:34] [Netty Server IO #1/ERROR] [FML]: There was a critical exception handling a packet on channel reallifemod

io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Undefined message for discriminator 0 in channel reallifemod

at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:4.0.15.Final]

at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:338) ~[DefaultChannelHandlerContext.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:324) ~[DefaultChannelHandlerContext.class:4.0.15.Final]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:4.0.15.Final]

at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:4.0.15.Final]

at net.minecraftforge.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:88) [FMLProxyPacket.class:?]

at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:144) [NetworkManager.class:?]

at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:469) [NetworkManager.class:?]

at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:103) [simpleChannelInboundHandler.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:338) [DefaultChannelHandlerContext.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:324) [DefaultChannelHandlerContext.class:4.0.15.Final]

at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleServerSideCustomPacket(NetworkDispatcher.java:412) [NetworkDispatcher.class:?]

at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:240) [NetworkDispatcher.class:?]

at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:50) [NetworkDispatcher.class:?]

at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:103) [simpleChannelInboundHandler.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:338) [DefaultChannelHandlerContext.class:4.0.15.Final]

at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:324) [DefaultChannelHandlerContext.class:4.0.15.Final]

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:4.0.15.Final]

at io.netty.channel.local.LocalChannel.finishPeerRead(LocalChannel.java:312) [LocalChannel.class:4.0.15.Final]

at io.netty.channel.local.LocalChannel.access$400(LocalChannel.java:44) [LocalChannel.class:4.0.15.Final]

at io.netty.channel.local.LocalChannel$6.run(LocalChannel.java:298) [LocalChannel$6.class:4.0.15.Final]

at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354) [singleThreadEventExecutor.class:4.0.15.Final]

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353) [NioEventLoop.class:4.0.15.Final]

at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [singleThreadEventExecutor$2.class:4.0.15.Final]

at java.lang.Thread.run(Unknown Source) [?:1.8.0_51]

Caused by: java.lang.NullPointerException: Undefined message for discriminator 0 in channel reallifemod

at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:77) ~[FMLIndexedMessageToMessageCodec.class:?]

at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:21) ~[FMLIndexedMessageToMessageCodec.class:?]

at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:4.0.15.Final]

at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:4.0.15.Final]

... 25 more

[16:20:35] [server thread/INFO]: ItsAMysterious lost connection: TextComponent{text='A fatal error has occured, this connection is terminated', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}

[16:20:35] [server thread/INFO]: ItsAMysterious left the game

[16:20:35] [server thread/INFO]: Stopping singleplayer server as player logged out

[16:20:35] [server thread/INFO]: Stopping server

[16:20:35] [server thread/INFO]: Saving players

[16:20:35] [server thread/INFO]: Saving worlds

[16:20:35] [server thread/INFO]: Saving chunks for level 'AutoTest'/Overworld

[16:20:36] [server thread/INFO]: Saving chunks for level 'AutoTest'/Nether

[16:20:36] [server thread/INFO]: Saving chunks for level 'AutoTest'/The End

[16:20:36] [server thread/INFO] [FML]: Unloading dimension 0

[16:20:36] [server thread/INFO] [FML]: Unloading dimension -1

[16:20:36] [server thread/INFO] [FML]: Unloading dimension 1

[16:20:36] [server thread/INFO] [FML]: Applying holder lookups

[16:20:36] [server thread/INFO] [FML]: Holder lookups applied

 

 

 

Posted

In the MainClass :

@EventHandler

public void preInit(FMLPreInitializationEvent event) {

MinecraftForge.EVENT_BUS.register(proxy);

FMLCommonHandler.instance().bus().register(new ClientTickHandler());

FMLCommonHandler.instance().bus().register(new ServerTickHandler());

RealLifeMod_Blocks.defineBlocks();

RealLifeMod_Items.defineItems();

proxy.setupCrafting();

loadVehicles();

config = new Configuration(event.getSuggestedConfigurationFile());

RealLifeModConfig.syncConfig();

network = NetworkRegistry.INSTANCE.newSimpleChannel(Reference.ID);

}

Posted

In the MainClass :

@EventHandler

public void preInit(FMLPreInitializationEvent event) {

MinecraftForge.EVENT_BUS.register(proxy);

FMLCommonHandler.instance().bus().register(new ClientTickHandler());

FMLCommonHandler.instance().bus().register(new ServerTickHandler());

RealLifeMod_Blocks.defineBlocks();

RealLifeMod_Items.defineItems();

proxy.setupCrafting();

loadVehicles();

config = new Configuration(event.getSuggestedConfigurationFile());

RealLifeModConfig.syncConfig();

network = NetworkRegistry.INSTANCE.newSimpleChannel(Reference.ID);

}

 

Show where you register your packet.

 

Soooo, where?

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

Posted

Scroll up to what I told you earlier.

 

How are you determining if they impact the IEEP.

 

You described sending the packet to the server, inputing into IEEP serverside, then looking on the client IEEP version to see if data was there. 

 

You have to update the client IEEP from the server, when it is changed.

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

On your computer, open a program to interface the world wide web.  Sometimes this is called Internet Explore, Chrome, or Mozilla, but go with your own preference.

 

Find a search page.  Google is nice.  Perhaps Yahoo if you are old school.

 

In the search window, type in 'Minecraft Forge Packet' or 'Minecraft Forge Packet Tutorial'.  Read them.  diesieben07 has a pretty good one out there thought it assumes you know things you might not.  The others will fill in the gap.

 

You could also go to the tutorial section of this forum and look.

 

 

One you have put forth that level of effort, you will know what to do.  If you struggle, post your code, and errors and ask for help.

 

You could also search this forum for people talking about it.  It is entirely possible that I have posted the exact answer to your question somewhere else.

 

 

Lastly, "like how?  How can I access the client?"  What?  your entire post here is about using a packet to go from the client to the server.  You don't know how to go in reverse?

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

There is no method sendToClient, its just a method sendToAll, sendTo and sendToServer. Do i just have to use Minecraft.getMinecraft for it? I would register a Packet to the ClientSide now and then try sending it with the PacketHandler after i set the props on server.

Posted

oh... ill try that also i fixed some stuff with saving the properties. i now save them like this:

 

 

@Override

public void saveNBTData(NBTTagCompound compound) {

NBTTagCompound properties = new NBTTagCompound();

properties.setDouble("WATER", water);

properties.setDouble("TOILET", toilet);

properties.setFloat("MONEY", money);

properties.setString("NAME", name);

properties.setString("SURNAME", surname);

properties.setDouble("ENERGIE", energy);

properties.setBoolean("GUISHOWN", shownGui);

properties.setString("GENDER", gender);

compound.setTag(EXT_PROP_NAME, properties);

}

 

@Override

public void loadNBTData(NBTTagCompound compound) {

NBTTagCompound theTag = compound.getCompoundTag(EXT_PROP_NAME);

water = theTag.getDouble("WATER");

toilet = theTag.getDouble("TOILET");

money = theTag.getFloat("MONEY");

name = theTag.getString("NAME");

surname = theTag.getString("SURNAME");

energy = theTag.getDouble("ENERGIE");

shownGui = theTag.getBoolean("GUISHOWN");

gender = theTag.getString("GENDER");

}

 

 

 

ANd not like this:

 

 

@Override

public void saveNBTData(NBTTagCompound compound) {

NBTTagCompound theTag = new NBTTagCompound();

compound.setTag(EXT_PROP_NAME, theTag);

if (player != null) {

theTag.setDouble("WATER", water);

theTag.setDouble("TOILET", toilet);

theTag.setFloat("MONEY", money);

theTag.setString("NAME", name);

theTag.setString("SURNAME", surname);

theTag.setDouble("ENERGIE", energy);

theTag.setBoolean("GUISHOWN", shownGui);

theTag.setString("GENDER", gender);

player.writeEntityToNBT(compound);

}

}

 

@Override

public void loadNBTData(NBTTagCompound compound) {

NBTTagCompound theTag = compound.getCompoundTag(EXT_PROP_NAME);

if (player != null) {

water = theTag.getDouble("WATER");

toilet = theTag.getDouble("TOILET");

money = theTag.getFloat("MONEY");

name = theTag.getString("NAME");

surname = theTag.getString("SURNAME");

energy = theTag.getDouble("ENERGIE");

shownGui=theTag.getBoolean("GUISHOWN");

gender=theTag.getString("GENDER");

}

}

 

 

 

Posted

Okay, i created a PropertiesSetPackage now which is being send from the run() method in the packethandler. The message looks like this:

 

 

package itsamysterious.mods.reallifemod.core.packets;

 

import io.netty.buffer.ByteBuf;

import itsamysterious.mods.reallifemod.core.lifesystem.RLMPlayerProps;

import net.minecraft.client.Minecraft;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraftforge.fml.common.network.simpleimpl.IMessage;

import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;

import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;

 

public class PropertiesSetPackage implements IMessage{

public RLMPlayerProps theprops;

public PropertiesSetPackage() {

}

 

public PropertiesSetPackage(RLMPlayerProps props){

this.theprops=props;

}

 

@Override

public void fromBytes(ByteBuf buf) {

}

 

@Override

public void toBytes(ByteBuf buf) {

}

 

 

public class PacketHandlerPropsSet implements IMessageHandler<PropertiesSetPackage, PropertiesSetPackage>{

 

@Override

public PropertiesSetPackage onMessage(PropertiesSetPackage message, MessageContext ctx) {

EntityPlayer p=Minecraft.getMinecraft().thePlayer;

RLMPlayerProps props = RLMPlayerProps.get(p);

RLMPlayerProps mprops=message.theprops;

props.name=mprops.name;

props.surname=mprops.surname;

props.gender=mprops.gender;

 

return null;

}

 

}

}

 

 

I registered the message to the Client side.

Posted

And i get this error:

 

 

[15:40:10] [main/INFO] [GradleStart]: username: ItsAMysterious

[15:40:10] [main/INFO] [GradleStart]: Extra: []

[15:40:10] [main/INFO] [GradleStart]: Found and added coremod: api.player.forge.RenderPlayerAPIPlugin

[15:40:10] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/MO/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --username, ItsAMysterious, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]

[15:40:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[15:40:10] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[15:40:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[15:40:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[15:40:10] [main/INFO] [FML]: Forge Mod Loader version 8.0.69.1354 for Minecraft 1.8 loading

[15:40:10] [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

[15:40:10] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[15:40:10] [main/INFO] [FML]: Found a command line coremod : api.player.forge.RenderPlayerAPIPlugin

[15:40:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[15:40:10] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[15:40:10] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[15:40:10] [main/INFO] [GradleStart]: Injecting location in coremod api.player.forge.RenderPlayerAPIPlugin

[15:40:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:40:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[15:40:10] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[15:40:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:40:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:40:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[15:40:10] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[15:40:14] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[15:40:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[15:40:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[15:40:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[15:40:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[15:40:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[15:40:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[15:40:14] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[15:40:16] [Client thread/INFO]: Setting user: ItsAMysterious

[15:40:22] [Client thread/INFO]: LWJGL Version: 2.9.1

[15:40:29] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[15:40:29] [Client thread/INFO] [FML]: MinecraftForge v11.14.1.1354 Initialized

[15:40:29] [Client thread/INFO] [FML]: Replaced 204 ore recipies

[15:40:29] [Client thread/INFO] [FML]: Preloading CrashReport classes

[15:40:30] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[15:40:30] [Client thread/WARN] [FML]: Enabling removal of erroring Entities - USE AT YOUR OWN RISK

[15:40:30] [Client thread/INFO] [FML]: Searching D:\Programmieren\Real Life Mod-Update To 1.8\eclipse\mods for mods

[15:40:36] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[15:40:37] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, RenderPlayerAPI, reallifemod] at CLIENT

[15:40:37] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, RenderPlayerAPI, reallifemod] at SERVER

[15:40:37] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Real Life Mod

[15:40:38] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[15:40:38] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[15:40:38] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[15:40:38] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.RealLifeMod:loadVehicles:146]: D:\Programmieren\Real Life Mod-Update To 1.8\eclipse\.\RLM\vehicles

[15:40:38] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.core.vehicles.VehicleFile:loadFromFile:50]: The maxSpeed has been set to:100

[15:40:38] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.core.vehicles.VehicleFile:loadFromFile:55]: The reverseSpeed has been set to:20

[15:40:38] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.core.vehicles.VehicleFile:loadFromFile:60]:  0,0.5,0

[15:40:43] [Client thread/INFO] [sTDOUT]: [itsamysterious.mods.reallifemod.core.vehicles.Vehicles:addVehicle:22]: Succesfully loaded lamborghini!

[15:40:43] [Client thread/INFO] [FML]: Applying holder lookups

[15:40:43] [Client thread/INFO] [FML]: Holder lookups applied

[15:40:43] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue

[15:40:43] [Client thread/ERROR] [FML]:

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{8.0.69.1354} [Forge Mod Loader] (forgeSrc-1.8-11.14.1.1354.jar) Unloaded->Constructed->Pre-initialized

Forge{11.14.1.1354} [Minecraft Forge] (forgeSrc-1.8-11.14.1.1354.jar) Unloaded->Constructed->Pre-initialized

RenderPlayerAPI{1.4} [Render Player API] (minecraft.jar) Unloaded->Constructed->Pre-initialized

reallifemod{0.32} [Real Life Mod] (bin) Unloaded->Constructed->Errored

[15:40:43] [Client thread/ERROR] [FML]: The following problems were captured during this phase

[15:40:43] [Client thread/ERROR] [FML]: Caught exception from reallifemod

java.lang.RuntimeException: java.lang.InstantiationException: itsamysterious.mods.reallifemod.core.packets.PropertiesSetPackage$PacketHandlerPropsSet

at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.instantiate(SimpleNetworkWrapper.java:116) ~[forgeSrc-1.8-11.14.1.1354.jar:?]

at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.registerMessage(SimpleNetworkWrapper.java:106) ~[forgeSrc-1.8-11.14.1.1354.jar:?]

at itsamysterious.mods.reallifemod.RealLifeMod.preInit(RealLifeMod.java:97) ~[bin/:?]

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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:518) ~[forgeSrc-1.8-11.14.1.1354.jar:?]

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 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:208) ~[forgeSrc-1.8-11.14.1.1354.jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.8-11.14.1.1354.jar:?]

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 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:118) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:446) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:356) [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.InstantiationException: itsamysterious.mods.reallifemod.core.packets.PropertiesSetPackage$PacketHandlerPropsSet

at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_51]

at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.instantiate(SimpleNetworkWrapper.java:113) ~[forgeSrc-1.8-11.14.1.1354.jar:?]

... 41 more

Caused by: java.lang.NoSuchMethodException: itsamysterious.mods.reallifemod.core.packets.PropertiesSetPackage$PacketHandlerPropsSet.<init>()

at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.8.0_51]

at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_51]

at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.instantiate(SimpleNetworkWrapper.java:113) ~[forgeSrc-1.8-11.14.1.1354.jar:?]

... 41 more

[15:40:43] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:660]: ---- Minecraft Crash Report ----

// Surprise! Haha. Well, this is awkward.

 

Time: 13.08.15 15:40

Description: Initializing game

 

java.lang.RuntimeException: java.lang.InstantiationException: itsamysterious.mods.reallifemod.core.packets.PropertiesSetPackage$PacketHandlerPropsSet

at com.google.common.base.Throwables.propagate(Throwables.java:160)

at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.instantiate(SimpleNetworkWrapper.java:116)

at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.registerMessage(SimpleNetworkWrapper.java:106)

at itsamysterious.mods.reallifemod.RealLifeMod.preInit(RealLifeMod.java:97)

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:518)

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:208)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

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:118)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:446)

at net.minecraft.client.Minecraft.run(Minecraft.java:356)

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)

Caused by: java.lang.InstantiationException: itsamysterious.mods.reallifemod.core.packets.PropertiesSetPackage$PacketHandlerPropsSet

at java.lang.Class.newInstance(Unknown Source)

at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.instantiate(SimpleNetworkWrapper.java:113)

... 41 more

Caused by: java.lang.NoSuchMethodException: itsamysterious.mods.reallifemod.core.packets.PropertiesSetPackage$PacketHandlerPropsSet.<init>()

at java.lang.Class.getConstructor0(Unknown Source)

... 43 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

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

 

-- Head --

Stacktrace:

at com.google.common.base.Throwables.propagate(Throwables.java:160)

at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.instantiate(SimpleNetworkWrapper.java:116)

at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.registerMessage(SimpleNetworkWrapper.java:106)

at itsamysterious.mods.reallifemod.RealLifeMod.preInit(RealLifeMod.java:97)

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:518)

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:208)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

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:118)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:446)

 

-- Initialization --

Details:

Stacktrace:

at net.minecraft.client.Minecraft.run(Minecraft.java:356)

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: 759858272 bytes (724 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

FML{8.0.69.1354} [Forge Mod Loader] (forgeSrc-1.8-11.14.1.1354.jar) Unloaded->Constructed->Pre-initialized

Forge{11.14.1.1354} [Minecraft Forge] (forgeSrc-1.8-11.14.1.1354.jar) Unloaded->Constructed->Pre-initialized

RenderPlayerAPI{1.4} [Render Player API] (minecraft.jar) Unloaded->Constructed->Pre-initialized

reallifemod{0.32} [Real Life Mod] (bin) Unloaded->Constructed->Errored

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 353.62, 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)

[15:40:43] [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-08-13_15.40.43-client.txt

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

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.

Announcements



×
×
  • Create New...

Important Information

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