Jump to content

Recommended Posts

Posted

Anybody know what this error means?

 

 

  Reveal hidden contents

 

Right out of my stack trace. This occasionally happens when I click my TileEntity blocks repeatedly. Also, I am getting this error too:

 

2012-09-13 19:16:27 [WARNING] [ForgeModLoader] A mod tried to open a gui on the server without being a NetworkMod

 

And can't get the GUI to open on that block.

 

Here's the code for my main mod file:

 

  Reveal hidden contents

 

Posted

As for the opening gui error its cuz you're not passing in a proper network mod instance, you get it in the instance field.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
  On 9/14/2012 at 2:49 AM, dmillerw said:

Register your tile entity!!

 

It's actually right here in my CommonProxy.java:

 

  Reveal hidden contents

 

 

  Quote

As for the opening gui error its cuz you're not passing in a proper network mod instance, you get it in the instance field.

 

Is it supposed to be the modid? Or the name of the class?

 

Got it.

Posted

Where do you call your register() method in your mod file?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

@Init works only for methods in classes which have the @Mod annotation (and an @Instance object) ;)

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Gotcha. It all works good now :) I am having a goofy thing where the text color changes when I pick up certain items in my clickbar, but I guess that happens in Vanilla too (bug?), so whatever :P

Posted

I'm having the same issue with the GUI NetworkMod thing, and despite reading this thread several times over, I can't figure out exactly how it got fixed.

 

I have @NetworkMod:

 

@NetworkMod(channels = {"AgricraftureCore"}, packetHandler = PacketHandlerCore.class, clientSideRequired = true, serverSideRequired = false)

public class AgricraftureMain

 

I have the instance lines all set out:

 

@Instance("Agricrafture")

public static AgricraftureMain instance;

 

and inside the @Init function:

 

NetworkRegistry.instance().registerGuiHandler(instance, new CulinaryGuiHandler());

 

so what am I missing/doing wrong here?

 

 

EDIT: I bet I have to manually put in "instance = this;" don't I? *facepalm*

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.