1

[Help] ModloaderMp SMP GUI's

TheZyga's Avatar TheZyga12/9/17 9:55 pm history
1 emeralds 165
I recently made a new mod for Beta 1.7.3, it is called "Moar Furnaces". It adds in three new furnaces and they all over there own GUI's (Obviously). I wanted to make it Server compatible with ModLoaderMp. I believe I have successfully done that because I can join the server and craft, place, and break the new furnaces but when I go to use it, it crashes and I get a error which I believe is because I set up the GUI wrong server side.

Here is the error when the game crashes.

Click to reveal

Mods loaded: 2
Mods loaded: 2
ModLoader Beta 1.7.3net.minecraft.src.mod_Furnaces Beta 1.7.3
Minecraft has crashed! ----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to support@mojang.com.Please include a description of what you did when the error occured.

--- BEGIN ERROR REPORT d19ca82b --------
Generated 12/9/17 9:37 PM

Minecraft: Minecraft Beta 1.7.3
OS: Windows 10 (amd64) version 10.0
Java: 1.8.0_144, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics 620 version 4.5.0 - Build 22.20.16.4836, Intel

java.lang.NullPointerException
at net.minecraft.src.ModLoaderMp.HandleGUI(ModLoaderMp.java:122)
at net.minecraft.src.NetClientHandler.func_20087_a(NetClientHandler.java:627)
at net.minecraft.src.Packet100OpenWindow.processPacket(Packet100OpenWindow.java:18)
at net.minecraft.src.NetworkManager.processReadPackets(NetworkManager.java:215)
at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:127)
at net.minecraft.src.WorldClient.tick(WorldClient.java:55)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1149)
at net.minecraft.client.Minecraft.run(Minecraft.java:535)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT ae7e37fb ----------










I have read tons of things trying to figure this out and now I am making this post. Note: I HAVE READ ABOUT EVERYTHING I COULD FIND..

This is the string of code I need to use in the server mod_Furnaces.java file.

ModLoader.OpenGUI(player, guiID, inventory, container);


I know what the guiID's are, that is not a problem. The guiID's I am using are 120. 121. and 122.
I don't know how the find what to put for "player", "inventory", and "container"

Here you can download the source for all the files and can look at them all!

Here is my mod_Furnaces.java server-side
(I tried to just put it in a spoiler but it was kind of all messed up)
I uploaded it to pastebin!
pastebin.com/ZBKncsYh

Here is my mod_Furnaces.java for the client-side
pastebin.com/nXR50bDq[

All help is appreciated!

I don't really know what files are all needed to get the info that I need. If you need me to upload any files just ask and I will put them on pastebin! Also if you would like to just download the source and then just tell me the code and where you got everything that works great too!

url=www.mediafire.com/file/0p0zyp00f0cryt3/MoarFurnacesSMP.zip]Here you can download the source for all the files and can look at them all![/url]
Posted by TheZyga's Avatar
TheZyga
Level 27 : Expert Modder
1

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome