Jump to content

[1.12][Solved]Issues with custom player cabablities upon joining server


Recommended Posts

Posted (edited)

Hello everyone

I attached a capability to the EntityPlayer, which works fine for Singleplayer,

but whenever I try it on the Server the Server crashes(NullPointerException, though I think I did the Siding right)

2017-06-23 21:12:42,750 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-06-23 21:12:42,756 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[21:12:42] [main/INFO] [GradleStart]: Extra: []
[21:12:43] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/luca/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[21:12:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[21:12:43] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[21:12:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[21:12:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[21:12:43] [main/INFO] [FML]: Forge Mod Loader version 14.21.0.2327 for Minecraft 1.12 loading
[21:12:43] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_131, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_131\jre
[21:12:43] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[21:12:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[21:12:43] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[21:12:43] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[21:12:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[21:12:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[21:12:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[21:12:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[21:12:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[21:12:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[21:12:44] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[21:12:47] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[21:12:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[21:12:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[21:12:48] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[21:12:48] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[21:12:48] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[21:12:48] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2017-06-23 21:12:49,702 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-06-23 21:12:51,108 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-06-23 21:12:51,110 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[21:12:51] [main/INFO]: Setting user: Player720
[21:12:58] [main/INFO]: LWJGL Version: 2.9.4
[21:12:59] [main/INFO] [FML]: -- System Details --
Details:
	Minecraft Version: 1.12
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.8.0_131, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 859128400 bytes (819 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: 
	Loaded coremods (and transformers): 
	GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.2.11481 Compatibility Profile Context' Renderer: 'AMD Radeon HD 7560D'
[21:12:59] [main/INFO] [FML]: MinecraftForge v14.21.0.2327 Initialized
[21:13:00] [main/INFO] [FML]: Replaced 921 ore ingredients
[21:13:00] [main/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[21:13:00] [main/INFO] [FML]: Searching C:\Users\luca\Diebe im Olymp CD\Desktop\Duel Monsters 1.12\DuelMonsters\mods for mods
[21:13:02] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 308821531 nanos
[21:13:03] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[21:13:03] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, duelmonsters] at CLIENT
[21:13:03] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, duelmonsters] at SERVER
[21:13:04] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Duel Monsters
[21:13:04] [main/INFO] [FML]: Processing ObjectHolder annotations
[21:13:04] [main/INFO] [FML]: Found 464 ObjectHolder annotations
[21:13:04] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[21:13:04] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[21:13:04] [main/INFO] [FML]: Applying holder lookups
[21:13:04] [main/INFO] [FML]: Holder lookups applied
[21:13:04] [main/INFO] [FML]: Applying holder lookups
[21:13:04] [main/INFO] [FML]: Holder lookups applied
[21:13:04] [main/INFO] [FML]: Applying holder lookups
[21:13:04] [main/INFO] [FML]: Holder lookups applied
[21:13:05] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
[21:13:05] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[21:13:05] [main/INFO] [duelmonsters]: preInit
[21:13:05] [main/INFO] [FML]: Applying holder lookups
[21:13:05] [main/INFO] [FML]: Holder lookups applied
[21:13:05] [main/INFO] [FML]: Injecting itemstacks
[21:13:05] [main/INFO] [FML]: Itemstack injection complete
[21:13:09] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: BETA_OUTDATED Target: 14.21.0.2347
[21:13:10] [Sound Library Loader/INFO]: Starting up SoundSystem...
[21:13:11] [Thread-5/INFO]: Initializing LWJGL OpenAL
[21:13:11] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[21:13:11] [Thread-5/INFO]: OpenAL initialized.
[21:13:11] [Sound Library Loader/INFO]: Sound engine started
[21:13:18] [main/INFO] [FML]: Max texture size: 8192
[21:13:18] [main/INFO]: Created: 16x16 textures-atlas
[21:13:20] [main/INFO] [duelmonsters]: initItems
[21:13:20] [main/INFO] [duelmonsters]: initBlocks
[21:13:20] [main/INFO] [duelmonsters]: renderBlockduelmonsters:virtualcardmachine
[21:13:20] [main/INFO] [FML]: Injecting itemstacks
[21:13:20] [main/INFO] [FML]: Itemstack injection complete
[21:13:20] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[21:13:20] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Duel Monsters
[21:13:24] [main/INFO]: SoundSystem shutting down...
[21:13:24] [main/WARN]: Author: Paul Lamb, www.paulscode.com
[21:13:24] [Sound Library Loader/INFO]: Starting up SoundSystem...
[21:13:25] [Thread-7/INFO]: Initializing LWJGL OpenAL
[21:13:25] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[21:13:25] [Thread-7/INFO]: OpenAL initialized.
[21:13:25] [Sound Library Loader/INFO]: Sound engine started
[21:13:31] [main/INFO] [FML]: Max texture size: 8192
[21:13:31] [main/INFO]: Created: 512x512 textures-atlas
[21:13:33] [main/INFO]: Narrator library for x64 successfully loaded
[21:14:04] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[21:18:50] [Thread-8/INFO]: [STDERR]: java.lang.NullPointerException
Exception in thread "Thread-8" [21:18:50] [Thread-8/INFO]: [STDERR]: 	at com.jcraft.jogg.StreamState.packetout(StreamState.java:186)
[21:18:50] [Thread-8/INFO]: [STDERR]: 	at paulscode.sound.codecs.CodecJOrbis.readBytes(CodecJOrbis.java:575)
[21:18:50] [Thread-8/INFO]: [STDERR]: 	at paulscode.sound.codecs.CodecJOrbis.read(CodecJOrbis.java:354)
[21:18:50] [Thread-8/INFO]: [STDERR]: 	at paulscode.sound.Source.stream(Source.java:953)
[21:18:50] [Thread-8/INFO]: [STDERR]: 	at paulscode.sound.StreamThread.run(StreamThread.java:129)
[21:28:41] [main/INFO]: Connecting to , 25565
[21:28:44] [Netty Client IO #2/ERROR] [FML]: NetworkDispatcher exception
java.io.IOException: Eine vorhandene Verbindung wurde vom Remotehost geschlossen
	at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:1.8.0_131]
	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) ~[?:1.8.0_131]
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[?:1.8.0_131]
	at sun.nio.ch.IOUtil.read(IOUtil.java:192) ~[?:1.8.0_131]
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) ~[?:1.8.0_131]
	at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288) ~[PooledUnsafeDirectByteBuf.class:4.1.9.Final]
	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1100) ~[AbstractByteBuf.class:4.1.9.Final]
	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:372) ~[NioSocketChannel.class:4.1.9.Final]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123) [AbstractNioByteChannel$NioByteUnsafe.class:4.1.9.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:624) [NioEventLoop.class:4.1.9.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:559) [NioEventLoop.class:4.1.9.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:476) [NioEventLoop.class:4.1.9.Final]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438) [NioEventLoop.class:4.1.9.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [SingleThreadEventExecutor$5.class:4.1.9.Final]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

Thanks for your help, I will post my code if you demand but I dont want to spam this thread with code for now

Edited by ArmamentHaki
Posted (edited)

Actually nvm, I just realized that I wrote Minecraft.getMinecraft() in some part of the Capability Classes, although I didn't even use it. I should have just looked into the Server console, but the Client-one always opened and I didn't think about that then... Small things are hard to find I guess

Edited by ArmamentHaki

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.