Jump to content

[Solved] [1.6.4] How do you enable multiplayer in a mod? Please help!


Recommended Posts

Posted

Hi guys,

So i'm working on a mod and i want to enable it to multiplayer. Ive been looking around and found this code:

 

 

but it didn't work. These are the files in case i wrote the files wrong:

 

 

 

This is the error i get:

 ---- Minecraft Crash Report ----
2014-02-13 18:10:42 [iNFO] [sTDOUT] // Why is it breaking 
2014-02-13 18:10:42 [iNFO] [sTDOUT] 
2014-02-13 18:10:42 [iNFO] [sTDOUT] Time: 2/13/14 6:10 PM
2014-02-13 18:10:42 [iNFO] [sTDOUT] Description: Ticking screen
2014-02-13 18:10:42 [iNFO] [sTDOUT] 
2014-02-13 18:10:42 [iNFO] [sTDOUT] java.lang.NullPointerException
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at java.net.URLEncoder.encode(URLEncoder.java:188)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.NetClientHandler.urlEncode(NetClientHandler.java:336)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.NetClientHandler.sendSessionRequest(NetClientHandler.java:318)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.NetClientHandler.handleServerAuthData(NetClientHandler.java:299)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.network.packet.Packet253ServerAuthData.processPacket(Packet253ServerAuthData.java:41)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.network.TcpConnection.processReadPackets(TcpConnection.java:462)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.GuiConnecting.updateScreen(GuiConnecting.java:51)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1580)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:838)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:101)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Method.java:597)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Method.java:597)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 
2014-02-13 18:10:42 [iNFO] [sTDOUT] 
2014-02-13 18:10:42 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2014-02-13 18:10:42 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------
2014-02-13 18:10:42 [iNFO] [sTDOUT] 
2014-02-13 18:10:42 [iNFO] [sTDOUT] -- Head --
2014-02-13 18:10:42 [iNFO] [sTDOUT] Stacktrace:
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at java.net.URLEncoder.encode(URLEncoder.java:188)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.NetClientHandler.urlEncode(NetClientHandler.java:336)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.NetClientHandler.sendSessionRequest(NetClientHandler.java:318)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.NetClientHandler.handleServerAuthData(NetClientHandler.java:299)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.network.packet.Packet253ServerAuthData.processPacket(Packet253ServerAuthData.java:41)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.network.TcpConnection.processReadPackets(TcpConnection.java:462)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.GuiConnecting.updateScreen(GuiConnecting.java:51)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 
2014-02-13 18:10:42 [iNFO] [sTDOUT] -- Affected screen --
2014-02-13 18:10:42 [iNFO] [sTDOUT] Details:
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Screen name: net.minecraft.client.multiplayer.GuiConnecting
2014-02-13 18:10:42 [iNFO] [sTDOUT] Stacktrace:
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1580)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:838)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:101)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Method.java:597)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Method.java:597)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 
2014-02-13 18:10:42 [iNFO] [sTDOUT] -- System Details --
2014-02-13 18:10:42 [iNFO] [sTDOUT] Details:
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Minecraft Version: 1.6.4
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Operating System: Mac OS X (x86_64) version 10.9
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Java Version: 1.6.0_65, Apple Inc.
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Memory: 993840560 bytes (947 MB) / 1069416448 bytes (1019 MB) up to 1069416448 bytes (1019 MB)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Suspicious classes: FML and Forge are installed
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	FML: MCP v8.11 FML v6.99.19.964 Minecraft Forge 9.11.1.964 4 mods loaded, 4 mods active
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	FML{6.99.19.964} [Forge Mod Loader] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Forge{9.11.1.964} [Minecraft Forge] (forge-1.6.4-9.11.1.964-mcp.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	RedDiamonds{1.0} [Red Diamonds] (forge 1.6.4 intellij) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Launched Version: 1.6
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	LWJGL: 2.9.0
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	OpenGL: NVIDIA GeForce 320M OpenGL Engine GL version 2.1 NVIDIA-8.18.27 310.40.05f01, NVIDIA Corporation
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Is Modded: Definitely; Client brand changed to 'fml,forge'
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Type: Client (map_client.txt)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Resource Pack: Default
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Current Language: English (US)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Profiler Position: N/A (disabled)
2014-02-13 18:10:42 [iNFO] [sTDOUT] 	Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
2014-02-13 18:10:42 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# /Users/alex/Desktop/Minecraft Modding/forge 1.6.4 intellij/clientserver/./crash-reports/crash-2014-02-13_18.10.42-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed

 

 

I'm not sure what's going on and it'd be much appreciated if you could help.

 

thanks,

-Pandassaurus

Posted

Atm its hard to say whats wrong as you have not posted your full code but have you tried changing the serverSide = false to true - Don't think it will make a difference but thats the only thing i can say atm

I would not suggest that, by setting that to true it will require the server to have the mod installed to connect to it and 90% of the time it should be false

 

You need to set online-mode to false in your server.properties.

That doesnt make sence since online-mode in server.properties requires to to have bought minecraft to connect if set to true. It should have no effect on any mod. Im not saying i know what the problem is, i dont, im just saying that im sure that is not the issue.

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.